content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
test = { 'name': 'q2a', 'points': 2, 'suites': [ { 'cases': [ {'code': '>>> # This test makes sure that fav_emojis has exactly 5 key-value pairs.;\n>>> len(fav_emojis) == 5\nTrue', 'hidden': False, 'locked': False}, { 'code': '>>> # This test makes sure that fav_emojis has the five necessary keys, and nothing else.;\n' ">>> sorted(list(fav_emojis.keys())) == ['annoyed', 'food', 'happy', 'love', 'tired']\n" 'True', 'hidden': False, 'locked': False}, { 'code': '>>> # This test makes sure that all values in fav_emojis are of length 1.;\n>>> all([len(e) == 1 for e in fav_emojis.values()])\nTrue', 'hidden': False, 'locked': False}, { 'code': '>>> # This test makes sure that all of your values are actually emojis.;\n' ">>> all_emojis = read_json('data/emojis.json');\n" '>>> \n' '>>> invalid_keys = [];\n' '>>> for k in fav_emojis.keys():\n' '... if fav_emojis[k] not in all_emojis:\n' '... invalid_keys.append(k);\n' '>>> \n' '>>> if len(invalid_keys) == 0:\n' "... print('All valid')\n" '... else:\n' "... print('The emoji(s) corresponding to the key(s) ' + str(invalid_keys)[1:-1] + ' are invalid.\\nCheck your work!')\n" 'All valid\n', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
test = {'name': 'q2a', 'points': 2, 'suites': [{'cases': [{'code': '>>> # This test makes sure that fav_emojis has exactly 5 key-value pairs.;\n>>> len(fav_emojis) == 5\nTrue', 'hidden': False, 'locked': False}, {'code': ">>> # This test makes sure that fav_emojis has the five necessary keys, and nothing else.;\n>>> sorted(list(fav_emojis.keys())) == ['annoyed', 'food', 'happy', 'love', 'tired']\nTrue", 'hidden': False, 'locked': False}, {'code': '>>> # This test makes sure that all values in fav_emojis are of length 1.;\n>>> all([len(e) == 1 for e in fav_emojis.values()])\nTrue', 'hidden': False, 'locked': False}, {'code': ">>> # This test makes sure that all of your values are actually emojis.;\n>>> all_emojis = read_json('data/emojis.json');\n>>> \n>>> invalid_keys = [];\n>>> for k in fav_emojis.keys():\n... if fav_emojis[k] not in all_emojis:\n... invalid_keys.append(k);\n>>> \n>>> if len(invalid_keys) == 0:\n... print('All valid')\n... else:\n... print('The emoji(s) corresponding to the key(s) ' + str(invalid_keys)[1:-1] + ' are invalid.\\nCheck your work!')\nAll valid\n", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
class Floor: def __init__(self, pos, height): self.pos = pos self.height = height self.velocity = np.array([0,0,0]) self.actor = None
class Floor: def __init__(self, pos, height): self.pos = pos self.height = height self.velocity = np.array([0, 0, 0]) self.actor = None
# -*- coding: utf-8 -*- """ * Project: udacity-fsnd-p4-conference-app * Author name: Iraquitan Cordeiro Filho * Author login: iraquitan * File: settings * Date: 3/23/16 * Time: 12:16 AM """ # Replace the following lines with client IDs obtained from the APIs # Console or Cloud Console. WEB_CLIENT_ID = 'your-web-client-id'
""" * Project: udacity-fsnd-p4-conference-app * Author name: Iraquitan Cordeiro Filho * Author login: iraquitan * File: settings * Date: 3/23/16 * Time: 12:16 AM """ web_client_id = 'your-web-client-id'
''' acts as a model class for freq_ingest table. all the values are set and get using the setter and getter. ''' class Freq_Ingest(object): ''' acts as a model class for freq_ingest table. all the values are set and get using the setter and getter. ''' def __init__(self, team_name=None, frequency=None, table=None, activate=None): ''' has default variables team_name - view/team of the team frequency - frequency in which it is scheduled table - full table name - usually databasename_tablename activate - flag to create view hql ''' if team_name is None: self.__view_nm = None else: self.__view_nm = team_name[0] if table is None: self.__full_tb_nm = None else: self.__full_tb_nm = table[0] if frequency is None: self.__freq = None else: self.__freq = frequency[0] if activate is None: self.__activator = None else: self.__activator = activate[0] @property def view_nm(self): return self.__view_nm @view_nm.setter def view_nm(self, view_name): self.__view_nm = view_name @property def full_tb_nm(self): return self.__full_tb_nm @full_tb_nm.setter def full_tb_nm(self, full_tb_nm): self.__full_tb_nm = full_tb_nm @property def frequency(self): return self.__freq @frequency.setter def frequency(self, freq): self.__freq = freq @property def activator(self): return self.__activator @activator.setter def activator(self, activator): self.__activator = activator
""" acts as a model class for freq_ingest table. all the values are set and get using the setter and getter. """ class Freq_Ingest(object): """ acts as a model class for freq_ingest table. all the values are set and get using the setter and getter. """ def __init__(self, team_name=None, frequency=None, table=None, activate=None): """ has default variables team_name - view/team of the team frequency - frequency in which it is scheduled table - full table name - usually databasename_tablename activate - flag to create view hql """ if team_name is None: self.__view_nm = None else: self.__view_nm = team_name[0] if table is None: self.__full_tb_nm = None else: self.__full_tb_nm = table[0] if frequency is None: self.__freq = None else: self.__freq = frequency[0] if activate is None: self.__activator = None else: self.__activator = activate[0] @property def view_nm(self): return self.__view_nm @view_nm.setter def view_nm(self, view_name): self.__view_nm = view_name @property def full_tb_nm(self): return self.__full_tb_nm @full_tb_nm.setter def full_tb_nm(self, full_tb_nm): self.__full_tb_nm = full_tb_nm @property def frequency(self): return self.__freq @frequency.setter def frequency(self, freq): self.__freq = freq @property def activator(self): return self.__activator @activator.setter def activator(self, activator): self.__activator = activator
#eleghei an leipei kapoio symvolo >,<,= def check_if__miss_symbol (filename): #filename='LP02.LTX' keeptheprevious_number_in_string=None counter_of_line=0 i=0 with open(filename, "r") as f: data = f.readlines() for line in data: counter_of_line=counter_of_line+1 for letter in line: if(letter=='\n' ): if(keeptheprevious_number_in_string == '>' or keeptheprevious_number_in_string =='=' or keeptheprevious_number_in_string == '<'): print("Error there is no number after >,=,< in line:",counter_of_line) i=1 if( letter.isspace() == False): keeptheprevious_number_in_string=letter if(i==1): return False else: return True
def check_if__miss_symbol(filename): keeptheprevious_number_in_string = None counter_of_line = 0 i = 0 with open(filename, 'r') as f: data = f.readlines() for line in data: counter_of_line = counter_of_line + 1 for letter in line: if letter == '\n': if keeptheprevious_number_in_string == '>' or keeptheprevious_number_in_string == '=' or keeptheprevious_number_in_string == '<': print('Error there is no number after >,=,< in line:', counter_of_line) i = 1 if letter.isspace() == False: keeptheprevious_number_in_string = letter if i == 1: return False else: return True
class Player: def __init__(self, name: str, hp: int, mp: int): self.name = name self.hp = hp self.mp = mp self.skills = {} self.guild = 'Unaffiliated' def add_skill(self, skill_name, mana_cost): if skill_name in self.skills.keys(): return 'Skill already added' self.skills[skill_name] = mana_cost return f'Skill {skill_name} added to the collection of the player {self.name}' def player_info(self): player_info = [ f'Name: {self.name}', f'Guild: {self.guild}', f'HP: {self.hp}', f'MP: {self.mp}', ] skills_info = [f'==={key} - {value}' for key, value in self.skills.items()] return '\n'.join(player_info + skills_info) + '\n'
class Player: def __init__(self, name: str, hp: int, mp: int): self.name = name self.hp = hp self.mp = mp self.skills = {} self.guild = 'Unaffiliated' def add_skill(self, skill_name, mana_cost): if skill_name in self.skills.keys(): return 'Skill already added' self.skills[skill_name] = mana_cost return f'Skill {skill_name} added to the collection of the player {self.name}' def player_info(self): player_info = [f'Name: {self.name}', f'Guild: {self.guild}', f'HP: {self.hp}', f'MP: {self.mp}'] skills_info = [f'==={key} - {value}' for (key, value) in self.skills.items()] return '\n'.join(player_info + skills_info) + '\n'
class Compartment: """ A tuberculosis model compartment. """ SUSCEPTIBLE = "susceptible" EARLY_LATENT = "early_latent" LATE_LATENT = "late_latent" INFECTIOUS = "infectious" DETECTED = "detected" ON_TREATMENT = "on_treatment" RECOVERED = "recovered"
class Compartment: """ A tuberculosis model compartment. """ susceptible = 'susceptible' early_latent = 'early_latent' late_latent = 'late_latent' infectious = 'infectious' detected = 'detected' on_treatment = 'on_treatment' recovered = 'recovered'
""" Copyright (c) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ class StrTo(object): @staticmethod def tuple(type_of_elements: type, string: str): if type_of_elements == int: string = string.replace('L', '') return tuple(type_of_elements(x) for x in string[1:-1].split(',')) @staticmethod def list(string: str, type_of_elements: type, sep: str): result = string.split(sep) result = [type_of_elements(x) for x in result] return result @staticmethod def bool(val: str): if val.lower() == "false": return False elif val.lower() == "true": return True else: raise ValueError("Value is not boolean: " + val)
""" Copyright (c) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ class Strto(object): @staticmethod def tuple(type_of_elements: type, string: str): if type_of_elements == int: string = string.replace('L', '') return tuple((type_of_elements(x) for x in string[1:-1].split(','))) @staticmethod def list(string: str, type_of_elements: type, sep: str): result = string.split(sep) result = [type_of_elements(x) for x in result] return result @staticmethod def bool(val: str): if val.lower() == 'false': return False elif val.lower() == 'true': return True else: raise value_error('Value is not boolean: ' + val)
class Solution(object): def minDominoRotations(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: int """ # check there are enough same values if len(A) != len(B): return -1 countA = [0] * 7 countB = [0] * 7 same = [0] * 7 for i in range(len(A)): a, b = A[i], B[i] countA[a] += 1 countB[b] += 1 if a == b: same[a] += 1 for i in range(1, 7): if countA[i] + countB[i] - same[i] == len(A): return len(A) - max(countA[i], countB[i]) return -1
class Solution(object): def min_domino_rotations(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: int """ if len(A) != len(B): return -1 count_a = [0] * 7 count_b = [0] * 7 same = [0] * 7 for i in range(len(A)): (a, b) = (A[i], B[i]) countA[a] += 1 countB[b] += 1 if a == b: same[a] += 1 for i in range(1, 7): if countA[i] + countB[i] - same[i] == len(A): return len(A) - max(countA[i], countB[i]) return -1
class Source: ''' source class to define how news sources look ''' def __init__(self,id,name,language,country): self.id=id self.name=name self.language=language self.country=country
class Source: """ source class to define how news sources look """ def __init__(self, id, name, language, country): self.id = id self.name = name self.language = language self.country = country
# Added at : 2016.8.3 # Author : 7sDream # Usage : Target point(contain point and image pixel info). __all__ = ['Target'] class Target(object): def __init__(self, y, x, fill, contrast, point): self._y = y self._x = x self._fill = fill self._contrast = contrast self._point = point self._hard_zero = False @property def fill(self): return self._fill @property def contrast(self): return self._contrast @property def y(self): return self._y @property def x(self): return self._x @property def point(self): return self._point def set_hard_zero(self): self._hard_zero = True def is_hard_zero(self): return self._hard_zero def __str__(self): return "Target({fill}, {contrast:.3f})".format( fill=self.fill, contrast=self.contrast )
__all__ = ['Target'] class Target(object): def __init__(self, y, x, fill, contrast, point): self._y = y self._x = x self._fill = fill self._contrast = contrast self._point = point self._hard_zero = False @property def fill(self): return self._fill @property def contrast(self): return self._contrast @property def y(self): return self._y @property def x(self): return self._x @property def point(self): return self._point def set_hard_zero(self): self._hard_zero = True def is_hard_zero(self): return self._hard_zero def __str__(self): return 'Target({fill}, {contrast:.3f})'.format(fill=self.fill, contrast=self.contrast)
"""Defines a rule for runtime test targets.""" load("//tools:defs.bzl", "go_test", "loopback") def runtime_test( name, lang, image_repo = "gcr.io/gvisor-presubmit", image_name = None, blacklist_file = None, shard_count = 50, size = "enormous"): """Generates sh_test and blacklist test targets for a given runtime. Args: name: The name of the runtime being tested. Typically, the lang + version. This is used in the names of the generated test targets. lang: The language being tested. image_repo: The docker repository containing the proctor image to run. i.e., the prefix to the fully qualified docker image id. image_name: The name of the image in the image_repo. Defaults to the test name. blacklist_file: A test blacklist to pass to the runtime test's runner. shard_count: See Bazel common test attributes. size: See Bazel common test attributes. """ if image_name == None: image_name = name args = [ "--lang", lang, "--image", "/".join([image_repo, image_name]), ] data = [ ":runner", loopback, ] if blacklist_file: args += ["--blacklist_file", "test/runtimes/" + blacklist_file] data += [blacklist_file] # Add a test that the blacklist parses correctly. blacklist_test(name, blacklist_file) sh_test( name = name + "_test", srcs = ["runner.sh"], args = args, data = data, size = size, shard_count = shard_count, tags = [ # Requires docker and runsc to be configured before the test runs. "local", # Don't include test target in wildcard target patterns. "manual", ], ) def blacklist_test(name, blacklist_file): """Test that a blacklist parses correctly.""" go_test( name = name + "_blacklist_test", library = ":runner", srcs = ["blacklist_test.go"], args = ["--blacklist_file", "test/runtimes/" + blacklist_file], data = [blacklist_file], ) def sh_test(**kwargs): """Wraps the standard sh_test.""" native.sh_test( **kwargs )
"""Defines a rule for runtime test targets.""" load('//tools:defs.bzl', 'go_test', 'loopback') def runtime_test(name, lang, image_repo='gcr.io/gvisor-presubmit', image_name=None, blacklist_file=None, shard_count=50, size='enormous'): """Generates sh_test and blacklist test targets for a given runtime. Args: name: The name of the runtime being tested. Typically, the lang + version. This is used in the names of the generated test targets. lang: The language being tested. image_repo: The docker repository containing the proctor image to run. i.e., the prefix to the fully qualified docker image id. image_name: The name of the image in the image_repo. Defaults to the test name. blacklist_file: A test blacklist to pass to the runtime test's runner. shard_count: See Bazel common test attributes. size: See Bazel common test attributes. """ if image_name == None: image_name = name args = ['--lang', lang, '--image', '/'.join([image_repo, image_name])] data = [':runner', loopback] if blacklist_file: args += ['--blacklist_file', 'test/runtimes/' + blacklist_file] data += [blacklist_file] blacklist_test(name, blacklist_file) sh_test(name=name + '_test', srcs=['runner.sh'], args=args, data=data, size=size, shard_count=shard_count, tags=['local', 'manual']) def blacklist_test(name, blacklist_file): """Test that a blacklist parses correctly.""" go_test(name=name + '_blacklist_test', library=':runner', srcs=['blacklist_test.go'], args=['--blacklist_file', 'test/runtimes/' + blacklist_file], data=[blacklist_file]) def sh_test(**kwargs): """Wraps the standard sh_test.""" native.sh_test(**kwargs)
_base_ = [ '../../_base_/models/r50.py', '../../_base_/datasets/imagenet_sz224_4xbs64.py', '../../_base_/default_runtime.py', ] # model settings model = dict(backbone=dict(norm_cfg=dict(type='SyncBN'))) # dataset settings data = dict( train=dict( data_source=dict( list_file='data/meta/ImageNet/train_labeled_1percent.txt', )) ) # optimizer optimizer = dict( type='SGD', lr=0.1, momentum=0.9, weight_decay=5e-4, paramwise_options={'\\Ahead.': dict(lr_mult=1)}) # learning policy lr_config = dict(policy='step', step=[12, 16], gamma=0.2) # runtime settings runner = dict(type='EpochBasedRunner', max_epochs=20)
_base_ = ['../../_base_/models/r50.py', '../../_base_/datasets/imagenet_sz224_4xbs64.py', '../../_base_/default_runtime.py'] model = dict(backbone=dict(norm_cfg=dict(type='SyncBN'))) data = dict(train=dict(data_source=dict(list_file='data/meta/ImageNet/train_labeled_1percent.txt'))) optimizer = dict(type='SGD', lr=0.1, momentum=0.9, weight_decay=0.0005, paramwise_options={'\\Ahead.': dict(lr_mult=1)}) lr_config = dict(policy='step', step=[12, 16], gamma=0.2) runner = dict(type='EpochBasedRunner', max_epochs=20)
def generate_dict_vpn_ip_nexthops(nexthops): """ This function generates the block of configurtion for the VPN IP nexthops that will be used in CLI template to generate VPN Feature Template """ vipValue = [] for nexthop in nexthops: vipValue.append( { "address": { "vipObjectType": "object", "vipType": "variableName", "vipValue": "", "vipVariableName": nexthop } } ) return vipValue pass
def generate_dict_vpn_ip_nexthops(nexthops): """ This function generates the block of configurtion for the VPN IP nexthops that will be used in CLI template to generate VPN Feature Template """ vip_value = [] for nexthop in nexthops: vipValue.append({'address': {'vipObjectType': 'object', 'vipType': 'variableName', 'vipValue': '', 'vipVariableName': nexthop}}) return vipValue pass
def twoCitySchedCost(costs): result={'A':[],'B':[]} costs.sort(key = lambda x: x[0]-x[1]) print(costs) n=len(costs)//2 total = 0 for cost in costs[:n]: total+=cost[0] for cost in costs[n:]: total+=cost[1] return total if __name__ =='__main__': costs = [[10,20],[30,200],[400,50],[30,20]] print(twoCitySchedCost(costs)) #110 costs = [[259,770],[448,54],[926,667],[184,139],[840,118],[577,469]] print(twoCitySchedCost(costs)) #1859 costs = [[515,563],[451,713],[537,709],[343,819],[855,779],[457,60],[650,359],[631,42]] print(twoCitySchedCost(costs)) #3086
def two_city_sched_cost(costs): result = {'A': [], 'B': []} costs.sort(key=lambda x: x[0] - x[1]) print(costs) n = len(costs) // 2 total = 0 for cost in costs[:n]: total += cost[0] for cost in costs[n:]: total += cost[1] return total if __name__ == '__main__': costs = [[10, 20], [30, 200], [400, 50], [30, 20]] print(two_city_sched_cost(costs)) costs = [[259, 770], [448, 54], [926, 667], [184, 139], [840, 118], [577, 469]] print(two_city_sched_cost(costs)) costs = [[515, 563], [451, 713], [537, 709], [343, 819], [855, 779], [457, 60], [650, 359], [631, 42]] print(two_city_sched_cost(costs))
guests_count = int(input()) budget = int(input()) covert_price = guests_count * 20 if covert_price < budget: money_left = budget - covert_price fireworks_money = money_left * 0.4 donation_money = money_left - fireworks_money print(f"Yes! {fireworks_money:.0f} lv are for fireworks and {donation_money:.0f} lv are for donation.") else: money_needed = covert_price - budget print(f"They won't have enough money to pay the covert. They will need {money_needed:.0f} lv more.")
guests_count = int(input()) budget = int(input()) covert_price = guests_count * 20 if covert_price < budget: money_left = budget - covert_price fireworks_money = money_left * 0.4 donation_money = money_left - fireworks_money print(f'Yes! {fireworks_money:.0f} lv are for fireworks and {donation_money:.0f} lv are for donation.') else: money_needed = covert_price - budget print(f"They won't have enough money to pay the covert. They will need {money_needed:.0f} lv more.")
# this defines the CPU execution details EXCEPTION_STACK = [ ] def e_size(): '''get the size of the stack''' return len(EXCEPTION_STACK) def e_empty(): '''test whether the stack is empty''' return not len(EXCEPTION_STACK) def e_clear(): '''clear the stack''' del EXCEPTION_STACK[:] return def e_push(e): '''push a new exception into the stack''' EXCEPTION_STACK.append(e) return def e_pop(): '''pop an exception out of the stack''' if e_empty(): return None return EXCEPTION_STACK.pop() def e_peek(): '''peek at the last exception on the stack''' if e_empty(): return None return EXCEPTION_STACK[-1] def e_dump(): '''dump the entire stack''' if e_empty(): trace = [ '[ no exception found ]\n' ] else: trace = [ repr(e) for e in EXCEPTION_STACK ] return '\n'.join( [ 'Exception Trace: (same order as they occured)\n--------' ] + trace ) ### exception definition ## base exception class zPException(Exception): _type_ = { 'S' : 'SYSTEM', 'U' : 'UTILITY', } def __init__(self, etype, ecode, emsg, *extra): self.args = (etype, ecode, emsg) + extra def __repr__(self): return '{0}{1} {2}\nextra msg(s): {3}\n'.format( self.args[0], self.args[1], self.args[2], repr(self.args[3:]) # extra ) def __str__(self): return '{0:>8} = {1} {2}'.format(self.type(), self.code(), self.text()) def __dict__(self): return { 'type' : self.args[0], 'code' : self.args[1], 'text' : self.args[2], 'extra' : self.args[3:], } def type(self): return self._type_[self.args[0]] def code(self): return self.args[1] def text(self): return self.args[2] def extra(self): return self.args[3:] ## system exception def newSystemException(ecode, emsg, *extra): return zPException('S', ecode, emsg, *extra) ## utility exception def newUtilityException(ecode, emsg, *extra): return zPException('U', ecode, emsg, *extra) # commonly used exceptions def newOperationException(* extra): return newSystemException('0C1', 'OPERATION EXCEPTION', *extra) def newProtectionException(* extra): return newSystemException('0C4', 'PROTECTION EXCEPTION', *extra) def newAddressingException(* extra): return newSystemException('0C5', 'ADDRESSING EXCEPTION', *extra) def newSpecificationException(* extra): return newSystemException('0C6', 'SPECIFICATION EXCEPTION', *extra) def newDataException(* extra): return newSystemException('0C7', 'DATA EXCEPTION', *extra) def newFixedPointOverflowException(* extra): return newSystemException('0C8', 'FIXED POINT OVERFLOW EXCEPTION', *extra) def newFixedPointDivideException(* extra): return newSystemException('0C9', 'FIXED POINT DEVIDE EXCEPTION', *extra) def newDecimalOverflowException(* extra): return newSystemException('0CA', 'DECIMAL OVERFLOW EXCEPTION', *extra) def newDecimalDivideException(* extra): return newSystemException('0CB', 'DECIMAL DEVIDE EXCEPTION', *extra)
exception_stack = [] def e_size(): """get the size of the stack""" return len(EXCEPTION_STACK) def e_empty(): """test whether the stack is empty""" return not len(EXCEPTION_STACK) def e_clear(): """clear the stack""" del EXCEPTION_STACK[:] return def e_push(e): """push a new exception into the stack""" EXCEPTION_STACK.append(e) return def e_pop(): """pop an exception out of the stack""" if e_empty(): return None return EXCEPTION_STACK.pop() def e_peek(): """peek at the last exception on the stack""" if e_empty(): return None return EXCEPTION_STACK[-1] def e_dump(): """dump the entire stack""" if e_empty(): trace = ['[ no exception found ]\n'] else: trace = [repr(e) for e in EXCEPTION_STACK] return '\n'.join(['Exception Trace: (same order as they occured)\n--------'] + trace) class Zpexception(Exception): _type_ = {'S': 'SYSTEM', 'U': 'UTILITY'} def __init__(self, etype, ecode, emsg, *extra): self.args = (etype, ecode, emsg) + extra def __repr__(self): return '{0}{1} {2}\nextra msg(s): {3}\n'.format(self.args[0], self.args[1], self.args[2], repr(self.args[3:])) def __str__(self): return '{0:>8} = {1} {2}'.format(self.type(), self.code(), self.text()) def __dict__(self): return {'type': self.args[0], 'code': self.args[1], 'text': self.args[2], 'extra': self.args[3:]} def type(self): return self._type_[self.args[0]] def code(self): return self.args[1] def text(self): return self.args[2] def extra(self): return self.args[3:] def new_system_exception(ecode, emsg, *extra): return z_p_exception('S', ecode, emsg, *extra) def new_utility_exception(ecode, emsg, *extra): return z_p_exception('U', ecode, emsg, *extra) def new_operation_exception(*extra): return new_system_exception('0C1', 'OPERATION EXCEPTION', *extra) def new_protection_exception(*extra): return new_system_exception('0C4', 'PROTECTION EXCEPTION', *extra) def new_addressing_exception(*extra): return new_system_exception('0C5', 'ADDRESSING EXCEPTION', *extra) def new_specification_exception(*extra): return new_system_exception('0C6', 'SPECIFICATION EXCEPTION', *extra) def new_data_exception(*extra): return new_system_exception('0C7', 'DATA EXCEPTION', *extra) def new_fixed_point_overflow_exception(*extra): return new_system_exception('0C8', 'FIXED POINT OVERFLOW EXCEPTION', *extra) def new_fixed_point_divide_exception(*extra): return new_system_exception('0C9', 'FIXED POINT DEVIDE EXCEPTION', *extra) def new_decimal_overflow_exception(*extra): return new_system_exception('0CA', 'DECIMAL OVERFLOW EXCEPTION', *extra) def new_decimal_divide_exception(*extra): return new_system_exception('0CB', 'DECIMAL DEVIDE EXCEPTION', *extra)
"""Internal API endpoint constant library. _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. . | CROWDSTRIKE FALCON |::.. . | FalconPy `-------' `-------' OAuth2 API - Customer SDK This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <https://unlicense.org> """ _kubernetes_protection_endpoints = [ [ "GetAWSAccountsMixin0", "GET", "/kubernetes-protection/entities/accounts/aws/v1", "Provides a list of AWS accounts.", "kubernetes_protection", [ { "type": "array", "items": { "minLength": 12, "pattern": "^[0-9]{12}$", "type": "string" }, "collectionFormat": "csv", "description": "AWS Account IDs", "name": "ids", "in": "query" }, { "pattern": "^(provisioned|operational)$", "type": "string", "description": "Filter by account status", "name": "status", "in": "query" }, { "maximum": 1000, "minimum": 0, "type": "integer", "description": "Limit returned accounts", "name": "limit", "in": "query" }, { "minimum": 0, "type": "integer", "description": "Offset returned accounts", "name": "offset", "in": "query" } ] ], [ "CreateAWSAccount", "POST", "/kubernetes-protection/entities/accounts/aws/v1", "Creates a new AWS account in our system for a customer and generates the installation script", "kubernetes_protection", [ { "name": "body", "in": "body", "required": True } ] ], [ "UpdateAWSAccount", "PATCH", "/kubernetes-protection/entities/accounts/aws/v1", "Updates the AWS account per the query parameters provided", "kubernetes_protection", [ { "type": "array", "items": { "maxLength": 12, "minLength": 12, "pattern": "^[0-9]{12}$", "type": "string" }, "collectionFormat": "csv", "description": "AWS Account ID", "name": "ids", "in": "query", "required": True }, { "pattern": "^[a-z\\d-]+$", "type": "string", "description": "Default Region for Account Automation", "name": "region", "in": "query" } ] ], [ "DeleteAWSAccountsMixin0", "DELETE", "/kubernetes-protection/entities/accounts/aws/v1", "Delete AWS accounts.", "kubernetes_protection", [ { "type": "array", "items": { "maxLength": 12, "minLength": 12, "pattern": "^[0-9]{12}$", "type": "string" }, "collectionFormat": "csv", "description": "AWS Account IDs", "name": "ids", "in": "query", "required": True } ] ], [ "GetLocations", "GET", "/kubernetes-protection/entities/cloud-locations/v1", "Provides the cloud locations acknowledged by the Kubernetes Protection service", "kubernetes_protection", [ { "enum": [ "aws", "azure", "gcp" ], "type": "array", "items": { "type": "string" }, "collectionFormat": "csv", "description": "Cloud Provider", "name": "clouds", "in": "query" } ] ], [ "GetHelmValuesYaml", "GET", "/kubernetes-protection/entities/integration/agent/v1", "Provides a sample Helm values.yaml file for a customer to install alongside the agent Helm chart", "kubernetes_protection", [ { "type": "string", "description": "Cluster name. For EKS it will be cluster ARN.", "name": "cluster_name", "in": "query", "required": True } ] ], [ "RegenerateAPIKey", "POST", "/kubernetes-protection/entities/integration/api-key/v1", "Regenerate API key for docker registry integrations", "kubernetes_protection", [] ], [ "GetClusters", "GET", "/kubernetes-protection/entities/kubernetes/clusters/v1", "Provides the clusters acknowledged by the Kubernetes Protection service", "kubernetes_protection", [ { "type": "array", "items": { "type": "string" }, "collectionFormat": "csv", "description": "Cluster name. For EKS it will be cluster ARN.", "name": "cluster_names", "in": "query" }, { "type": "array", "items": { "type": "string" }, "collectionFormat": "csv", "description": "Cluster Account id. For EKS it will be AWS account ID.", "name": "account_ids", "in": "query" }, { "type": "array", "items": { "type": "string" }, "collectionFormat": "csv", "description": "Cloud location", "name": "locations", "in": "query" }, { "enum": [ "eks" ], "type": "string", "description": "Cluster Service", "name": "cluster_service", "in": "query" }, { "maximum": 1000, "minimum": 0, "type": "integer", "description": "Limit returned accounts", "name": "limit", "in": "query" }, { "minimum": 0, "type": "integer", "description": "Offset returned accounts", "name": "offset", "in": "query" } ] ], [ "TriggerScan", "POST", "/kubernetes-protection/entities/scan/trigger/v1", "Triggers a dry run or a full scan of a customer's kubernetes footprint", "kubernetes_protection", [ { "pattern": "^(dry-run|full|cluster-refresh)$", "enum": [ "cluster-refresh", "dry-run", "full" ], "type": "string", "default": "dry-run", "description": "Scan Type to do", "name": "scan_type", "in": "query", "required": True } ] ] ]
"""Internal API endpoint constant library. _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. . | CROWDSTRIKE FALCON |::.. . | FalconPy `-------' `-------' OAuth2 API - Customer SDK This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <https://unlicense.org> """ _kubernetes_protection_endpoints = [['GetAWSAccountsMixin0', 'GET', '/kubernetes-protection/entities/accounts/aws/v1', 'Provides a list of AWS accounts.', 'kubernetes_protection', [{'type': 'array', 'items': {'minLength': 12, 'pattern': '^[0-9]{12}$', 'type': 'string'}, 'collectionFormat': 'csv', 'description': 'AWS Account IDs', 'name': 'ids', 'in': 'query'}, {'pattern': '^(provisioned|operational)$', 'type': 'string', 'description': 'Filter by account status', 'name': 'status', 'in': 'query'}, {'maximum': 1000, 'minimum': 0, 'type': 'integer', 'description': 'Limit returned accounts', 'name': 'limit', 'in': 'query'}, {'minimum': 0, 'type': 'integer', 'description': 'Offset returned accounts', 'name': 'offset', 'in': 'query'}]], ['CreateAWSAccount', 'POST', '/kubernetes-protection/entities/accounts/aws/v1', 'Creates a new AWS account in our system for a customer and generates the installation script', 'kubernetes_protection', [{'name': 'body', 'in': 'body', 'required': True}]], ['UpdateAWSAccount', 'PATCH', '/kubernetes-protection/entities/accounts/aws/v1', 'Updates the AWS account per the query parameters provided', 'kubernetes_protection', [{'type': 'array', 'items': {'maxLength': 12, 'minLength': 12, 'pattern': '^[0-9]{12}$', 'type': 'string'}, 'collectionFormat': 'csv', 'description': 'AWS Account ID', 'name': 'ids', 'in': 'query', 'required': True}, {'pattern': '^[a-z\\d-]+$', 'type': 'string', 'description': 'Default Region for Account Automation', 'name': 'region', 'in': 'query'}]], ['DeleteAWSAccountsMixin0', 'DELETE', '/kubernetes-protection/entities/accounts/aws/v1', 'Delete AWS accounts.', 'kubernetes_protection', [{'type': 'array', 'items': {'maxLength': 12, 'minLength': 12, 'pattern': '^[0-9]{12}$', 'type': 'string'}, 'collectionFormat': 'csv', 'description': 'AWS Account IDs', 'name': 'ids', 'in': 'query', 'required': True}]], ['GetLocations', 'GET', '/kubernetes-protection/entities/cloud-locations/v1', 'Provides the cloud locations acknowledged by the Kubernetes Protection service', 'kubernetes_protection', [{'enum': ['aws', 'azure', 'gcp'], 'type': 'array', 'items': {'type': 'string'}, 'collectionFormat': 'csv', 'description': 'Cloud Provider', 'name': 'clouds', 'in': 'query'}]], ['GetHelmValuesYaml', 'GET', '/kubernetes-protection/entities/integration/agent/v1', 'Provides a sample Helm values.yaml file for a customer to install alongside the agent Helm chart', 'kubernetes_protection', [{'type': 'string', 'description': 'Cluster name. For EKS it will be cluster ARN.', 'name': 'cluster_name', 'in': 'query', 'required': True}]], ['RegenerateAPIKey', 'POST', '/kubernetes-protection/entities/integration/api-key/v1', 'Regenerate API key for docker registry integrations', 'kubernetes_protection', []], ['GetClusters', 'GET', '/kubernetes-protection/entities/kubernetes/clusters/v1', 'Provides the clusters acknowledged by the Kubernetes Protection service', 'kubernetes_protection', [{'type': 'array', 'items': {'type': 'string'}, 'collectionFormat': 'csv', 'description': 'Cluster name. For EKS it will be cluster ARN.', 'name': 'cluster_names', 'in': 'query'}, {'type': 'array', 'items': {'type': 'string'}, 'collectionFormat': 'csv', 'description': 'Cluster Account id. For EKS it will be AWS account ID.', 'name': 'account_ids', 'in': 'query'}, {'type': 'array', 'items': {'type': 'string'}, 'collectionFormat': 'csv', 'description': 'Cloud location', 'name': 'locations', 'in': 'query'}, {'enum': ['eks'], 'type': 'string', 'description': 'Cluster Service', 'name': 'cluster_service', 'in': 'query'}, {'maximum': 1000, 'minimum': 0, 'type': 'integer', 'description': 'Limit returned accounts', 'name': 'limit', 'in': 'query'}, {'minimum': 0, 'type': 'integer', 'description': 'Offset returned accounts', 'name': 'offset', 'in': 'query'}]], ['TriggerScan', 'POST', '/kubernetes-protection/entities/scan/trigger/v1', "Triggers a dry run or a full scan of a customer's kubernetes footprint", 'kubernetes_protection', [{'pattern': '^(dry-run|full|cluster-refresh)$', 'enum': ['cluster-refresh', 'dry-run', 'full'], 'type': 'string', 'default': 'dry-run', 'description': 'Scan Type to do', 'name': 'scan_type', 'in': 'query', 'required': True}]]]
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'alert_overlay', 'dependencies': [ '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:util', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'array_data_model', 'dependencies': [ '../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:event_target', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'command', 'dependencies': [ '../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:ui', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'drag_wrapper', 'dependencies': [ '../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'focus_grid', 'dependencies': [ '../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', 'focus_row', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'focus_manager', 'dependencies': ['../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'focus_outline_manager', 'dependencies': ['../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'focus_row', 'dependencies': [ '../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', '../../compiled_resources2.gyp:util', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'menu_button', 'dependencies': [ '../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', '../compiled_resources2.gyp:ui', 'menu', 'menu_item', 'position_util', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'menu_item', 'dependencies': [ '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:load_time_data', '../compiled_resources2.gyp:ui', 'command', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'menu', 'dependencies': [ '../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:ui', 'menu_item', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'overlay', 'dependencies': [ '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:util', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { 'target_name': 'position_util', 'dependencies': [ '../../compiled_resources2.gyp:cr', ], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, ], }
{'targets': [{'target_name': 'alert_overlay', 'dependencies': ['../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:util'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'array_data_model', 'dependencies': ['../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:event_target'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'command', 'dependencies': ['../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:ui'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'drag_wrapper', 'dependencies': ['../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'focus_grid', 'dependencies': ['../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', 'focus_row'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'focus_manager', 'dependencies': ['../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'focus_outline_manager', 'dependencies': ['../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'focus_row', 'dependencies': ['../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', '../../compiled_resources2.gyp:util'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'menu_button', 'dependencies': ['../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:event_tracker', '../compiled_resources2.gyp:ui', 'menu', 'menu_item', 'position_util'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'menu_item', 'dependencies': ['../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:load_time_data', '../compiled_resources2.gyp:ui', 'command'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'menu', 'dependencies': ['../../compiled_resources2.gyp:assert', '../../compiled_resources2.gyp:cr', '../compiled_resources2.gyp:ui', 'menu_item'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'overlay', 'dependencies': ['../../compiled_resources2.gyp:cr', '../../compiled_resources2.gyp:util'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}, {'target_name': 'position_util', 'dependencies': ['../../compiled_resources2.gyp:cr'], 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi']}]}
def compare(elem1, elem2): JS(""" if (!elem1 && !elem2) { return true; } else if (!elem1 || !elem2) { return false; } if (!elem1.isSameNode) { return (elem1 == elem2); } return (elem1.isSameNode(elem2)); """) def eventGetButton(evt): JS(""" var button = evt.button; if(button == 0) { return 1; } else if (button == 1) { return 4; } else { return button; } """) def getAbsoluteLeft(elem): JS(""" var left = 0; var parent = elem; while (parent) { if (parent.scrollLeft > 0) { left = left - parent.scrollLeft; } parent = parent.parentNode; } while (elem) { left = left + elem.offsetLeft; elem = elem.offsetParent; } return left + $doc.body.scrollLeft + $doc.documentElement.scrollLeft; """) def getAbsoluteTop(elem): JS(""" var top = 0; var parent = elem; while (parent) { if (parent.scrollTop > 0) { top -= parent.scrollTop; } parent = parent.parentNode; } while (elem) { top += elem.offsetTop; elem = elem.offsetParent; } return top + $doc.body.scrollTop + $doc.documentElement.scrollTop; """) def getChildIndex(parent, child): JS(""" var count = 0, current = parent.firstChild; while (current) { if (! current.isSameNode) { if (current == child) { return count; } } else if (current.isSameNode(child)) { return count; } if (current.nodeType == 1) { ++count; } current = current.nextSibling; } return -1; """) def isOrHasChild(parent, child): JS(""" while (child) { if ((!parent.isSameNode)) { if (parent == child) { return true; } } else if (parent.isSameNode(child)) { return true; } try { child = child.parentNode; } catch(e) { // Give up on 'Permission denied to get property // HTMLDivElement.parentNode' // See https://bugzilla.mozilla.org/show_bug.cgi?id=208427 return false; } if (child && (child.nodeType != 1)) { child = null; } } return false; """) def releaseCapture(elem): JS(""" if ((DOM.sCaptureElem != null) && DOM.compare(elem, DOM.sCaptureElem)) DOM.sCaptureElem = null; if (!elem.isSameNode) { if (elem == $wnd.__captureElem) { $wnd.__captureElem = null; } } else if (elem.isSameNode($wnd.__captureElem)) { $wnd.__captureElem = null; } """)
def compare(elem1, elem2): js('\n if (!elem1 && !elem2) {\n return true;\n } else if (!elem1 || !elem2) {\n return false;\n }\n\tif (!elem1.isSameNode) {\n\t return (elem1 == elem2);\n\t}\n return (elem1.isSameNode(elem2));\n ') def event_get_button(evt): js('\n var button = evt.button;\n if(button == 0) {\n return 1;\n } else if (button == 1) {\n return 4;\n } else {\n return button;\n }\n ') def get_absolute_left(elem): js('\n var left = 0;\n var parent = elem;\n\n while (parent) {\n if (parent.scrollLeft > 0) {\n left = left - parent.scrollLeft;\n }\n parent = parent.parentNode;\n }\n while (elem) {\n left = left + elem.offsetLeft;\n elem = elem.offsetParent;\n }\n\n return left + $doc.body.scrollLeft + $doc.documentElement.scrollLeft;\n ') def get_absolute_top(elem): js('\n var top = 0;\n var parent = elem;\n while (parent) {\n if (parent.scrollTop > 0) {\n top -= parent.scrollTop;\n }\n parent = parent.parentNode;\n }\n\n while (elem) {\n top += elem.offsetTop;\n elem = elem.offsetParent;\n }\n return top + $doc.body.scrollTop + $doc.documentElement.scrollTop;\n ') def get_child_index(parent, child): js('\n var count = 0, current = parent.firstChild;\n while (current) {\n\t\tif (! current.isSameNode) {\n\t\t\tif (current == child) {\n\t\t\t return count;\n\t\t }\n\t\t}\n else if (current.isSameNode(child)) {\n return count;\n }\n if (current.nodeType == 1) {\n ++count;\n }\n current = current.nextSibling;\n }\n return -1;\n ') def is_or_has_child(parent, child): js("\n while (child) {\n if ((!parent.isSameNode)) {\n if (parent == child) {\n return true;\n }\n }\n else if (parent.isSameNode(child)) {\n return true;\n }\n try {\n child = child.parentNode;\n } catch(e) {\n // Give up on 'Permission denied to get property\n // HTMLDivElement.parentNode'\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n return false;\n }\n if (child && (child.nodeType != 1)) {\n child = null;\n }\n }\n return false;\n ") def release_capture(elem): js('\n if ((DOM.sCaptureElem != null) && DOM.compare(elem, DOM.sCaptureElem))\n DOM.sCaptureElem = null;\n \n\tif (!elem.isSameNode) {\n\t\tif (elem == $wnd.__captureElem) {\n\t\t\t$wnd.__captureElem = null;\n\t\t}\n\t}\n\telse if (elem.isSameNode($wnd.__captureElem)) {\n $wnd.__captureElem = null;\n }\n ')
def string_strip(stringvalue: str): return "".join(stringvalue.split()) def string_mask(stringvalue: str): for char in stringvalue: print(ord(char), end=' | ')
def string_strip(stringvalue: str): return ''.join(stringvalue.split()) def string_mask(stringvalue: str): for char in stringvalue: print(ord(char), end=' | ')
reuse = False weight_prefix = "model_" FLIPXY = tf.constant([ [ 1., 0., 0., 0., 0.], [ 0.,-1., 0., 0., 0.], [ 0., 0.,-1., 0., 0.], [ 0., 0., 0., 1., 0.], [ 0., 0., 0., 0., 1.]] ) models_to_combine = [5, 8, 9, 11] num_models = len(models_to_combine) with tf.variable_scope("ENSAI",reuse = reuse): combi_weights = tf.get_variable( "combi_weights", [num_out*num_models,num_out], initializer = tf.constant_initializer(1.0/np.double(num_models))) Combi_to_save = slim.get_variables(scope="ENSAI/combi_weights") variables_to_restore = [] restore_file = [] restorer = [] n = 0 for i_mod in models_to_combine: variables_to_restore.append(slim.get_variables( scope="ENSAI/EN_Model" + str(i_mod))) restore_file.append("data/trained_weights/model_" + str(i_mod) + ".ckpt") restorer.append(tf.train.Saver(variables_to_restore[n])) n = n + 1 DIAG1 = tf.diag([ 1. , 1. , 1. , 1. , 1.]) enforce_banded = tf.concat(axis = 0, values=[DIAG1] * num_models) banded_combi = combi_weights * enforce_banded # The issue of combining different networks for ellipticity xy is again tricky: # We compute all different combinations of ex,ey ==> -ex,-ey for the 4 # predictions and average them to minimize the inter-model cost y_mod_flipped = [y_mod[models_to_combine[0]-1]] for i_mod in models_to_combine[1:]: elpcost1 = tf.reshape( tf.reduce_mean(tf.pow( y_mod[models_to_combine[0]-1][:,1:3] - y_mod[i_mod-1][:, 1:3], 2), axis = 1), [-1,1]) elpcost2 = tf.reshape( tf.reduce_mean(tf.pow( y_mod[models_to_combine[0]-1][:, 1:3] + y_mod[i_mod-1][:, 1:3], 2), axis = 1), [-1, 1]) elp_ind = tf.reshape( tf.argmax(tf.concat( axis = 1,values = [elpcost1, elpcost2]), axis = 1), [-1, 1]) flip_or_not = tf.to_float(elp_ind * 2 - 1) a0 = tf.reshape(tf.sign(tf.abs(y_mod[i_mod-1][:, 0])), [-1, 1]) flipxy_tensor = tf.concat( axis = 1, values = [a0, flip_or_not, flip_or_not, a0, a0]) y_mod_flipped.append(flipxy_tensor * y_mod[i_mod - 1]) Y_stack = tf.concat(axis = 1, values = y_mod_flipped) y_conv = tf.matmul(Y_stack, banded_combi) MeanSquareCost, y_conv_flipped = cost_tensor(y_conv) Combi_saver = tf.train.Saver(Combi_to_save) Combi_file = "data/trained_weights/Trained_Combi.ckpt" sess = tf.Session() sess.run(tf.global_variables_initializer()) for i_mod in range(num_models): restorer[i_mod].restore(sess, restore_file[i_mod]) # num_test_samples = 50 # X_test = np.zeros((num_test_samples, numpix_side * numpix_side), # dtype='float32'); # Y_test = np.zeros((num_test_samples, num_out), dtype='float32'); # read_data_batch(X_test, Y_test, num_test_samples, 'test') # The image is shifted in a central area with a side of max_xy_range (arcsec) # during training or testing. # max_xy_range = xy range of center of the lens max_xy_range = 0.5 # If True, the noise rms will be chosen randomly for each sample with a max of # max_noise_rms. variable_noise_rms = True # maximum rms of noise data max_noise_rms = 0.1 # n_samp = number of test samples n_samp = 1000 # chunk_size = batch number: how many test examples to pass at one time. chunk_size = 50 # X (array): ndarray holding the images # Y (array): ndarray holding the lens parameters # Predictions: predicted lens parameters X = np.zeros((n_samp, numpix_side * numpix_side), dtype='float32') Y = np.zeros((n_samp, num_out), dtype='float32') Predictions = np.zeros((n_samp, num_out), dtype='float32') # Here, Y is only used to flip for the x-y ellipticity mag = np.zeros((n_samp,1)) read_data_batch(X, Y, mag, max_num_test_samples, 'test') cost = 0.0 ind_t = range(n_samp) sum_rms = 0 num_chunks = n_samp/chunk_size # loop over our samples # We can't give all of the test data at once because of limited gpu memory) for it in range(int(num_chunks)): print(it) xA = X[ind_t[0 + chunk_size * it: chunk_size + chunk_size * it]] yA = Y[ind_t[0 + chunk_size * it: chunk_size + chunk_size * it]] # evaluate cost cost = cost + sess.run(MeanSquareCost, feed_dict={x: xA, y_: yA}) # A = network prediction for parameters A = sess.run(y_conv, feed_dict={x: xA}) # B = the same prediction with the ellipticity flipped B = sess.run(y_conv_flipped, feed_dict={x: xA}) # Correct "Prediction" for the flip. Predictions[ind_t[0 + chunk_size * it: chunk_size + chunk_size * it], :] \ = get_rotation_corrected(A, B, Y[ind_t[0 + chunk_size * it: chunk_size+ chunk_size*it],:]) sum_rms = sum_rms + np.std(Predictions[ind_t[0 + chunk_size * it: chunk_size + chunk_size * it], :] - Y[ind_t[0 + chunk_size * it: chunk_size + chunk_size * it], :], axis = 0) print("rms in the parameter difference: " + np.array_str(sum_rms/it, precision = 2))
reuse = False weight_prefix = 'model_' flipxy = tf.constant([[1.0, 0.0, 0.0, 0.0, 0.0], [0.0, -1.0, 0.0, 0.0, 0.0], [0.0, 0.0, -1.0, 0.0, 0.0], [0.0, 0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 0.0, 1.0]]) models_to_combine = [5, 8, 9, 11] num_models = len(models_to_combine) with tf.variable_scope('ENSAI', reuse=reuse): combi_weights = tf.get_variable('combi_weights', [num_out * num_models, num_out], initializer=tf.constant_initializer(1.0 / np.double(num_models))) combi_to_save = slim.get_variables(scope='ENSAI/combi_weights') variables_to_restore = [] restore_file = [] restorer = [] n = 0 for i_mod in models_to_combine: variables_to_restore.append(slim.get_variables(scope='ENSAI/EN_Model' + str(i_mod))) restore_file.append('data/trained_weights/model_' + str(i_mod) + '.ckpt') restorer.append(tf.train.Saver(variables_to_restore[n])) n = n + 1 diag1 = tf.diag([1.0, 1.0, 1.0, 1.0, 1.0]) enforce_banded = tf.concat(axis=0, values=[DIAG1] * num_models) banded_combi = combi_weights * enforce_banded y_mod_flipped = [y_mod[models_to_combine[0] - 1]] for i_mod in models_to_combine[1:]: elpcost1 = tf.reshape(tf.reduce_mean(tf.pow(y_mod[models_to_combine[0] - 1][:, 1:3] - y_mod[i_mod - 1][:, 1:3], 2), axis=1), [-1, 1]) elpcost2 = tf.reshape(tf.reduce_mean(tf.pow(y_mod[models_to_combine[0] - 1][:, 1:3] + y_mod[i_mod - 1][:, 1:3], 2), axis=1), [-1, 1]) elp_ind = tf.reshape(tf.argmax(tf.concat(axis=1, values=[elpcost1, elpcost2]), axis=1), [-1, 1]) flip_or_not = tf.to_float(elp_ind * 2 - 1) a0 = tf.reshape(tf.sign(tf.abs(y_mod[i_mod - 1][:, 0])), [-1, 1]) flipxy_tensor = tf.concat(axis=1, values=[a0, flip_or_not, flip_or_not, a0, a0]) y_mod_flipped.append(flipxy_tensor * y_mod[i_mod - 1]) y_stack = tf.concat(axis=1, values=y_mod_flipped) y_conv = tf.matmul(Y_stack, banded_combi) (mean_square_cost, y_conv_flipped) = cost_tensor(y_conv) combi_saver = tf.train.Saver(Combi_to_save) combi_file = 'data/trained_weights/Trained_Combi.ckpt' sess = tf.Session() sess.run(tf.global_variables_initializer()) for i_mod in range(num_models): restorer[i_mod].restore(sess, restore_file[i_mod]) max_xy_range = 0.5 variable_noise_rms = True max_noise_rms = 0.1 n_samp = 1000 chunk_size = 50 x = np.zeros((n_samp, numpix_side * numpix_side), dtype='float32') y = np.zeros((n_samp, num_out), dtype='float32') predictions = np.zeros((n_samp, num_out), dtype='float32') mag = np.zeros((n_samp, 1)) read_data_batch(X, Y, mag, max_num_test_samples, 'test') cost = 0.0 ind_t = range(n_samp) sum_rms = 0 num_chunks = n_samp / chunk_size for it in range(int(num_chunks)): print(it) x_a = X[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it]] y_a = Y[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it]] cost = cost + sess.run(MeanSquareCost, feed_dict={x: xA, y_: yA}) a = sess.run(y_conv, feed_dict={x: xA}) b = sess.run(y_conv_flipped, feed_dict={x: xA}) Predictions[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it], :] = get_rotation_corrected(A, B, Y[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it], :]) sum_rms = sum_rms + np.std(Predictions[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it], :] - Y[ind_t[0 + chunk_size * it:chunk_size + chunk_size * it], :], axis=0) print('rms in the parameter difference: ' + np.array_str(sum_rms / it, precision=2))
names = [ 'andy', 'sue', 'fred', 'jim', 'carol' ] assert names[0] == 'andy' assert names[4] == 'carol' assert names[-1] == 'carol' assert names[-2] == 'jim' assert names[0:2] == ['andy', 'sue'] assert names[1:2] == ['sue'] assert names[3:] == ['jim', 'carol'] assert names[-2:] == ['jim', 'carol'] assert names[::-1] == ['carol', 'jim', 'fred', 'sue', 'andy'] assert names == ['andy', 'sue', 'fred', 'jim', 'carol'] names.reverse() assert names == ['carol', 'jim', 'fred', 'sue', 'andy'] assert names[1:5:2] == ['jim', 'sue']
names = ['andy', 'sue', 'fred', 'jim', 'carol'] assert names[0] == 'andy' assert names[4] == 'carol' assert names[-1] == 'carol' assert names[-2] == 'jim' assert names[0:2] == ['andy', 'sue'] assert names[1:2] == ['sue'] assert names[3:] == ['jim', 'carol'] assert names[-2:] == ['jim', 'carol'] assert names[::-1] == ['carol', 'jim', 'fred', 'sue', 'andy'] assert names == ['andy', 'sue', 'fred', 'jim', 'carol'] names.reverse() assert names == ['carol', 'jim', 'fred', 'sue', 'andy'] assert names[1:5:2] == ['jim', 'sue']
class DotBakError(Exception): """Generic errors.""" pass
class Dotbakerror(Exception): """Generic errors.""" pass
# Copyright 2010-2021, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. { 'variables': { 'relative_dir': 'base', 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', }, # Platform-specific targets. 'conditions': [ ['OS=="win"', { 'targets': [ { 'target_name': 'win_util_test_dll', 'type': 'shared_library', 'sources': [ 'win_util_test_dll.cc', 'win_util_test_dll.def', ], 'dependencies': [ 'base.gyp:base', ], }, ], }], ], 'targets': [ { 'target_name': 'base_test', 'type': 'executable', 'sources': [ 'codegen_bytearray_stream_test.cc', 'cpu_stats_test.cc', 'process_mutex_test.cc', 'stopwatch_test.cc', 'unnamed_event_test.cc', ], 'conditions': [ ['OS=="mac"', { 'sources': [ 'mac_util_test.mm', ], }], ['OS=="win"', { 'sources': [ 'win_api_test_helper_test.cc', 'win_sandbox_test.cc', ], }], ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_status', 'base.gyp:base', 'base.gyp:codegen_bytearray_stream#host', 'clock_mock', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'url_test', 'type': 'executable', 'sources': [ 'url_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core', # for util 'base.gyp:url', ], }, { 'target_name': 'base_core_test', 'type': 'executable', 'sources': [ 'bitarray_test.cc', 'logging_test.cc', 'mmap_test.cc', 'singleton_test.cc', 'text_normalizer_test.cc', 'thread_test.cc', 'version_test.cc', ], 'conditions': [ ['OS=="win"', { 'sources': [ 'win_util_test.cc', ], }], ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core', 'base.gyp:version', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'clock_mock', 'toolsets': ['host', 'target'], 'type': 'static_library', 'sources': [ 'clock_mock.cc' ], 'dependencies': [ 'absl.gyp:absl_time', ], }, { 'target_name': 'clock_mock_test', 'type': 'executable', 'sources': [ 'clock_mock_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'clock_mock', ], }, { 'target_name': 'update_util_test', 'type': 'executable', 'sources': [ 'update_util_test.cc' ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:update_util', ], }, { 'target_name': 'japanese_util_test', 'type': 'executable', 'sources': [ 'japanese_util_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:japanese_util', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'util_test', 'type': 'executable', 'sources': [ 'util_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', '../testing/testing.gyp:mozctest', 'absl.gyp:absl_strings', 'base.gyp:base_core', 'base.gyp:number_util', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'hash_test', 'type': 'executable', 'sources': [ 'hash_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base_core', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'clock_test', 'type': 'executable', 'sources': [ 'clock_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base', 'clock_mock', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'number_util_test', 'type': 'executable', 'sources': [ 'number_util_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base_core', 'base.gyp:number_util', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'file_util_test', 'type': 'executable', 'sources': [ 'file_util_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'system_util_test', 'type': 'executable', 'sources': [ 'system_util_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base_core', ], 'variables': { 'test_size': 'small', }, }, { # Extract this test from base_test since it takes too long time. 'target_name': 'scheduler_test', 'type': 'executable', 'sources': [ 'scheduler_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base', ], 'variables': { 'test_size': 'medium', }, }, { 'target_name': 'obfuscator_support_test', 'type': 'executable', 'sources': [ 'unverified_aes256_test.cc', 'unverified_sha1_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:obfuscator_support', ], }, { 'target_name': 'encryptor_test', 'type': 'executable', 'sources': [ 'encryptor_test.cc', 'password_manager_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:encryptor', ], }, { 'target_name': 'config_file_stream_test', 'type': 'executable', 'sources': [ 'config_file_stream_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:config_file_stream', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'trie_test', 'type': 'executable', 'sources': [ 'trie_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base', ], 'variables': { 'test_size': 'small', }, }, { 'target_name': 'scheduler_stub', 'type': 'static_library', 'sources': [ 'scheduler_stub.cc', ], 'dependencies': [ 'base.gyp:base', ], }, { 'target_name': 'scheduler_stub_test', 'type': 'executable', 'sources': [ 'scheduler_stub_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'scheduler_stub', ], }, { 'target_name': 'multifile_test', 'type': 'executable', 'sources': [ 'multifile_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:multifile', ], }, { 'target_name': 'gen_embedded_file_test_data', 'type': 'none', 'toolsets': ['host'], 'actions': [ { 'action_name': 'gen_embedded_file_test_data', 'variables': { 'input': 'embedded_file.h', 'gen_header_path': '<(gen_out_dir)/embedded_file_test_data.inc', }, 'inputs': [ '<(input)', ], 'outputs': [ '<(gen_header_path)', ], 'action': [ '<(python)', '../build_tools/embed_file.py', '--input', '<(input)', '--name', 'kEmbeddedFileTestData', '--output', '<(gen_header_path)', ], }, ], }, { 'target_name': 'install_embedded_file_h', 'type': 'none', 'variables': { # Copy the test data for embedded file test. 'test_data_subdir': 'base', 'test_data': ['../<(test_data_subdir)/embedded_file.h'], }, 'includes': [ '../gyp/install_testdata.gypi' ], }, { 'target_name': 'embedded_file_test', 'type': 'executable', 'sources': [ 'embedded_file_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', '../testing/testing.gyp:mozctest', 'gen_embedded_file_test_data#host', 'install_embedded_file_h', ], }, { 'target_name': 'serialized_string_array_test', 'type': 'executable', 'sources': [ 'serialized_string_array_test.cc', ], 'dependencies': [ '../testing/testing.gyp:gtest_main', 'base.gyp:base', 'base.gyp:serialized_string_array', ], }, # Test cases meta target: this target is referred from gyp/tests.gyp { 'target_name': 'base_all_test', 'type': 'none', 'dependencies': [ 'base_core_test', 'base_test', 'clock_mock_test', 'clock_test', 'config_file_stream_test', 'embedded_file_test', 'encryptor_test', 'file_util_test', 'hash_test', 'japanese_util_test', 'multifile_test', 'number_util_test', 'obfuscator_support_test', 'scheduler_stub_test', 'scheduler_test', 'serialized_string_array_test', 'system_util_test', 'trie_test', 'update_util_test', 'url_test', 'util_test', ], 'conditions': [ # To work around a link error on Ninja build, we put this target in # 'base_all_test'. ['OS=="win"', { 'dependencies': [ 'win_util_test_dll', ], }], ], }, ], }
{'variables': {'relative_dir': 'base', 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)'}, 'conditions': [['OS=="win"', {'targets': [{'target_name': 'win_util_test_dll', 'type': 'shared_library', 'sources': ['win_util_test_dll.cc', 'win_util_test_dll.def'], 'dependencies': ['base.gyp:base']}]}]], 'targets': [{'target_name': 'base_test', 'type': 'executable', 'sources': ['codegen_bytearray_stream_test.cc', 'cpu_stats_test.cc', 'process_mutex_test.cc', 'stopwatch_test.cc', 'unnamed_event_test.cc'], 'conditions': [['OS=="mac"', {'sources': ['mac_util_test.mm']}], ['OS=="win"', {'sources': ['win_api_test_helper_test.cc', 'win_sandbox_test.cc']}]], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_status', 'base.gyp:base', 'base.gyp:codegen_bytearray_stream#host', 'clock_mock'], 'variables': {'test_size': 'small'}}, {'target_name': 'url_test', 'type': 'executable', 'sources': ['url_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core', 'base.gyp:url']}, {'target_name': 'base_core_test', 'type': 'executable', 'sources': ['bitarray_test.cc', 'logging_test.cc', 'mmap_test.cc', 'singleton_test.cc', 'text_normalizer_test.cc', 'thread_test.cc', 'version_test.cc'], 'conditions': [['OS=="win"', {'sources': ['win_util_test.cc']}]], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core', 'base.gyp:version'], 'variables': {'test_size': 'small'}}, {'target_name': 'clock_mock', 'toolsets': ['host', 'target'], 'type': 'static_library', 'sources': ['clock_mock.cc'], 'dependencies': ['absl.gyp:absl_time']}, {'target_name': 'clock_mock_test', 'type': 'executable', 'sources': ['clock_mock_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'clock_mock']}, {'target_name': 'update_util_test', 'type': 'executable', 'sources': ['update_util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:update_util']}, {'target_name': 'japanese_util_test', 'type': 'executable', 'sources': ['japanese_util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:japanese_util'], 'variables': {'test_size': 'small'}}, {'target_name': 'util_test', 'type': 'executable', 'sources': ['util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', '../testing/testing.gyp:mozctest', 'absl.gyp:absl_strings', 'base.gyp:base_core', 'base.gyp:number_util'], 'variables': {'test_size': 'small'}}, {'target_name': 'hash_test', 'type': 'executable', 'sources': ['hash_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base_core'], 'variables': {'test_size': 'small'}}, {'target_name': 'clock_test', 'type': 'executable', 'sources': ['clock_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base', 'clock_mock'], 'variables': {'test_size': 'small'}}, {'target_name': 'number_util_test', 'type': 'executable', 'sources': ['number_util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base_core', 'base.gyp:number_util'], 'variables': {'test_size': 'small'}}, {'target_name': 'file_util_test', 'type': 'executable', 'sources': ['file_util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:base_core'], 'variables': {'test_size': 'small'}}, {'target_name': 'system_util_test', 'type': 'executable', 'sources': ['system_util_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base_core'], 'variables': {'test_size': 'small'}}, {'target_name': 'scheduler_test', 'type': 'executable', 'sources': ['scheduler_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base'], 'variables': {'test_size': 'medium'}}, {'target_name': 'obfuscator_support_test', 'type': 'executable', 'sources': ['unverified_aes256_test.cc', 'unverified_sha1_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:obfuscator_support']}, {'target_name': 'encryptor_test', 'type': 'executable', 'sources': ['encryptor_test.cc', 'password_manager_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:encryptor']}, {'target_name': 'config_file_stream_test', 'type': 'executable', 'sources': ['config_file_stream_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:config_file_stream'], 'variables': {'test_size': 'small'}}, {'target_name': 'trie_test', 'type': 'executable', 'sources': ['trie_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base'], 'variables': {'test_size': 'small'}}, {'target_name': 'scheduler_stub', 'type': 'static_library', 'sources': ['scheduler_stub.cc'], 'dependencies': ['base.gyp:base']}, {'target_name': 'scheduler_stub_test', 'type': 'executable', 'sources': ['scheduler_stub_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'scheduler_stub']}, {'target_name': 'multifile_test', 'type': 'executable', 'sources': ['multifile_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'absl.gyp:absl_strings', 'base.gyp:multifile']}, {'target_name': 'gen_embedded_file_test_data', 'type': 'none', 'toolsets': ['host'], 'actions': [{'action_name': 'gen_embedded_file_test_data', 'variables': {'input': 'embedded_file.h', 'gen_header_path': '<(gen_out_dir)/embedded_file_test_data.inc'}, 'inputs': ['<(input)'], 'outputs': ['<(gen_header_path)'], 'action': ['<(python)', '../build_tools/embed_file.py', '--input', '<(input)', '--name', 'kEmbeddedFileTestData', '--output', '<(gen_header_path)']}]}, {'target_name': 'install_embedded_file_h', 'type': 'none', 'variables': {'test_data_subdir': 'base', 'test_data': ['../<(test_data_subdir)/embedded_file.h']}, 'includes': ['../gyp/install_testdata.gypi']}, {'target_name': 'embedded_file_test', 'type': 'executable', 'sources': ['embedded_file_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', '../testing/testing.gyp:mozctest', 'gen_embedded_file_test_data#host', 'install_embedded_file_h']}, {'target_name': 'serialized_string_array_test', 'type': 'executable', 'sources': ['serialized_string_array_test.cc'], 'dependencies': ['../testing/testing.gyp:gtest_main', 'base.gyp:base', 'base.gyp:serialized_string_array']}, {'target_name': 'base_all_test', 'type': 'none', 'dependencies': ['base_core_test', 'base_test', 'clock_mock_test', 'clock_test', 'config_file_stream_test', 'embedded_file_test', 'encryptor_test', 'file_util_test', 'hash_test', 'japanese_util_test', 'multifile_test', 'number_util_test', 'obfuscator_support_test', 'scheduler_stub_test', 'scheduler_test', 'serialized_string_array_test', 'system_util_test', 'trie_test', 'update_util_test', 'url_test', 'util_test'], 'conditions': [['OS=="win"', {'dependencies': ['win_util_test_dll']}]]}]}
__all__ = [ "dictutils", "forwarder", "main", "rulecollection", "ruleengine", "ruleitem", "ruleset", "template", "templateprocessor", "transform", "utils" ]
__all__ = ['dictutils', 'forwarder', 'main', 'rulecollection', 'ruleengine', 'ruleitem', 'ruleset', 'template', 'templateprocessor', 'transform', 'utils']
# -*- coding: utf-8 -*- # pygada_runtime's package version information __version_major__ = "0.4" __version__ = "{}a".format(__version_major__) __version_long__ = "{}a".format(__version_major__) __status__ = "Alpha" __author__ = "Jeremy Morosi" __author_email__ = "jeremymorosi@hotmail.com" __url__ = "https://github.com/gadalang/pygada-runtime"
__version_major__ = '0.4' __version__ = '{}a'.format(__version_major__) __version_long__ = '{}a'.format(__version_major__) __status__ = 'Alpha' __author__ = 'Jeremy Morosi' __author_email__ = 'jeremymorosi@hotmail.com' __url__ = 'https://github.com/gadalang/pygada-runtime'
# # Copyright (c) 2022 Pim van Pelt # # 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. # """ A vppcfg configuration module that validates Linux Control Plane (lcp) elements """ def get_lcps(yaml, interfaces=True, loopbacks=True, bridgedomains=True): """Returns a list of LCPs configured in the system. Optionally (de)select the different types of LCP. Return an empty list if there are none of the given type(s).""" ret = [] if interfaces and "interfaces" in yaml: for _ifname, iface in yaml["interfaces"].items(): if "lcp" in iface: ret.append(iface["lcp"]) if "sub-interfaces" in iface: for _subid, sub_iface in iface["sub-interfaces"].items(): if "lcp" in sub_iface: ret.append(sub_iface["lcp"]) if loopbacks and "loopbacks" in yaml: for _ifname, iface in yaml["loopbacks"].items(): if "lcp" in iface: ret.append(iface["lcp"]) if bridgedomains and "bridgedomains" in yaml: for _ifname, iface in yaml["bridgedomains"].items(): if "lcp" in iface: ret.append(iface["lcp"]) return ret def is_unique(yaml, lcpname): """Returns True if there is at most one occurence of the LCP name in the entire config.""" lcps = get_lcps(yaml) return lcps.count(lcpname) < 2
""" A vppcfg configuration module that validates Linux Control Plane (lcp) elements """ def get_lcps(yaml, interfaces=True, loopbacks=True, bridgedomains=True): """Returns a list of LCPs configured in the system. Optionally (de)select the different types of LCP. Return an empty list if there are none of the given type(s).""" ret = [] if interfaces and 'interfaces' in yaml: for (_ifname, iface) in yaml['interfaces'].items(): if 'lcp' in iface: ret.append(iface['lcp']) if 'sub-interfaces' in iface: for (_subid, sub_iface) in iface['sub-interfaces'].items(): if 'lcp' in sub_iface: ret.append(sub_iface['lcp']) if loopbacks and 'loopbacks' in yaml: for (_ifname, iface) in yaml['loopbacks'].items(): if 'lcp' in iface: ret.append(iface['lcp']) if bridgedomains and 'bridgedomains' in yaml: for (_ifname, iface) in yaml['bridgedomains'].items(): if 'lcp' in iface: ret.append(iface['lcp']) return ret def is_unique(yaml, lcpname): """Returns True if there is at most one occurence of the LCP name in the entire config.""" lcps = get_lcps(yaml) return lcps.count(lcpname) < 2
# -*- coding: utf-8 -*- # Simple Bot (SimpBot) # Copyright 2016-2017, Ismael Lugo (kwargs) class channel: def __init__(self, channel_name): self.channel_name = channel_name self.maxstatus = False self.users = [] self.list = {} def __iter__(self): return iter(self.users) def __len__(self): return len(self.users) def append(self, user): if not user in self.users: self.users.append(user) user.add_channel(self.channel_name, self) def remove(self, user): if user in self.users: self.users.remove(user) user.del_channel(self.channel_name) def has_user(self, user): return user in self.users def search(self, tofind, attr='mask', method='find'): if not hasattr(self, attr): return result = [] for data in self.users: attr = getattr(data, attr) if attr is None: continue elif method == 'comp': if attr.lower() == tofind.lower(): result.append(data) continue else: continue elif method == 'find': if attr.find(tofind) != -1: result.append(data) continue else: continue return result def get_user(self, nickname): for user in self.users: if user.nick.lower() == nickname.lower(): return user def get_list(self, name): return self.list[name]
class Channel: def __init__(self, channel_name): self.channel_name = channel_name self.maxstatus = False self.users = [] self.list = {} def __iter__(self): return iter(self.users) def __len__(self): return len(self.users) def append(self, user): if not user in self.users: self.users.append(user) user.add_channel(self.channel_name, self) def remove(self, user): if user in self.users: self.users.remove(user) user.del_channel(self.channel_name) def has_user(self, user): return user in self.users def search(self, tofind, attr='mask', method='find'): if not hasattr(self, attr): return result = [] for data in self.users: attr = getattr(data, attr) if attr is None: continue elif method == 'comp': if attr.lower() == tofind.lower(): result.append(data) continue else: continue elif method == 'find': if attr.find(tofind) != -1: result.append(data) continue else: continue return result def get_user(self, nickname): for user in self.users: if user.nick.lower() == nickname.lower(): return user def get_list(self, name): return self.list[name]
# -*- coding:utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You 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. def split_to_array(string, sep=";"): """ Returns an array of strings separated by regex """ if string is not None: return string.split(sep) def replace_id_to_name(main_list, type_list, str_main_id, str_type_id, str_prop): """ Return list replacing type id to type name """ for item in main_list: id_type = item[str_main_id] for type_item in type_list: if type_item[str_type_id] == id_type: item[str_main_id] = type_item[str_prop] break return main_list
def split_to_array(string, sep=';'): """ Returns an array of strings separated by regex """ if string is not None: return string.split(sep) def replace_id_to_name(main_list, type_list, str_main_id, str_type_id, str_prop): """ Return list replacing type id to type name """ for item in main_list: id_type = item[str_main_id] for type_item in type_list: if type_item[str_type_id] == id_type: item[str_main_id] = type_item[str_prop] break return main_list
# iam configuration # HARDCODED !! CHANGE THIS !! trainset_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/set_split/trainset.txt' testset_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/set_split/testset.txt' line_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/ascii/lines.txt' word_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/ascii/words.txt' word_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/words' line_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/lines' stopwords_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/iam-stopwords' dataset_path = './saved_datasets'
trainset_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/set_split/trainset.txt' testset_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/set_split/testset.txt' line_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/ascii/lines.txt' word_file = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/ascii/words.txt' word_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/words' line_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/lines' stopwords_path = '/media/ncsr/bee4cbda-e313-4acf-9bc8-817a69ad98ae/IAM/iam-stopwords' dataset_path = './saved_datasets'
# Time: O(m * n) # Space: O(m + n) class Solution(object): # @param dungeon, a list of lists of integers # @return a integer def calculateMinimumHP(self, dungeon): DP = [float("inf") for _ in dungeon[0]] DP[-1] = 1 for i in reversed(xrange(len(dungeon))): DP[-1] = max(DP[-1] - dungeon[i][-1], 1) for j in reversed(xrange(len(dungeon[i]) - 1)): min_HP_on_exit = min(DP[j], DP[j + 1]) DP[j] = max(min_HP_on_exit - dungeon[i][j], 1) return DP[0] # Time: O(m * n logk), where k is the possible maximum sum of loses # Space: O(m + n) class Solution2(object): # @param dungeon, a list of lists of integers # @return a integer def calculateMinimumHP(self, dungeon): maximum_loses = 0 for rooms in dungeon: for room in rooms: if room < 0: maximum_loses += abs(room) return self.binarySearch(dungeon, maximum_loses) def binarySearch(self, dungeon, maximum_loses): start, end = 1, maximum_loses + 1 result = 0 while start < end: mid = start + (end - start) / 2 if self.DP(dungeon, mid): end = mid else: start = mid + 1 return start def DP(self, dungeon, HP): remain_HP = [0 for _ in dungeon[0]] remain_HP[0] = HP + dungeon[0][0] for j in xrange(1, len(remain_HP)): if remain_HP[j - 1] > 0: remain_HP[j] = max(remain_HP[j - 1] + dungeon[0][j], 0) for i in xrange(1, len(dungeon)): if remain_HP[0] > 0: remain_HP[0] = max(remain_HP[0] + dungeon[i][0], 0) else: remain_HP[0] = 0 for j in xrange(1, len(remain_HP)): remain = 0 if remain_HP[j - 1] > 0: remain = max(remain_HP[j - 1] + dungeon[i][j], remain) if remain_HP[j] > 0: remain = max(remain_HP[j] + dungeon[i][j], remain) remain_HP[j] = remain return remain_HP[-1] > 0
class Solution(object): def calculate_minimum_hp(self, dungeon): dp = [float('inf') for _ in dungeon[0]] DP[-1] = 1 for i in reversed(xrange(len(dungeon))): DP[-1] = max(DP[-1] - dungeon[i][-1], 1) for j in reversed(xrange(len(dungeon[i]) - 1)): min_hp_on_exit = min(DP[j], DP[j + 1]) DP[j] = max(min_HP_on_exit - dungeon[i][j], 1) return DP[0] class Solution2(object): def calculate_minimum_hp(self, dungeon): maximum_loses = 0 for rooms in dungeon: for room in rooms: if room < 0: maximum_loses += abs(room) return self.binarySearch(dungeon, maximum_loses) def binary_search(self, dungeon, maximum_loses): (start, end) = (1, maximum_loses + 1) result = 0 while start < end: mid = start + (end - start) / 2 if self.DP(dungeon, mid): end = mid else: start = mid + 1 return start def dp(self, dungeon, HP): remain_hp = [0 for _ in dungeon[0]] remain_HP[0] = HP + dungeon[0][0] for j in xrange(1, len(remain_HP)): if remain_HP[j - 1] > 0: remain_HP[j] = max(remain_HP[j - 1] + dungeon[0][j], 0) for i in xrange(1, len(dungeon)): if remain_HP[0] > 0: remain_HP[0] = max(remain_HP[0] + dungeon[i][0], 0) else: remain_HP[0] = 0 for j in xrange(1, len(remain_HP)): remain = 0 if remain_HP[j - 1] > 0: remain = max(remain_HP[j - 1] + dungeon[i][j], remain) if remain_HP[j] > 0: remain = max(remain_HP[j] + dungeon[i][j], remain) remain_HP[j] = remain return remain_HP[-1] > 0
# Find the kth largest element in an unsorted array. This will be the kth # largest element in sorted order, not the kth distinct element. def kthLargestElement(nums, k): nums.sort() return nums[-k]
def kth_largest_element(nums, k): nums.sort() return nums[-k]
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) CHECK_NAME = 'scylla' NAMESPACE = 'scylla.' # fmt: off INSTANCE_METRIC_GROUP_MAP = { 'scylla.alien': [ 'scylla.alien.receive_batch_queue_length', 'scylla.alien.total_received_messages', 'scylla.alien.total_sent_messages', ], 'scylla.batchlog_manager': [ 'scylla.batchlog_manager.total_write_replay_attempts', ], 'scylla.cache': [ 'scylla.cache.active_reads', 'scylla.cache.bytes_total', 'scylla.cache.bytes_used', 'scylla.cache.concurrent_misses_same_key', 'scylla.cache.mispopulations', 'scylla.cache.partition_evictions', 'scylla.cache.partition_hits', 'scylla.cache.partition_insertions', 'scylla.cache.partition_merges', 'scylla.cache.partition_misses', 'scylla.cache.partition_removals', 'scylla.cache.partitions', 'scylla.cache.pinned_dirty_memory_overload', 'scylla.cache.reads', 'scylla.cache.reads_with_misses', 'scylla.cache.row_evictions', 'scylla.cache.row_hits', 'scylla.cache.row_insertions', 'scylla.cache.row_misses', 'scylla.cache.row_removals', 'scylla.cache.rows', 'scylla.cache.rows_dropped_from_memtable', 'scylla.cache.rows_merged_from_memtable', 'scylla.cache.rows_processed_from_memtable', 'scylla.cache.sstable_partition_skips', 'scylla.cache.sstable_reader_recreations', 'scylla.cache.sstable_row_skips', 'scylla.cache.static_row_insertions', ], 'scylla.commitlog': [ 'scylla.commitlog.alloc', 'scylla.commitlog.allocating_segments', 'scylla.commitlog.bytes_written', 'scylla.commitlog.cycle', 'scylla.commitlog.disk_total_bytes', 'scylla.commitlog.flush', 'scylla.commitlog.flush_limit_exceeded', 'scylla.commitlog.memory_buffer_bytes', 'scylla.commitlog.pending_allocations', 'scylla.commitlog.pending_flushes', 'scylla.commitlog.requests_blocked_memory', 'scylla.commitlog.segments', 'scylla.commitlog.slack', 'scylla.commitlog.unused_segments', ], 'scylla.compaction_manager': [ 'scylla.compaction_manager.compactions', ], 'scylla.cql': [ 'scylla.cql.authorized_prepared_statements_cache_evictions', 'scylla.cql.authorized_prepared_statements_cache_size', 'scylla.cql.batches', 'scylla.cql.batches_pure_logged', 'scylla.cql.batches_pure_unlogged', 'scylla.cql.batches_unlogged_from_logged', 'scylla.cql.deletes', 'scylla.cql.filtered_read_requests', 'scylla.cql.filtered_rows_dropped_total', 'scylla.cql.filtered_rows_matched_total', 'scylla.cql.filtered_rows_read_total', 'scylla.cql.inserts', 'scylla.cql.prepared_cache_evictions', 'scylla.cql.prepared_cache_memory_footprint', 'scylla.cql.prepared_cache_size', 'scylla.cql.reads', 'scylla.cql.reverse_queries', 'scylla.cql.rows_read', 'scylla.cql.secondary_index_creates', 'scylla.cql.secondary_index_drops', 'scylla.cql.secondary_index_reads', 'scylla.cql.secondary_index_rows_read', 'scylla.cql.statements_in_batches', 'scylla.cql.unpaged_select_queries', 'scylla.cql.updates', 'scylla.cql.user_prepared_auth_cache_footprint', ], 'scylla.database': [ 'scylla.database.active_reads', 'scylla.database.active_reads_memory_consumption', 'scylla.database.clustering_filter_count', 'scylla.database.clustering_filter_fast_path_count', 'scylla.database.clustering_filter_sstables_checked', 'scylla.database.clustering_filter_surviving_sstables', 'scylla.database.counter_cell_lock_acquisition', 'scylla.database.counter_cell_lock_pending', 'scylla.database.dropped_view_updates', 'scylla.database.large_partition_exceeding_threshold', 'scylla.database.multishard_query_failed_reader_saves', 'scylla.database.multishard_query_failed_reader_stops', 'scylla.database.multishard_query_unpopped_bytes', 'scylla.database.multishard_query_unpopped_fragments', 'scylla.database.paused_reads', 'scylla.database.paused_reads_permit_based_evictions', 'scylla.database.querier_cache_drops', 'scylla.database.querier_cache_lookups', 'scylla.database.querier_cache_memory_based_evictions', 'scylla.database.querier_cache_misses', 'scylla.database.querier_cache_population', 'scylla.database.querier_cache_resource_based_evictions', 'scylla.database.querier_cache_time_based_evictions', 'scylla.database.queued_reads', 'scylla.database.requests_blocked_memory', 'scylla.database.requests_blocked_memory_current', 'scylla.database.short_data_queries', 'scylla.database.short_mutation_queries', 'scylla.database.sstable_read_queue_overloads', 'scylla.database.total_reads', 'scylla.database.total_reads_failed', 'scylla.database.total_result_bytes', 'scylla.database.total_view_updates_failed_local', 'scylla.database.total_view_updates_failed_remote', 'scylla.database.total_view_updates_pushed_local', 'scylla.database.total_view_updates_pushed_remote', 'scylla.database.total_writes', 'scylla.database.total_writes_failed', 'scylla.database.total_writes_timedout', 'scylla.database.view_building_paused', 'scylla.database.view_update_backlog', ], 'scylla.execution_stages': [ 'scylla.execution_stages.function_calls_enqueued', 'scylla.execution_stages.function_calls_executed', 'scylla.execution_stages.tasks_preempted', 'scylla.execution_stages.tasks_scheduled', ], 'scylla.gossip': [ 'scylla.gossip.heart_beat', ], 'scylla.hints': [ 'scylla.hints.for_views_manager_corrupted_files', 'scylla.hints.for_views_manager_discarded', 'scylla.hints.for_views_manager_dropped', 'scylla.hints.for_views_manager_errors', 'scylla.hints.for_views_manager_sent', 'scylla.hints.for_views_manager_size_of_hints_in_progress', 'scylla.hints.for_views_manager_written', 'scylla.hints.manager_corrupted_files', 'scylla.hints.manager_discarded', 'scylla.hints.manager_dropped', 'scylla.hints.manager_errors', 'scylla.hints.manager_sent', 'scylla.hints.manager_size_of_hints_in_progress', 'scylla.hints.manager_written', ], 'scylla.httpd': [ 'scylla.httpd.connections_current', 'scylla.httpd.connections_total', 'scylla.httpd.read_errors', 'scylla.httpd.reply_errors', 'scylla.httpd.requests_served', ], 'scylla.io_queue': [ 'scylla.io_queue.delay', 'scylla.io_queue.queue_length', 'scylla.io_queue.shares', 'scylla.io_queue.total_bytes', 'scylla.io_queue.total_operations', ], 'scylla.lsa': [ 'scylla.lsa.free_space', 'scylla.lsa.large_objects_total_space_bytes', 'scylla.lsa.memory_allocated', 'scylla.lsa.memory_compacted', 'scylla.lsa.non_lsa_used_space_bytes', 'scylla.lsa.occupancy', 'scylla.lsa.segments_compacted', 'scylla.lsa.segments_migrated', 'scylla.lsa.small_objects_total_space_bytes', 'scylla.lsa.small_objects_used_space_bytes', 'scylla.lsa.total_space_bytes', 'scylla.lsa.used_space_bytes', ], 'scylla.memory': [ 'scylla.memory.allocated_memory', 'scylla.memory.cross_cpu_free_operations', 'scylla.memory.dirty_bytes', 'scylla.memory.free_memory', 'scylla.memory.free_operations', 'scylla.memory.malloc_live_objects', 'scylla.memory.malloc_operations', 'scylla.memory.reclaims_operations', 'scylla.memory.regular_dirty_bytes', 'scylla.memory.regular_virtual_dirty_bytes', 'scylla.memory.streaming_dirty_bytes', 'scylla.memory.streaming_virtual_dirty_bytes', 'scylla.memory.system_dirty_bytes', 'scylla.memory.system_virtual_dirty_bytes', 'scylla.memory.total_memory', 'scylla.memory.virtual_dirty_bytes', ], 'scylla.memtables': [ 'scylla.memtables.pending_flushes', 'scylla.memtables.pending_flushes_bytes', ], 'scylla.node': [ 'scylla.node.operation_mode' ], 'scylla.query_processor': [ 'scylla.query_processor.queries', 'scylla.query_processor.statements_prepared', ], 'scylla.reactor': [ 'scylla.reactor.aio_bytes_read', 'scylla.reactor.aio_bytes_write', 'scylla.reactor.aio_errors', 'scylla.reactor.aio_reads', 'scylla.reactor.aio_writes', 'scylla.reactor.cpp_exceptions', 'scylla.reactor.cpu_busy_ms', 'scylla.reactor.cpu_steal_time_ms', 'scylla.reactor.fstream_read_bytes', 'scylla.reactor.fstream_read_bytes_blocked', 'scylla.reactor.fstream_reads', 'scylla.reactor.fstream_reads_ahead_bytes_discarded', 'scylla.reactor.fstream_reads_aheads_discarded', 'scylla.reactor.fstream_reads_blocked', 'scylla.reactor.fsyncs', 'scylla.reactor.io_queue_requests', 'scylla.reactor.io_threaded_fallbacks', 'scylla.reactor.logging_failures', 'scylla.reactor.polls', 'scylla.reactor.tasks_pending', 'scylla.reactor.tasks_processed', 'scylla.reactor.timers_pending', 'scylla.reactor.utilization', ], 'scylla.scheduler': [ 'scylla.scheduler.queue_length', 'scylla.scheduler.runtime_ms', 'scylla.scheduler.shares', 'scylla.scheduler.tasks_processed', 'scylla.scheduler.time_spent_on_task_quota_violations_ms', ], 'scylla.sstables': [ 'scylla.sstables.capped_local_deletion_time', 'scylla.sstables.capped_tombstone_deletion_time', 'scylla.sstables.cell_tombstone_writes', 'scylla.sstables.cell_writes', 'scylla.sstables.index_page_blocks', 'scylla.sstables.index_page_hits', 'scylla.sstables.index_page_misses', 'scylla.sstables.partition_reads', 'scylla.sstables.partition_seeks', 'scylla.sstables.partition_writes', 'scylla.sstables.range_partition_reads', 'scylla.sstables.range_tombstone_writes', 'scylla.sstables.row_reads', 'scylla.sstables.row_writes', 'scylla.sstables.single_partition_reads', 'scylla.sstables.sstable_partition_reads', 'scylla.sstables.static_row_writes', 'scylla.sstables.tombstone_writes', ], 'scylla.storage': [ 'scylla.storage.proxy.coordinator_background_read_repairs', 'scylla.storage.proxy.coordinator_background_reads', 'scylla.storage.proxy.coordinator_background_replica_writes_failed_local_node', 'scylla.storage.proxy.coordinator_background_write_bytes', 'scylla.storage.proxy.coordinator_background_writes', 'scylla.storage.proxy.coordinator_background_writes_failed', 'scylla.storage.proxy.coordinator_canceled_read_repairs', 'scylla.storage.proxy.coordinator_completed_reads_local_node', 'scylla.storage.proxy.coordinator_current_throttled_base_writes', 'scylla.storage.proxy.coordinator_current_throttled_writes', 'scylla.storage.proxy.coordinator_foreground_read_repair', 'scylla.storage.proxy.coordinator_foreground_reads', 'scylla.storage.proxy.coordinator_foreground_writes', 'scylla.storage.proxy.coordinator_last_mv_flow_control_delay', 'scylla.storage.proxy.coordinator_queued_write_bytes', 'scylla.storage.proxy.coordinator_range_timeouts', 'scylla.storage.proxy.coordinator_range_unavailable', 'scylla.storage.proxy.coordinator_read_errors_local_node', 'scylla.storage.proxy.coordinator_read_latency.count', 'scylla.storage.proxy.coordinator_read_latency.sum', 'scylla.storage.proxy.coordinator_read_repair_write_attempts_local_node', 'scylla.storage.proxy.coordinator_read_retries', 'scylla.storage.proxy.coordinator_read_timeouts', 'scylla.storage.proxy.coordinator_read_unavailable', 'scylla.storage.proxy.coordinator_reads_local_node', 'scylla.storage.proxy.coordinator_speculative_data_reads', 'scylla.storage.proxy.coordinator_speculative_digest_reads', 'scylla.storage.proxy.coordinator_throttled_writes', 'scylla.storage.proxy.coordinator_total_write_attempts_local_node', 'scylla.storage.proxy.coordinator_write_errors_local_node', 'scylla.storage.proxy.coordinator_write_latency.count', 'scylla.storage.proxy.coordinator_write_latency.sum', 'scylla.storage.proxy.coordinator_write_timeouts', 'scylla.storage.proxy.coordinator_write_unavailable', 'scylla.storage.proxy.replica_cross_shard_ops', 'scylla.storage.proxy.replica_forwarded_mutations', 'scylla.storage.proxy.replica_forwarding_errors', 'scylla.storage.proxy.replica_reads', 'scylla.storage.proxy.replica_received_counter_updates', 'scylla.storage.proxy.replica_received_mutations', ], 'scylla.streaming': [ 'scylla.streaming.total_incoming_bytes', 'scylla.streaming.total_outgoing_bytes', ], 'scylla.thrift': [ 'scylla.thrift.current_connections', 'scylla.thrift.served', 'scylla.thrift.thrift_connections', ], 'scylla.tracing': [ 'scylla.tracing.active_sessions', 'scylla.tracing.cached_records', 'scylla.tracing.dropped_records', 'scylla.tracing.dropped_sessions', 'scylla.tracing.flushing_records', 'scylla.tracing.keyspace_helper_bad_column_family_errors', 'scylla.tracing.keyspace_helper_tracing_errors', 'scylla.tracing.pending_for_write_records', 'scylla.tracing.trace_errors', 'scylla.tracing.trace_records_count', ], 'scylla.transport': [ 'scylla.transport.cql_connections', 'scylla.transport.current_connections', 'scylla.transport.requests_blocked_memory', 'scylla.transport.requests_blocked_memory_current', 'scylla.transport.requests_served', 'scylla.transport.requests_serving', ], } # fmt: on INSTANCE_DEFAULT_GROUPS = [ 'scylla.cache', 'scylla.compaction_manager', 'scylla.gossip', 'scylla.node', 'scylla.reactor', 'scylla.storage', 'scylla.streaming', 'scylla.transport', ] # expand the lists into a single list of metrics def get_metrics(metric_groups): """Given a list of metric groups, return single consolidated list""" return sorted(m for g in metric_groups for m in INSTANCE_METRIC_GROUP_MAP[g]) INSTANCE_DEFAULT_METRICS = get_metrics(INSTANCE_DEFAULT_GROUPS)
check_name = 'scylla' namespace = 'scylla.' instance_metric_group_map = {'scylla.alien': ['scylla.alien.receive_batch_queue_length', 'scylla.alien.total_received_messages', 'scylla.alien.total_sent_messages'], 'scylla.batchlog_manager': ['scylla.batchlog_manager.total_write_replay_attempts'], 'scylla.cache': ['scylla.cache.active_reads', 'scylla.cache.bytes_total', 'scylla.cache.bytes_used', 'scylla.cache.concurrent_misses_same_key', 'scylla.cache.mispopulations', 'scylla.cache.partition_evictions', 'scylla.cache.partition_hits', 'scylla.cache.partition_insertions', 'scylla.cache.partition_merges', 'scylla.cache.partition_misses', 'scylla.cache.partition_removals', 'scylla.cache.partitions', 'scylla.cache.pinned_dirty_memory_overload', 'scylla.cache.reads', 'scylla.cache.reads_with_misses', 'scylla.cache.row_evictions', 'scylla.cache.row_hits', 'scylla.cache.row_insertions', 'scylla.cache.row_misses', 'scylla.cache.row_removals', 'scylla.cache.rows', 'scylla.cache.rows_dropped_from_memtable', 'scylla.cache.rows_merged_from_memtable', 'scylla.cache.rows_processed_from_memtable', 'scylla.cache.sstable_partition_skips', 'scylla.cache.sstable_reader_recreations', 'scylla.cache.sstable_row_skips', 'scylla.cache.static_row_insertions'], 'scylla.commitlog': ['scylla.commitlog.alloc', 'scylla.commitlog.allocating_segments', 'scylla.commitlog.bytes_written', 'scylla.commitlog.cycle', 'scylla.commitlog.disk_total_bytes', 'scylla.commitlog.flush', 'scylla.commitlog.flush_limit_exceeded', 'scylla.commitlog.memory_buffer_bytes', 'scylla.commitlog.pending_allocations', 'scylla.commitlog.pending_flushes', 'scylla.commitlog.requests_blocked_memory', 'scylla.commitlog.segments', 'scylla.commitlog.slack', 'scylla.commitlog.unused_segments'], 'scylla.compaction_manager': ['scylla.compaction_manager.compactions'], 'scylla.cql': ['scylla.cql.authorized_prepared_statements_cache_evictions', 'scylla.cql.authorized_prepared_statements_cache_size', 'scylla.cql.batches', 'scylla.cql.batches_pure_logged', 'scylla.cql.batches_pure_unlogged', 'scylla.cql.batches_unlogged_from_logged', 'scylla.cql.deletes', 'scylla.cql.filtered_read_requests', 'scylla.cql.filtered_rows_dropped_total', 'scylla.cql.filtered_rows_matched_total', 'scylla.cql.filtered_rows_read_total', 'scylla.cql.inserts', 'scylla.cql.prepared_cache_evictions', 'scylla.cql.prepared_cache_memory_footprint', 'scylla.cql.prepared_cache_size', 'scylla.cql.reads', 'scylla.cql.reverse_queries', 'scylla.cql.rows_read', 'scylla.cql.secondary_index_creates', 'scylla.cql.secondary_index_drops', 'scylla.cql.secondary_index_reads', 'scylla.cql.secondary_index_rows_read', 'scylla.cql.statements_in_batches', 'scylla.cql.unpaged_select_queries', 'scylla.cql.updates', 'scylla.cql.user_prepared_auth_cache_footprint'], 'scylla.database': ['scylla.database.active_reads', 'scylla.database.active_reads_memory_consumption', 'scylla.database.clustering_filter_count', 'scylla.database.clustering_filter_fast_path_count', 'scylla.database.clustering_filter_sstables_checked', 'scylla.database.clustering_filter_surviving_sstables', 'scylla.database.counter_cell_lock_acquisition', 'scylla.database.counter_cell_lock_pending', 'scylla.database.dropped_view_updates', 'scylla.database.large_partition_exceeding_threshold', 'scylla.database.multishard_query_failed_reader_saves', 'scylla.database.multishard_query_failed_reader_stops', 'scylla.database.multishard_query_unpopped_bytes', 'scylla.database.multishard_query_unpopped_fragments', 'scylla.database.paused_reads', 'scylla.database.paused_reads_permit_based_evictions', 'scylla.database.querier_cache_drops', 'scylla.database.querier_cache_lookups', 'scylla.database.querier_cache_memory_based_evictions', 'scylla.database.querier_cache_misses', 'scylla.database.querier_cache_population', 'scylla.database.querier_cache_resource_based_evictions', 'scylla.database.querier_cache_time_based_evictions', 'scylla.database.queued_reads', 'scylla.database.requests_blocked_memory', 'scylla.database.requests_blocked_memory_current', 'scylla.database.short_data_queries', 'scylla.database.short_mutation_queries', 'scylla.database.sstable_read_queue_overloads', 'scylla.database.total_reads', 'scylla.database.total_reads_failed', 'scylla.database.total_result_bytes', 'scylla.database.total_view_updates_failed_local', 'scylla.database.total_view_updates_failed_remote', 'scylla.database.total_view_updates_pushed_local', 'scylla.database.total_view_updates_pushed_remote', 'scylla.database.total_writes', 'scylla.database.total_writes_failed', 'scylla.database.total_writes_timedout', 'scylla.database.view_building_paused', 'scylla.database.view_update_backlog'], 'scylla.execution_stages': ['scylla.execution_stages.function_calls_enqueued', 'scylla.execution_stages.function_calls_executed', 'scylla.execution_stages.tasks_preempted', 'scylla.execution_stages.tasks_scheduled'], 'scylla.gossip': ['scylla.gossip.heart_beat'], 'scylla.hints': ['scylla.hints.for_views_manager_corrupted_files', 'scylla.hints.for_views_manager_discarded', 'scylla.hints.for_views_manager_dropped', 'scylla.hints.for_views_manager_errors', 'scylla.hints.for_views_manager_sent', 'scylla.hints.for_views_manager_size_of_hints_in_progress', 'scylla.hints.for_views_manager_written', 'scylla.hints.manager_corrupted_files', 'scylla.hints.manager_discarded', 'scylla.hints.manager_dropped', 'scylla.hints.manager_errors', 'scylla.hints.manager_sent', 'scylla.hints.manager_size_of_hints_in_progress', 'scylla.hints.manager_written'], 'scylla.httpd': ['scylla.httpd.connections_current', 'scylla.httpd.connections_total', 'scylla.httpd.read_errors', 'scylla.httpd.reply_errors', 'scylla.httpd.requests_served'], 'scylla.io_queue': ['scylla.io_queue.delay', 'scylla.io_queue.queue_length', 'scylla.io_queue.shares', 'scylla.io_queue.total_bytes', 'scylla.io_queue.total_operations'], 'scylla.lsa': ['scylla.lsa.free_space', 'scylla.lsa.large_objects_total_space_bytes', 'scylla.lsa.memory_allocated', 'scylla.lsa.memory_compacted', 'scylla.lsa.non_lsa_used_space_bytes', 'scylla.lsa.occupancy', 'scylla.lsa.segments_compacted', 'scylla.lsa.segments_migrated', 'scylla.lsa.small_objects_total_space_bytes', 'scylla.lsa.small_objects_used_space_bytes', 'scylla.lsa.total_space_bytes', 'scylla.lsa.used_space_bytes'], 'scylla.memory': ['scylla.memory.allocated_memory', 'scylla.memory.cross_cpu_free_operations', 'scylla.memory.dirty_bytes', 'scylla.memory.free_memory', 'scylla.memory.free_operations', 'scylla.memory.malloc_live_objects', 'scylla.memory.malloc_operations', 'scylla.memory.reclaims_operations', 'scylla.memory.regular_dirty_bytes', 'scylla.memory.regular_virtual_dirty_bytes', 'scylla.memory.streaming_dirty_bytes', 'scylla.memory.streaming_virtual_dirty_bytes', 'scylla.memory.system_dirty_bytes', 'scylla.memory.system_virtual_dirty_bytes', 'scylla.memory.total_memory', 'scylla.memory.virtual_dirty_bytes'], 'scylla.memtables': ['scylla.memtables.pending_flushes', 'scylla.memtables.pending_flushes_bytes'], 'scylla.node': ['scylla.node.operation_mode'], 'scylla.query_processor': ['scylla.query_processor.queries', 'scylla.query_processor.statements_prepared'], 'scylla.reactor': ['scylla.reactor.aio_bytes_read', 'scylla.reactor.aio_bytes_write', 'scylla.reactor.aio_errors', 'scylla.reactor.aio_reads', 'scylla.reactor.aio_writes', 'scylla.reactor.cpp_exceptions', 'scylla.reactor.cpu_busy_ms', 'scylla.reactor.cpu_steal_time_ms', 'scylla.reactor.fstream_read_bytes', 'scylla.reactor.fstream_read_bytes_blocked', 'scylla.reactor.fstream_reads', 'scylla.reactor.fstream_reads_ahead_bytes_discarded', 'scylla.reactor.fstream_reads_aheads_discarded', 'scylla.reactor.fstream_reads_blocked', 'scylla.reactor.fsyncs', 'scylla.reactor.io_queue_requests', 'scylla.reactor.io_threaded_fallbacks', 'scylla.reactor.logging_failures', 'scylla.reactor.polls', 'scylla.reactor.tasks_pending', 'scylla.reactor.tasks_processed', 'scylla.reactor.timers_pending', 'scylla.reactor.utilization'], 'scylla.scheduler': ['scylla.scheduler.queue_length', 'scylla.scheduler.runtime_ms', 'scylla.scheduler.shares', 'scylla.scheduler.tasks_processed', 'scylla.scheduler.time_spent_on_task_quota_violations_ms'], 'scylla.sstables': ['scylla.sstables.capped_local_deletion_time', 'scylla.sstables.capped_tombstone_deletion_time', 'scylla.sstables.cell_tombstone_writes', 'scylla.sstables.cell_writes', 'scylla.sstables.index_page_blocks', 'scylla.sstables.index_page_hits', 'scylla.sstables.index_page_misses', 'scylla.sstables.partition_reads', 'scylla.sstables.partition_seeks', 'scylla.sstables.partition_writes', 'scylla.sstables.range_partition_reads', 'scylla.sstables.range_tombstone_writes', 'scylla.sstables.row_reads', 'scylla.sstables.row_writes', 'scylla.sstables.single_partition_reads', 'scylla.sstables.sstable_partition_reads', 'scylla.sstables.static_row_writes', 'scylla.sstables.tombstone_writes'], 'scylla.storage': ['scylla.storage.proxy.coordinator_background_read_repairs', 'scylla.storage.proxy.coordinator_background_reads', 'scylla.storage.proxy.coordinator_background_replica_writes_failed_local_node', 'scylla.storage.proxy.coordinator_background_write_bytes', 'scylla.storage.proxy.coordinator_background_writes', 'scylla.storage.proxy.coordinator_background_writes_failed', 'scylla.storage.proxy.coordinator_canceled_read_repairs', 'scylla.storage.proxy.coordinator_completed_reads_local_node', 'scylla.storage.proxy.coordinator_current_throttled_base_writes', 'scylla.storage.proxy.coordinator_current_throttled_writes', 'scylla.storage.proxy.coordinator_foreground_read_repair', 'scylla.storage.proxy.coordinator_foreground_reads', 'scylla.storage.proxy.coordinator_foreground_writes', 'scylla.storage.proxy.coordinator_last_mv_flow_control_delay', 'scylla.storage.proxy.coordinator_queued_write_bytes', 'scylla.storage.proxy.coordinator_range_timeouts', 'scylla.storage.proxy.coordinator_range_unavailable', 'scylla.storage.proxy.coordinator_read_errors_local_node', 'scylla.storage.proxy.coordinator_read_latency.count', 'scylla.storage.proxy.coordinator_read_latency.sum', 'scylla.storage.proxy.coordinator_read_repair_write_attempts_local_node', 'scylla.storage.proxy.coordinator_read_retries', 'scylla.storage.proxy.coordinator_read_timeouts', 'scylla.storage.proxy.coordinator_read_unavailable', 'scylla.storage.proxy.coordinator_reads_local_node', 'scylla.storage.proxy.coordinator_speculative_data_reads', 'scylla.storage.proxy.coordinator_speculative_digest_reads', 'scylla.storage.proxy.coordinator_throttled_writes', 'scylla.storage.proxy.coordinator_total_write_attempts_local_node', 'scylla.storage.proxy.coordinator_write_errors_local_node', 'scylla.storage.proxy.coordinator_write_latency.count', 'scylla.storage.proxy.coordinator_write_latency.sum', 'scylla.storage.proxy.coordinator_write_timeouts', 'scylla.storage.proxy.coordinator_write_unavailable', 'scylla.storage.proxy.replica_cross_shard_ops', 'scylla.storage.proxy.replica_forwarded_mutations', 'scylla.storage.proxy.replica_forwarding_errors', 'scylla.storage.proxy.replica_reads', 'scylla.storage.proxy.replica_received_counter_updates', 'scylla.storage.proxy.replica_received_mutations'], 'scylla.streaming': ['scylla.streaming.total_incoming_bytes', 'scylla.streaming.total_outgoing_bytes'], 'scylla.thrift': ['scylla.thrift.current_connections', 'scylla.thrift.served', 'scylla.thrift.thrift_connections'], 'scylla.tracing': ['scylla.tracing.active_sessions', 'scylla.tracing.cached_records', 'scylla.tracing.dropped_records', 'scylla.tracing.dropped_sessions', 'scylla.tracing.flushing_records', 'scylla.tracing.keyspace_helper_bad_column_family_errors', 'scylla.tracing.keyspace_helper_tracing_errors', 'scylla.tracing.pending_for_write_records', 'scylla.tracing.trace_errors', 'scylla.tracing.trace_records_count'], 'scylla.transport': ['scylla.transport.cql_connections', 'scylla.transport.current_connections', 'scylla.transport.requests_blocked_memory', 'scylla.transport.requests_blocked_memory_current', 'scylla.transport.requests_served', 'scylla.transport.requests_serving']} instance_default_groups = ['scylla.cache', 'scylla.compaction_manager', 'scylla.gossip', 'scylla.node', 'scylla.reactor', 'scylla.storage', 'scylla.streaming', 'scylla.transport'] def get_metrics(metric_groups): """Given a list of metric groups, return single consolidated list""" return sorted((m for g in metric_groups for m in INSTANCE_METRIC_GROUP_MAP[g])) instance_default_metrics = get_metrics(INSTANCE_DEFAULT_GROUPS)
# VIOLET: We do not have 'traceback' module # import traceback a = 2 b = 2 + 4 if a < 5 else 'boe' assert b == 6 c = 2 + 4 if a > 5 else 'boe' assert c == 'boe' d = lambda x, y: x > y assert d(5, 4) e = lambda x: 1 if x else 0 assert e(True) == 1 assert e(False) == 0 try: a = "aaaa" + \ "bbbb" 1/0 except ZeroDivisionError as ex: # VIOLET: We do not have 'traceback' module, also due to our comments we had to change 19 -> 20 as line number # tb = traceback.extract_tb(ex.__traceback__) # assert tb[0].lineno == 19 tb = ex.__traceback__ assert tb.tb_lineno == 20
a = 2 b = 2 + 4 if a < 5 else 'boe' assert b == 6 c = 2 + 4 if a > 5 else 'boe' assert c == 'boe' d = lambda x, y: x > y assert d(5, 4) e = lambda x: 1 if x else 0 assert e(True) == 1 assert e(False) == 0 try: a = 'aaaa' + 'bbbb' 1 / 0 except ZeroDivisionError as ex: tb = ex.__traceback__ assert tb.tb_lineno == 20
#credit: freecodecamp Youtube Channel class Question: def __init__ (self, prompt, answer): self.prompt = prompt self.answer = answer
class Question: def __init__(self, prompt, answer): self.prompt = prompt self.answer = answer
# Copyright 2017 The Bazel Authors. All rights reserved. # # 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. """Dummy test runner rule. Does not actually run tests.""" load( "@build_bazel_rules_apple//apple/testing:apple_test_rules.bzl", "AppleTestRunnerInfo", ) def _dummy_test_runner_impl(ctx): ctx.actions.expand_template( template = ctx.file._test_template, output = ctx.outputs.test_runner_template, substitutions = {}, ) return [ AppleTestRunnerInfo( test_runner_template = ctx.outputs.test_runner_template, execution_requirements = {}, test_environment = {}, ), DefaultInfo( runfiles = ctx.runfiles(files = []), ), ] dummy_test_runner = rule( _dummy_test_runner_impl, attrs = { "_test_template": attr.label( default = Label("@build_bazel_rules_apple//test/testdata/rules:dummy_test_runner.template"), allow_single_file = True, ), }, outputs = { "test_runner_template": "%{name}.sh", }, fragments = ["apple", "objc"], )
"""Dummy test runner rule. Does not actually run tests.""" load('@build_bazel_rules_apple//apple/testing:apple_test_rules.bzl', 'AppleTestRunnerInfo') def _dummy_test_runner_impl(ctx): ctx.actions.expand_template(template=ctx.file._test_template, output=ctx.outputs.test_runner_template, substitutions={}) return [apple_test_runner_info(test_runner_template=ctx.outputs.test_runner_template, execution_requirements={}, test_environment={}), default_info(runfiles=ctx.runfiles(files=[]))] dummy_test_runner = rule(_dummy_test_runner_impl, attrs={'_test_template': attr.label(default=label('@build_bazel_rules_apple//test/testdata/rules:dummy_test_runner.template'), allow_single_file=True)}, outputs={'test_runner_template': '%{name}.sh'}, fragments=['apple', 'objc'])
"""Exceptions for WLED.""" class WLEDError(Exception): """Generic WLED exception.""" pass class WLEDConnectionError(WLEDError): """WLED connection exception.""" pass
"""Exceptions for WLED.""" class Wlederror(Exception): """Generic WLED exception.""" pass class Wledconnectionerror(WLEDError): """WLED connection exception.""" pass
class Solution: def maximum69Number (self, num: int) -> int: num = [n for n in str(num)] for i, n in enumerate(num): if n == '6': num[i] = '9' break return int(''.join(num))
class Solution: def maximum69_number(self, num: int) -> int: num = [n for n in str(num)] for (i, n) in enumerate(num): if n == '6': num[i] = '9' break return int(''.join(num))
""" The database package of the Python Discord API. This package contains the ORM models, migrations, and other functionality related to database interop. """
""" The database package of the Python Discord API. This package contains the ORM models, migrations, and other functionality related to database interop. """
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 26 20:46:03 2018 @author: daniel Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can contain duplicates and negative numbers as well. For example, the input [3, 4, -1, 1] should give 2. The input [1, 2, 0] should give 3. You can modify the input array in-place. """ def find(numbers): numbers.sort() target = 1 for number in numbers: if number <= 0: continue else: if number > target: break else: target += 1 return target assert find([3, 4, -1, 1]) == 2 assert find([1, 2, 0]) == 3 print('all fine')
""" Created on Wed Sep 26 20:46:03 2018 @author: daniel Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can contain duplicates and negative numbers as well. For example, the input [3, 4, -1, 1] should give 2. The input [1, 2, 0] should give 3. You can modify the input array in-place. """ def find(numbers): numbers.sort() target = 1 for number in numbers: if number <= 0: continue elif number > target: break else: target += 1 return target assert find([3, 4, -1, 1]) == 2 assert find([1, 2, 0]) == 3 print('all fine')
# good example of using map # from kata here # https://www.codewars.com/kata/beginner-lost-without-a-map def maps(a): return list(map(lambda x: x * 2, a))
def maps(a): return list(map(lambda x: x * 2, a))
class Solution: def flipEquiv(self, root1, root2): """ :type root1: TreeNode :type root2: TreeNode :rtype: bool """ if not root1 and not root2: return True if root1 and root2 and root1.val == root2.val: ans1 = self.flipEquiv(root1.left, root2.left) and self.flipEquiv(root1.right, root2.right) ans2 = self.flipEquiv(root1.right, root2.left) and self.flipEquiv(root1.left, root2.right) return ans1 or ans2 return False S = Solution()
class Solution: def flip_equiv(self, root1, root2): """ :type root1: TreeNode :type root2: TreeNode :rtype: bool """ if not root1 and (not root2): return True if root1 and root2 and (root1.val == root2.val): ans1 = self.flipEquiv(root1.left, root2.left) and self.flipEquiv(root1.right, root2.right) ans2 = self.flipEquiv(root1.right, root2.left) and self.flipEquiv(root1.left, root2.right) return ans1 or ans2 return False s = solution()
h,w,*hw = open(0).read().split() h=int(h) w=int(w) e=h+w-1 a=sum([l.count('#') for l in hw]) if e==a: print('Possible') else: print('Impossible')
(h, w, *hw) = open(0).read().split() h = int(h) w = int(w) e = h + w - 1 a = sum([l.count('#') for l in hw]) if e == a: print('Possible') else: print('Impossible')
for i in range(1,11,1): print(i) # limit=int(input('Enter the limit:')) # sum=0 # for i in range(1,limit+1,1): # print(i) # sum=sum+i # print("sum of numbers:",sum) # for i in range(11,10,1): # if(i==5): # continue # print(i) # else: # print("Hello")
for i in range(1, 11, 1): print(i)
for _ in range(int(input())): n = int(input()) l = list(map(int,input().split())) l.sort() print(l[0]+l[1])
for _ in range(int(input())): n = int(input()) l = list(map(int, input().split())) l.sort() print(l[0] + l[1])
class InvalidUserId(Exception): """The userid does not meet the expected pattern.""" def __init__(self, user_id): super().__init__(f"User id '{user_id}' is not valid") class RealtimeMessageQueueError(Exception): """A message could not be sent to the realtime Rabbit queue.""" def __init__(self): super().__init__("Could not queue message")
class Invaliduserid(Exception): """The userid does not meet the expected pattern.""" def __init__(self, user_id): super().__init__(f"User id '{user_id}' is not valid") class Realtimemessagequeueerror(Exception): """A message could not be sent to the realtime Rabbit queue.""" def __init__(self): super().__init__('Could not queue message')
def kvadrat(x): return x**2 + 1 def test_kvadrat(): assert kvadrat(2) == 4
def kvadrat(x): return x ** 2 + 1 def test_kvadrat(): assert kvadrat(2) == 4
#!/usr/bin/env python3 # terminal input: 1 def read_value(pc, prog, mode): if mode == 0: return prog[prog[pc]] elif mode == 1: return prog[pc] else: raise Exception("unknown mode: %d" % mode) def write_value(pc, prog, mode, value): if mode != 0: raise Exception("only position mode for writes: %d" % mode) prog[prog[pc]] = value def execute(prog): pc = 0 while True: op = int(str(prog[pc])[-2:]) modes = [int(m) for m in str(prog[pc])[:-2].rjust(3, "0")] if op == 1: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 + v2) pc += 4 elif op == 2: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 * v2) pc += 4 elif op == 3: print(">>> ", end="") v1 = int(input()) write_value(pc + 1, prog, modes[2], v1) pc += 2 elif op == 4: v1 = read_value(pc + 1, prog, modes[2]) print(v1) pc += 2 elif op == 99: break else: raise Exception("unknown op: %d" % op) program = [int(i) for i in open("input").read().split(",")] execute(program)
def read_value(pc, prog, mode): if mode == 0: return prog[prog[pc]] elif mode == 1: return prog[pc] else: raise exception('unknown mode: %d' % mode) def write_value(pc, prog, mode, value): if mode != 0: raise exception('only position mode for writes: %d' % mode) prog[prog[pc]] = value def execute(prog): pc = 0 while True: op = int(str(prog[pc])[-2:]) modes = [int(m) for m in str(prog[pc])[:-2].rjust(3, '0')] if op == 1: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 + v2) pc += 4 elif op == 2: v1 = read_value(pc + 1, prog, modes[2]) v2 = read_value(pc + 2, prog, modes[1]) write_value(pc + 3, prog, modes[0], v1 * v2) pc += 4 elif op == 3: print('>>> ', end='') v1 = int(input()) write_value(pc + 1, prog, modes[2], v1) pc += 2 elif op == 4: v1 = read_value(pc + 1, prog, modes[2]) print(v1) pc += 2 elif op == 99: break else: raise exception('unknown op: %d' % op) program = [int(i) for i in open('input').read().split(',')] execute(program)
fig, axs = plt.subplots(3, sharex=True, gridspec_kw={'hspace': 0}) axs[0].plot(ffp, 10*np.log10(Pxp)) axs[0].set_ylim([-80, 25]) axs[0].set_xlim([-0.2, 0.2]) axs[1].plot(ffn, 10*np.log10(Pxn)) axs[1].set_ylim([-80, 25]) axs[1].set_ylabel('Power Spectral Density (dB/Hz)') axs[2].plot(ff_out, 10*np.log10(Px_out)) axs[2].set_ylim(bottom=0) axs[2].set_xlabel('Frequency (Hz)') fig.tight_layout() fig.savefig('cpx_multiply_all.png')
(fig, axs) = plt.subplots(3, sharex=True, gridspec_kw={'hspace': 0}) axs[0].plot(ffp, 10 * np.log10(Pxp)) axs[0].set_ylim([-80, 25]) axs[0].set_xlim([-0.2, 0.2]) axs[1].plot(ffn, 10 * np.log10(Pxn)) axs[1].set_ylim([-80, 25]) axs[1].set_ylabel('Power Spectral Density (dB/Hz)') axs[2].plot(ff_out, 10 * np.log10(Px_out)) axs[2].set_ylim(bottom=0) axs[2].set_xlabel('Frequency (Hz)') fig.tight_layout() fig.savefig('cpx_multiply_all.png')
class GeneralHistogramDataObject(object): def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins def get_feature_name(self): return self._feature_name def get_edges(self): """String representation of Histogram""" return self._edges def get_bins(self): return self._bins def get_edge_list(self): """ String representation of Histogram Child can override this method. """ return self.get_edges() def __str__(self): return "\nf_name: {}\nedges: {}\nbins: {}".format(str(self._feature_name), str(self._edges), str(self._bins)) class CategoricalHistogramDataObject(GeneralHistogramDataObject): """ Class is responsible for holding categorical histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(CategoricalHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins class ContinuousHistogramDataObject(GeneralHistogramDataObject): """ Class is responsible for holding continuous histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(ContinuousHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins def get_edge_list(self): """Integer representation of Continuous Histogram""" edge_list = [] for each_edge_tuple in self.get_edges(): edge_t = each_edge_tuple.split("to") edge_list.append(float(edge_t[0])) edge_list.append(float(self.get_edges()[len(self.get_edges()) - 1].split("to")[1])) return edge_list
class Generalhistogramdataobject(object): def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins def get_feature_name(self): return self._feature_name def get_edges(self): """String representation of Histogram""" return self._edges def get_bins(self): return self._bins def get_edge_list(self): """ String representation of Histogram Child can override this method. """ return self.get_edges() def __str__(self): return '\nf_name: {}\nedges: {}\nbins: {}'.format(str(self._feature_name), str(self._edges), str(self._bins)) class Categoricalhistogramdataobject(GeneralHistogramDataObject): """ Class is responsible for holding categorical histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(CategoricalHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins class Continuoushistogramdataobject(GeneralHistogramDataObject): """ Class is responsible for holding continuous histogram representation. """ def __init__(self, feature_name, edges, bins): self._feature_name = feature_name self._edges = edges self._bins = bins super(ContinuousHistogramDataObject, self).__init__(feature_name=feature_name, edges=edges, bins=bins) def get_feature_name(self): return self._feature_name def get_edges(self): return self._edges def get_bins(self): return self._bins def get_edge_list(self): """Integer representation of Continuous Histogram""" edge_list = [] for each_edge_tuple in self.get_edges(): edge_t = each_edge_tuple.split('to') edge_list.append(float(edge_t[0])) edge_list.append(float(self.get_edges()[len(self.get_edges()) - 1].split('to')[1])) return edge_list
# Given an encoded string, return it's decoded string. # The encoding rule is: k[encoded_string], where the encoded_string # inside the square brackets is being repeated exactly k times. # Note that k is guaranteed to be a positive integer. # You may assume that the input string is always valid; No extra white spaces, # square brackets are well-formed, etc. # Furthermore, you may assume that the original data does not contain any # digits and that digits are only for those repeat numbers, k. # For example, there won't be input like 3a or 2[4]. # Examples: # s = "3[a]2[bc]", return "aaabcbc". # s = "3[a2[c]]", return "accaccacc". # s = "2[abc]3[cd]ef", return "abcabccdcdcdef". def decode_string(s): """ :type s: str :rtype: str """ stack = []; cur_num = 0; cur_string = '' for c in s: if c == '[': stack.append((cur_string, cur_num)) cur_string = '' cur_num = 0 elif c == ']': prev_string, num = stack.pop() cur_string = prev_string + num * cur_string elif c.isdigit(): cur_num = cur_num*10 + int(c) else: cur_string += c return cur_string
def decode_string(s): """ :type s: str :rtype: str """ stack = [] cur_num = 0 cur_string = '' for c in s: if c == '[': stack.append((cur_string, cur_num)) cur_string = '' cur_num = 0 elif c == ']': (prev_string, num) = stack.pop() cur_string = prev_string + num * cur_string elif c.isdigit(): cur_num = cur_num * 10 + int(c) else: cur_string += c return cur_string
#input vertices are defined here inputs = [[22, 6], [20, 11], [18, 6], [16, 5], [15, 8], [20, 13], [18, 15],\ [15, 13], [13, 8], [9, 13], [3, 9], [6, 2], [6, 5], [11, 6], [16, 1]] x_p = [] y_p = [] x = 0 y = 1 px = input("Enter point x: ") py = input("Enter point y: ") crossing = 0 ranges = range(0, len(inputs)) size = len(inputs) for i in ranges: if inputs[i][x] < inputs[(i+1)%size][x]: x1 = inputs[i][x] x2 = inputs[(i+1)%size][x] else: x1 = inputs[(i+1)%size][x] x2 = inputs[i][x] if px > x1 and px <= x2 and (py < inputs[i][y] or py <= inputs[(i+1)%size]): eps = 0.000001 dx = inputs[(i+1)%size][x] - inputs[i][x]; dy = inputs[(i+1)%size][y] - inputs[i][y]; if abs(dx) < eps: k = 10000000 else: k = dy/dx m = inputs[i][y] - k * inputs[i][x] y2 = k * px + m if py <= y2: crossing += 1 print("The point crossing "+str(crossing)+" lines\n") if crossing%2 == 1: print("Point is inside the polygon") else: print("Point is outside the polygon") # Referenced from https://sidvind.com/wiki/Point-in-polygon:_Jordan_Curve_Theorem
inputs = [[22, 6], [20, 11], [18, 6], [16, 5], [15, 8], [20, 13], [18, 15], [15, 13], [13, 8], [9, 13], [3, 9], [6, 2], [6, 5], [11, 6], [16, 1]] x_p = [] y_p = [] x = 0 y = 1 px = input('Enter point x: ') py = input('Enter point y: ') crossing = 0 ranges = range(0, len(inputs)) size = len(inputs) for i in ranges: if inputs[i][x] < inputs[(i + 1) % size][x]: x1 = inputs[i][x] x2 = inputs[(i + 1) % size][x] else: x1 = inputs[(i + 1) % size][x] x2 = inputs[i][x] if px > x1 and px <= x2 and (py < inputs[i][y] or py <= inputs[(i + 1) % size]): eps = 1e-06 dx = inputs[(i + 1) % size][x] - inputs[i][x] dy = inputs[(i + 1) % size][y] - inputs[i][y] if abs(dx) < eps: k = 10000000 else: k = dy / dx m = inputs[i][y] - k * inputs[i][x] y2 = k * px + m if py <= y2: crossing += 1 print('The point crossing ' + str(crossing) + ' lines\n') if crossing % 2 == 1: print('Point is inside the polygon') else: print('Point is outside the polygon')
a,b,x=map(int,input().split()) l=0 r=10**9+1 ans=10**9 while r-l>=2: n1=l+(r-l)//2 n2=n1+1 p1=a*n1+b*len(str(n1)) p2=a*n2+b*len(str(n2)) if p1 <= x < p2: ans=n1 break elif p1 < x: l=n1 else: r=n1 if p1>x: print(0) else: print(ans)
(a, b, x) = map(int, input().split()) l = 0 r = 10 ** 9 + 1 ans = 10 ** 9 while r - l >= 2: n1 = l + (r - l) // 2 n2 = n1 + 1 p1 = a * n1 + b * len(str(n1)) p2 = a * n2 + b * len(str(n2)) if p1 <= x < p2: ans = n1 break elif p1 < x: l = n1 else: r = n1 if p1 > x: print(0) else: print(ans)
''' An implementation of the `Annotation store API <http://docs.annotatorjs.org/en/v1.2.x/storage.html.>`_ for `Annotator.js <http://annotatorjs.org/>`_. '''
""" An implementation of the `Annotation store API <http://docs.annotatorjs.org/en/v1.2.x/storage.html.>`_ for `Annotator.js <http://annotatorjs.org/>`_. """
# GENERATED VERSION FILE # TIME: Wed Aug 26 17:17:32 2020 __version__ = '0.0.0rc0+unknown' short_version = '0.0.0rc0'
__version__ = '0.0.0rc0+unknown' short_version = '0.0.0rc0'
class AllResponses: def __init__(self, identifier, query_title, project_id=None, query_id=None): self.id = identifier self.scopus_abstract_retrieval = None self.unpaywall_response = None self.altmetric_response = None self.scival_data = None self.query_title = query_title if project_id is None: self.project_id = [] else: self.project_id = [project_id] if query_id is None: self.query_id = [] else: self.query_id = [query_id] self.accepted = None def add_query_id(self, query_id): self.query_id.append(query_id) def add_project_id(self, project_id): self.project_id.append(project_id) def __getstate__(self): state = self.__dict__.copy() del state['id'] return state
class Allresponses: def __init__(self, identifier, query_title, project_id=None, query_id=None): self.id = identifier self.scopus_abstract_retrieval = None self.unpaywall_response = None self.altmetric_response = None self.scival_data = None self.query_title = query_title if project_id is None: self.project_id = [] else: self.project_id = [project_id] if query_id is None: self.query_id = [] else: self.query_id = [query_id] self.accepted = None def add_query_id(self, query_id): self.query_id.append(query_id) def add_project_id(self, project_id): self.project_id.append(project_id) def __getstate__(self): state = self.__dict__.copy() del state['id'] return state
def rotate_index(arr, k, src_ind, src_num, count=0): if count == len(arr): return des_ind = (src_ind + k) % len(arr) des_num = arr[des_ind] arr[des_ind] = src_num rotate_index(arr, k, des_ind, des_num, count + 1) def rotate_k(arr, k): if k < 1: return arr start = 0 rotate_index(arr, k, start, arr[start]) # Tests arr = [1, 2, 3, 4, 5] rotate_k(arr, 2) assert arr == [4, 5, 1, 2, 3] rotate_k(arr, 2) assert arr == [2, 3, 4, 5, 1] rotate_k(arr, 4) assert arr == [3, 4, 5, 1, 2]
def rotate_index(arr, k, src_ind, src_num, count=0): if count == len(arr): return des_ind = (src_ind + k) % len(arr) des_num = arr[des_ind] arr[des_ind] = src_num rotate_index(arr, k, des_ind, des_num, count + 1) def rotate_k(arr, k): if k < 1: return arr start = 0 rotate_index(arr, k, start, arr[start]) arr = [1, 2, 3, 4, 5] rotate_k(arr, 2) assert arr == [4, 5, 1, 2, 3] rotate_k(arr, 2) assert arr == [2, 3, 4, 5, 1] rotate_k(arr, 4) assert arr == [3, 4, 5, 1, 2]
rcParams = {"figdir": "figures", "usematplotlib": True, "storeresults": False, "cachedir": 'cache', "chunk": {"defaultoptions": { "echo": True, "results": 'verbatim', "chunk_type": "code", "fig": True, "multi_fig": True, "include": True, "evaluate": True, "caption": False, "term": False, "term_prompts": False, "name": None, "wrap": "output", "f_pos": "htpb", "f_size": (6, 4), "f_env": None, "dpi" : 200, "f_spines": True, "complete": True, "option_string": "", "display_data" : True, "display_stream" : True } } } class PwebProcessorGlobals(object): """A class to hold the globals used in processors""" globals = {}
rc_params = {'figdir': 'figures', 'usematplotlib': True, 'storeresults': False, 'cachedir': 'cache', 'chunk': {'defaultoptions': {'echo': True, 'results': 'verbatim', 'chunk_type': 'code', 'fig': True, 'multi_fig': True, 'include': True, 'evaluate': True, 'caption': False, 'term': False, 'term_prompts': False, 'name': None, 'wrap': 'output', 'f_pos': 'htpb', 'f_size': (6, 4), 'f_env': None, 'dpi': 200, 'f_spines': True, 'complete': True, 'option_string': '', 'display_data': True, 'display_stream': True}}} class Pwebprocessorglobals(object): """A class to hold the globals used in processors""" globals = {}
# Grace Foster # ITP 100-01 # EXERCISE: 06 # ageclass.py # ---------------------------------------------------------------- print("Age Classification program") print("-----------------------------------------------") age = 1 while age > 0: age = float(input(f"Enter the age: ")) if age != 0: if age <= 1: print("This person is an Infant") elif 2 <= age <= 13: print("This person is a Child") elif 13 <= age <= 20: print("this person is a Teenager") elif age >= 20: print("This person is an Adult") print("-----------------------------------------------") print("The Program Has Ended")
print('Age Classification program') print('-----------------------------------------------') age = 1 while age > 0: age = float(input(f'Enter the age: ')) if age != 0: if age <= 1: print('This person is an Infant') elif 2 <= age <= 13: print('This person is a Child') elif 13 <= age <= 20: print('this person is a Teenager') elif age >= 20: print('This person is an Adult') print('-----------------------------------------------') print('The Program Has Ended')
class InadequateArgsCombination(Exception): pass
class Inadequateargscombination(Exception): pass
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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. # __all__ = ( "AdAssetPolicySummary", "AdImageAsset", "AdMediaBundleAsset", "AdScheduleInfo", "AdTextAsset", "AdVideoAsset", "AddressInfo", "AffiliateLocationFeedItem", "AgeRangeInfo", "AppAdInfo", "AppEngagementAdInfo", "AppFeedItem", "AppPaymentModelInfo", "AssetInteractionTarget", "BasicUserListInfo", "BidModifierSimulationPoint", "BidModifierSimulationPointList", "BookOnGoogleAsset", "BudgetCampaignAssociationStatus", "BudgetSimulationPoint", "BudgetSimulationPointList", "BusinessNameFilter", "CallAdInfo", "CallFeedItem", "CalloutAsset", "CalloutFeedItem", "CarrierInfo", "ClickLocation", "CombinedAudienceInfo", "CombinedRuleUserListInfo", "Commission", "ConceptGroup", "ContentLabelInfo", "CpcBidSimulationPoint", "CpcBidSimulationPointList", "CpvBidSimulationPoint", "CpvBidSimulationPointList", "CriterionCategoryAvailability", "CriterionCategoryChannelAvailability", "CriterionCategoryLocaleAvailability", "CrmBasedUserListInfo", "CustomAffinityInfo", "CustomAudienceInfo", "CustomIntentInfo", "CustomParameter", "CustomerMatchUserListMetadata", "DateRange", "DateSpecificRuleUserListInfo", "DeviceInfo", "DisplayCallToAction", "DisplayUploadAdInfo", "DynamicAffiliateLocationSetFilter", "DynamicLocationSetFilter", "EnhancedCpc", "ExpandedDynamicSearchAdInfo", "ExpandedTextAdInfo", "ExplorerAutoOptimizerSetting", "ExpressionRuleUserListInfo", "FinalAppUrl", "FrequencyCapEntry", "FrequencyCapKey", "GenderInfo", "GeoPointInfo", "GmailAdInfo", "GmailTeaser", "HistoricalMetricsOptions", "HotelAdInfo", "HotelAdvanceBookingWindowInfo", "HotelCalloutFeedItem", "HotelCheckInDateRangeInfo", "HotelCheckInDayInfo", "HotelCityInfo", "HotelClassInfo", "HotelCountryRegionInfo", "HotelDateSelectionTypeInfo", "HotelIdInfo", "HotelLengthOfStayInfo", "HotelStateInfo", "ImageAdInfo", "ImageAsset", "ImageDimension", "ImageFeedItem", "IncomeRangeInfo", "InteractionTypeInfo", "IpBlockInfo", "ItemAttribute", "Keyword", "KeywordAnnotations", "KeywordConcept", "KeywordInfo", "KeywordPlanAggregateMetricResults", "KeywordPlanAggregateMetrics", "KeywordPlanDeviceSearches", "KeywordPlanHistoricalMetrics", "KeywordThemeInfo", "LanguageInfo", "LeadFormAsset", "LeadFormDeliveryMethod", "LeadFormField", "LeadFormSingleChoiceAnswers", "LegacyAppInstallAdInfo", "LegacyResponsiveDisplayAdInfo", "ListingDimensionInfo", "ListingGroupInfo", "ListingScopeInfo", "LocalAdInfo", "LocationFeedItem", "LocationGroupInfo", "LocationInfo", "LogicalUserListInfo", "LogicalUserListOperandInfo", "ManualCpc", "ManualCpm", "ManualCpv", "MatchingFunction", "MaximizeConversionValue", "MaximizeConversions", "MediaBundleAsset", "Metrics", "MobileAppCategoryInfo", "MobileApplicationInfo", "MobileDeviceInfo", "Money", "MonthlySearchVolume", "OfflineUserAddressInfo", "Operand", "OperatingSystemVersionInfo", "ParentalStatusInfo", "PercentCpc", "PercentCpcBidSimulationPoint", "PercentCpcBidSimulationPointList", "PlacementInfo", "PolicyTopicConstraint", "PolicyTopicEntry", "PolicyTopicEvidence", "PolicyValidationParameter", "PolicyViolationKey", "PreferredContentInfo", "PriceFeedItem", "PriceOffer", "ProductBiddingCategoryInfo", "ProductBrandInfo", "ProductChannelExclusivityInfo", "ProductChannelInfo", "ProductConditionInfo", "ProductCustomAttributeInfo", "ProductImage", "ProductItemIdInfo", "ProductTypeInfo", "ProductVideo", "PromotionAsset", "PromotionFeedItem", "ProximityInfo", "RealTimeBiddingSetting", "ResponsiveDisplayAdControlSpec", "ResponsiveDisplayAdInfo", "ResponsiveSearchAdInfo", "RuleBasedUserListInfo", "Segments", "ShoppingComparisonListingAdInfo", "ShoppingProductAdInfo", "ShoppingSmartAdInfo", "SimilarUserListInfo", "SitelinkAsset", "SitelinkFeedItem", "SmartCampaignAdInfo", "StoreAttribute", "StoreSalesMetadata", "StoreSalesThirdPartyMetadata", "StructuredSnippetAsset", "StructuredSnippetFeedItem", "TagSnippet", "TargetCpa", "TargetCpaSimulationPoint", "TargetCpaSimulationPointList", "TargetCpm", "TargetImpressionShare", "TargetImpressionShareSimulationPoint", "TargetImpressionShareSimulationPointList", "TargetRestriction", "TargetRestrictionOperation", "TargetRoas", "TargetRoasSimulationPoint", "TargetRoasSimulationPointList", "TargetSpend", "TargetingSetting", "TextAdInfo", "TextAsset", "TextLabel", "TextMessageFeedItem", "TopicInfo", "TransactionAttribute", "UnknownListingDimensionInfo", "UrlCollection", "UserAttribute", "UserData", "UserIdentifier", "UserInterestInfo", "UserListActionInfo", "UserListDateRuleItemInfo", "UserListInfo", "UserListLogicalRuleInfo", "UserListNumberRuleItemInfo", "UserListRuleInfo", "UserListRuleItemGroupInfo", "UserListRuleItemInfo", "UserListStringRuleItemInfo", "Value", "VideoAdInfo", "VideoBumperInStreamAdInfo", "VideoNonSkippableInStreamAdInfo", "VideoOutstreamAdInfo", "VideoResponsiveAdInfo", "VideoTrueViewDiscoveryAdInfo", "VideoTrueViewInStreamAdInfo", "WebhookDelivery", "WebpageConditionInfo", "WebpageInfo", "WebpageSampleInfo", "YearMonth", "YearMonthRange", "YouTubeChannelInfo", "YouTubeVideoInfo", "YoutubeVideoAsset", )
__all__ = ('AdAssetPolicySummary', 'AdImageAsset', 'AdMediaBundleAsset', 'AdScheduleInfo', 'AdTextAsset', 'AdVideoAsset', 'AddressInfo', 'AffiliateLocationFeedItem', 'AgeRangeInfo', 'AppAdInfo', 'AppEngagementAdInfo', 'AppFeedItem', 'AppPaymentModelInfo', 'AssetInteractionTarget', 'BasicUserListInfo', 'BidModifierSimulationPoint', 'BidModifierSimulationPointList', 'BookOnGoogleAsset', 'BudgetCampaignAssociationStatus', 'BudgetSimulationPoint', 'BudgetSimulationPointList', 'BusinessNameFilter', 'CallAdInfo', 'CallFeedItem', 'CalloutAsset', 'CalloutFeedItem', 'CarrierInfo', 'ClickLocation', 'CombinedAudienceInfo', 'CombinedRuleUserListInfo', 'Commission', 'ConceptGroup', 'ContentLabelInfo', 'CpcBidSimulationPoint', 'CpcBidSimulationPointList', 'CpvBidSimulationPoint', 'CpvBidSimulationPointList', 'CriterionCategoryAvailability', 'CriterionCategoryChannelAvailability', 'CriterionCategoryLocaleAvailability', 'CrmBasedUserListInfo', 'CustomAffinityInfo', 'CustomAudienceInfo', 'CustomIntentInfo', 'CustomParameter', 'CustomerMatchUserListMetadata', 'DateRange', 'DateSpecificRuleUserListInfo', 'DeviceInfo', 'DisplayCallToAction', 'DisplayUploadAdInfo', 'DynamicAffiliateLocationSetFilter', 'DynamicLocationSetFilter', 'EnhancedCpc', 'ExpandedDynamicSearchAdInfo', 'ExpandedTextAdInfo', 'ExplorerAutoOptimizerSetting', 'ExpressionRuleUserListInfo', 'FinalAppUrl', 'FrequencyCapEntry', 'FrequencyCapKey', 'GenderInfo', 'GeoPointInfo', 'GmailAdInfo', 'GmailTeaser', 'HistoricalMetricsOptions', 'HotelAdInfo', 'HotelAdvanceBookingWindowInfo', 'HotelCalloutFeedItem', 'HotelCheckInDateRangeInfo', 'HotelCheckInDayInfo', 'HotelCityInfo', 'HotelClassInfo', 'HotelCountryRegionInfo', 'HotelDateSelectionTypeInfo', 'HotelIdInfo', 'HotelLengthOfStayInfo', 'HotelStateInfo', 'ImageAdInfo', 'ImageAsset', 'ImageDimension', 'ImageFeedItem', 'IncomeRangeInfo', 'InteractionTypeInfo', 'IpBlockInfo', 'ItemAttribute', 'Keyword', 'KeywordAnnotations', 'KeywordConcept', 'KeywordInfo', 'KeywordPlanAggregateMetricResults', 'KeywordPlanAggregateMetrics', 'KeywordPlanDeviceSearches', 'KeywordPlanHistoricalMetrics', 'KeywordThemeInfo', 'LanguageInfo', 'LeadFormAsset', 'LeadFormDeliveryMethod', 'LeadFormField', 'LeadFormSingleChoiceAnswers', 'LegacyAppInstallAdInfo', 'LegacyResponsiveDisplayAdInfo', 'ListingDimensionInfo', 'ListingGroupInfo', 'ListingScopeInfo', 'LocalAdInfo', 'LocationFeedItem', 'LocationGroupInfo', 'LocationInfo', 'LogicalUserListInfo', 'LogicalUserListOperandInfo', 'ManualCpc', 'ManualCpm', 'ManualCpv', 'MatchingFunction', 'MaximizeConversionValue', 'MaximizeConversions', 'MediaBundleAsset', 'Metrics', 'MobileAppCategoryInfo', 'MobileApplicationInfo', 'MobileDeviceInfo', 'Money', 'MonthlySearchVolume', 'OfflineUserAddressInfo', 'Operand', 'OperatingSystemVersionInfo', 'ParentalStatusInfo', 'PercentCpc', 'PercentCpcBidSimulationPoint', 'PercentCpcBidSimulationPointList', 'PlacementInfo', 'PolicyTopicConstraint', 'PolicyTopicEntry', 'PolicyTopicEvidence', 'PolicyValidationParameter', 'PolicyViolationKey', 'PreferredContentInfo', 'PriceFeedItem', 'PriceOffer', 'ProductBiddingCategoryInfo', 'ProductBrandInfo', 'ProductChannelExclusivityInfo', 'ProductChannelInfo', 'ProductConditionInfo', 'ProductCustomAttributeInfo', 'ProductImage', 'ProductItemIdInfo', 'ProductTypeInfo', 'ProductVideo', 'PromotionAsset', 'PromotionFeedItem', 'ProximityInfo', 'RealTimeBiddingSetting', 'ResponsiveDisplayAdControlSpec', 'ResponsiveDisplayAdInfo', 'ResponsiveSearchAdInfo', 'RuleBasedUserListInfo', 'Segments', 'ShoppingComparisonListingAdInfo', 'ShoppingProductAdInfo', 'ShoppingSmartAdInfo', 'SimilarUserListInfo', 'SitelinkAsset', 'SitelinkFeedItem', 'SmartCampaignAdInfo', 'StoreAttribute', 'StoreSalesMetadata', 'StoreSalesThirdPartyMetadata', 'StructuredSnippetAsset', 'StructuredSnippetFeedItem', 'TagSnippet', 'TargetCpa', 'TargetCpaSimulationPoint', 'TargetCpaSimulationPointList', 'TargetCpm', 'TargetImpressionShare', 'TargetImpressionShareSimulationPoint', 'TargetImpressionShareSimulationPointList', 'TargetRestriction', 'TargetRestrictionOperation', 'TargetRoas', 'TargetRoasSimulationPoint', 'TargetRoasSimulationPointList', 'TargetSpend', 'TargetingSetting', 'TextAdInfo', 'TextAsset', 'TextLabel', 'TextMessageFeedItem', 'TopicInfo', 'TransactionAttribute', 'UnknownListingDimensionInfo', 'UrlCollection', 'UserAttribute', 'UserData', 'UserIdentifier', 'UserInterestInfo', 'UserListActionInfo', 'UserListDateRuleItemInfo', 'UserListInfo', 'UserListLogicalRuleInfo', 'UserListNumberRuleItemInfo', 'UserListRuleInfo', 'UserListRuleItemGroupInfo', 'UserListRuleItemInfo', 'UserListStringRuleItemInfo', 'Value', 'VideoAdInfo', 'VideoBumperInStreamAdInfo', 'VideoNonSkippableInStreamAdInfo', 'VideoOutstreamAdInfo', 'VideoResponsiveAdInfo', 'VideoTrueViewDiscoveryAdInfo', 'VideoTrueViewInStreamAdInfo', 'WebhookDelivery', 'WebpageConditionInfo', 'WebpageInfo', 'WebpageSampleInfo', 'YearMonth', 'YearMonthRange', 'YouTubeChannelInfo', 'YouTubeVideoInfo', 'YoutubeVideoAsset')
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def levelOrderBottom(self, root: TreeNode): result, level = [], [root] while root and level: result.append([n.val for n in level]) level = [child for n in level for child in [n.left, n.right] if child] result.reverse() return result root = TreeNode(3) root.left = TreeNode(5) rightNode = TreeNode(20) rightNode.left = TreeNode(42) root.right = rightNode print(Solution().levelOrderBottom(root))
class Treenode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def level_order_bottom(self, root: TreeNode): (result, level) = ([], [root]) while root and level: result.append([n.val for n in level]) level = [child for n in level for child in [n.left, n.right] if child] result.reverse() return result root = tree_node(3) root.left = tree_node(5) right_node = tree_node(20) rightNode.left = tree_node(42) root.right = rightNode print(solution().levelOrderBottom(root))
# -*- coding: utf-8 -*- # @Time : 2020/8/21 3:56 AM # @Author : Yinghao Qin # @Email : y.qin@hss18.qmul.ac.uk # @File : utils6.py # @Software: PyCharm ####################################################################################### # 'utils6' is used to calculate the Levenshtein distance between the predicted results# # and ground truth. # ####################################################################################### def LevenshteinDistance(a, b): """ The Levenshtein distance is a metric for measuring the difference between two sequences. Calculates the Levenshtein distance between a and b. :param a: the first sequence, such as [1, 2, 3, 4] :param b: the second sequence :return: Levenshtein distance """ n, m = len(a), len(b) if n > m: # Make sure n <= m, to use O(min(n,m)) space a, b = b, a n, m = m, n current = range(n + 1) for i in range(1, m + 1): previous, current = current, [i] + [0] * n for j in range(1, n + 1): add, delete = previous[j] + 1, current[j - 1] + 1 change = previous[j - 1] if a[j - 1] != b[i - 1]: change = change + 1 current[j] = min(add, delete, change) if current[n]<0: return 0 else: return current[n] # x = [0, 23, 4, 5] # y = [0, 24, 4, 5, 7] # print(LevenshteinDistance(x, y))
def levenshtein_distance(a, b): """ The Levenshtein distance is a metric for measuring the difference between two sequences. Calculates the Levenshtein distance between a and b. :param a: the first sequence, such as [1, 2, 3, 4] :param b: the second sequence :return: Levenshtein distance """ (n, m) = (len(a), len(b)) if n > m: (a, b) = (b, a) (n, m) = (m, n) current = range(n + 1) for i in range(1, m + 1): (previous, current) = (current, [i] + [0] * n) for j in range(1, n + 1): (add, delete) = (previous[j] + 1, current[j - 1] + 1) change = previous[j - 1] if a[j - 1] != b[i - 1]: change = change + 1 current[j] = min(add, delete, change) if current[n] < 0: return 0 else: return current[n]
# Demonstration of basic Python functions beginning on page 16 # # Basic addition x =44+11*4-6/11 print(x) m = 60*24*7 print("Number of minutes in a week: ", m) times = 2304811//47 #Integer division remainder = 2304811 - (times*47) print("Remainder of 2304811 divided by 47 without using modulo: ", remainder) print(2304811%47) #Inequalities print(5==4) #False print(4==4) #True print(True and not(5==4)) #True #Conditional Expressions x = -9 y = 1/2 val = 2**(y+1/2) if x*10<0 else 2**(y-1/2) #val == 2 print("val is: ", val) #Sets don't duplicate values s1 = {1+2, 3, 'a'} print(s1) # {3, 'a'} #Setd don't retain the order they were entered in s2 = {3, 2, 1} print(s2) # likely result is {1, 2, 3} #Cardinality is the length of the set acquired using len print(len(s1)) # 2 #sum a set using sum() print(sum(s2)) # 6 #sum starting at a value other than zero print(sum(s2, 10)) # 16 #Test for set membership print(2 in s2) # True print(5 not in s2) # True #Union is all elements in both sets s3 = {3, 4, 2} print(s2|s3) #Intersection is elements present in both sets print(s2 & s3) #mutating a set s4 = {1,2,3} s4.add(4) s4.remove(2) print(s4) #Set comprehensions s5 = {2*x for x in {1,2,3}} print(s5) square_set = {x**2 for x in {1,2,3,4,5}} print(square_set) power_set = {2**x for x in {0,1,2,3,4}} print(power_set) double_comp_set = {x*y for x in {1,2,3} for y in {2,3,4}} print(double_comp_set)
x = 44 + 11 * 4 - 6 / 11 print(x) m = 60 * 24 * 7 print('Number of minutes in a week: ', m) times = 2304811 // 47 remainder = 2304811 - times * 47 print('Remainder of 2304811 divided by 47 without using modulo: ', remainder) print(2304811 % 47) print(5 == 4) print(4 == 4) print(True and (not 5 == 4)) x = -9 y = 1 / 2 val = 2 ** (y + 1 / 2) if x * 10 < 0 else 2 ** (y - 1 / 2) print('val is: ', val) s1 = {1 + 2, 3, 'a'} print(s1) s2 = {3, 2, 1} print(s2) print(len(s1)) print(sum(s2)) print(sum(s2, 10)) print(2 in s2) print(5 not in s2) s3 = {3, 4, 2} print(s2 | s3) print(s2 & s3) s4 = {1, 2, 3} s4.add(4) s4.remove(2) print(s4) s5 = {2 * x for x in {1, 2, 3}} print(s5) square_set = {x ** 2 for x in {1, 2, 3, 4, 5}} print(square_set) power_set = {2 ** x for x in {0, 1, 2, 3, 4}} print(power_set) double_comp_set = {x * y for x in {1, 2, 3} for y in {2, 3, 4}} print(double_comp_set)
class Bridge: __ipaddress = None __username = None def __init__(self): pass def discover_bridges(self): pass
class Bridge: __ipaddress = None __username = None def __init__(self): pass def discover_bridges(self): pass
# # PySNMP MIB module SONUS-REDUNDANCY-SERVICES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-REDUNDANCY-SERVICES-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:02:05 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, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Bits, TimeTicks, ModuleIdentity, IpAddress, NotificationType, Integer32, Counter32, Gauge32, MibIdentifier, Unsigned32, ObjectIdentity, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Bits", "TimeTicks", "ModuleIdentity", "IpAddress", "NotificationType", "Integer32", "Counter32", "Gauge32", "MibIdentifier", "Unsigned32", "ObjectIdentity", "iso") RowStatus, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "DisplayString") sonusSlotIndex, sonusEventDescription, sonusShelfIndex, sonusEventLevel, sonusEventClass = mibBuilder.importSymbols("SONUS-COMMON-MIB", "sonusSlotIndex", "sonusEventDescription", "sonusShelfIndex", "sonusEventLevel", "sonusEventClass") sonusServicesMIBs, = mibBuilder.importSymbols("SONUS-SMI", "sonusServicesMIBs") SonusName, ServerFunctionType, ServerTypeID = mibBuilder.importSymbols("SONUS-TC", "SonusName", "ServerFunctionType", "ServerTypeID") sonusRedundancyServicesMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8)) if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setLastUpdated('200104180000Z') if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setOrganization('Sonus Networks, Inc.') sonusRedundancyServicesMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1)) sonusRedundGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1)) sonusRedundGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNextIndex.setStatus('current') sonusRedundGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2), ) if mibBuilder.loadTexts: sonusRedundGroupTable.setStatus('current') sonusRedundGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex")) if mibBuilder.loadTexts: sonusRedundGroupEntry.setStatus('current') sonusRedundGroupAdmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupAdmnIndex.setStatus('current') sonusRedundGroupAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAdmnState.setStatus('current') sonusRedundGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 3), SonusName()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupName.setStatus('current') sonusRedundGroupShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupShelfIndex.setStatus('current') sonusRedundGroupRedundSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupRedundSlotIndex.setStatus('current') sonusRedundGroupSwitchoverCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("normal", 2), ("forced", 3), ("revert", 4), ("revertForced", 5))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSwitchoverCntrl.setStatus('current') sonusRedundGroupSwitchoverClientSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSwitchoverClientSlotIndex.setStatus('current') sonusRedundGroupFallbackCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("nonrevertive", 2))).clone('nonrevertive')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupFallbackCntrl.setStatus('current') sonusRedundGroupWaitToRevertTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 12)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupWaitToRevertTime.setStatus('current') sonusRedundGroupAutoDetectCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAutoDetectCntrl.setStatus('current') sonusRedundGroupHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 11), ServerTypeID()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupHwType.setStatus('current') sonusRedundGroupHealthcheckCntrl = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupHealthcheckCntrl.setStatus('current') sonusRedundGroupAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupAdmnRowStatus.setStatus('current') sonusRedundGroupSrvrFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 14), ServerFunctionType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundGroupSrvrFunction.setStatus('current') sonusRedundClient = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2)) sonusRedundClientNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientNextIndex.setStatus('current') sonusRedundClientTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2), ) if mibBuilder.loadTexts: sonusRedundClientTable.setStatus('current') sonusRedundClientEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientAdmnGroupIndex"), (0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientAdmnSlotIndex")) if mibBuilder.loadTexts: sonusRedundClientEntry.setStatus('current') sonusRedundClientAdmnGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnGroupIndex.setStatus('current') sonusRedundClientAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnSlotIndex.setStatus('current') sonusRedundClientAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnState.setStatus('current') sonusRedundClientAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 4), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sonusRedundClientAdmnRowStatus.setStatus('current') sonusRedundGroupStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3), ) if mibBuilder.loadTexts: sonusRedundGroupStatTable.setStatus('current') sonusRedundGroupStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupStatIndex")) if mibBuilder.loadTexts: sonusRedundGroupStatEntry.setStatus('current') sonusRedundGroupStatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupStatIndex.setStatus('current') sonusRedundGroupRedundOpState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("standby", 1), ("activeSynced", 2), ("activeSyncing", 3), ("activeNotSynced", 4), ("absent", 5), ("reset", 6), ("failed", 7), ("unknown", 8), ("outOfService", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupRedundOpState.setStatus('current') sonusRedundGroupStandbySlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupStandbySlotIndex.setStatus('current') sonusRedundGroupRedundSonicId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupRedundSonicId.setStatus('current') sonusRedundGroupProtectedSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupProtectedSlotIndex.setStatus('current') sonusRedundGroupNumClients = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNumClients.setStatus('current') sonusRedundGroupNumSwitchovers = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupNumSwitchovers.setStatus('current') sonusRedundGroupLastSwitchoverReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("none", 1), ("adminSwitchover", 2), ("autoReversion", 3), ("reset", 4), ("removal", 5), ("softwareFailure", 6), ("hardwareFailure", 7), ("healthCheckTimeout", 8), ("other", 9), ("softwareUpgrade", 10), ("excessiveLinkFailure", 11), ("reserved2", 12), ("unknown", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundGroupLastSwitchoverReason.setStatus('current') sonusRedundClientStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4), ) if mibBuilder.loadTexts: sonusRedundClientStatTable.setStatus('current') sonusRedundClientStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1), ).setIndexNames((0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientStatGroupIndex"), (0, "SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundClientStatSlotIndex")) if mibBuilder.loadTexts: sonusRedundClientStatEntry.setStatus('current') sonusRedundClientStatGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientStatGroupIndex.setStatus('current') sonusRedundClientStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientStatSlotIndex.setStatus('current') sonusRedundClientSonicId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientSonicId.setStatus('current') sonusRedundClientState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("standby", 1), ("activeSynced", 2), ("activeSyncing", 3), ("activeNotSynced", 4), ("absent", 5), ("reset", 6), ("failed", 7), ("unknown", 8), ("outOfService", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundClientState.setStatus('current') sonusRedundancyServicesMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2)) sonusRedundancyServicesMIBNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0)) sonusRedundancyServicesMIBNotificationsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1)) sonusRedundPrevActiveSlotIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: sonusRedundPrevActiveSlotIndex.setStatus('current') sonusRedundGroupSwitchOverNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 1)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundPrevActiveSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupLastSwitchoverReason"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupSwitchOverNotification.setStatus('current') sonusRedundGroupNoRedundancyNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 2)).setObjects(("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupNoRedundancyNotification.setStatus('current') sonusRedundGroupFullRedundancyNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 3)).setObjects(("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupFullRedundancyNotification.setStatus('current') sonusRedundGroupProtectedClientRestored = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 4)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupName"), ("SONUS-REDUNDANCY-SERVICES-MIB", "sonusRedundGroupAdmnIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupProtectedClientRestored.setStatus('current') sonusRedundGroupMnsActiveNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 5)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel")) if mibBuilder.loadTexts: sonusRedundGroupMnsActiveNotification.setStatus('current') mibBuilder.exportSymbols("SONUS-REDUNDANCY-SERVICES-MIB", sonusRedundancyServicesMIBObjects=sonusRedundancyServicesMIBObjects, sonusRedundClientSonicId=sonusRedundClientSonicId, sonusRedundGroupShelfIndex=sonusRedundGroupShelfIndex, sonusRedundClient=sonusRedundClient, sonusRedundGroupRedundOpState=sonusRedundGroupRedundOpState, sonusRedundGroupNumSwitchovers=sonusRedundGroupNumSwitchovers, sonusRedundGroupFallbackCntrl=sonusRedundGroupFallbackCntrl, sonusRedundGroupAdmnIndex=sonusRedundGroupAdmnIndex, sonusRedundGroupStatIndex=sonusRedundGroupStatIndex, sonusRedundGroupFullRedundancyNotification=sonusRedundGroupFullRedundancyNotification, sonusRedundGroupSwitchOverNotification=sonusRedundGroupSwitchOverNotification, sonusRedundGroupTable=sonusRedundGroupTable, sonusRedundGroupAdmnRowStatus=sonusRedundGroupAdmnRowStatus, sonusRedundGroupName=sonusRedundGroupName, sonusRedundClientStatSlotIndex=sonusRedundClientStatSlotIndex, sonusRedundPrevActiveSlotIndex=sonusRedundPrevActiveSlotIndex, sonusRedundClientNextIndex=sonusRedundClientNextIndex, sonusRedundClientAdmnState=sonusRedundClientAdmnState, sonusRedundGroupStatTable=sonusRedundGroupStatTable, sonusRedundGroupLastSwitchoverReason=sonusRedundGroupLastSwitchoverReason, sonusRedundGroupAdmnState=sonusRedundGroupAdmnState, sonusRedundGroupNumClients=sonusRedundGroupNumClients, sonusRedundGroupMnsActiveNotification=sonusRedundGroupMnsActiveNotification, sonusRedundGroupRedundSlotIndex=sonusRedundGroupRedundSlotIndex, sonusRedundClientAdmnRowStatus=sonusRedundClientAdmnRowStatus, sonusRedundGroupSrvrFunction=sonusRedundGroupSrvrFunction, sonusRedundClientAdmnGroupIndex=sonusRedundClientAdmnGroupIndex, sonusRedundGroupRedundSonicId=sonusRedundGroupRedundSonicId, sonusRedundClientStatEntry=sonusRedundClientStatEntry, sonusRedundClientTable=sonusRedundClientTable, sonusRedundClientStatTable=sonusRedundClientStatTable, sonusRedundGroupAutoDetectCntrl=sonusRedundGroupAutoDetectCntrl, sonusRedundClientAdmnSlotIndex=sonusRedundClientAdmnSlotIndex, sonusRedundGroupSwitchoverClientSlotIndex=sonusRedundGroupSwitchoverClientSlotIndex, sonusRedundClientStatGroupIndex=sonusRedundClientStatGroupIndex, sonusRedundancyServicesMIB=sonusRedundancyServicesMIB, sonusRedundancyServicesMIBNotificationsObjects=sonusRedundancyServicesMIBNotificationsObjects, sonusRedundGroupStatEntry=sonusRedundGroupStatEntry, sonusRedundGroupProtectedSlotIndex=sonusRedundGroupProtectedSlotIndex, sonusRedundGroupHealthcheckCntrl=sonusRedundGroupHealthcheckCntrl, sonusRedundancyServicesMIBNotifications=sonusRedundancyServicesMIBNotifications, sonusRedundGroupSwitchoverCntrl=sonusRedundGroupSwitchoverCntrl, sonusRedundClientEntry=sonusRedundClientEntry, sonusRedundGroup=sonusRedundGroup, sonusRedundGroupStandbySlotIndex=sonusRedundGroupStandbySlotIndex, sonusRedundGroupHwType=sonusRedundGroupHwType, PYSNMP_MODULE_ID=sonusRedundancyServicesMIB, sonusRedundGroupProtectedClientRestored=sonusRedundGroupProtectedClientRestored, sonusRedundGroupEntry=sonusRedundGroupEntry, sonusRedundGroupNoRedundancyNotification=sonusRedundGroupNoRedundancyNotification, sonusRedundGroupNextIndex=sonusRedundGroupNextIndex, sonusRedundancyServicesMIBNotificationsPrefix=sonusRedundancyServicesMIBNotificationsPrefix, sonusRedundGroupWaitToRevertTime=sonusRedundGroupWaitToRevertTime, sonusRedundClientState=sonusRedundClientState)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, bits, time_ticks, module_identity, ip_address, notification_type, integer32, counter32, gauge32, mib_identifier, unsigned32, object_identity, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Bits', 'TimeTicks', 'ModuleIdentity', 'IpAddress', 'NotificationType', 'Integer32', 'Counter32', 'Gauge32', 'MibIdentifier', 'Unsigned32', 'ObjectIdentity', 'iso') (row_status, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TextualConvention', 'DisplayString') (sonus_slot_index, sonus_event_description, sonus_shelf_index, sonus_event_level, sonus_event_class) = mibBuilder.importSymbols('SONUS-COMMON-MIB', 'sonusSlotIndex', 'sonusEventDescription', 'sonusShelfIndex', 'sonusEventLevel', 'sonusEventClass') (sonus_services_mi_bs,) = mibBuilder.importSymbols('SONUS-SMI', 'sonusServicesMIBs') (sonus_name, server_function_type, server_type_id) = mibBuilder.importSymbols('SONUS-TC', 'SonusName', 'ServerFunctionType', 'ServerTypeID') sonus_redundancy_services_mib = module_identity((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8)) if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setLastUpdated('200104180000Z') if mibBuilder.loadTexts: sonusRedundancyServicesMIB.setOrganization('Sonus Networks, Inc.') sonus_redundancy_services_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1)) sonus_redund_group = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1)) sonus_redund_group_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupNextIndex.setStatus('current') sonus_redund_group_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2)) if mibBuilder.loadTexts: sonusRedundGroupTable.setStatus('current') sonus_redund_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1)).setIndexNames((0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupAdmnIndex')) if mibBuilder.loadTexts: sonusRedundGroupEntry.setStatus('current') sonus_redund_group_admn_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupAdmnIndex.setStatus('current') sonus_redund_group_admn_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupAdmnState.setStatus('current') sonus_redund_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 3), sonus_name()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupName.setStatus('current') sonus_redund_group_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupShelfIndex.setStatus('current') sonus_redund_group_redund_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupRedundSlotIndex.setStatus('current') sonus_redund_group_switchover_cntrl = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('normal', 2), ('forced', 3), ('revert', 4), ('revertForced', 5))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupSwitchoverCntrl.setStatus('current') sonus_redund_group_switchover_client_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupSwitchoverClientSlotIndex.setStatus('current') sonus_redund_group_fallback_cntrl = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('nonrevertive', 2))).clone('nonrevertive')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupFallbackCntrl.setStatus('current') sonus_redund_group_wait_to_revert_time = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(5, 12)).clone(5)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupWaitToRevertTime.setStatus('current') sonus_redund_group_auto_detect_cntrl = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupAutoDetectCntrl.setStatus('current') sonus_redund_group_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 11), server_type_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupHwType.setStatus('current') sonus_redund_group_healthcheck_cntrl = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupHealthcheckCntrl.setStatus('current') sonus_redund_group_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupAdmnRowStatus.setStatus('current') sonus_redund_group_srvr_function = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 1, 2, 1, 14), server_function_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundGroupSrvrFunction.setStatus('current') sonus_redund_client = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2)) sonus_redund_client_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundClientNextIndex.setStatus('current') sonus_redund_client_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2)) if mibBuilder.loadTexts: sonusRedundClientTable.setStatus('current') sonus_redund_client_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1)).setIndexNames((0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundClientAdmnGroupIndex'), (0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundClientAdmnSlotIndex')) if mibBuilder.loadTexts: sonusRedundClientEntry.setStatus('current') sonus_redund_client_admn_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundClientAdmnGroupIndex.setStatus('current') sonus_redund_client_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundClientAdmnSlotIndex.setStatus('current') sonus_redund_client_admn_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundClientAdmnState.setStatus('current') sonus_redund_client_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 2, 2, 1, 4), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sonusRedundClientAdmnRowStatus.setStatus('current') sonus_redund_group_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3)) if mibBuilder.loadTexts: sonusRedundGroupStatTable.setStatus('current') sonus_redund_group_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1)).setIndexNames((0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupStatIndex')) if mibBuilder.loadTexts: sonusRedundGroupStatEntry.setStatus('current') sonus_redund_group_stat_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupStatIndex.setStatus('current') sonus_redund_group_redund_op_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('standby', 1), ('activeSynced', 2), ('activeSyncing', 3), ('activeNotSynced', 4), ('absent', 5), ('reset', 6), ('failed', 7), ('unknown', 8), ('outOfService', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupRedundOpState.setStatus('current') sonus_redund_group_standby_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupStandbySlotIndex.setStatus('current') sonus_redund_group_redund_sonic_id = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupRedundSonicId.setStatus('current') sonus_redund_group_protected_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupProtectedSlotIndex.setStatus('current') sonus_redund_group_num_clients = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupNumClients.setStatus('current') sonus_redund_group_num_switchovers = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupNumSwitchovers.setStatus('current') sonus_redund_group_last_switchover_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=named_values(('none', 1), ('adminSwitchover', 2), ('autoReversion', 3), ('reset', 4), ('removal', 5), ('softwareFailure', 6), ('hardwareFailure', 7), ('healthCheckTimeout', 8), ('other', 9), ('softwareUpgrade', 10), ('excessiveLinkFailure', 11), ('reserved2', 12), ('unknown', 13)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundGroupLastSwitchoverReason.setStatus('current') sonus_redund_client_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4)) if mibBuilder.loadTexts: sonusRedundClientStatTable.setStatus('current') sonus_redund_client_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1)).setIndexNames((0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundClientStatGroupIndex'), (0, 'SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundClientStatSlotIndex')) if mibBuilder.loadTexts: sonusRedundClientStatEntry.setStatus('current') sonus_redund_client_stat_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundClientStatGroupIndex.setStatus('current') sonus_redund_client_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundClientStatSlotIndex.setStatus('current') sonus_redund_client_sonic_id = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundClientSonicId.setStatus('current') sonus_redund_client_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 1, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('standby', 1), ('activeSynced', 2), ('activeSyncing', 3), ('activeNotSynced', 4), ('absent', 5), ('reset', 6), ('failed', 7), ('unknown', 8), ('outOfService', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundClientState.setStatus('current') sonus_redundancy_services_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2)) sonus_redundancy_services_mib_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0)) sonus_redundancy_services_mib_notifications_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1)) sonus_redund_prev_active_slot_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: sonusRedundPrevActiveSlotIndex.setStatus('current') sonus_redund_group_switch_over_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 1)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundPrevActiveSlotIndex'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupLastSwitchoverReason'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupName'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupAdmnIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusRedundGroupSwitchOverNotification.setStatus('current') sonus_redund_group_no_redundancy_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 2)).setObjects(('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupName'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupAdmnIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusRedundGroupNoRedundancyNotification.setStatus('current') sonus_redund_group_full_redundancy_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 3)).setObjects(('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupName'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupAdmnIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusRedundGroupFullRedundancyNotification.setStatus('current') sonus_redund_group_protected_client_restored = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 4)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupName'), ('SONUS-REDUNDANCY-SERVICES-MIB', 'sonusRedundGroupAdmnIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusRedundGroupProtectedClientRestored.setStatus('current') sonus_redund_group_mns_active_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 5, 8, 2, 0, 5)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel')) if mibBuilder.loadTexts: sonusRedundGroupMnsActiveNotification.setStatus('current') mibBuilder.exportSymbols('SONUS-REDUNDANCY-SERVICES-MIB', sonusRedundancyServicesMIBObjects=sonusRedundancyServicesMIBObjects, sonusRedundClientSonicId=sonusRedundClientSonicId, sonusRedundGroupShelfIndex=sonusRedundGroupShelfIndex, sonusRedundClient=sonusRedundClient, sonusRedundGroupRedundOpState=sonusRedundGroupRedundOpState, sonusRedundGroupNumSwitchovers=sonusRedundGroupNumSwitchovers, sonusRedundGroupFallbackCntrl=sonusRedundGroupFallbackCntrl, sonusRedundGroupAdmnIndex=sonusRedundGroupAdmnIndex, sonusRedundGroupStatIndex=sonusRedundGroupStatIndex, sonusRedundGroupFullRedundancyNotification=sonusRedundGroupFullRedundancyNotification, sonusRedundGroupSwitchOverNotification=sonusRedundGroupSwitchOverNotification, sonusRedundGroupTable=sonusRedundGroupTable, sonusRedundGroupAdmnRowStatus=sonusRedundGroupAdmnRowStatus, sonusRedundGroupName=sonusRedundGroupName, sonusRedundClientStatSlotIndex=sonusRedundClientStatSlotIndex, sonusRedundPrevActiveSlotIndex=sonusRedundPrevActiveSlotIndex, sonusRedundClientNextIndex=sonusRedundClientNextIndex, sonusRedundClientAdmnState=sonusRedundClientAdmnState, sonusRedundGroupStatTable=sonusRedundGroupStatTable, sonusRedundGroupLastSwitchoverReason=sonusRedundGroupLastSwitchoverReason, sonusRedundGroupAdmnState=sonusRedundGroupAdmnState, sonusRedundGroupNumClients=sonusRedundGroupNumClients, sonusRedundGroupMnsActiveNotification=sonusRedundGroupMnsActiveNotification, sonusRedundGroupRedundSlotIndex=sonusRedundGroupRedundSlotIndex, sonusRedundClientAdmnRowStatus=sonusRedundClientAdmnRowStatus, sonusRedundGroupSrvrFunction=sonusRedundGroupSrvrFunction, sonusRedundClientAdmnGroupIndex=sonusRedundClientAdmnGroupIndex, sonusRedundGroupRedundSonicId=sonusRedundGroupRedundSonicId, sonusRedundClientStatEntry=sonusRedundClientStatEntry, sonusRedundClientTable=sonusRedundClientTable, sonusRedundClientStatTable=sonusRedundClientStatTable, sonusRedundGroupAutoDetectCntrl=sonusRedundGroupAutoDetectCntrl, sonusRedundClientAdmnSlotIndex=sonusRedundClientAdmnSlotIndex, sonusRedundGroupSwitchoverClientSlotIndex=sonusRedundGroupSwitchoverClientSlotIndex, sonusRedundClientStatGroupIndex=sonusRedundClientStatGroupIndex, sonusRedundancyServicesMIB=sonusRedundancyServicesMIB, sonusRedundancyServicesMIBNotificationsObjects=sonusRedundancyServicesMIBNotificationsObjects, sonusRedundGroupStatEntry=sonusRedundGroupStatEntry, sonusRedundGroupProtectedSlotIndex=sonusRedundGroupProtectedSlotIndex, sonusRedundGroupHealthcheckCntrl=sonusRedundGroupHealthcheckCntrl, sonusRedundancyServicesMIBNotifications=sonusRedundancyServicesMIBNotifications, sonusRedundGroupSwitchoverCntrl=sonusRedundGroupSwitchoverCntrl, sonusRedundClientEntry=sonusRedundClientEntry, sonusRedundGroup=sonusRedundGroup, sonusRedundGroupStandbySlotIndex=sonusRedundGroupStandbySlotIndex, sonusRedundGroupHwType=sonusRedundGroupHwType, PYSNMP_MODULE_ID=sonusRedundancyServicesMIB, sonusRedundGroupProtectedClientRestored=sonusRedundGroupProtectedClientRestored, sonusRedundGroupEntry=sonusRedundGroupEntry, sonusRedundGroupNoRedundancyNotification=sonusRedundGroupNoRedundancyNotification, sonusRedundGroupNextIndex=sonusRedundGroupNextIndex, sonusRedundancyServicesMIBNotificationsPrefix=sonusRedundancyServicesMIBNotificationsPrefix, sonusRedundGroupWaitToRevertTime=sonusRedundGroupWaitToRevertTime, sonusRedundClientState=sonusRedundClientState)
def TSMC_Tech_Map(depth, width) -> dict: ''' Currently returns the tech map for the single port SRAM, but we can procedurally generate different tech maps ''' ports = [] single_port = { 'data_in': 'D', 'addr': 'A', 'write_enable': 'WEB', 'cen': 'CEB', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': { # value, width 'RTSEL': (0, 2), 'WTSEL': (0, 2) } } ports.append(single_port) tech_map = { 'name': f"TS1N16FFCLLSBLVTC{depth}X{width}M4S", 'ports': ports, 'depth': depth, 'width': width } return tech_map def SKY_Tech_Map() -> dict: ''' Currently returns the tech map for the sky130 dual port SRAM, but we can procedurally generate different tech maps NOTE - Ordering of ports matters!!! ''' ports = [] # READWRITE Port first_port = { 'data_in': 'din0', 'addr': 'addr0', 'write_enable': 'web0', 'cen': 'csb0', 'clk': 'clk0', 'data_out': 'dout0', 'alt_sigs': { # value, width 'wmask0': (2 ** 4 - 1, 4) } } # READ Port second_port = { 'data_out': 'dout1', 'read_addr': 'addr1', 'cen': 'csb1', 'clk': 'clk1', 'alt_sigs': {} } ports.append(first_port) ports.append(second_port) tech_map = { 'name': "sky130_sram_1kbyte_1rw1r_32x256_8", 'ports': ports, 'depth': 256, 'width': 32 } return tech_map def GF_Tech_Map(depth, width, dual_port=False) -> dict: ''' Currently returns the tech map for the single port SRAM or the dual port SRAM (1rw1r) mux 8 ("M08" in in the inst name) (note that dual port mux 8 supports only the 16bit width width 32 uses mux 4, width 64 uses mux 2), but we can procedurally generate different tech maps ''' ports = [] single_port = { 'data_in': 'D', 'addr': 'A', 'write_enable': 'RDWEN', 'cen': 'CEN', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': { # value, width 'T_LOGIC': (0, 1), 'T_Q_RST': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1), 'MA_STABAS1': (0, 1), 'MA_STABAS0': (0, 1), } } dual_port_p0rw = { # port RW 'clk': 'CLK_A', 'cen': 'CEN_A', 'write_enable': 'RDWEN_A', 'addr': 'A_A', 'data_in': 'D_A', 'data_out': 'Q_A', 'alt_sigs': { # value, width 'T_Q_RST_A': (0, 1), 'T_LOGIC': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1), } } dual_port_p1r = { # port RW 'clk': 'CLK_B', 'cen': 'CEN_B', 'read_addr': 'A_B', 'data_out': 'Q_B', 'alt_sigs': { # value, width 'T_Q_RST_B': (0, 1), 'RDWEN_B': (1, 1), 'D_B': (0, width), } } if dual_port: ports.append(dual_port_p0rw) ports.append(dual_port_p1r) name = f"IN12LP_SDPB_W{depth:05}B{width:03}M08S2_H" else: ports.append(single_port) name = f"IN12LP_S1DB_W{depth:05}B{width:03}M04S2_H" tech_map = { 'name': name, 'ports': ports, 'depth': depth, 'width': width } return tech_map
def tsmc__tech__map(depth, width) -> dict: """ Currently returns the tech map for the single port SRAM, but we can procedurally generate different tech maps """ ports = [] single_port = {'data_in': 'D', 'addr': 'A', 'write_enable': 'WEB', 'cen': 'CEB', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': {'RTSEL': (0, 2), 'WTSEL': (0, 2)}} ports.append(single_port) tech_map = {'name': f'TS1N16FFCLLSBLVTC{depth}X{width}M4S', 'ports': ports, 'depth': depth, 'width': width} return tech_map def sky__tech__map() -> dict: """ Currently returns the tech map for the sky130 dual port SRAM, but we can procedurally generate different tech maps NOTE - Ordering of ports matters!!! """ ports = [] first_port = {'data_in': 'din0', 'addr': 'addr0', 'write_enable': 'web0', 'cen': 'csb0', 'clk': 'clk0', 'data_out': 'dout0', 'alt_sigs': {'wmask0': (2 ** 4 - 1, 4)}} second_port = {'data_out': 'dout1', 'read_addr': 'addr1', 'cen': 'csb1', 'clk': 'clk1', 'alt_sigs': {}} ports.append(first_port) ports.append(second_port) tech_map = {'name': 'sky130_sram_1kbyte_1rw1r_32x256_8', 'ports': ports, 'depth': 256, 'width': 32} return tech_map def gf__tech__map(depth, width, dual_port=False) -> dict: """ Currently returns the tech map for the single port SRAM or the dual port SRAM (1rw1r) mux 8 ("M08" in in the inst name) (note that dual port mux 8 supports only the 16bit width width 32 uses mux 4, width 64 uses mux 2), but we can procedurally generate different tech maps """ ports = [] single_port = {'data_in': 'D', 'addr': 'A', 'write_enable': 'RDWEN', 'cen': 'CEN', 'clk': 'CLK', 'data_out': 'Q', 'alt_sigs': {'T_LOGIC': (0, 1), 'T_Q_RST': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1), 'MA_STABAS1': (0, 1), 'MA_STABAS0': (0, 1)}} dual_port_p0rw = {'clk': 'CLK_A', 'cen': 'CEN_A', 'write_enable': 'RDWEN_A', 'addr': 'A_A', 'data_in': 'D_A', 'data_out': 'Q_A', 'alt_sigs': {'T_Q_RST_A': (0, 1), 'T_LOGIC': (0, 1), 'MA_SAWL1': (0, 1), 'MA_SAWL0': (0, 1), 'MA_WL1': (0, 1), 'MA_WL0': (0, 1), 'MA_WRAS1': (0, 1), 'MA_WRAS0': (0, 1), 'MA_VD1': (0, 1), 'MA_VD0': (0, 1), 'MA_WRT': (0, 1)}} dual_port_p1r = {'clk': 'CLK_B', 'cen': 'CEN_B', 'read_addr': 'A_B', 'data_out': 'Q_B', 'alt_sigs': {'T_Q_RST_B': (0, 1), 'RDWEN_B': (1, 1), 'D_B': (0, width)}} if dual_port: ports.append(dual_port_p0rw) ports.append(dual_port_p1r) name = f'IN12LP_SDPB_W{depth:05}B{width:03}M08S2_H' else: ports.append(single_port) name = f'IN12LP_S1DB_W{depth:05}B{width:03}M04S2_H' tech_map = {'name': name, 'ports': ports, 'depth': depth, 'width': width} return tech_map
# A simple while loop example user_input = input('Hey how are you ') while user_input != 'stop copying me': print(user_input) user_input = input() else: print('UGHH Fine')
user_input = input('Hey how are you ') while user_input != 'stop copying me': print(user_input) user_input = input() else: print('UGHH Fine')
class A: pass class B(A): """ This is B class comments """ def __init__(self) -> None: super().__init__() @classmethod def get_class_name(cls): return cls.__name__ if __name__ == "__main__": def add_attr(self): print("add_attr") def add_static_attr(): print("static add_attr") print(B.__name__) print(B.__doc__) print(B.__module__) print(B.__bases__) print(B.__dict__) setattr(B, "add_attr", add_attr) setattr(B, "add_static_attr", add_static_attr) print(B.__dict__) B().add_attr() B.add_static_attr() # print(B.__annotations__) print(add_static_attr.__code__)
class A: pass class B(A): """ This is B class comments """ def __init__(self) -> None: super().__init__() @classmethod def get_class_name(cls): return cls.__name__ if __name__ == '__main__': def add_attr(self): print('add_attr') def add_static_attr(): print('static add_attr') print(B.__name__) print(B.__doc__) print(B.__module__) print(B.__bases__) print(B.__dict__) setattr(B, 'add_attr', add_attr) setattr(B, 'add_static_attr', add_static_attr) print(B.__dict__) b().add_attr() B.add_static_attr() print(add_static_attr.__code__)
# # PySNMP MIB module ALCATEL-IND1-ISIS-SPB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-ISIS-SPB-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:13 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) # routingIND1IsisSpb, = mibBuilder.importSymbols("ALCATEL-IND1-BASE", "routingIND1IsisSpb") ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint") VlanIdOrNone, = mibBuilder.importSymbols("IEEE8021-CFM-MIB", "VlanIdOrNone") IEEE8021PbbIngressEgress, IEEE8021BridgePortNumber, IEEE8021PbbServiceIdentifierOrUnassigned = mibBuilder.importSymbols("IEEE8021-TC-MIB", "IEEE8021PbbIngressEgress", "IEEE8021BridgePortNumber", "IEEE8021PbbServiceIdentifierOrUnassigned") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") VlanId, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") MibIdentifier, Unsigned32, IpAddress, Counter64, ObjectIdentity, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter32, NotificationType, Integer32, TimeTicks, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Unsigned32", "IpAddress", "Counter64", "ObjectIdentity", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter32", "NotificationType", "Integer32", "TimeTicks", "iso") MacAddress, TruthValue, TimeInterval, DisplayString, TimeStamp, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TruthValue", "TimeInterval", "DisplayString", "TimeStamp", "TextualConvention", "RowStatus") alcatelIND1IsisSpbMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1)) alcatelIND1IsisSpbMib.setRevisions(('2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setRevisionsDescriptions(('The latest version of this MIB Module.',)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setLastUpdated('201311070000Z') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Configuration Of Global OSPF Configuration Parameters. The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') class AlcatelIND1IsisSpbAreaAddress(TextualConvention, OctetString): reference = '12.25.1.1.2 a), 12.25.1.2.2 a), 12.25.1.3.2 a), 12.25.1.2.2 a)' description = 'This identifier is the 3 Byte IS-IS Area Address. Domain Specific part(DSP). Default is 00-00-00.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3) fixedLength = 3 class AlcatelIND1IsisSpbSystemName(TextualConvention, OctetString): reference = 'RFC 4945 12.25.1.3.3 d), 12.25.7.1.3 f), 12.25.8.1.3 e)' description = 'This is the System Name assigned to this Bridge.' status = 'current' displayHint = '32a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 32) class AlcatelIND1IsisSpbEctAlgorithm(TextualConvention, OctetString): reference = '12.3 q)' description = 'The 4 byte Equal Cost Multiple Tree Algorithm identifier. This identifies the tree computation algorithm and tie breakers.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4) fixedLength = 4 class AlcatelIND1IsisSpbMode(TextualConvention, Integer32): reference = '27.10' description = 'Auto allocation control for this instance of SPB. For SPBV it controls SPVIDs and for SPBM it controls SPSourceID.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("auto", 1), ("manual", 2)) class AlcatelIND1IsisSpbDigestConvention(TextualConvention, Integer32): reference = '28.4.3' description = 'The mode of the current Agreement Digest. This determines the level of loop prevention.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("off", 1), ("loopFreeBoth", 2), ("loopFreeMcastOnly", 3)) class AlcatelIND1IsisSpbLinkMetric(TextualConvention, Integer32): reference = '28.2' description = 'The 24 bit cost of an SPB link. A lower metric value means better. Value 16777215 equals Infinity.' status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 16777215) class AlcatelIND1IsisSpbAdjState(TextualConvention, Integer32): reference = '12.25.6.1.3 d), 12.25.6.2.3 d), 12.25.7.1.3 (e' description = 'The current state of this SPB adjacency or port. The values are up, down, and testing.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("up", 1), ("down", 2), ("testing", 3)) class AlcatelIND1IsisSpbmSPsourceId(TextualConvention, OctetString): reference = '27.15' description = 'The Shortest Path Source Identifier for this bridge. It is the high order 3 bytes for multicast DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3) fixedLength = 3 class AlcatelIND1IsisSpbBridgePriority(TextualConvention, OctetString): reference = '13.26.3' description = 'The Bridge priority is the top 2 bytes of the Bridge Identifier. Lower values represent a better priority.' status = 'current' displayHint = '1x-' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(2, 2) fixedLength = 2 class AlcatelIND1IsisSpbMTID(TextualConvention, Unsigned32): reference = '3.23, 3.24' description = 'The IS-IS Multi Topology Identifier.' status = 'current' displayHint = 'd' class AlcatelIND1IsisSpbmMulticastMode(TextualConvention, Integer32): reference = 'NONE' description = 'Multicast mode for tandem-multicast.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1)) namedValues = NamedValues(("sgmode", 0), ("gmode", 1)) class AlcatelIND1IsisSpbIfOperState(TextualConvention, Integer32): description = 'The AlcatelIND1IsisSpbIfOperState data type is an enumerated integer that describes the operational state of an interface.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("unknown", 1), ("inService", 2), ("outOfService", 3), ("transition", 4)) class AlcatelSpbServiceIdentifier(TextualConvention, Unsigned32): reference = 'NONE' description = 'The service instance identifier is used at the Customer Backbone port in SPBM to distinguish a service instance. The special value of 0xFFFFFF is used for wildcard. This range also includes the default I-SID. cf. IEEE8021SpbServiceIdentifierOrAny' status = 'current' displayHint = 'd' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(255, 16777215) class AlcatelIND1IsisSpbmIsidFlags(TextualConvention, Integer32): reference = 'NONE' description = 'Flags to indicate multicast source/sink or both. cf. IEEE8021PbbIngressEgress' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("none", 0), ("tx", 1), ("rx", 2), ("both", 3)) alcatelIND1IsisSpbMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1)) alcatelIND1IsisSpbSys = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1)) alcatelIND1IsisSpbProtocolConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2)) alcatelIND1IsisSpbSysControlBvlan = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 1), VlanId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setDescription('The vlan tag applied to ISIS-SPB frames.') alcatelIND1IsisSpbSysAdminState = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setDescription('Controls the operational state of the ISIS-SPB protocol. Default value is disable(2).') alcatelIND1IsisSpbSysAreaAddress = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 3), AlcatelIND1IsisSpbAreaAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setReference('12.25.1.3.2, 12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setDescription('The three byte IS-IS Area Address to join. Normally SPB will use area 00-00-00 however if SPB is being used in conjunction with IPV4/V6 it may operate using the IS-IS area address already in use. This object is persistent. cf. ieee8021SpbSysAreaAddress') alcatelIND1IsisSpbSysId = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 4), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setReference('12.25.1.3.3, 3.21') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setDescription('SYS ID used for all SPB instances on this bridge. A six byte network wide unique identifier. cf. ieee8021SpbSysId') alcatelIND1IsisSpbSysControlAddr = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 5), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setReference('12.25.1.3.3, 8.13.5.1') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setDescription('Group MAC that the ISIS control plane will use. SPB may use a number of different addresses for SPB Hello and LSP exchange. Section 27.2, 8.13.1.5 and Table 8-13 covers the different choices. The choices are as follows: 01-80-C2-00-00-14 = All Level 1 Intermediate Systems 01-80-C2-00-00-15 = All Level 2 Intermediate Systems 09-00-2B-00-00-05 = All Intermediate Systems. 01-80-xx-xx-xx-xx = All Provider Bridge Intermediate Systems. 01-80-yy-yy-yy-yy = All Customer Bridge Intermediate Systems. This object is persistent. cf. ieee8021SpbSysControlAddr') alcatelIND1IsisSpbSysName = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setReference('12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setDescription('Name to be used to refer to this SPB bridge. This is advertised in IS-IS and used for management. cf. ieee8021SpbSysName') alcatelIND1IsisSpbSysBridgePriority = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 7), AlcatelIND1IsisSpbBridgePriority()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setReference('12.25.1.3.3, 13.26.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setDescription('This is a 16 bit quantity which ranks this SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm. Recommend values 0..15 be assigned to core switches to ensure diversity of the ECT algorithms. cf. ieee8021SpbSysBridgePriority') alcatelIND1IsisSpbmSysSPSourceId = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 8), AlcatelIND1IsisSpbmSPsourceId()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setReference('12.25.1.3.3, 3.17, 27.15') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID. This object is persistent. cf. ieee8021SpbmSysSPSourceId') alcatelIND1IsisSpbvSysMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 9), AlcatelIND1IsisSpbMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setReference('12.25.1.3.3, 3.20') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setDescription('Indication of supporting SPBV mode auto(=1)/manual(=2) auto => enable SPBV mode and auto allocate SPVIDs. manual => enable SPBV mode and manually assign SPVIDs. The default is auto. This object is persistent. cf. ieee8021SpbvSysMode') alcatelIND1IsisSpbmSysMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 10), AlcatelIND1IsisSpbMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setReference('12.25.1.3.3, 3.19') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setDescription('Indication of supporting SPBM mode auto(=1)/manual(=2) auto => enable SPBM mode and auto allocate SPsourceID. manual => enable SPBM mode and manually assign SPsourceID. The default is auto. This object is persistent. cf. ieee8021SpbmSysMode') alcatelIND1IsisSpbSysDigestConvention = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 11), AlcatelIND1IsisSpbDigestConvention()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setReference('12.25.1.3.3, 28.4.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setDescription('The Agreement Digest convention setting off(=1)/loopFreeBoth(=2)/loopFreeMcastOnly(=3) off => disable agreement digest checking in hellos loopFreeBoth => block unsafe group and individual traffic when digests disagree. loopFreeMcastOnly =>block group traffic when digests disagree. The default is loopFreeBoth. This object is persistent. cf. ieee8021SpbSysDigestConvention') alcatelIND1IsisSpbSysSetOverload = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setDescription('Administratively set the overload bit. The overload bit will continue to be set if the implementation runs out of memory, independent of this variable.') alcatelIND1IsisSpbSysOverloadTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 13), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60, 1800), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadTimeout is the amount of time, in seconds, the router operates in the overload state before attempting to reestablish normal operations. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. Operationally placing the router into the overload state is often used as a precursor to shutting down the IS-IS protocol operation. The value of 0 means the router is in overload infinitely.') alcatelIND1IsisSpbSysOverloadOnBoot = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 14), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setDescription("The value of alcatelIND1IsisSpbSysOverloadOnBoot specifies if the router should be in overload state right after the boot up process. If the alcatelIND1IsisSpbSysOverloadOnBoot is set to 'enabled' the overload timeout is maintained by alcatelIND1IsisSpbSysOverloadOnBootTimeout.") alcatelIND1IsisSpbSysOverloadOnBootTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 15), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60, 1800), ))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadOnBootTimeout is the amount of time, in seconds for which the router operates in the overload state before attempting to reestablish normal operations when the system comes up after a fresh boot. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. The value of 0 means the router is in overload infinitely.') alcatelIND1IsisSpbSysOverloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notInOverload", 1), ("dynamic", 2), ("manual", 3), ("manualOnBoot", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setDescription("Indicates whether or not this isis-spb instance is in overload state. When has the value 'notInOverload', the IS-IS level is normal state. When the value is 'dynamic', the level is in the overload state because of insufficient memeory to add additional entries to the IS-IS database for this level. When the value is 'manual', the level has been put into the overload state administratively as a result of the alcatelIND1IsisSpbSysSetOverload object having been set.") alcatelIND1IsisSpbSysLastEnabledTime = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatelIND1isisSpbSysLastSpfRun = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatelIND1IsisSpbSysNumLSPs = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setDescription('Specifies the number of LSPs in the database.') alcatelIND1IsisSpbSysLastEnabledTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 20), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatelIND1isisSpbSysLastSpfRunTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 21), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatelIND1IsisSpbProtocolSpfMaxWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfMaxWait defines the Maximum interval between two consecutive spf calculations in milliseconds.') alcatelIND1IsisSpbProtocolSpfInitialWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(10, 100000)).clone(100)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfInitialWait defines the initial SPF calculation delay (in milliseconds) after a topology change.') alcatelIND1IsisSpbProtocolSpfSecondWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfSecondWait defines the hold time between the first and second SPF calculation (in milliseconds). Subsequent SPF runs will occur at exponentially increasing intervals of spf-second-wait i.e. if spf-second-wait is 1000, then the next SPF will run after 2000 msec, the next one at 4000 msec etc until it is capped off at spf-wait value. The SPF interval will stay at spf-wait value until there are no more SPF runs scheduled in that interval. After a full interval without any SPF runs, the SPF interval will drop back to spf-initial-wait.') alcatelIND1IsisSpbProtocolLspMaxWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspWait defines the maximum interval (in milliseconds) between two consecutive ocurrences of an LSP being generated.') alcatelIND1IsisSpbProtocolLspInitialWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100000))).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the initial LSP generation delay (in milliseconds).') alcatelIND1IsisSpbProtocolLspSecondWait = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(100, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the hold time between the first and second LSP generation (in milliseconds).') alcatelIND1IsisSpbProtocolGracefulRestart = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 7), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setDescription('The value of alcatelIND1IsisSpbProtocolGracefulRestart specifies whether the graceful restart is enabled or disabled for this instance of IS-IS.') alcatelIND1IsisSpbProtocolGRHelperMode = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 8), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setDescription("The value of alcatelIND1IsisSpbProtocolGRHelperMode specifies whether the graceful restart helper mode is enabled or disabled for this instance of IS-IS. alcatelIND1IsisSpbProtocolGRHelperMode is valid only if the value of alcatelIND1IsisSpbProtocolGracefulRestart is 'true'. When alcatelIND1IsisSpbProtocolGRHelperMode has a value of 'true' graceful restart helper capabilities are enabled. When it has a value of 'false' the graceful restart helper capabilities are disabled.") alcatelIND1IsisSpbAdjStaticTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setDescription('A table containing the SPB configuration data for a neighbor. cf. ieee8021SpbAdjStaticTable') alcatelIND1IsisSpbAdjStaticTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfIndex")) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setDescription('This table can be used to display the interfaces and metrics of a neighbor bridge. ') alcatelIND1IsisSpbAdjStaticEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbAdjStaticEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 2), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setDescription('The System interface/index which defines this adjacency. A value of 0 is a wildcard for any interface on which SPB Operation is supported.') alcatelIND1IsisSpbAdjStaticEntryMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 3), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12.7') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setDescription('The alcatelIND1IsisSpb metric (incremental cost) to this peer. The contribution of this link to total path cost. Recommended values are inversely proportional to link speed. Range is (1..16777215) where 16777215 (0xFFFFFF) is infinity; infinity signifies that the adjacency is UP, but is not to be used for traffic. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryHelloInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 20000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setDescription('Maximum period, in seconds, between IIH PDUs.') alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(2, 100)).clone(10)).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setDescription('This value is multiplied by the corresponding HelloInterval 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') alcatelIND1IsisSpbAdjStaticEntryIfAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 6), AlcatelIND1IsisSpbAdjState()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setDescription('The administrative state of this interface/port. Up is the default. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbAdjStaticEntryCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setDescription('The local circuit id.') alcatelIND1IsisSpbAdjStaticEntryIfOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 9), AlcatelIND1IsisSpbIfOperState()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setDescription('The current operational state of IS-IS protocol on this interface.') alcatelIND1IsisSpbAdjStaticEntryAFDConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setDescription('Configuration is made by admin or auto-fabric on this interface') alcatelIND1IsisSpbEctStaticTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setDescription('The Equal Cost Tree (ECT) static configuration table. cf. ieee8021SpbEctStaticTable') alcatelIND1IsisSpbEctStaticTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryBaseVid")) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setDescription('The Equal Cost Tree static configuration Table defines the ECT ALGORITHM for the Base VID and if SPBV is used for the SPVID. ') alcatelIND1IsisSpbEctStaticEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setReference('12.25.4.2.2, 12.25.4.2.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbEctStaticEntryBaseVid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setReference('12.25.4.2.3, 3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setDescription('Base VID to use for this ECT-ALGORITHM. Traffic B-VID (SPBM) or Management VID (SPBV). A Base VID value of 4095 is a wildcard for any Base VID assigned to SPB operation.') alcatelIND1IsisSpbEctStaticEntryEctAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 3), AlcatelIND1IsisSpbEctAlgorithm()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setReference('12.25.4.2.3, 3.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setDescription('This identifies the tie-breaking algorithms used in Shortest Path Tree computation. Values range from 00-80-c2-01 to 00-80-c2-16 for 802.1 for each the 16 ECT behaviors. This object is persistent.') alcatelIND1IsisSpbvEctStaticEntrySpvid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 4), VlanIdOrNone()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setReference('12.25.4.2.3, 3.16') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setDescription('If SPBV mode this is the VID originating from this bridge. Must be set = 0 if SPVID Auto-allocation is required. Otherwise in SPBM this is empty, should be set = 0. This object is persistent.') alcatelIND1IsisSpbEctStaticEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setReference('12.25.4.2.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbEctStaticEntryMulticastMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 6), AlcatelIND1IsisSpbmMulticastMode().clone('sgmode')).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setDescription('This identifies the tandem multicast-mode of this bvlan. A value of 0 indicates (S,G) mode, while a value of 1 indicates (*,G) mode.') alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 7), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setDescription("Name of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 8), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setDescription("Mac address of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatelIND1IsisSpbAdjDynamicTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setDescription('The Adjacency table. cf. ieee8021SpbAdjDynamicTable cf. show ip isis adjacency') alcatelIND1IsisSpbAdjDynamicEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryIfIndex"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryPeerSysId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setDescription('This table is used to determine operational values of digests and interfaces of neighbor bridges.') alcatelIND1IsisSpbAdjDynamicEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbAdjDynamicEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 2), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setDescription('System interface/index which defines this adjacency A value of 0 is a wildcard for any interface on which SPB Operation is enabled.') alcatelIND1IsisSpbAdjDynamicEntryPeerSysId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setDescription('The SPB System Identifier of this peer. This is used to identify a neighbor uniquely.') alcatelIND1IsisSpbAdjDynamicEntryAdjState = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 4), AlcatelIND1IsisSpbAdjState()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setDescription('The state of the adjacency.') alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setDescription('The time when the adjacency last entered the up state.') alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setDescription('The remaining hold time in seconds.') alcatelIND1IsisSpbAdjDynamicEntryHoldTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setDescription('The holding time in seconds for this adjacency updated from received IIH PDUs.') alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setDescription('The extended circuit id advertised by the peer.') alcatelIND1IsisSpbAdjDynamicEntryNeighPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setDescription('Priority of the neighboring Intermediate System for becoming the Designated Intermediate System.') alcatelIND1IsisSpbAdjDynamicEntryPeerSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 10), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setDescription('IS-IS system name of peer. This is the ASCII name assigned to the bridge to aid management.') alcatelIND1IsisSpbAdjDynamicEntryRestartStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notHelping", 1), ("restarting", 2), ("restartComplete", 3), ("helping", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setDescription('The graceful restart status of the adjacency.') alcatelIND1IsisSpbAdjDynamicEntryRestartSupport = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setDescription("Indicates whether adjacency supports ISIS graceful restart. If 'true', the adjacency supports graceful restart.") alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setDescription("Indicates if the adjacency has requested this router to suppress advertisement of the adjacency in this router's LSPs. If 'true' the adjacency has requested to suppress advertisement of the LSPs.") alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 14), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setDescription('The sysUpTime value when the adjacency last entered the up state.') alcatelIND1IsisSpbNodeTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setDescription('The Node table. cf. show ip isis nodes') alcatelIND1IsisSpbNodeTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSysId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setDescription('This table can be used to display information about known bridges.') alcatelIND1IsisSpbNodeTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbNodeSysId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setDescription('SYS ID used for all SPB instances on the bridge. A six byte network wide unique identifier.') alcatelIND1IsisSpbNodeSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setDescription('Name to be used to refer to the SPB bridge. This is advertised in IS-IS and used for management.') alcatelIND1IsisSpbNodeSPSourceId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 4), AlcatelIND1IsisSpbmSPsourceId()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from the bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.') alcatelIND1IsisSpbNodeBridgePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 5), AlcatelIND1IsisSpbBridgePriority()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setDescription('This is a 16 bit quantity which ranks the SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm.') alcatelIND1IsisSpbUnicastTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setDescription('The unicast table. cf. show ip isis unicast-table') alcatelIND1IsisSpbUnicastTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setDescription('This table can be used to display information about unicast targets.') alcatelIND1IsisSpbUnicastTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbUnicastBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setDescription('The bvlan associated with the unicast target.') alcatelIND1IsisSpbUnicastSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setDescription('The mac address of the bridge associated with the unicast target.') alcatelIND1IsisSpbUnicastSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 4), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setDescription('Name of the bridge associated with the unicast target.') alcatelIND1IsisSpbUnicastOutboundIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setDescription('Outbound interface used to reach the unicast target.') alcatelIND1IsisSpbMulticastTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setDescription('The multicast table. cf. show ip isis multicast-table') alcatelIND1IsisSpbMulticastTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryMulticastMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setDescription('This table can be used to display the multicast table for SPB ') alcatelIND1IsisSpbMulticastTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setDescription('Bvlan of the multicast entry.') alcatelIND1IsisSpbMulticastTableEntryMulticastMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 3), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setDescription('Multicast destination MAC of the multicast entry.') alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 4), InterfaceIndexOrZero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setDescription('Outbound interface index of the multicast entry, zero means local node is multicast receiver') alcatelIND1IsisSpbMulticastTableEntrySrcMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 5), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setDescription('System MAC of the multicast source, all zero means any MAC.') alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 6), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setDescription('Inbound interface index of the multicast source, zero means local node is multicast source') alcatelIND1IsisSpbMulticastTableEntrySysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 7), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setDescription('System name of multicast source') alcatelIND1IsisSpbMulticastTableEntryIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 8), AlcatelSpbServiceIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setDescription('The service identifier, e.g. isid number of the multicast entry.') alcatelIND1IsisSpbLSPTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setDescription('The LSP table (database). cf. show ip isis database') alcatelIND1IsisSpbLSPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPId")) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setDescription('Each row entry in the alcatelIND1IsisSpbLSPTable represents an LSP in the LSP database.') alcatelIND1IsisSpbLSPTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbLSPId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 2), OctetString()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setDescription('The LSP Id. The format is 6 octets of ajacency system-id followed by 1 octet LanId and 1 octet LSP Number.') alcatelIND1IsisSpbLSPSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setDescription('The sequence number of an LSP. The sequence number is a four byte quantity that represents the version of an LSP. The higher the sequence number, the more up to date the information. The sequence number is always incremented by the system that originated the LSP and ensures that there is only one version of that LSP in the entire network.') alcatelIND1IsisSpbLSPChecksum = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setDescription('The checksum of contents of LSP from the SourceID field in the LSP till the end. The checksum is computed using the Fletcher checksum algorithm. ') alcatelIND1IsisSpbLSPLifetimeRemain = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setDescription('Remaining lifetime of this LSP. This is a decrementing counter that decrements in seconds. When the remaining lifetime becomes zero, the contents of the LSP should not be considered for SPF calculation.') alcatelIND1IsisSpbLSPVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setDescription('The version of the ISIS protocol that generated the LSP.') alcatelIND1IsisSpbLSPPktType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setDescription('Packet type for instance Hello PDUs, LSPs, CSNPs or PSNPs.') alcatelIND1IsisSpbLSPPktVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setDescription('The version of the ISIS protocol that generated the Packet.') alcatelIND1IsisSpbLSPMaxArea = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setDescription('Maximum number of areas supported by the originator of the LSP. A value of 0 indicates a default of 3 areas.') alcatelIND1IsisSpbLSPSysIdLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setDescription('The length of the system-id as used by the originator.') alcatelIND1IsisSpbLSPAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setDescription('Attributes associated with the LSP. These include the attached bit, overload bit, IS type of the system originating the LSP and the partition repair capability. The attached bit and the overload bit are of significance only when present in the LSP numbered zero and should be ignored on receipt in any other LSP.') alcatelIND1IsisSpbLSPUsedLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setDescription('The used length for the LSP. For an LSP that is not self originated, the used length is always equal to alloc len. For self originated LSPs, the used length is less than or equal to the alloc len.') alcatelIND1IsisSpbLSPAllocLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setDescription('The length allocated for the LSP to be stored.') alcatelIND1IsisSpbLSPBuff = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 14), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setDescription('The LSP as it exists in the LSP database.') alcatelIND1IsisSpbMulticastSourceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setDescription('The multicast source table. cf. show ip isis multicast-sources') alcatelIND1IsisSpbMulticastSourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSysMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceBvlan")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setDescription('This table can be used to display information about multicast sources.') alcatelIND1IsisSpbMulticastSourceTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastSourceSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setDescription('The mac address of the bridge associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 3), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setDescription('The bvlan associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 4), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setDescription('Name of the bridge associated with the multicast source.') alcatelIND1IsisSpbMulticastSourceReachable = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setDescription('True if we have a path to the multicast source.') alcatelIND1IsisSpbSpfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setDescription('The spf table. cf. show spb isis spf') alcatelIND1IsisSpbSpfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setDescription('This table can be used to display reachability information about known bridges, calculated by the Spf algorithm.') alcatelIND1IsisSpbSpfBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 1), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setDescription('The vlan to which this entry belongs.') alcatelIND1IsisSpbSpfSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setDescription('The mac-address of the bridge identified by this entry.') alcatelIND1IsisSpbSpfSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setDescription('Name of the bridge identified by this entry.') alcatelIND1IsisSpbSpfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setDescription('The outgoing interface index for reaching the bridge identified by this entry.') alcatelIND1IsisSpbSpfNextHopSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 5), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setDescription('The mac-address of the next-hop for reaching the bridge identified by this entry') alcatelIND1IsisSpbSpfNextHopSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setDescription('Name of the next-hop bridge for reaching the bridge identified by this entry') alcatelIND1IsisSpbSpfMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 7), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setDescription('The metric/incremental cost to reach the bridge identified by this entry.') alcatelIND1IsisSpbSpfHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setDescription('The number of hops needed to reach the bridge identified by this entry.') alcatelIND1IsisSpbMulticastSourceSpfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setDescription('The multicast source spf table. cf. show ip isis multicast-sources-spf') alcatelIND1IsisSpbMulticastSourceSpfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setDescription('This table can be used to display the spf table of multicast sources in a SPB network. ') alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setDescription('The mac address of the multicast source.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 3), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setDescription('The bvlan of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 4), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setDescription('The destination mac address of the multicast source spf entry') alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setDescription('The outbound ifindex of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 6), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setDescription('The next hop system name of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 7), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setDescription('The next hop system mac of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 8), AlcatelIND1IsisSpbLinkMetric()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setDescription('The path metric of the multicast source spf entry.') alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setDescription('The hop count of the multicast source spf entry.') alcatelIND1IsisSpbIngressMacFilterTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setDescription('The ingress mac filter table. cf. show ip isis ingress-mac-filter') alcatelIND1IsisSpbIngressMacFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacSysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setDescription('The ingress mac filter table. cf. show spb isis ingress-mac-filter') alcatelIND1IsisSpbIngressMacBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 1), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setDescription('The vlan to which this entry belongs.') alcatelIND1IsisSpbIngressMacSysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 2), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setDescription('The mac-address that identifies this entry.') alcatelIND1IsisSpbIngressMacSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 3), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setDescription('The name of the bridge identified by this entry.') alcatelIND1IsisSpbIngressMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setDescription('The ifindex of this entry.') alcatelIND1IsisSpbServiceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14), ) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setDescription('The services table. cf. show spb isis services') alcatelIND1IsisSpbServiceTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryBvlan"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntrySysMac")) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setDescription('This table can be used to display the local configured and dynamically learned services. ') alcatelIND1IsisSpbServiceTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1IsisSpbServiceTableEntryBvlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 2), VlanId()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setDescription('Bvlan of the service.') alcatelIND1IsisSpbServiceTableEntryIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 3), AlcatelSpbServiceIdentifier()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setDescription('The service identifier, e.g. isid number') alcatelIND1IsisSpbServiceTableEntrySysMac = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 4), MacAddress()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setDescription('System MAC of the SPB node on which the service is configured') alcatelIND1IsisSpbServiceTableEntrySysName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 5), AlcatelIND1IsisSpbSystemName()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setDescription('System name of SPB node on which the service is configured') alcatelIND1IsisSpbServiceTableEntryIsidFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 6), AlcatelIND1IsisSpbmIsidFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setDescription('Service flags e.g. source or sink of multicast traffic') alcatelIND1SpbIPVPNBindTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setDescription('The table binds vrf, ISID and IP gateway together to enable route exchange between GRM and SPB-ISIS. The exchange is bidirectional. route-map only applies to VRF routes imported to ISIS from GRM. There is no filter from ISIS to GRM. cf. show spb ipvpn bind') alcatelIND1SpbIPVPNBindTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindVrfName"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindGateway")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNBindTable') alcatelIND1SpbIPVPNBindTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNBindVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setDescription('The VRF for which routes are being imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setDescription('The ISID to set for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 4), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setDescription('The IP gateway to set for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindImportRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setDescription('The route-map name (or empty-string for all-routes) for routes imported from GRM to ISIS-SPB.') alcatelIND1SpbIPVPNBindRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1SpbIPVPNRouteTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setDescription('The IP-VPN table of routes. cf. show spb ipvpn route-table') alcatelIND1SpbIPVPNRouteTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRoutePrefix"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRoutePrefixLen"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteGateway")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRouteTable') alcatelIND1SpbIPVPNRouteTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRouteIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 2), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setDescription('The ISID of the IP-VPN route') alcatelIND1SpbIPVPNRoutePrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 3), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setDescription('The destination prefix of the IP-VPN route') alcatelIND1SpbIPVPNRoutePrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 4), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setDescription('The prefix length of the IP-VPN route') alcatelIND1SpbIPVPNRouteGateway = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 5), IpAddress()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setDescription('The next-hop/gateway of the IP-VPN route') alcatelIND1SpbIPVPNRouteNodeName = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setDescription('The BEB name of the node that advertised the IP-VPN route') alcatelIND1SpbIPVPNRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setDescription('The route-metric of the IP-VPN route') alcatelIND1SpbIPVPNRedistVrfTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is a VRF. cf. show spb ipvpn redist') alcatelIND1SpbIPVPNRedistVrfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfSourceVrf"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfDestIsid")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistVrfTable') alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRedistVrfSourceVrf = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setDescription('The source VRF from which routes are being redistributed.') alcatelIND1SpbIPVPNRedistVrfDestIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatelIND1SpbIPVPNRedistVrfRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatelIND1SpbIPVPNRedistVrfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1SpbIPVPNRedistIsidTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18), ) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is an ISID. cf. show spb ipvpn redist') alcatelIND1SpbIPVPNRedistIsidTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1), ).setIndexNames((0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidSourceIsid"), (0, "ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidDestIsid")) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistIsidTable') alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 1), AlcatelIND1IsisSpbMTID()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatelIND1SpbIPVPNRedistIsidSourceIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 2), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setDescription('The source ISID from which routes are being redistributed.') alcatelIND1SpbIPVPNRedistIsidDestIsid = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 3), Unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatelIND1SpbIPVPNRedistIsidRouteMap = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatelIND1SpbIPVPNRedistIsidRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatelIND1IsisSpbConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2)) alcatelIND1IsisSpbGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1)) alcatelIND1IsisSpbCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2)) alcatelIND1IsisSpbSysGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 1)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysControlBvlan"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysAdminState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysNumLSPs"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1isisSpbSysLastSpfRun"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysLastEnabledTime"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadOnBootTimeout"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadOnBoot"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysOverloadTimeout"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysSetOverload"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1isisSpbSysLastSpfRunTimeStamp"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysLastEnabledTimeStamp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSysGroupSPBM = alcatelIND1IsisSpbSysGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbSys') alcatelIND1IsisSpbProtocolConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 2)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfMaxWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfInitialWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolSpfSecondWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspMaxWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspInitialWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolLspSecondWait"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolGracefulRestart"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolGRHelperMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbProtocolConfigGroupSPBM = alcatelIND1IsisSpbProtocolConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolConfigGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbProtocol') alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 3)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryHelloInterval"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfAdminState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryRowStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryEctAlgorithm"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRowStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbvEctStaticEntrySpvid")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM = alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setDescription('The collection of objects used to represent Isis Spb Adjacent Static information') alcatelIND1IsisSpbSysConfigGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 4)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysAreaAddress"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysBridgePriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysControlAddr"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysDigestConvention"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbmSysMode"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbmSysSPSourceId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbvSysMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSysConfigGroupSPBM = alcatelIND1IsisSpbSysConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysConfigGroupSPBM.setDescription('The collection of objects to represent Isis Spb System information') alcatelIND1IsisSpbAdjGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 5)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryHoldTimer"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryNeighPriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryPeerSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartStatus"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartSupport"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryCircuitId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryIfOperState"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryMulticastMode"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjStaticEntryAFDConfig"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbAdjGroupSPBM = alcatelIND1IsisSpbAdjGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjGroupSPBM.setDescription('The collection of objects to represent Isis Spb Adjacent Group SPBM information') alcatelIND1IsisSpbIngressMacGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 6)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacIfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbIngressMacGroupSPBM = alcatelIND1IsisSpbIngressMacGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacGroupSPBM.setDescription('The collection of objects to represent Isis Spb Ingress Mac Group') alcatelIND1IsisSpbLSPGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 7)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPAllocLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPAttributes"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPBuff"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPChecksum"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPLifetimeRemain"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPMaxArea"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPPktType"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPPktVersion"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPSeq"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPSysIdLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPUsedLen"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPVersion")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbLSPGroupSPBM = alcatelIND1IsisSpbLSPGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPGroupSPBM.setDescription('The collection of objects to represent Isis Spb LSP Group SPBM information') alcatelIND1IsisSpbMulticastSourceGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 8)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceReachable"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbMulticastSourceGroupSPBM = alcatelIND1IsisSpbMulticastSourceGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Source Group SPBM information') alcatelIND1IsisSpbMulticastTableEntryGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 9)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryIsid"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntrySysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntrySrcMac")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbMulticastTableEntryGroupSPBM = alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Group SPBM information') alcatelIND1IsisSpbServiceTableEntryGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 10)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryIsidFlags"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntrySysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbServiceTableEntryGroupSPBM = alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Service Group SPBM information') alcatelIND1IsisSpbSpfGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 11)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfHopCount"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfMetric"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfNextHopSysName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfNextHopSysMac"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbSpfGroupSPBM = alcatelIND1IsisSpbSpfGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfGroupSPBM.setDescription('The collection of objects to represent Isis Spb Spf Group SPBM information') alcatelIND1IsisSpbUnicastGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 12)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastOutboundIfIndex"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbUnicastGroupSPBM = alcatelIND1IsisSpbUnicastGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastGroupSPBM.setDescription('The collection of objects to represent Isis Spb Unicast Group SPBM information') alcatelIND1IsisSpbNodeGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 13)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeBridgePriority"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSPSourceId"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeSysName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbNodeGroupSPBM = alcatelIND1IsisSpbNodeGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeGroupSPBM.setDescription('The collection of objects to represent Isis Spb Node Group SPBM information') alcatelIND1IsisSpbVPNBindTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 14)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindImportRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNBindRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNBindTableGroupSPBM = alcatelIND1IsisSpbVPNBindTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNBindTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Bind Table Group SPBM information') alcatelIND1IsisSpbVPNRouteTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 15)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteNodeName"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRouteMetric")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRouteTableGroupSPBM = alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Route Table Group SPBM information') alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 16)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistVrfRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM = alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Vrf Table Group SPBM information') alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 17)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidRouteMap"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1SpbIPVPNRedistIsidRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM = alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Isid Table Group SPBM information') alcatelIND1IsisSpbComplianceSPBM = ModuleCompliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2, 1)).setObjects(("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSysGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbAdjGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbIngressMacGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbLSPGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbProtocolConfigGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastSourceGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbMulticastTableEntryGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbServiceTableEntryGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbSpfGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbUnicastGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbNodeGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNBindTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRouteTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM"), ("ALCATEL-IND1-ISIS-SPB-MIB", "alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatelIND1IsisSpbComplianceSPBM = alcatelIND1IsisSpbComplianceSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbComplianceSPBM.setDescription('Compliance to Alcatel IND1 ISIS SPBM mode') mibBuilder.exportSymbols("ALCATEL-IND1-ISIS-SPB-MIB", alcatelIND1IsisSpbvSysMode=alcatelIND1IsisSpbvSysMode, alcatelIND1IsisSpbSysAdminState=alcatelIND1IsisSpbSysAdminState, alcatelIND1IsisSpbSpfNextHopSysName=alcatelIND1IsisSpbSpfNextHopSysName, alcatelIND1IsisSpbNodeGroupSPBM=alcatelIND1IsisSpbNodeGroupSPBM, alcatelIND1SpbIPVPNRedistVrfTableEntry=alcatelIND1SpbIPVPNRedistVrfTableEntry, alcatelIND1IsisSpbMulticastSourceSysMac=alcatelIND1IsisSpbMulticastSourceSysMac, alcatelIND1IsisSpbMib=alcatelIND1IsisSpbMib, alcatelIND1IsisSpbLSPTable=alcatelIND1IsisSpbLSPTable, alcatelIND1IsisSpbIngressMacSysName=alcatelIND1IsisSpbIngressMacSysName, alcatelIND1SpbIPVPNRedistVrfDestIsid=alcatelIND1SpbIPVPNRedistVrfDestIsid, alcatelIND1SpbIPVPNRedistIsidDestIsid=alcatelIND1SpbIPVPNRedistIsidDestIsid, alcatelIND1IsisSpbProtocolSpfInitialWait=alcatelIND1IsisSpbProtocolSpfInitialWait, alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier=alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp, alcatelIND1IsisSpbLSPAttributes=alcatelIND1IsisSpbLSPAttributes, alcatelIND1IsisSpbVPNBindTableGroupSPBM=alcatelIND1IsisSpbVPNBindTableGroupSPBM, alcatelIND1IsisSpbAdjStaticTableEntry=alcatelIND1IsisSpbAdjStaticTableEntry, alcatelIND1SpbIPVPNBindImportRouteMap=alcatelIND1SpbIPVPNBindImportRouteMap, alcatelIND1SpbIPVPNRedistIsidSourceIsid=alcatelIND1SpbIPVPNRedistIsidSourceIsid, alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM=alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM, alcatelIND1IsisSpbSysId=alcatelIND1IsisSpbSysId, alcatelIND1IsisSpbAdjDynamicEntryPeerSysName=alcatelIND1IsisSpbAdjDynamicEntryPeerSysName, alcatelIND1IsisSpbProtocolLspMaxWait=alcatelIND1IsisSpbProtocolLspMaxWait, alcatelIND1IsisSpbLSPEntry=alcatelIND1IsisSpbLSPEntry, alcatelIND1IsisSpbLSPPktType=alcatelIND1IsisSpbLSPPktType, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName, alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx=alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx, alcatelIND1IsisSpbEctStaticEntryEctAlgorithm=alcatelIND1IsisSpbEctStaticEntryEctAlgorithm, alcatelIND1IsisSpbIngressMacBvlan=alcatelIND1IsisSpbIngressMacBvlan, alcatelIND1SpbIPVPNRedistIsidTable=alcatelIND1SpbIPVPNRedistIsidTable, alcatelIND1IsisSpbAdjStaticTable=alcatelIND1IsisSpbAdjStaticTable, alcatelIND1IsisSpbMulticastSourceGroupSPBM=alcatelIND1IsisSpbMulticastSourceGroupSPBM, alcatelIND1IsisSpbMulticastTableEntrySysName=alcatelIND1IsisSpbMulticastTableEntrySysName, alcatelIND1IsisSpbMulticastTableEntryGroupSPBM=alcatelIND1IsisSpbMulticastTableEntryGroupSPBM, alcatelIND1IsisSpbProtocolLspSecondWait=alcatelIND1IsisSpbProtocolLspSecondWait, alcatelIND1SpbIPVPNRouteNodeName=alcatelIND1SpbIPVPNRouteNodeName, alcatelIND1IsisSpbSysNumLSPs=alcatelIND1IsisSpbSysNumLSPs, alcatelIND1IsisSpbServiceTableEntryTopIx=alcatelIND1IsisSpbServiceTableEntryTopIx, alcatelIND1IsisSpbUnicastBvlan=alcatelIND1IsisSpbUnicastBvlan, alcatelIND1IsisSpbConformance=alcatelIND1IsisSpbConformance, alcatelIND1IsisSpbLSPGroupSPBM=alcatelIND1IsisSpbLSPGroupSPBM, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac, AlcatelIND1IsisSpbBridgePriority=AlcatelIND1IsisSpbBridgePriority, alcatelIND1IsisSpbSysSetOverload=alcatelIND1IsisSpbSysSetOverload, alcatelIND1IsisSpbUnicastSysName=alcatelIND1IsisSpbUnicastSysName, alcatelIND1IsisSpbmSysMode=alcatelIND1IsisSpbmSysMode, alcatelIND1IsisSpbServiceTableEntryGroupSPBM=alcatelIND1IsisSpbServiceTableEntryGroupSPBM, alcatelIND1IsisSpbNodeSysName=alcatelIND1IsisSpbNodeSysName, alcatelIND1IsisSpbAdjDynamicEntryHoldTimer=alcatelIND1IsisSpbAdjDynamicEntryHoldTimer, alcatelIND1IsisSpbMulticastTableEntryBvlan=alcatelIND1IsisSpbMulticastTableEntryBvlan, alcatelIND1IsisSpbSysControlAddr=alcatelIND1IsisSpbSysControlAddr, alcatelIND1IsisSpbAdjDynamicEntryNeighPriority=alcatelIND1IsisSpbAdjDynamicEntryNeighPriority, AlcatelIND1IsisSpbLinkMetric=AlcatelIND1IsisSpbLinkMetric, alcatelIND1IsisSpbSysName=alcatelIND1IsisSpbSysName, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac, alcatelIND1IsisSpbEctStaticEntryMulticastMode=alcatelIND1IsisSpbEctStaticEntryMulticastMode, alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx=alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx, alcatelIND1IsisSpbLSPBuff=alcatelIND1IsisSpbLSPBuff, alcatelIND1IsisSpbSysOverloadOnBoot=alcatelIND1IsisSpbSysOverloadOnBoot, alcatelIND1SpbIPVPNRoutePrefixLen=alcatelIND1SpbIPVPNRoutePrefixLen, alcatelIND1IsisSpbAdjDynamicEntry=alcatelIND1IsisSpbAdjDynamicEntry, alcatelIND1IsisSpbMibObjects=alcatelIND1IsisSpbMibObjects, alcatelIND1SpbIPVPNRouteGateway=alcatelIND1SpbIPVPNRouteGateway, alcatelIND1IsisSpbAdjDynamicEntryRestartStatus=alcatelIND1IsisSpbAdjDynamicEntryRestartStatus, AlcatelIND1IsisSpbMTID=AlcatelIND1IsisSpbMTID, alcatelIND1IsisSpbIngressMacSysMac=alcatelIND1IsisSpbIngressMacSysMac, alcatelIND1IsisSpbAdjDynamicEntryAdjState=alcatelIND1IsisSpbAdjDynamicEntryAdjState, alcatelIND1IsisSpbIngressMacFilterEntry=alcatelIND1IsisSpbIngressMacFilterEntry, alcatelIND1IsisSpbLSPVersion=alcatelIND1IsisSpbLSPVersion, alcatelIND1IsisSpbLSPPktVersion=alcatelIND1IsisSpbLSPPktVersion, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime, alcatelIND1IsisSpbAdjDynamicEntryTopIx=alcatelIND1IsisSpbAdjDynamicEntryTopIx, AlcatelIND1IsisSpbMode=AlcatelIND1IsisSpbMode, alcatelIND1SpbIPVPNBindVrfName=alcatelIND1SpbIPVPNBindVrfName, AlcatelSpbServiceIdentifier=AlcatelSpbServiceIdentifier, AlcatelIND1IsisSpbIfOperState=AlcatelIND1IsisSpbIfOperState, alcatelIND1IsisSpbNodeSysId=alcatelIND1IsisSpbNodeSysId, alcatelIND1IsisSpbMulticastTableEntry=alcatelIND1IsisSpbMulticastTableEntry, alcatelIND1IsisSpbSpfSysMac=alcatelIND1IsisSpbSpfSysMac, alcatelIND1IsisSpbSysBridgePriority=alcatelIND1IsisSpbSysBridgePriority, alcatelIND1IsisSpbSys=alcatelIND1IsisSpbSys, alcatelIND1IsisSpbAdjStaticEntryMetric=alcatelIND1IsisSpbAdjStaticEntryMetric, alcatelIND1IsisSpbSpfTable=alcatelIND1IsisSpbSpfTable, alcatelIND1SpbIPVPNBindTable=alcatelIND1SpbIPVPNBindTable, alcatelIND1IsisSpbProtocolSpfSecondWait=alcatelIND1IsisSpbProtocolSpfSecondWait, alcatelIND1IsisSpbComplianceSPBM=alcatelIND1IsisSpbComplianceSPBM, AlcatelIND1IsisSpbDigestConvention=AlcatelIND1IsisSpbDigestConvention, alcatelIND1isisSpbSysLastSpfRun=alcatelIND1isisSpbSysLastSpfRun, alcatelIND1IsisSpbEctStaticEntryRowStatus=alcatelIND1IsisSpbEctStaticEntryRowStatus, alcatelIND1SpbIPVPNRedistIsidRowStatus=alcatelIND1SpbIPVPNRedistIsidRowStatus, alcatelIND1IsisSpbAdjDynamicEntryPeerSysId=alcatelIND1IsisSpbAdjDynamicEntryPeerSysId, alcatelIND1IsisSpbGroups=alcatelIND1IsisSpbGroups, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan, alcatelIND1SpbIPVPNRedistVrfTable=alcatelIND1SpbIPVPNRedistVrfTable, alcatelIND1IsisSpbMulticastSourceTopIx=alcatelIND1IsisSpbMulticastSourceTopIx, alcatelIND1IsisSpbProtocolGracefulRestart=alcatelIND1IsisSpbProtocolGracefulRestart, alcatelIND1IsisSpbUnicastTopIx=alcatelIND1IsisSpbUnicastTopIx, alcatelIND1IsisSpbEctStaticTable=alcatelIND1IsisSpbEctStaticTable, alcatelIND1isisSpbSysLastSpfRunTimeStamp=alcatelIND1isisSpbSysLastSpfRunTimeStamp, alcatelIND1IsisSpbAdjDynamicEntryRestartSupport=alcatelIND1IsisSpbAdjDynamicEntryRestartSupport, AlcatelIND1IsisSpbSystemName=AlcatelIND1IsisSpbSystemName, alcatelIND1SpbIPVPNRouteTable=alcatelIND1SpbIPVPNRouteTable, alcatelIND1IsisSpbSysLastEnabledTime=alcatelIND1IsisSpbSysLastEnabledTime, alcatelIND1IsisSpbProtocolGRHelperMode=alcatelIND1IsisSpbProtocolGRHelperMode, alcatelIND1SpbIPVPNRouteMetric=alcatelIND1SpbIPVPNRouteMetric, alcatelIND1IsisSpbSysGroupSPBM=alcatelIND1IsisSpbSysGroupSPBM, alcatelIND1IsisSpbAdjStaticEntryAFDConfig=alcatelIND1IsisSpbAdjStaticEntryAFDConfig, alcatelIND1IsisSpbSysConfigGroupSPBM=alcatelIND1IsisSpbSysConfigGroupSPBM, AlcatelIND1IsisSpbmIsidFlags=AlcatelIND1IsisSpbmIsidFlags, alcatelIND1IsisSpbMulticastSourceTable=alcatelIND1IsisSpbMulticastSourceTable, alcatelIND1IsisSpbNodeBridgePriority=alcatelIND1IsisSpbNodeBridgePriority, alcatelIND1IsisSpbLSPTopIx=alcatelIND1IsisSpbLSPTopIx, alcatelIND1IsisSpbProtocolConfigGroupSPBM=alcatelIND1IsisSpbProtocolConfigGroupSPBM, alcatelIND1IsisSpbLSPMaxArea=alcatelIND1IsisSpbLSPMaxArea, alcatelIND1IsisSpbSysOverloadStatus=alcatelIND1IsisSpbSysOverloadStatus, alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining=alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining, AlcatelIND1IsisSpbmSPsourceId=AlcatelIND1IsisSpbmSPsourceId, alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex=alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex, alcatelIND1IsisSpbSysAreaAddress=alcatelIND1IsisSpbSysAreaAddress, alcatelIND1IsisSpbUnicastTable=alcatelIND1IsisSpbUnicastTable, alcatelIND1IsisSpbLSPId=alcatelIND1IsisSpbLSPId, alcatelIND1IsisSpbMulticastSourceSysName=alcatelIND1IsisSpbMulticastSourceSysName, alcatelIND1IsisSpbServiceTableEntrySysName=alcatelIND1IsisSpbServiceTableEntrySysName, alcatelIND1IsisSpbProtocolConfig=alcatelIND1IsisSpbProtocolConfig, alcatelIND1SpbIPVPNRedistVrfRowStatus=alcatelIND1SpbIPVPNRedistVrfRowStatus, alcatelIND1IsisSpbLSPSeq=alcatelIND1IsisSpbLSPSeq, alcatelIND1IsisSpbNodeTopIx=alcatelIND1IsisSpbNodeTopIx, alcatelIND1IsisSpbServiceTableEntryIsid=alcatelIND1IsisSpbServiceTableEntryIsid, alcatelIND1SpbIPVPNRedistVrfRouteMap=alcatelIND1SpbIPVPNRedistVrfRouteMap, alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed=alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed, alcatelIND1IsisSpbLSPChecksum=alcatelIND1IsisSpbLSPChecksum, alcatelIND1IsisSpbAdjStaticEntryRowStatus=alcatelIND1IsisSpbAdjStaticEntryRowStatus, alcatelIND1IsisSpbSpfMetric=alcatelIND1IsisSpbSpfMetric, alcatelIND1IsisSpbMulticastSourceSpfTableEntry=alcatelIND1IsisSpbMulticastSourceSpfTableEntry, alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId=alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId, alcatelIND1IsisSpbAdjStaticEntryTopIx=alcatelIND1IsisSpbAdjStaticEntryTopIx, alcatelIND1IsisSpbSpfBvlan=alcatelIND1IsisSpbSpfBvlan, alcatelIND1IsisSpbSpfTableEntry=alcatelIND1IsisSpbSpfTableEntry, alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx=alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx, alcatelIND1IsisSpbServiceTableEntryBvlan=alcatelIND1IsisSpbServiceTableEntryBvlan, AlcatelIND1IsisSpbEctAlgorithm=AlcatelIND1IsisSpbEctAlgorithm, alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric=alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric, alcatelIND1IsisSpbAdjStaticEntryIfAdminState=alcatelIND1IsisSpbAdjStaticEntryIfAdminState, alcatelIND1IsisSpbLSPAllocLen=alcatelIND1IsisSpbLSPAllocLen, alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound, alcatelIND1IsisSpbMulticastSourceSpfTable=alcatelIND1IsisSpbMulticastSourceSpfTable, alcatelIND1IsisSpbIngressMacIfIndex=alcatelIND1IsisSpbIngressMacIfIndex, alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac, alcatelIND1IsisSpbServiceTableEntryIsidFlags=alcatelIND1IsisSpbServiceTableEntryIsidFlags, alcatelIND1SpbIPVPNBindTableEntryTopIx=alcatelIND1SpbIPVPNBindTableEntryTopIx, alcatelIND1SpbIPVPNBindRowStatus=alcatelIND1SpbIPVPNBindRowStatus, alcatelIND1SpbIPVPNRoutePrefix=alcatelIND1SpbIPVPNRoutePrefix, alcatelIND1IsisSpbVPNRouteTableGroupSPBM=alcatelIND1IsisSpbVPNRouteTableGroupSPBM, alcatelIND1IsisSpbvEctStaticEntrySpvid=alcatelIND1IsisSpbvEctStaticEntrySpvid, alcatelIND1IsisSpbAdjStaticEntryHelloInterval=alcatelIND1IsisSpbAdjStaticEntryHelloInterval, alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount=alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount, alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM=alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM, alcatelIND1IsisSpbSysOverloadOnBootTimeout=alcatelIND1IsisSpbSysOverloadOnBootTimeout, alcatelIND1IsisSpbSpfHopCount=alcatelIND1IsisSpbSpfHopCount, alcatelIND1IsisSpbSysLastEnabledTimeStamp=alcatelIND1IsisSpbSysLastEnabledTimeStamp, alcatelIND1SpbIPVPNRouteIsid=alcatelIND1SpbIPVPNRouteIsid, alcatelIND1IsisSpbIngressMacGroupSPBM=alcatelIND1IsisSpbIngressMacGroupSPBM, alcatelIND1IsisSpbServiceTableEntry=alcatelIND1IsisSpbServiceTableEntry, alcatelIND1SpbIPVPNRouteTableEntry=alcatelIND1SpbIPVPNRouteTableEntry, alcatelIND1IsisSpbUnicastTableEntry=alcatelIND1IsisSpbUnicastTableEntry, alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound, alcatelIND1IsisSpbAdjDynamicEntryIfIndex=alcatelIND1IsisSpbAdjDynamicEntryIfIndex, alcatelIND1IsisSpbSpfGroupSPBM=alcatelIND1IsisSpbSpfGroupSPBM, alcatelIND1IsisSpbIngressMacFilterTable=alcatelIND1IsisSpbIngressMacFilterTable, alcatelIND1IsisSpbSpfNextHopSysMac=alcatelIND1IsisSpbSpfNextHopSysMac, alcatelIND1SpbIPVPNRedistIsidRouteMap=alcatelIND1SpbIPVPNRedistIsidRouteMap, alcatelIND1IsisSpbMulticastTableEntryMulticastMac=alcatelIND1IsisSpbMulticastTableEntryMulticastMac, alcatelIND1IsisSpbMulticastSourceReachable=alcatelIND1IsisSpbMulticastSourceReachable, alcatelIND1SpbIPVPNRedistIsidTableEntry=alcatelIND1SpbIPVPNRedistIsidTableEntry, alcatelIND1IsisSpbUnicastOutboundIfIndex=alcatelIND1IsisSpbUnicastOutboundIfIndex, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName, alcatelIND1IsisSpbMulticastSourceEntry=alcatelIND1IsisSpbMulticastSourceEntry, alcatelIND1IsisSpbLSPLifetimeRemain=alcatelIND1IsisSpbLSPLifetimeRemain, alcatelIND1IsisSpbUnicastGroupSPBM=alcatelIND1IsisSpbUnicastGroupSPBM, alcatelIND1IsisSpbServiceTableEntrySysMac=alcatelIND1IsisSpbServiceTableEntrySysMac, alcatelIND1IsisSpbmSysSPSourceId=alcatelIND1IsisSpbmSysSPSourceId, alcatelIND1SpbIPVPNRedistVrfSourceVrf=alcatelIND1SpbIPVPNRedistVrfSourceVrf, alcatelIND1IsisSpbMulticastTableEntryIsid=alcatelIND1IsisSpbMulticastTableEntryIsid, alcatelIND1IsisSpbEctStaticEntryBaseVid=alcatelIND1IsisSpbEctStaticEntryBaseVid, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac, alcatelIND1IsisSpbSysOverloadTimeout=alcatelIND1IsisSpbSysOverloadTimeout, alcatelIND1IsisSpbNodeTable=alcatelIND1IsisSpbNodeTable, alcatelIND1SpbIPVPNBindTableEntry=alcatelIND1SpbIPVPNBindTableEntry, alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM=alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM, alcatelIND1IsisSpbEctStaticEntryTopIx=alcatelIND1IsisSpbEctStaticEntryTopIx, alcatelIND1IsisSpbSpfIfIndex=alcatelIND1IsisSpbSpfIfIndex, alcatelIND1IsisSpbMulticastTable=alcatelIND1IsisSpbMulticastTable, alcatelIND1IsisSpbAdjStaticEntryCircuitId=alcatelIND1IsisSpbAdjStaticEntryCircuitId, alcatelIND1IsisSpbMulticastSourceBvlan=alcatelIND1IsisSpbMulticastSourceBvlan, PYSNMP_MODULE_ID=alcatelIND1IsisSpbMib, AlcatelIND1IsisSpbAdjState=AlcatelIND1IsisSpbAdjState, alcatelIND1IsisSpbAdjStaticEntryIfOperState=alcatelIND1IsisSpbAdjStaticEntryIfOperState, alcatelIND1IsisSpbLSPSysIdLen=alcatelIND1IsisSpbLSPSysIdLen, alcatelIND1IsisSpbAdjGroupSPBM=alcatelIND1IsisSpbAdjGroupSPBM, alcatelIND1IsisSpbCompliances=alcatelIND1IsisSpbCompliances, alcatelIND1IsisSpbSysDigestConvention=alcatelIND1IsisSpbSysDigestConvention, AlcatelIND1IsisSpbmMulticastMode=AlcatelIND1IsisSpbmMulticastMode, alcatelIND1IsisSpbSysControlBvlan=alcatelIND1IsisSpbSysControlBvlan, alcatelIND1SpbIPVPNRouteTableEntryTopIx=alcatelIND1SpbIPVPNRouteTableEntryTopIx, alcatelIND1IsisSpbProtocolSpfMaxWait=alcatelIND1IsisSpbProtocolSpfMaxWait, alcatelIND1IsisSpbEctStaticTableEntry=alcatelIND1IsisSpbEctStaticTableEntry, alcatelIND1IsisSpbNodeTableEntry=alcatelIND1IsisSpbNodeTableEntry, alcatelIND1IsisSpbUnicastSysMac=alcatelIND1IsisSpbUnicastSysMac, alcatelIND1IsisSpbAdjStaticEntryIfIndex=alcatelIND1IsisSpbAdjStaticEntryIfIndex, alcatelIND1IsisSpbMulticastTableEntrySrcMac=alcatelIND1IsisSpbMulticastTableEntrySrcMac, alcatelIND1SpbIPVPNBindIsid=alcatelIND1SpbIPVPNBindIsid, alcatelIND1SpbIPVPNBindGateway=alcatelIND1SpbIPVPNBindGateway, alcatelIND1IsisSpbAdjDynamicTable=alcatelIND1IsisSpbAdjDynamicTable, AlcatelIND1IsisSpbAreaAddress=AlcatelIND1IsisSpbAreaAddress, alcatelIND1IsisSpbProtocolLspInitialWait=alcatelIND1IsisSpbProtocolLspInitialWait, alcatelIND1IsisSpbNodeSPSourceId=alcatelIND1IsisSpbNodeSPSourceId, alcatelIND1IsisSpbSpfSysName=alcatelIND1IsisSpbSpfSysName, alcatelIND1IsisSpbLSPUsedLen=alcatelIND1IsisSpbLSPUsedLen, alcatelIND1IsisSpbMulticastTableEntryTopIx=alcatelIND1IsisSpbMulticastTableEntryTopIx, alcatelIND1IsisSpbServiceTable=alcatelIND1IsisSpbServiceTable)
(routing_ind1_isis_spb,) = mibBuilder.importSymbols('ALCATEL-IND1-BASE', 'routingIND1IsisSpb') (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_range_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (vlan_id_or_none,) = mibBuilder.importSymbols('IEEE8021-CFM-MIB', 'VlanIdOrNone') (ieee8021_pbb_ingress_egress, ieee8021_bridge_port_number, ieee8021_pbb_service_identifier_or_unassigned) = mibBuilder.importSymbols('IEEE8021-TC-MIB', 'IEEE8021PbbIngressEgress', 'IEEE8021BridgePortNumber', 'IEEE8021PbbServiceIdentifierOrUnassigned') (interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero') (vlan_id,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (mib_identifier, unsigned32, ip_address, counter64, object_identity, gauge32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, counter32, notification_type, integer32, time_ticks, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Unsigned32', 'IpAddress', 'Counter64', 'ObjectIdentity', 'Gauge32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Counter32', 'NotificationType', 'Integer32', 'TimeTicks', 'iso') (mac_address, truth_value, time_interval, display_string, time_stamp, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TruthValue', 'TimeInterval', 'DisplayString', 'TimeStamp', 'TextualConvention', 'RowStatus') alcatel_ind1_isis_spb_mib = module_identity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1)) alcatelIND1IsisSpbMib.setRevisions(('2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setRevisionsDescriptions(('The latest version of this MIB Module.',)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setLastUpdated('201311070000Z') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1IsisSpbMib.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Configuration Of Global OSPF Configuration Parameters. The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') class Alcatelind1Isisspbareaaddress(TextualConvention, OctetString): reference = '12.25.1.1.2 a), 12.25.1.2.2 a), 12.25.1.3.2 a), 12.25.1.2.2 a)' description = 'This identifier is the 3 Byte IS-IS Area Address. Domain Specific part(DSP). Default is 00-00-00.' status = 'current' display_hint = '1x-' subtype_spec = OctetString.subtypeSpec + value_size_constraint(3, 3) fixed_length = 3 class Alcatelind1Isisspbsystemname(TextualConvention, OctetString): reference = 'RFC 4945 12.25.1.3.3 d), 12.25.7.1.3 f), 12.25.8.1.3 e)' description = 'This is the System Name assigned to this Bridge.' status = 'current' display_hint = '32a' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 32) class Alcatelind1Isisspbectalgorithm(TextualConvention, OctetString): reference = '12.3 q)' description = 'The 4 byte Equal Cost Multiple Tree Algorithm identifier. This identifies the tree computation algorithm and tie breakers.' status = 'current' display_hint = '1x-' subtype_spec = OctetString.subtypeSpec + value_size_constraint(4, 4) fixed_length = 4 class Alcatelind1Isisspbmode(TextualConvention, Integer32): reference = '27.10' description = 'Auto allocation control for this instance of SPB. For SPBV it controls SPVIDs and for SPBM it controls SPSourceID.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('auto', 1), ('manual', 2)) class Alcatelind1Isisspbdigestconvention(TextualConvention, Integer32): reference = '28.4.3' description = 'The mode of the current Agreement Digest. This determines the level of loop prevention.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('off', 1), ('loopFreeBoth', 2), ('loopFreeMcastOnly', 3)) class Alcatelind1Isisspblinkmetric(TextualConvention, Integer32): reference = '28.2' description = 'The 24 bit cost of an SPB link. A lower metric value means better. Value 16777215 equals Infinity.' status = 'current' display_hint = 'd' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 16777215) class Alcatelind1Isisspbadjstate(TextualConvention, Integer32): reference = '12.25.6.1.3 d), 12.25.6.2.3 d), 12.25.7.1.3 (e' description = 'The current state of this SPB adjacency or port. The values are up, down, and testing.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('up', 1), ('down', 2), ('testing', 3)) class Alcatelind1Isisspbmspsourceid(TextualConvention, OctetString): reference = '27.15' description = 'The Shortest Path Source Identifier for this bridge. It is the high order 3 bytes for multicast DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.' status = 'current' display_hint = '1x-' subtype_spec = OctetString.subtypeSpec + value_size_constraint(3, 3) fixed_length = 3 class Alcatelind1Isisspbbridgepriority(TextualConvention, OctetString): reference = '13.26.3' description = 'The Bridge priority is the top 2 bytes of the Bridge Identifier. Lower values represent a better priority.' status = 'current' display_hint = '1x-' subtype_spec = OctetString.subtypeSpec + value_size_constraint(2, 2) fixed_length = 2 class Alcatelind1Isisspbmtid(TextualConvention, Unsigned32): reference = '3.23, 3.24' description = 'The IS-IS Multi Topology Identifier.' status = 'current' display_hint = 'd' class Alcatelind1Isisspbmmulticastmode(TextualConvention, Integer32): reference = 'NONE' description = 'Multicast mode for tandem-multicast.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1)) named_values = named_values(('sgmode', 0), ('gmode', 1)) class Alcatelind1Isisspbifoperstate(TextualConvention, Integer32): description = 'The AlcatelIND1IsisSpbIfOperState data type is an enumerated integer that describes the operational state of an interface.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('unknown', 1), ('inService', 2), ('outOfService', 3), ('transition', 4)) class Alcatelspbserviceidentifier(TextualConvention, Unsigned32): reference = 'NONE' description = 'The service instance identifier is used at the Customer Backbone port in SPBM to distinguish a service instance. The special value of 0xFFFFFF is used for wildcard. This range also includes the default I-SID. cf. IEEE8021SpbServiceIdentifierOrAny' status = 'current' display_hint = 'd' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(255, 16777215) class Alcatelind1Isisspbmisidflags(TextualConvention, Integer32): reference = 'NONE' description = 'Flags to indicate multicast source/sink or both. cf. IEEE8021PbbIngressEgress' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('none', 0), ('tx', 1), ('rx', 2), ('both', 3)) alcatel_ind1_isis_spb_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1)) alcatel_ind1_isis_spb_sys = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1)) alcatel_ind1_isis_spb_protocol_config = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2)) alcatel_ind1_isis_spb_sys_control_bvlan = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 1), vlan_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlBvlan.setDescription('The vlan tag applied to ISIS-SPB frames.') alcatel_ind1_isis_spb_sys_admin_state = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAdminState.setDescription('Controls the operational state of the ISIS-SPB protocol. Default value is disable(2).') alcatel_ind1_isis_spb_sys_area_address = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 3), alcatel_ind1_isis_spb_area_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setReference('12.25.1.3.2, 12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysAreaAddress.setDescription('The three byte IS-IS Area Address to join. Normally SPB will use area 00-00-00 however if SPB is being used in conjunction with IPV4/V6 it may operate using the IS-IS area address already in use. This object is persistent. cf. ieee8021SpbSysAreaAddress') alcatel_ind1_isis_spb_sys_id = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 4), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setReference('12.25.1.3.3, 3.21') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysId.setDescription('SYS ID used for all SPB instances on this bridge. A six byte network wide unique identifier. cf. ieee8021SpbSysId') alcatel_ind1_isis_spb_sys_control_addr = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 5), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setReference('12.25.1.3.3, 8.13.5.1') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysControlAddr.setDescription('Group MAC that the ISIS control plane will use. SPB may use a number of different addresses for SPB Hello and LSP exchange. Section 27.2, 8.13.1.5 and Table 8-13 covers the different choices. The choices are as follows: 01-80-C2-00-00-14 = All Level 1 Intermediate Systems 01-80-C2-00-00-15 = All Level 2 Intermediate Systems 09-00-2B-00-00-05 = All Intermediate Systems. 01-80-xx-xx-xx-xx = All Provider Bridge Intermediate Systems. 01-80-yy-yy-yy-yy = All Customer Bridge Intermediate Systems. This object is persistent. cf. ieee8021SpbSysControlAddr') alcatel_ind1_isis_spb_sys_name = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 6), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setReference('12.25.1.3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysName.setDescription('Name to be used to refer to this SPB bridge. This is advertised in IS-IS and used for management. cf. ieee8021SpbSysName') alcatel_ind1_isis_spb_sys_bridge_priority = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 7), alcatel_ind1_isis_spb_bridge_priority()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setReference('12.25.1.3.3, 13.26.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysBridgePriority.setDescription('This is a 16 bit quantity which ranks this SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm. Recommend values 0..15 be assigned to core switches to ensure diversity of the ECT algorithms. cf. ieee8021SpbSysBridgePriority') alcatel_ind1_isis_spbm_sys_sp_source_id = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 8), alcatel_ind1_isis_spbm_s_psource_id()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setReference('12.25.1.3.3, 3.17, 27.15') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from this bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID. This object is persistent. cf. ieee8021SpbmSysSPSourceId') alcatel_ind1_isis_spbv_sys_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 9), alcatel_ind1_isis_spb_mode()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setReference('12.25.1.3.3, 3.20') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvSysMode.setDescription('Indication of supporting SPBV mode auto(=1)/manual(=2) auto => enable SPBV mode and auto allocate SPVIDs. manual => enable SPBV mode and manually assign SPVIDs. The default is auto. This object is persistent. cf. ieee8021SpbvSysMode') alcatel_ind1_isis_spbm_sys_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 10), alcatel_ind1_isis_spb_mode()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setReference('12.25.1.3.3, 3.19') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbmSysMode.setDescription('Indication of supporting SPBM mode auto(=1)/manual(=2) auto => enable SPBM mode and auto allocate SPsourceID. manual => enable SPBM mode and manually assign SPsourceID. The default is auto. This object is persistent. cf. ieee8021SpbmSysMode') alcatel_ind1_isis_spb_sys_digest_convention = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 11), alcatel_ind1_isis_spb_digest_convention()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setReference('12.25.1.3.3, 28.4.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysDigestConvention.setDescription('The Agreement Digest convention setting off(=1)/loopFreeBoth(=2)/loopFreeMcastOnly(=3) off => disable agreement digest checking in hellos loopFreeBoth => block unsafe group and individual traffic when digests disagree. loopFreeMcastOnly =>block group traffic when digests disagree. The default is loopFreeBoth. This object is persistent. cf. ieee8021SpbSysDigestConvention') alcatel_ind1_isis_spb_sys_set_overload = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 12), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysSetOverload.setDescription('Administratively set the overload bit. The overload bit will continue to be set if the implementation runs out of memory, independent of this variable.') alcatel_ind1_isis_spb_sys_overload_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 13), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(60, 1800)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadTimeout is the amount of time, in seconds, the router operates in the overload state before attempting to reestablish normal operations. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. Operationally placing the router into the overload state is often used as a precursor to shutting down the IS-IS protocol operation. The value of 0 means the router is in overload infinitely.') alcatel_ind1_isis_spb_sys_overload_on_boot = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 14), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBoot.setDescription("The value of alcatelIND1IsisSpbSysOverloadOnBoot specifies if the router should be in overload state right after the boot up process. If the alcatelIND1IsisSpbSysOverloadOnBoot is set to 'enabled' the overload timeout is maintained by alcatelIND1IsisSpbSysOverloadOnBootTimeout.") alcatel_ind1_isis_spb_sys_overload_on_boot_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 15), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(60, 1800)))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadOnBootTimeout.setDescription('The value of alcatelIND1IsisSpbSysOverloadOnBootTimeout is the amount of time, in seconds for which the router operates in the overload state before attempting to reestablish normal operations when the system comes up after a fresh boot. While in overload state, this IS-IS router will only be used if the destination is only reachable via this router; it is not used for other transit traffic. The value of 0 means the router is in overload infinitely.') alcatel_ind1_isis_spb_sys_overload_status = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notInOverload', 1), ('dynamic', 2), ('manual', 3), ('manualOnBoot', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysOverloadStatus.setDescription("Indicates whether or not this isis-spb instance is in overload state. When has the value 'notInOverload', the IS-IS level is normal state. When the value is 'dynamic', the level is in the overload state because of insufficient memeory to add additional entries to the IS-IS database for this level. When the value is 'manual', the level has been put into the overload state administratively as a result of the alcatelIND1IsisSpbSysSetOverload object having been set.") alcatel_ind1_isis_spb_sys_last_enabled_time = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 40))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTime.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatel_ind1isis_spb_sys_last_spf_run = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 40))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRun.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatel_ind1_isis_spb_sys_num_ls_ps = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysNumLSPs.setDescription('Specifies the number of LSPs in the database.') alcatel_ind1_isis_spb_sys_last_enabled_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 20), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysLastEnabledTimeStamp.setDescription('Contains the sysUpTime value when alcatelIND1IsisSpbSysAdminState was last set to enabled (1) to run the IS-IS protocol.') alcatel_ind1isis_spb_sys_last_spf_run_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 1, 21), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1isisSpbSysLastSpfRunTimeStamp.setDescription('Contains the sysUpTime value when the last SPF run was performed for this instance of the IS-IS protocol.') alcatel_ind1_isis_spb_protocol_spf_max_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfMaxWait defines the Maximum interval between two consecutive spf calculations in milliseconds.') alcatel_ind1_isis_spb_protocol_spf_initial_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(10, 100000)).clone(100)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfInitialWait defines the initial SPF calculation delay (in milliseconds) after a topology change.') alcatel_ind1_isis_spb_protocol_spf_second_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolSpfSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolSpfSecondWait defines the hold time between the first and second SPF calculation (in milliseconds). Subsequent SPF runs will occur at exponentially increasing intervals of spf-second-wait i.e. if spf-second-wait is 1000, then the next SPF will run after 2000 msec, the next one at 4000 msec etc until it is capped off at spf-wait value. The SPF interval will stay at spf-wait value until there are no more SPF runs scheduled in that interval. After a full interval without any SPF runs, the SPF interval will drop back to spf-initial-wait.') alcatel_ind1_isis_spb_protocol_lsp_max_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1000, 120000)).clone(1000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspMaxWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspWait defines the maximum interval (in milliseconds) between two consecutive ocurrences of an LSP being generated.') alcatel_ind1_isis_spb_protocol_lsp_initial_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100000))).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspInitialWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the initial LSP generation delay (in milliseconds).') alcatel_ind1_isis_spb_protocol_lsp_second_wait = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(100, 100000)).clone(300)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolLspSecondWait.setDescription('The value of alcatelIND1IsisSpbProtocolLspInitialWait defines the hold time between the first and second LSP generation (in milliseconds).') alcatel_ind1_isis_spb_protocol_graceful_restart = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 7), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGracefulRestart.setDescription('The value of alcatelIND1IsisSpbProtocolGracefulRestart specifies whether the graceful restart is enabled or disabled for this instance of IS-IS.') alcatel_ind1_isis_spb_protocol_gr_helper_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 2, 8), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolGRHelperMode.setDescription("The value of alcatelIND1IsisSpbProtocolGRHelperMode specifies whether the graceful restart helper mode is enabled or disabled for this instance of IS-IS. alcatelIND1IsisSpbProtocolGRHelperMode is valid only if the value of alcatelIND1IsisSpbProtocolGracefulRestart is 'true'. When alcatelIND1IsisSpbProtocolGRHelperMode has a value of 'true' graceful restart helper capabilities are enabled. When it has a value of 'false' the graceful restart helper capabilities are disabled.") alcatel_ind1_isis_spb_adj_static_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3)) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTable.setDescription('A table containing the SPB configuration data for a neighbor. cf. ieee8021SpbAdjStaticTable') alcatel_ind1_isis_spb_adj_static_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryIfIndex')) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setReference('12.25.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticTableEntry.setDescription('This table can be used to display the interfaces and metrics of a neighbor bridge. ') alcatel_ind1_isis_spb_adj_static_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_adj_static_entry_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 2), interface_index_or_zero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfIndex.setDescription('The System interface/index which defines this adjacency. A value of 0 is a wildcard for any interface on which SPB Operation is supported.') alcatel_ind1_isis_spb_adj_static_entry_metric = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 3), alcatel_ind1_isis_spb_link_metric()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12.7') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryMetric.setDescription('The alcatelIND1IsisSpb metric (incremental cost) to this peer. The contribution of this link to total path cost. Recommended values are inversely proportional to link speed. Range is (1..16777215) where 16777215 (0xFFFFFF) is infinity; infinity signifies that the adjacency is UP, but is not to be used for traffic. This object is persistent.') alcatel_ind1_isis_spb_adj_static_entry_hello_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 20000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloInterval.setDescription('Maximum period, in seconds, between IIH PDUs.') alcatel_ind1_isis_spb_adj_static_entry_hello_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(2, 100)).clone(10)).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier.setDescription('This value is multiplied by the corresponding HelloInterval 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') alcatel_ind1_isis_spb_adj_static_entry_if_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 6), alcatel_ind1_isis_spb_adj_state()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setReference('12.25.6.1.2, 12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfAdminState.setDescription('The administrative state of this interface/port. Up is the default. This object is persistent.') alcatel_ind1_isis_spb_adj_static_entry_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatel_ind1_isis_spb_adj_static_entry_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryCircuitId.setDescription('The local circuit id.') alcatel_ind1_isis_spb_adj_static_entry_if_oper_state = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 9), alcatel_ind1_isis_spb_if_oper_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryIfOperState.setDescription('The current operational state of IS-IS protocol on this interface.') alcatel_ind1_isis_spb_adj_static_entry_afd_config = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 3, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryAFDConfig.setDescription('Configuration is made by admin or auto-fabric on this interface') alcatel_ind1_isis_spb_ect_static_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4)) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTable.setDescription('The Equal Cost Tree (ECT) static configuration table. cf. ieee8021SpbEctStaticTable') alcatel_ind1_isis_spb_ect_static_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryBaseVid')) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setReference('12.25.4') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticTableEntry.setDescription('The Equal Cost Tree static configuration Table defines the ECT ALGORITHM for the Base VID and if SPBV is used for the SPVID. ') alcatel_ind1_isis_spb_ect_static_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setReference('12.25.4.2.2, 12.25.4.2.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_ect_static_entry_base_vid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 2), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setReference('12.25.4.2.3, 3.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryBaseVid.setDescription('Base VID to use for this ECT-ALGORITHM. Traffic B-VID (SPBM) or Management VID (SPBV). A Base VID value of 4095 is a wildcard for any Base VID assigned to SPB operation.') alcatel_ind1_isis_spb_ect_static_entry_ect_algorithm = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 3), alcatel_ind1_isis_spb_ect_algorithm()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setReference('12.25.4.2.3, 3.6') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryEctAlgorithm.setDescription('This identifies the tie-breaking algorithms used in Shortest Path Tree computation. Values range from 00-80-c2-01 to 00-80-c2-16 for 802.1 for each the 16 ECT behaviors. This object is persistent.') alcatel_ind1_isis_spbv_ect_static_entry_spvid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 4), vlan_id_or_none()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setReference('12.25.4.2.3, 3.16') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbvEctStaticEntrySpvid.setDescription('If SPBV mode this is the VID originating from this bridge. Must be set = 0 if SPVID Auto-allocation is required. Otherwise in SPBM this is empty, should be set = 0. This object is persistent.') alcatel_ind1_isis_spb_ect_static_entry_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setReference('12.25.4.2.3') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatel_ind1_isis_spb_ect_static_entry_multicast_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 6), alcatel_ind1_isis_spbm_multicast_mode().clone('sgmode')).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryMulticastMode.setDescription('This identifies the tandem multicast-mode of this bvlan. A value of 0 indicates (S,G) mode, while a value of 1 indicates (*,G) mode.') alcatel_ind1_isis_spb_ect_static_entry_root_bridge_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 7), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName.setDescription("Name of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatel_ind1_isis_spb_ect_static_entry_root_bridge_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 4, 1, 8), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac.setDescription("Mac address of the root bridge. This object's value has meaning only when the bvlan is in (*,G) mode (e.g. alcatelIND1IsisSpbEctStaticEntryMulticastMode is set to gmode).") alcatel_ind1_isis_spb_adj_dynamic_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5)) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicTable.setDescription('The Adjacency table. cf. ieee8021SpbAdjDynamicTable cf. show ip isis adjacency') alcatel_ind1_isis_spb_adj_dynamic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryIfIndex'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryPeerSysId')) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntry.setDescription('This table is used to determine operational values of digests and interfaces of neighbor bridges.') alcatel_ind1_isis_spb_adj_dynamic_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_adj_dynamic_entry_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 2), interface_index_or_zero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryIfIndex.setDescription('System interface/index which defines this adjacency A value of 0 is a wildcard for any interface on which SPB Operation is enabled.') alcatel_ind1_isis_spb_adj_dynamic_entry_peer_sys_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 3), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysId.setDescription('The SPB System Identifier of this peer. This is used to identify a neighbor uniquely.') alcatel_ind1_isis_spb_adj_dynamic_entry_adj_state = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 4), alcatel_ind1_isis_spb_adj_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjState.setDescription('The state of the adjacency.') alcatel_ind1_isis_spb_adj_dynamic_entry_adj_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 40))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime.setDescription('The time when the adjacency last entered the up state.') alcatel_ind1_isis_spb_adj_dynamic_entry_hold_remaining = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining.setDescription('The remaining hold time in seconds.') alcatel_ind1_isis_spb_adj_dynamic_entry_hold_timer = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryHoldTimer.setDescription('The holding time in seconds for this adjacency updated from received IIH PDUs.') alcatel_ind1_isis_spb_adj_dynamic_entry_nbr_ext_local_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId.setDescription('The extended circuit id advertised by the peer.') alcatel_ind1_isis_spb_adj_dynamic_entry_neigh_priority = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryNeighPriority.setDescription('Priority of the neighboring Intermediate System for becoming the Designated Intermediate System.') alcatel_ind1_isis_spb_adj_dynamic_entry_peer_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 10), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryPeerSysName.setDescription('IS-IS system name of peer. This is the ASCII name assigned to the bridge to aid management.') alcatel_ind1_isis_spb_adj_dynamic_entry_restart_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notHelping', 1), ('restarting', 2), ('restartComplete', 3), ('helping', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartStatus.setDescription('The graceful restart status of the adjacency.') alcatel_ind1_isis_spb_adj_dynamic_entry_restart_support = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSupport.setDescription("Indicates whether adjacency supports ISIS graceful restart. If 'true', the adjacency supports graceful restart.") alcatel_ind1_isis_spb_adj_dynamic_entry_restart_suppressed = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 13), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed.setDescription("Indicates if the adjacency has requested this router to suppress advertisement of the adjacency in this router's LSPs. If 'true' the adjacency has requested to suppress advertisement of the LSPs.") alcatel_ind1_isis_spb_adj_dynamic_entry_adj_up_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 5, 1, 14), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp.setDescription('The sysUpTime value when the adjacency last entered the up state.') alcatel_ind1_isis_spb_node_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6)) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTable.setDescription('The Node table. cf. show ip isis nodes') alcatel_ind1_isis_spb_node_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeSysId')) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTableEntry.setDescription('This table can be used to display information about known bridges.') alcatel_ind1_isis_spb_node_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_node_sys_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 2), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysId.setDescription('SYS ID used for all SPB instances on the bridge. A six byte network wide unique identifier.') alcatel_ind1_isis_spb_node_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 3), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSysName.setDescription('Name to be used to refer to the SPB bridge. This is advertised in IS-IS and used for management.') alcatel_ind1_isis_spb_node_sp_source_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 4), alcatel_ind1_isis_spbm_s_psource_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeSPSourceId.setDescription('The Shortest Path Source Identifier. It is the high order 3 bytes for Group Address DA from the bridge. Note that only the 20 bits not including the top 4 bits are the SPSourceID.') alcatel_ind1_isis_spb_node_bridge_priority = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 6, 1, 5), alcatel_ind1_isis_spb_bridge_priority()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeBridgePriority.setDescription('This is a 16 bit quantity which ranks the SPB Bridge relative to others when breaking ties. This priority is the high 16 bits of the Bridge Identifier. Its impact depends on the tie breaking algorithm.') alcatel_ind1_isis_spb_unicast_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7)) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTable.setDescription('The unicast table. cf. show ip isis unicast-table') alcatel_ind1_isis_spb_unicast_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastSysMac')) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTableEntry.setDescription('This table can be used to display information about unicast targets.') alcatel_ind1_isis_spb_unicast_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_unicast_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 2), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastBvlan.setDescription('The bvlan associated with the unicast target.') alcatel_ind1_isis_spb_unicast_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 3), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysMac.setDescription('The mac address of the bridge associated with the unicast target.') alcatel_ind1_isis_spb_unicast_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 4), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastSysName.setDescription('Name of the bridge associated with the unicast target.') alcatel_ind1_isis_spb_unicast_outbound_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 7, 1, 5), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastOutboundIfIndex.setDescription('Outbound interface used to reach the unicast target.') alcatel_ind1_isis_spb_multicast_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTable.setDescription('The multicast table. cf. show ip isis multicast-table') alcatel_ind1_isis_spb_multicast_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryMulticastMac'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound')) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntry.setDescription('This table can be used to display the multicast table for SPB ') alcatel_ind1_isis_spb_multicast_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_multicast_table_entry_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 2), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryBvlan.setDescription('Bvlan of the multicast entry.') alcatel_ind1_isis_spb_multicast_table_entry_multicast_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 3), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryMulticastMac.setDescription('Multicast destination MAC of the multicast entry.') alcatel_ind1_isis_spb_multicast_table_entry_if_index_outbound = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 4), interface_index_or_zero()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound.setDescription('Outbound interface index of the multicast entry, zero means local node is multicast receiver') alcatel_ind1_isis_spb_multicast_table_entry_src_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 5), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySrcMac.setDescription('System MAC of the multicast source, all zero means any MAC.') alcatel_ind1_isis_spb_multicast_table_entry_if_index_inbound = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 6), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound.setDescription('Inbound interface index of the multicast source, zero means local node is multicast source') alcatel_ind1_isis_spb_multicast_table_entry_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 7), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntrySysName.setDescription('System name of multicast source') alcatel_ind1_isis_spb_multicast_table_entry_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 8, 1, 8), alcatel_spb_service_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryIsid.setDescription('The service identifier, e.g. isid number of the multicast entry.') alcatel_ind1_isis_spb_lsp_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9)) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTable.setDescription('The LSP table (database). cf. show ip isis database') alcatel_ind1_isis_spb_lsp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPId')) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPEntry.setDescription('Each row entry in the alcatelIND1IsisSpbLSPTable represents an LSP in the LSP database.') alcatel_ind1_isis_spb_lsp_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setReference('12.25.6.1.2, 12.25.6.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_lsp_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 2), octet_string()) if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPId.setDescription('The LSP Id. The format is 6 octets of ajacency system-id followed by 1 octet LanId and 1 octet LSP Number.') alcatel_ind1_isis_spb_lsp_seq = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSeq.setDescription('The sequence number of an LSP. The sequence number is a four byte quantity that represents the version of an LSP. The higher the sequence number, the more up to date the information. The sequence number is always incremented by the system that originated the LSP and ensures that there is only one version of that LSP in the entire network.') alcatel_ind1_isis_spb_lsp_checksum = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPChecksum.setDescription('The checksum of contents of LSP from the SourceID field in the LSP till the end. The checksum is computed using the Fletcher checksum algorithm. ') alcatel_ind1_isis_spb_lsp_lifetime_remain = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPLifetimeRemain.setDescription('Remaining lifetime of this LSP. This is a decrementing counter that decrements in seconds. When the remaining lifetime becomes zero, the contents of the LSP should not be considered for SPF calculation.') alcatel_ind1_isis_spb_lsp_version = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPVersion.setDescription('The version of the ISIS protocol that generated the LSP.') alcatel_ind1_isis_spb_lsp_pkt_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktType.setDescription('Packet type for instance Hello PDUs, LSPs, CSNPs or PSNPs.') alcatel_ind1_isis_spb_lsp_pkt_version = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPPktVersion.setDescription('The version of the ISIS protocol that generated the Packet.') alcatel_ind1_isis_spb_lsp_max_area = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPMaxArea.setDescription('Maximum number of areas supported by the originator of the LSP. A value of 0 indicates a default of 3 areas.') alcatel_ind1_isis_spb_lsp_sys_id_len = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPSysIdLen.setDescription('The length of the system-id as used by the originator.') alcatel_ind1_isis_spb_lsp_attributes = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAttributes.setDescription('Attributes associated with the LSP. These include the attached bit, overload bit, IS type of the system originating the LSP and the partition repair capability. The attached bit and the overload bit are of significance only when present in the LSP numbered zero and should be ignored on receipt in any other LSP.') alcatel_ind1_isis_spb_lsp_used_len = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPUsedLen.setDescription('The used length for the LSP. For an LSP that is not self originated, the used length is always equal to alloc len. For self originated LSPs, the used length is less than or equal to the alloc len.') alcatel_ind1_isis_spb_lsp_alloc_len = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPAllocLen.setDescription('The length allocated for the LSP to be stored.') alcatel_ind1_isis_spb_lsp_buff = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 9, 1, 14), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPBuff.setDescription('The LSP as it exists in the LSP database.') alcatel_ind1_isis_spb_multicast_source_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTable.setDescription('The multicast source table. cf. show ip isis multicast-sources') alcatel_ind1_isis_spb_multicast_source_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSysMac'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceBvlan')) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceEntry.setDescription('This table can be used to display information about multicast sources.') alcatel_ind1_isis_spb_multicast_source_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_multicast_source_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 2), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysMac.setDescription('The mac address of the bridge associated with the multicast source.') alcatel_ind1_isis_spb_multicast_source_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 3), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceBvlan.setDescription('The bvlan associated with the multicast source.') alcatel_ind1_isis_spb_multicast_source_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 4), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSysName.setDescription('Name of the bridge associated with the multicast source.') alcatel_ind1_isis_spb_multicast_source_reachable = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 10, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceReachable.setDescription('True if we have a path to the multicast source.') alcatel_ind1_isis_spb_spf_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11)) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTable.setDescription('The spf table. cf. show spb isis spf') alcatel_ind1_isis_spb_spf_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfSysMac')) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfTableEntry.setDescription('This table can be used to display reachability information about known bridges, calculated by the Spf algorithm.') alcatel_ind1_isis_spb_spf_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 1), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfBvlan.setDescription('The vlan to which this entry belongs.') alcatel_ind1_isis_spb_spf_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 2), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysMac.setDescription('The mac-address of the bridge identified by this entry.') alcatel_ind1_isis_spb_spf_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 3), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfSysName.setDescription('Name of the bridge identified by this entry.') alcatel_ind1_isis_spb_spf_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 4), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfIfIndex.setDescription('The outgoing interface index for reaching the bridge identified by this entry.') alcatel_ind1_isis_spb_spf_next_hop_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 5), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysMac.setDescription('The mac-address of the next-hop for reaching the bridge identified by this entry') alcatel_ind1_isis_spb_spf_next_hop_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 6), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfNextHopSysName.setDescription('Name of the next-hop bridge for reaching the bridge identified by this entry') alcatel_ind1_isis_spb_spf_metric = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 7), alcatel_ind1_isis_spb_link_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfMetric.setDescription('The metric/incremental cost to reach the bridge identified by this entry.') alcatel_ind1_isis_spb_spf_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 11, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfHopCount.setDescription('The number of hops needed to reach the bridge identified by this entry.') alcatel_ind1_isis_spb_multicast_source_spf_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12)) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTable.setDescription('The multicast source spf table. cf. show ip isis multicast-sources-spf') alcatel_ind1_isis_spb_multicast_source_spf_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac')) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntry.setDescription('This table can be used to display the spf table of multicast sources in a SPB network. ') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_b_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 2), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac.setDescription('The mac address of the multicast source.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 3), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan.setDescription('The bvlan of the multicast source spf entry.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_dest_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 4), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac.setDescription('The destination mac address of the multicast source spf entry') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 5), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex.setDescription('The outbound ifindex of the multicast source spf entry.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_n_hop_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 6), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName.setDescription('The next hop system name of the multicast source spf entry.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_n_hop_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 7), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac.setDescription('The next hop system mac of the multicast source spf entry.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_metric = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 8), alcatel_ind1_isis_spb_link_metric()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric.setDescription('The path metric of the multicast source spf entry.') alcatel_ind1_isis_spb_multicast_source_spf_table_entry_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 12, 1, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount.setDescription('The hop count of the multicast source spf entry.') alcatel_ind1_isis_spb_ingress_mac_filter_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13)) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterTable.setDescription('The ingress mac filter table. cf. show ip isis ingress-mac-filter') alcatel_ind1_isis_spb_ingress_mac_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbIngressMacBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbIngressMacSysMac')) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacFilterEntry.setDescription('The ingress mac filter table. cf. show spb isis ingress-mac-filter') alcatel_ind1_isis_spb_ingress_mac_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 1), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacBvlan.setDescription('The vlan to which this entry belongs.') alcatel_ind1_isis_spb_ingress_mac_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 2), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysMac.setDescription('The mac-address that identifies this entry.') alcatel_ind1_isis_spb_ingress_mac_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 3), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacSysName.setDescription('The name of the bridge identified by this entry.') alcatel_ind1_isis_spb_ingress_mac_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 13, 1, 4), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacIfIndex.setDescription('The ifindex of this entry.') alcatel_ind1_isis_spb_service_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14)) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTable.setDescription('The services table. cf. show spb isis services') alcatel_ind1_isis_spb_service_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntryBvlan'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntryIsid'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntrySysMac')) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntry.setDescription('This table can be used to display the local configured and dynamically learned services. ') alcatel_ind1_isis_spb_service_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_isis_spb_service_table_entry_bvlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 2), vlan_id()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryBvlan.setDescription('Bvlan of the service.') alcatel_ind1_isis_spb_service_table_entry_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 3), alcatel_spb_service_identifier()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsid.setDescription('The service identifier, e.g. isid number') alcatel_ind1_isis_spb_service_table_entry_sys_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 4), mac_address()) if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysMac.setDescription('System MAC of the SPB node on which the service is configured') alcatel_ind1_isis_spb_service_table_entry_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 5), alcatel_ind1_isis_spb_system_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntrySysName.setDescription('System name of SPB node on which the service is configured') alcatel_ind1_isis_spb_service_table_entry_isid_flags = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 14, 1, 6), alcatel_ind1_isis_spbm_isid_flags()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setReference('NONE') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryIsidFlags.setDescription('Service flags e.g. source or sink of multicast traffic') alcatel_ind1_spb_ipvpn_bind_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15)) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTable.setDescription('The table binds vrf, ISID and IP gateway together to enable route exchange between GRM and SPB-ISIS. The exchange is bidirectional. route-map only applies to VRF routes imported to ISIS from GRM. There is no filter from ISIS to GRM. cf. show spb ipvpn bind') alcatel_ind1_spb_ipvpn_bind_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindVrfName'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindIsid'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindGateway')) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNBindTable') alcatel_ind1_spb_ipvpn_bind_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_spb_ipvpn_bind_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindVrfName.setDescription('The VRF for which routes are being imported from GRM to ISIS-SPB.') alcatel_ind1_spb_ipvpn_bind_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 3), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindIsid.setDescription('The ISID to set for routes imported from GRM to ISIS-SPB.') alcatel_ind1_spb_ipvpn_bind_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 4), ip_address()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindGateway.setDescription('The IP gateway to set for routes imported from GRM to ISIS-SPB.') alcatel_ind1_spb_ipvpn_bind_import_route_map = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 5), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindImportRouteMap.setDescription('The route-map name (or empty-string for all-routes) for routes imported from GRM to ISIS-SPB.') alcatel_ind1_spb_ipvpn_bind_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 15, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNBindRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatel_ind1_spb_ipvpn_route_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16)) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTable.setDescription('The IP-VPN table of routes. cf. show spb ipvpn route-table') alcatel_ind1_spb_ipvpn_route_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRouteTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRouteIsid'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRoutePrefix'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRoutePrefixLen'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRouteGateway')) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRouteTable') alcatel_ind1_spb_ipvpn_route_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_spb_ipvpn_route_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 2), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteIsid.setDescription('The ISID of the IP-VPN route') alcatel_ind1_spb_ipvpn_route_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 3), ip_address()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefix.setDescription('The destination prefix of the IP-VPN route') alcatel_ind1_spb_ipvpn_route_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 4), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRoutePrefixLen.setDescription('The prefix length of the IP-VPN route') alcatel_ind1_spb_ipvpn_route_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 5), ip_address()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteGateway.setDescription('The next-hop/gateway of the IP-VPN route') alcatel_ind1_spb_ipvpn_route_node_name = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 6), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteNodeName.setDescription('The BEB name of the node that advertised the IP-VPN route') alcatel_ind1_spb_ipvpn_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 16, 1, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRouteMetric.setDescription('The route-metric of the IP-VPN route') alcatel_ind1_spb_ipvpn_redist_vrf_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17)) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is a VRF. cf. show spb ipvpn redist') alcatel_ind1_spb_ipvpn_redist_vrf_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistVrfSourceVrf'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistVrfDestIsid')) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistVrfTable') alcatel_ind1_spb_ipvpn_redist_vrf_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_spb_ipvpn_redist_vrf_source_vrf = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 20))) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfSourceVrf.setDescription('The source VRF from which routes are being redistributed.') alcatel_ind1_spb_ipvpn_redist_vrf_dest_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 3), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatel_ind1_spb_ipvpn_redist_vrf_route_map = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 4), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatel_ind1_spb_ipvpn_redist_vrf_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 17, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistVrfRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatel_ind1_spb_ipvpn_redist_isid_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18)) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTable.setDescription('The IP-VPN table of configured route-redistributions where the source entity is an ISID. cf. show spb ipvpn redist') alcatel_ind1_spb_ipvpn_redist_isid_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1)).setIndexNames((0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistIsidSourceIsid'), (0, 'ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistIsidDestIsid')) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntry.setDescription('An Entry in the alcatelIND1SpbIPVPNRedistIsidTable') alcatel_ind1_spb_ipvpn_redist_isid_table_entry_top_ix = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 1), alcatel_ind1_isis_spb_mtid()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setReference('12.25.11.1.2, 12.25.11.1.3, 28.12') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx.setDescription('The ISIS Topology Index identifier to which this instance belongs. Each Topology Index defines logical topology and is used to enable multiple SPB instances within several ISIS instances.') alcatel_ind1_spb_ipvpn_redist_isid_source_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 2), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidSourceIsid.setDescription('The source ISID from which routes are being redistributed.') alcatel_ind1_spb_ipvpn_redist_isid_dest_isid = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 3), unsigned32()) if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidDestIsid.setDescription('The destination ISID to which routes are being redistributed.') alcatel_ind1_spb_ipvpn_redist_isid_route_map = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 4), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRouteMap.setDescription('The route-map name (or empty-string for all-routes) for the filter to be applied to this route-redistribution.') alcatel_ind1_spb_ipvpn_redist_isid_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 1, 18, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setReference('12.25.6.1.3') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setStatus('current') if mibBuilder.loadTexts: alcatelIND1SpbIPVPNRedistIsidRowStatus.setDescription('The object indicates the status of an entry, and is used to create/delete entries. This object is persistent.') alcatel_ind1_isis_spb_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2)) alcatel_ind1_isis_spb_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1)) alcatel_ind1_isis_spb_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2)) alcatel_ind1_isis_spb_sys_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 1)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysControlBvlan'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysAdminState'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysNumLSPs'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1isisSpbSysLastSpfRun'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysLastEnabledTime'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysOverloadStatus'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysOverloadOnBootTimeout'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysOverloadOnBoot'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysOverloadTimeout'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysSetOverload'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1isisSpbSysLastSpfRunTimeStamp'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysLastEnabledTimeStamp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_sys_group_spbm = alcatelIND1IsisSpbSysGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbSys') alcatel_ind1_isis_spb_protocol_config_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 2)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolSpfMaxWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolSpfInitialWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolSpfSecondWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolLspMaxWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolLspInitialWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolLspSecondWait'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolGracefulRestart'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolGRHelperMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_protocol_config_group_spbm = alcatelIND1IsisSpbProtocolConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbProtocolConfigGroupSPBM.setDescription('The collection of objects used to represent alcatelIND1IsisSpbProtocol') alcatel_ind1_isis_spb_adj_static_entry_config_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 3)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryHelloInterval'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryIfAdminState'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryMetric'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryRowStatus'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryEctAlgorithm'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryRowStatus'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbvEctStaticEntrySpvid')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_adj_static_entry_config_group_spbm = alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM.setDescription('The collection of objects used to represent Isis Spb Adjacent Static information') alcatel_ind1_isis_spb_sys_config_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 4)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysAreaAddress'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysBridgePriority'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysControlAddr'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysDigestConvention'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysId'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbmSysMode'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbmSysSPSourceId'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbvSysMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_sys_config_group_spbm = alcatelIND1IsisSpbSysConfigGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSysConfigGroupSPBM.setDescription('The collection of objects to represent Isis Spb System information') alcatel_ind1_isis_spb_adj_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 5)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryAdjState'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryHoldTimer'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryNeighPriority'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryPeerSysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryRestartStatus'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryRestartSupport'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryCircuitId'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryIfOperState'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryMulticastMode'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjStaticEntryAFDConfig'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_adj_group_spbm = alcatelIND1IsisSpbAdjGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbAdjGroupSPBM.setDescription('The collection of objects to represent Isis Spb Adjacent Group SPBM information') alcatel_ind1_isis_spb_ingress_mac_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 6)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbIngressMacSysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbIngressMacIfIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_ingress_mac_group_spbm = alcatelIND1IsisSpbIngressMacGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbIngressMacGroupSPBM.setDescription('The collection of objects to represent Isis Spb Ingress Mac Group') alcatel_ind1_isis_spb_lsp_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 7)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPAllocLen'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPAttributes'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPBuff'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPChecksum'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPLifetimeRemain'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPMaxArea'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPPktType'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPPktVersion'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPSeq'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPSysIdLen'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPUsedLen'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPVersion')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_lsp_group_spbm = alcatelIND1IsisSpbLSPGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbLSPGroupSPBM.setDescription('The collection of objects to represent Isis Spb LSP Group SPBM information') alcatel_ind1_isis_spb_multicast_source_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 8)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceReachable'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceSysName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_multicast_source_group_spbm = alcatelIND1IsisSpbMulticastSourceGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastSourceGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Source Group SPBM information') alcatel_ind1_isis_spb_multicast_table_entry_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 9)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryIsid'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntrySysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntrySrcMac')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_multicast_table_entry_group_spbm = alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbMulticastTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Multicast Group SPBM information') alcatel_ind1_isis_spb_service_table_entry_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 10)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntryIsidFlags'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntrySysName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_service_table_entry_group_spbm = alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbServiceTableEntryGroupSPBM.setDescription('The collection of objects to represent Isis Spb Service Group SPBM information') alcatel_ind1_isis_spb_spf_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 11)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfHopCount'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfMetric'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfNextHopSysName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfNextHopSysMac'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfIfIndex'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfSysName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_spf_group_spbm = alcatelIND1IsisSpbSpfGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbSpfGroupSPBM.setDescription('The collection of objects to represent Isis Spb Spf Group SPBM information') alcatel_ind1_isis_spb_unicast_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 12)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastOutboundIfIndex'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastSysName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_unicast_group_spbm = alcatelIND1IsisSpbUnicastGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbUnicastGroupSPBM.setDescription('The collection of objects to represent Isis Spb Unicast Group SPBM information') alcatel_ind1_isis_spb_node_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 13)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeBridgePriority'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeSPSourceId'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeSysName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_node_group_spbm = alcatelIND1IsisSpbNodeGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbNodeGroupSPBM.setDescription('The collection of objects to represent Isis Spb Node Group SPBM information') alcatel_ind1_isis_spb_vpn_bind_table_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 14)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindImportRouteMap'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNBindRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_vpn_bind_table_group_spbm = alcatelIND1IsisSpbVPNBindTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNBindTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Bind Table Group SPBM information') alcatel_ind1_isis_spb_vpn_route_table_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 15)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRouteNodeName'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRouteMetric')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_vpn_route_table_group_spbm = alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRouteTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Route Table Group SPBM information') alcatel_ind1_isis_spb_vpn_redist_vrf_table_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 16)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistVrfRouteMap'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistVrfRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_vpn_redist_vrf_table_group_spbm = alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Vrf Table Group SPBM information') alcatel_ind1_isis_spb_vpn_redist_isid_table_group_spbm = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 1, 17)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistIsidRouteMap'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1SpbIPVPNRedistIsidRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_vpn_redist_isid_table_group_spbm = alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM.setDescription('The collection of objects to represent Isis Spb Vpn Redist Isid Table Group SPBM information') alcatel_ind1_isis_spb_compliance_spbm = module_compliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 10, 17, 1, 2, 2, 1)).setObjects(('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSysGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbAdjGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbIngressMacGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbLSPGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbProtocolConfigGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastSourceGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbMulticastTableEntryGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbServiceTableEntryGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbSpfGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbUnicastGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbNodeGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbVPNBindTableGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbVPNRouteTableGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM'), ('ALCATEL-IND1-ISIS-SPB-MIB', 'alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alcatel_ind1_isis_spb_compliance_spbm = alcatelIND1IsisSpbComplianceSPBM.setStatus('current') if mibBuilder.loadTexts: alcatelIND1IsisSpbComplianceSPBM.setDescription('Compliance to Alcatel IND1 ISIS SPBM mode') mibBuilder.exportSymbols('ALCATEL-IND1-ISIS-SPB-MIB', alcatelIND1IsisSpbvSysMode=alcatelIND1IsisSpbvSysMode, alcatelIND1IsisSpbSysAdminState=alcatelIND1IsisSpbSysAdminState, alcatelIND1IsisSpbSpfNextHopSysName=alcatelIND1IsisSpbSpfNextHopSysName, alcatelIND1IsisSpbNodeGroupSPBM=alcatelIND1IsisSpbNodeGroupSPBM, alcatelIND1SpbIPVPNRedistVrfTableEntry=alcatelIND1SpbIPVPNRedistVrfTableEntry, alcatelIND1IsisSpbMulticastSourceSysMac=alcatelIND1IsisSpbMulticastSourceSysMac, alcatelIND1IsisSpbMib=alcatelIND1IsisSpbMib, alcatelIND1IsisSpbLSPTable=alcatelIND1IsisSpbLSPTable, alcatelIND1IsisSpbIngressMacSysName=alcatelIND1IsisSpbIngressMacSysName, alcatelIND1SpbIPVPNRedistVrfDestIsid=alcatelIND1SpbIPVPNRedistVrfDestIsid, alcatelIND1SpbIPVPNRedistIsidDestIsid=alcatelIND1SpbIPVPNRedistIsidDestIsid, alcatelIND1IsisSpbProtocolSpfInitialWait=alcatelIND1IsisSpbProtocolSpfInitialWait, alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier=alcatelIND1IsisSpbAdjStaticEntryHelloMultiplier, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTimeStamp, alcatelIND1IsisSpbLSPAttributes=alcatelIND1IsisSpbLSPAttributes, alcatelIND1IsisSpbVPNBindTableGroupSPBM=alcatelIND1IsisSpbVPNBindTableGroupSPBM, alcatelIND1IsisSpbAdjStaticTableEntry=alcatelIND1IsisSpbAdjStaticTableEntry, alcatelIND1SpbIPVPNBindImportRouteMap=alcatelIND1SpbIPVPNBindImportRouteMap, alcatelIND1SpbIPVPNRedistIsidSourceIsid=alcatelIND1SpbIPVPNRedistIsidSourceIsid, alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM=alcatelIND1IsisSpbVPNRedistVrfTableGroupSPBM, alcatelIND1IsisSpbSysId=alcatelIND1IsisSpbSysId, alcatelIND1IsisSpbAdjDynamicEntryPeerSysName=alcatelIND1IsisSpbAdjDynamicEntryPeerSysName, alcatelIND1IsisSpbProtocolLspMaxWait=alcatelIND1IsisSpbProtocolLspMaxWait, alcatelIND1IsisSpbLSPEntry=alcatelIND1IsisSpbLSPEntry, alcatelIND1IsisSpbLSPPktType=alcatelIND1IsisSpbLSPPktType, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopName, alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx=alcatelIND1SpbIPVPNRedistVrfTableEntryTopIx, alcatelIND1IsisSpbEctStaticEntryEctAlgorithm=alcatelIND1IsisSpbEctStaticEntryEctAlgorithm, alcatelIND1IsisSpbIngressMacBvlan=alcatelIND1IsisSpbIngressMacBvlan, alcatelIND1SpbIPVPNRedistIsidTable=alcatelIND1SpbIPVPNRedistIsidTable, alcatelIND1IsisSpbAdjStaticTable=alcatelIND1IsisSpbAdjStaticTable, alcatelIND1IsisSpbMulticastSourceGroupSPBM=alcatelIND1IsisSpbMulticastSourceGroupSPBM, alcatelIND1IsisSpbMulticastTableEntrySysName=alcatelIND1IsisSpbMulticastTableEntrySysName, alcatelIND1IsisSpbMulticastTableEntryGroupSPBM=alcatelIND1IsisSpbMulticastTableEntryGroupSPBM, alcatelIND1IsisSpbProtocolLspSecondWait=alcatelIND1IsisSpbProtocolLspSecondWait, alcatelIND1SpbIPVPNRouteNodeName=alcatelIND1SpbIPVPNRouteNodeName, alcatelIND1IsisSpbSysNumLSPs=alcatelIND1IsisSpbSysNumLSPs, alcatelIND1IsisSpbServiceTableEntryTopIx=alcatelIND1IsisSpbServiceTableEntryTopIx, alcatelIND1IsisSpbUnicastBvlan=alcatelIND1IsisSpbUnicastBvlan, alcatelIND1IsisSpbConformance=alcatelIND1IsisSpbConformance, alcatelIND1IsisSpbLSPGroupSPBM=alcatelIND1IsisSpbLSPGroupSPBM, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysMac, AlcatelIND1IsisSpbBridgePriority=AlcatelIND1IsisSpbBridgePriority, alcatelIND1IsisSpbSysSetOverload=alcatelIND1IsisSpbSysSetOverload, alcatelIND1IsisSpbUnicastSysName=alcatelIND1IsisSpbUnicastSysName, alcatelIND1IsisSpbmSysMode=alcatelIND1IsisSpbmSysMode, alcatelIND1IsisSpbServiceTableEntryGroupSPBM=alcatelIND1IsisSpbServiceTableEntryGroupSPBM, alcatelIND1IsisSpbNodeSysName=alcatelIND1IsisSpbNodeSysName, alcatelIND1IsisSpbAdjDynamicEntryHoldTimer=alcatelIND1IsisSpbAdjDynamicEntryHoldTimer, alcatelIND1IsisSpbMulticastTableEntryBvlan=alcatelIND1IsisSpbMulticastTableEntryBvlan, alcatelIND1IsisSpbSysControlAddr=alcatelIND1IsisSpbSysControlAddr, alcatelIND1IsisSpbAdjDynamicEntryNeighPriority=alcatelIND1IsisSpbAdjDynamicEntryNeighPriority, AlcatelIND1IsisSpbLinkMetric=AlcatelIND1IsisSpbLinkMetric, alcatelIND1IsisSpbSysName=alcatelIND1IsisSpbSysName, alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryNHopMac, alcatelIND1IsisSpbEctStaticEntryMulticastMode=alcatelIND1IsisSpbEctStaticEntryMulticastMode, alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx=alcatelIND1IsisSpbMulticastSourceSpfTableEntryTopIx, alcatelIND1IsisSpbLSPBuff=alcatelIND1IsisSpbLSPBuff, alcatelIND1IsisSpbSysOverloadOnBoot=alcatelIND1IsisSpbSysOverloadOnBoot, alcatelIND1SpbIPVPNRoutePrefixLen=alcatelIND1SpbIPVPNRoutePrefixLen, alcatelIND1IsisSpbAdjDynamicEntry=alcatelIND1IsisSpbAdjDynamicEntry, alcatelIND1IsisSpbMibObjects=alcatelIND1IsisSpbMibObjects, alcatelIND1SpbIPVPNRouteGateway=alcatelIND1SpbIPVPNRouteGateway, alcatelIND1IsisSpbAdjDynamicEntryRestartStatus=alcatelIND1IsisSpbAdjDynamicEntryRestartStatus, AlcatelIND1IsisSpbMTID=AlcatelIND1IsisSpbMTID, alcatelIND1IsisSpbIngressMacSysMac=alcatelIND1IsisSpbIngressMacSysMac, alcatelIND1IsisSpbAdjDynamicEntryAdjState=alcatelIND1IsisSpbAdjDynamicEntryAdjState, alcatelIND1IsisSpbIngressMacFilterEntry=alcatelIND1IsisSpbIngressMacFilterEntry, alcatelIND1IsisSpbLSPVersion=alcatelIND1IsisSpbLSPVersion, alcatelIND1IsisSpbLSPPktVersion=alcatelIND1IsisSpbLSPPktVersion, alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime=alcatelIND1IsisSpbAdjDynamicEntryAdjUpTime, alcatelIND1IsisSpbAdjDynamicEntryTopIx=alcatelIND1IsisSpbAdjDynamicEntryTopIx, AlcatelIND1IsisSpbMode=AlcatelIND1IsisSpbMode, alcatelIND1SpbIPVPNBindVrfName=alcatelIND1SpbIPVPNBindVrfName, AlcatelSpbServiceIdentifier=AlcatelSpbServiceIdentifier, AlcatelIND1IsisSpbIfOperState=AlcatelIND1IsisSpbIfOperState, alcatelIND1IsisSpbNodeSysId=alcatelIND1IsisSpbNodeSysId, alcatelIND1IsisSpbMulticastTableEntry=alcatelIND1IsisSpbMulticastTableEntry, alcatelIND1IsisSpbSpfSysMac=alcatelIND1IsisSpbSpfSysMac, alcatelIND1IsisSpbSysBridgePriority=alcatelIND1IsisSpbSysBridgePriority, alcatelIND1IsisSpbSys=alcatelIND1IsisSpbSys, alcatelIND1IsisSpbAdjStaticEntryMetric=alcatelIND1IsisSpbAdjStaticEntryMetric, alcatelIND1IsisSpbSpfTable=alcatelIND1IsisSpbSpfTable, alcatelIND1SpbIPVPNBindTable=alcatelIND1SpbIPVPNBindTable, alcatelIND1IsisSpbProtocolSpfSecondWait=alcatelIND1IsisSpbProtocolSpfSecondWait, alcatelIND1IsisSpbComplianceSPBM=alcatelIND1IsisSpbComplianceSPBM, AlcatelIND1IsisSpbDigestConvention=AlcatelIND1IsisSpbDigestConvention, alcatelIND1isisSpbSysLastSpfRun=alcatelIND1isisSpbSysLastSpfRun, alcatelIND1IsisSpbEctStaticEntryRowStatus=alcatelIND1IsisSpbEctStaticEntryRowStatus, alcatelIND1SpbIPVPNRedistIsidRowStatus=alcatelIND1SpbIPVPNRedistIsidRowStatus, alcatelIND1IsisSpbAdjDynamicEntryPeerSysId=alcatelIND1IsisSpbAdjDynamicEntryPeerSysId, alcatelIND1IsisSpbGroups=alcatelIND1IsisSpbGroups, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBvlan, alcatelIND1SpbIPVPNRedistVrfTable=alcatelIND1SpbIPVPNRedistVrfTable, alcatelIND1IsisSpbMulticastSourceTopIx=alcatelIND1IsisSpbMulticastSourceTopIx, alcatelIND1IsisSpbProtocolGracefulRestart=alcatelIND1IsisSpbProtocolGracefulRestart, alcatelIND1IsisSpbUnicastTopIx=alcatelIND1IsisSpbUnicastTopIx, alcatelIND1IsisSpbEctStaticTable=alcatelIND1IsisSpbEctStaticTable, alcatelIND1isisSpbSysLastSpfRunTimeStamp=alcatelIND1isisSpbSysLastSpfRunTimeStamp, alcatelIND1IsisSpbAdjDynamicEntryRestartSupport=alcatelIND1IsisSpbAdjDynamicEntryRestartSupport, AlcatelIND1IsisSpbSystemName=AlcatelIND1IsisSpbSystemName, alcatelIND1SpbIPVPNRouteTable=alcatelIND1SpbIPVPNRouteTable, alcatelIND1IsisSpbSysLastEnabledTime=alcatelIND1IsisSpbSysLastEnabledTime, alcatelIND1IsisSpbProtocolGRHelperMode=alcatelIND1IsisSpbProtocolGRHelperMode, alcatelIND1SpbIPVPNRouteMetric=alcatelIND1SpbIPVPNRouteMetric, alcatelIND1IsisSpbSysGroupSPBM=alcatelIND1IsisSpbSysGroupSPBM, alcatelIND1IsisSpbAdjStaticEntryAFDConfig=alcatelIND1IsisSpbAdjStaticEntryAFDConfig, alcatelIND1IsisSpbSysConfigGroupSPBM=alcatelIND1IsisSpbSysConfigGroupSPBM, AlcatelIND1IsisSpbmIsidFlags=AlcatelIND1IsisSpbmIsidFlags, alcatelIND1IsisSpbMulticastSourceTable=alcatelIND1IsisSpbMulticastSourceTable, alcatelIND1IsisSpbNodeBridgePriority=alcatelIND1IsisSpbNodeBridgePriority, alcatelIND1IsisSpbLSPTopIx=alcatelIND1IsisSpbLSPTopIx, alcatelIND1IsisSpbProtocolConfigGroupSPBM=alcatelIND1IsisSpbProtocolConfigGroupSPBM, alcatelIND1IsisSpbLSPMaxArea=alcatelIND1IsisSpbLSPMaxArea, alcatelIND1IsisSpbSysOverloadStatus=alcatelIND1IsisSpbSysOverloadStatus, alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining=alcatelIND1IsisSpbAdjDynamicEntryHoldRemaining, AlcatelIND1IsisSpbmSPsourceId=AlcatelIND1IsisSpbmSPsourceId, alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex=alcatelIND1IsisSpbMulticastSourceSpfTableEntryIfIndex, alcatelIND1IsisSpbSysAreaAddress=alcatelIND1IsisSpbSysAreaAddress, alcatelIND1IsisSpbUnicastTable=alcatelIND1IsisSpbUnicastTable, alcatelIND1IsisSpbLSPId=alcatelIND1IsisSpbLSPId, alcatelIND1IsisSpbMulticastSourceSysName=alcatelIND1IsisSpbMulticastSourceSysName, alcatelIND1IsisSpbServiceTableEntrySysName=alcatelIND1IsisSpbServiceTableEntrySysName, alcatelIND1IsisSpbProtocolConfig=alcatelIND1IsisSpbProtocolConfig, alcatelIND1SpbIPVPNRedistVrfRowStatus=alcatelIND1SpbIPVPNRedistVrfRowStatus, alcatelIND1IsisSpbLSPSeq=alcatelIND1IsisSpbLSPSeq, alcatelIND1IsisSpbNodeTopIx=alcatelIND1IsisSpbNodeTopIx, alcatelIND1IsisSpbServiceTableEntryIsid=alcatelIND1IsisSpbServiceTableEntryIsid, alcatelIND1SpbIPVPNRedistVrfRouteMap=alcatelIND1SpbIPVPNRedistVrfRouteMap, alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed=alcatelIND1IsisSpbAdjDynamicEntryRestartSuppressed, alcatelIND1IsisSpbLSPChecksum=alcatelIND1IsisSpbLSPChecksum, alcatelIND1IsisSpbAdjStaticEntryRowStatus=alcatelIND1IsisSpbAdjStaticEntryRowStatus, alcatelIND1IsisSpbSpfMetric=alcatelIND1IsisSpbSpfMetric, alcatelIND1IsisSpbMulticastSourceSpfTableEntry=alcatelIND1IsisSpbMulticastSourceSpfTableEntry, alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId=alcatelIND1IsisSpbAdjDynamicEntryNbrExtLocalCircuitId, alcatelIND1IsisSpbAdjStaticEntryTopIx=alcatelIND1IsisSpbAdjStaticEntryTopIx, alcatelIND1IsisSpbSpfBvlan=alcatelIND1IsisSpbSpfBvlan, alcatelIND1IsisSpbSpfTableEntry=alcatelIND1IsisSpbSpfTableEntry, alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx=alcatelIND1SpbIPVPNRedistIsidTableEntryTopIx, alcatelIND1IsisSpbServiceTableEntryBvlan=alcatelIND1IsisSpbServiceTableEntryBvlan, AlcatelIND1IsisSpbEctAlgorithm=AlcatelIND1IsisSpbEctAlgorithm, alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric=alcatelIND1IsisSpbMulticastSourceSpfTableEntryMetric, alcatelIND1IsisSpbAdjStaticEntryIfAdminState=alcatelIND1IsisSpbAdjStaticEntryIfAdminState, alcatelIND1IsisSpbLSPAllocLen=alcatelIND1IsisSpbLSPAllocLen, alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexOutbound, alcatelIND1IsisSpbMulticastSourceSpfTable=alcatelIND1IsisSpbMulticastSourceSpfTable, alcatelIND1IsisSpbIngressMacIfIndex=alcatelIND1IsisSpbIngressMacIfIndex, alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryDestMac, alcatelIND1IsisSpbServiceTableEntryIsidFlags=alcatelIND1IsisSpbServiceTableEntryIsidFlags, alcatelIND1SpbIPVPNBindTableEntryTopIx=alcatelIND1SpbIPVPNBindTableEntryTopIx, alcatelIND1SpbIPVPNBindRowStatus=alcatelIND1SpbIPVPNBindRowStatus, alcatelIND1SpbIPVPNRoutePrefix=alcatelIND1SpbIPVPNRoutePrefix, alcatelIND1IsisSpbVPNRouteTableGroupSPBM=alcatelIND1IsisSpbVPNRouteTableGroupSPBM, alcatelIND1IsisSpbvEctStaticEntrySpvid=alcatelIND1IsisSpbvEctStaticEntrySpvid, alcatelIND1IsisSpbAdjStaticEntryHelloInterval=alcatelIND1IsisSpbAdjStaticEntryHelloInterval, alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount=alcatelIND1IsisSpbMulticastSourceSpfTableEntryHopCount, alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM=alcatelIND1IsisSpbVPNRedistIsidTableGroupSPBM, alcatelIND1IsisSpbSysOverloadOnBootTimeout=alcatelIND1IsisSpbSysOverloadOnBootTimeout, alcatelIND1IsisSpbSpfHopCount=alcatelIND1IsisSpbSpfHopCount, alcatelIND1IsisSpbSysLastEnabledTimeStamp=alcatelIND1IsisSpbSysLastEnabledTimeStamp, alcatelIND1SpbIPVPNRouteIsid=alcatelIND1SpbIPVPNRouteIsid, alcatelIND1IsisSpbIngressMacGroupSPBM=alcatelIND1IsisSpbIngressMacGroupSPBM, alcatelIND1IsisSpbServiceTableEntry=alcatelIND1IsisSpbServiceTableEntry, alcatelIND1SpbIPVPNRouteTableEntry=alcatelIND1SpbIPVPNRouteTableEntry, alcatelIND1IsisSpbUnicastTableEntry=alcatelIND1IsisSpbUnicastTableEntry, alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound=alcatelIND1IsisSpbMulticastTableEntryIfIndexInbound, alcatelIND1IsisSpbAdjDynamicEntryIfIndex=alcatelIND1IsisSpbAdjDynamicEntryIfIndex, alcatelIND1IsisSpbSpfGroupSPBM=alcatelIND1IsisSpbSpfGroupSPBM, alcatelIND1IsisSpbIngressMacFilterTable=alcatelIND1IsisSpbIngressMacFilterTable, alcatelIND1IsisSpbSpfNextHopSysMac=alcatelIND1IsisSpbSpfNextHopSysMac, alcatelIND1SpbIPVPNRedistIsidRouteMap=alcatelIND1SpbIPVPNRedistIsidRouteMap, alcatelIND1IsisSpbMulticastTableEntryMulticastMac=alcatelIND1IsisSpbMulticastTableEntryMulticastMac, alcatelIND1IsisSpbMulticastSourceReachable=alcatelIND1IsisSpbMulticastSourceReachable, alcatelIND1SpbIPVPNRedistIsidTableEntry=alcatelIND1SpbIPVPNRedistIsidTableEntry, alcatelIND1IsisSpbUnicastOutboundIfIndex=alcatelIND1IsisSpbUnicastOutboundIfIndex, alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName=alcatelIND1IsisSpbEctStaticEntryRootBridgeSysName, alcatelIND1IsisSpbMulticastSourceEntry=alcatelIND1IsisSpbMulticastSourceEntry, alcatelIND1IsisSpbLSPLifetimeRemain=alcatelIND1IsisSpbLSPLifetimeRemain, alcatelIND1IsisSpbUnicastGroupSPBM=alcatelIND1IsisSpbUnicastGroupSPBM, alcatelIND1IsisSpbServiceTableEntrySysMac=alcatelIND1IsisSpbServiceTableEntrySysMac, alcatelIND1IsisSpbmSysSPSourceId=alcatelIND1IsisSpbmSysSPSourceId, alcatelIND1SpbIPVPNRedistVrfSourceVrf=alcatelIND1SpbIPVPNRedistVrfSourceVrf, alcatelIND1IsisSpbMulticastTableEntryIsid=alcatelIND1IsisSpbMulticastTableEntryIsid, alcatelIND1IsisSpbEctStaticEntryBaseVid=alcatelIND1IsisSpbEctStaticEntryBaseVid, alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac=alcatelIND1IsisSpbMulticastSourceSpfTableEntryBMac, alcatelIND1IsisSpbSysOverloadTimeout=alcatelIND1IsisSpbSysOverloadTimeout, alcatelIND1IsisSpbNodeTable=alcatelIND1IsisSpbNodeTable, alcatelIND1SpbIPVPNBindTableEntry=alcatelIND1SpbIPVPNBindTableEntry, alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM=alcatelIND1IsisSpbAdjStaticEntryConfigGroupSPBM, alcatelIND1IsisSpbEctStaticEntryTopIx=alcatelIND1IsisSpbEctStaticEntryTopIx, alcatelIND1IsisSpbSpfIfIndex=alcatelIND1IsisSpbSpfIfIndex, alcatelIND1IsisSpbMulticastTable=alcatelIND1IsisSpbMulticastTable, alcatelIND1IsisSpbAdjStaticEntryCircuitId=alcatelIND1IsisSpbAdjStaticEntryCircuitId, alcatelIND1IsisSpbMulticastSourceBvlan=alcatelIND1IsisSpbMulticastSourceBvlan, PYSNMP_MODULE_ID=alcatelIND1IsisSpbMib, AlcatelIND1IsisSpbAdjState=AlcatelIND1IsisSpbAdjState, alcatelIND1IsisSpbAdjStaticEntryIfOperState=alcatelIND1IsisSpbAdjStaticEntryIfOperState, alcatelIND1IsisSpbLSPSysIdLen=alcatelIND1IsisSpbLSPSysIdLen, alcatelIND1IsisSpbAdjGroupSPBM=alcatelIND1IsisSpbAdjGroupSPBM, alcatelIND1IsisSpbCompliances=alcatelIND1IsisSpbCompliances, alcatelIND1IsisSpbSysDigestConvention=alcatelIND1IsisSpbSysDigestConvention, AlcatelIND1IsisSpbmMulticastMode=AlcatelIND1IsisSpbmMulticastMode, alcatelIND1IsisSpbSysControlBvlan=alcatelIND1IsisSpbSysControlBvlan, alcatelIND1SpbIPVPNRouteTableEntryTopIx=alcatelIND1SpbIPVPNRouteTableEntryTopIx, alcatelIND1IsisSpbProtocolSpfMaxWait=alcatelIND1IsisSpbProtocolSpfMaxWait, alcatelIND1IsisSpbEctStaticTableEntry=alcatelIND1IsisSpbEctStaticTableEntry, alcatelIND1IsisSpbNodeTableEntry=alcatelIND1IsisSpbNodeTableEntry, alcatelIND1IsisSpbUnicastSysMac=alcatelIND1IsisSpbUnicastSysMac, alcatelIND1IsisSpbAdjStaticEntryIfIndex=alcatelIND1IsisSpbAdjStaticEntryIfIndex, alcatelIND1IsisSpbMulticastTableEntrySrcMac=alcatelIND1IsisSpbMulticastTableEntrySrcMac, alcatelIND1SpbIPVPNBindIsid=alcatelIND1SpbIPVPNBindIsid, alcatelIND1SpbIPVPNBindGateway=alcatelIND1SpbIPVPNBindGateway, alcatelIND1IsisSpbAdjDynamicTable=alcatelIND1IsisSpbAdjDynamicTable, AlcatelIND1IsisSpbAreaAddress=AlcatelIND1IsisSpbAreaAddress, alcatelIND1IsisSpbProtocolLspInitialWait=alcatelIND1IsisSpbProtocolLspInitialWait, alcatelIND1IsisSpbNodeSPSourceId=alcatelIND1IsisSpbNodeSPSourceId, alcatelIND1IsisSpbSpfSysName=alcatelIND1IsisSpbSpfSysName, alcatelIND1IsisSpbLSPUsedLen=alcatelIND1IsisSpbLSPUsedLen, alcatelIND1IsisSpbMulticastTableEntryTopIx=alcatelIND1IsisSpbMulticastTableEntryTopIx, alcatelIND1IsisSpbServiceTable=alcatelIND1IsisSpbServiceTable)
# # @lc app=leetcode.cn id=236 lang=python3 # # [236] lowest-common-ancestor-of-a-binary-tree # None # @lc code=end
None
#!/usr/bin/env python3 CI_CONFIG = { "build_config": [ { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "alien_pkgs": True, "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "performance", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "gcc-11", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "address", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "undefined", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "thread", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "memory", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "debug", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False } ], "special_build_config": [ { "compiler": "clang-13", "build_type": "debug", "sanitizer": "", "package_type": "deb", "bundled": "bundled", "splitted": "unsplitted", "tidy": "enable", "with_coverage": False }, { "compiler": "clang-13", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "splitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-darwin", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-aarch64", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-freebsd", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-darwin-aarch64", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False }, { "compiler": "clang-13-ppc64le", "build_type": "", "sanitizer": "", "package_type": "binary", "bundled": "bundled", "splitted": "unsplitted", "tidy": "disable", "with_coverage": False } ], "tests_config": { "Stateful tests (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, DatabaseOrdinary, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateful tests (release, DatabaseReplicated, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, wide parts enabled, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, DatabaseOrdinary, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests (release, DatabaseReplicated, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (undefined, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stress test (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (thread, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (release, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests (memory, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Integration tests flaky check (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Compatibility check (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Split build smoke test (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "splitted", "clang_tidy": "disable", "with_coverage": False } }, "Testflows check (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (release-gcc, actions)": { "required_build_properties": { "compiler": "gcc-11", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (release-clang, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (asan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (msan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (tsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Unit tests (ubsan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (debug, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "debug", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (ASan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (MSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "memory", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (TSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "thread", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "AST fuzzer (UBSan, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "undefined", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Release (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "Stateless tests flaky check (address, actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "deb", "build_type": "relwithdebuginfo", "sanitizer": "address", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } }, "ClickHouse Keeper Jepsen (actions)": { "required_build_properties": { "compiler": "clang-13", "package_type": "binary", "build_type": "relwithdebuginfo", "sanitizer": "none", "bundled": "bundled", "splitted": "unsplitted", "clang_tidy": "disable", "with_coverage": False } } } } def build_config_to_string(build_config): if build_config["package_type"] == "performance": return "performance" return "_".join([ build_config['compiler'], build_config['build_type'] if build_config['build_type'] else "relwithdebuginfo", build_config['sanitizer'] if build_config['sanitizer'] else "none", build_config['bundled'], build_config['splitted'], 'tidy' if 'tidy' in build_config and build_config['tidy'] == 'enable' else 'notidy', 'with_coverage' if 'with_coverage' in build_config and build_config['with_coverage'] else 'without_coverage', build_config['package_type'], ])
ci_config = {'build_config': [{'compiler': 'clang-13', 'build_type': '', 'sanitizer': '', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'alien_pkgs': True, 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': '', 'package_type': 'performance', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'gcc-11', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': 'address', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': 'undefined', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': 'thread', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': 'memory', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': 'debug', 'sanitizer': '', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}], 'special_build_config': [{'compiler': 'clang-13', 'build_type': 'debug', 'sanitizer': '', 'package_type': 'deb', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'enable', 'with_coverage': False}, {'compiler': 'clang-13', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'splitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13-darwin', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13-aarch64', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13-freebsd', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13-darwin-aarch64', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}, {'compiler': 'clang-13-ppc64le', 'build_type': '', 'sanitizer': '', 'package_type': 'binary', 'bundled': 'bundled', 'splitted': 'unsplitted', 'tidy': 'disable', 'with_coverage': False}], 'tests_config': {'Stateful tests (address, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (thread, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (memory, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (ubsan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'undefined', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (debug, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'debug', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (release, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (release, DatabaseOrdinary, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateful tests (release, DatabaseReplicated, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (address, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (thread, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (memory, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (ubsan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'undefined', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (debug, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'debug', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (release, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (release, wide parts enabled, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (release, DatabaseOrdinary, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests (release, DatabaseReplicated, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stress test (address, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stress test (thread, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stress test (undefined, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'undefined', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stress test (memory, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stress test (debug, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'debug', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Integration tests (asan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Integration tests (thread, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Integration tests (release, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Integration tests (memory, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Integration tests flaky check (asan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Compatibility check (actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Split build smoke test (actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'binary', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'splitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Testflows check (actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (release-gcc, actions)': {'required_build_properties': {'compiler': 'gcc-11', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (release-clang, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'binary', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (asan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (msan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (tsan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Unit tests (ubsan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'undefined', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'AST fuzzer (debug, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'debug', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'AST fuzzer (ASan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'AST fuzzer (MSan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'memory', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'AST fuzzer (TSan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'thread', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'AST fuzzer (UBSan, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'undefined', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Release (actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'Stateless tests flaky check (address, actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'deb', 'build_type': 'relwithdebuginfo', 'sanitizer': 'address', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}, 'ClickHouse Keeper Jepsen (actions)': {'required_build_properties': {'compiler': 'clang-13', 'package_type': 'binary', 'build_type': 'relwithdebuginfo', 'sanitizer': 'none', 'bundled': 'bundled', 'splitted': 'unsplitted', 'clang_tidy': 'disable', 'with_coverage': False}}}} def build_config_to_string(build_config): if build_config['package_type'] == 'performance': return 'performance' return '_'.join([build_config['compiler'], build_config['build_type'] if build_config['build_type'] else 'relwithdebuginfo', build_config['sanitizer'] if build_config['sanitizer'] else 'none', build_config['bundled'], build_config['splitted'], 'tidy' if 'tidy' in build_config and build_config['tidy'] == 'enable' else 'notidy', 'with_coverage' if 'with_coverage' in build_config and build_config['with_coverage'] else 'without_coverage', build_config['package_type']])
# import pytest class TestTime: def test___str__(self): # synced assert True def test_shift(self): # synced assert True def test_to_isoformat(self): # synced assert True def test_to_format(self): # synced assert True def test_now(self): # synced assert True def test_from_time(self): # synced assert True def test_from_isoformat(self): # synced assert True def test_from_format(self): # synced assert True def test_from_string(self): # synced assert True def test_infer(self): # synced assert True def test_TimeZone(self): # synced assert True def test_Hour(self): # synced assert True def test_Minute(self): # synced assert True def test_Second(self): # synced assert True def test_MicroSecond(self): # synced assert True
class Testtime: def test___str__(self): assert True def test_shift(self): assert True def test_to_isoformat(self): assert True def test_to_format(self): assert True def test_now(self): assert True def test_from_time(self): assert True def test_from_isoformat(self): assert True def test_from_format(self): assert True def test_from_string(self): assert True def test_infer(self): assert True def test__time_zone(self): assert True def test__hour(self): assert True def test__minute(self): assert True def test__second(self): assert True def test__micro_second(self): assert True
def main(): data = open("day9/input.txt", "r") data = [int(line.strip()) for line in data] answer = 0 for i in range(25, len(data)): value = data[i] found = False spliced_data = data[i - 25 : i] for num in spliced_data: num2 = value - num if num2 in spliced_data and num2 != num and num + num2 == value: found = True if found == False: answer = value break print(answer) if __name__ == "__main__": main()
def main(): data = open('day9/input.txt', 'r') data = [int(line.strip()) for line in data] answer = 0 for i in range(25, len(data)): value = data[i] found = False spliced_data = data[i - 25:i] for num in spliced_data: num2 = value - num if num2 in spliced_data and num2 != num and (num + num2 == value): found = True if found == False: answer = value break print(answer) if __name__ == '__main__': main()
# Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: # # Integers in each row are sorted from left to right. # The first integer of each row is greater than the last integer of the previous row. # For example, # # Consider the following matrix: # # [ # [1, 3, 5, 7], # [10, 11, 16, 20], # [23, 30, 34, 50] # ] # Given target = 3, return true. class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ height = len(matrix) if height == 0: return False width = len(matrix[0]) if width == 0: return False iy = 0 for y in range(height): if target < matrix[y][0]: if y == 0: return False else: iy = y - 1 break iy = height - 1 for x in matrix[iy]: if x == target: return True return False
class Solution(object): def search_matrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ height = len(matrix) if height == 0: return False width = len(matrix[0]) if width == 0: return False iy = 0 for y in range(height): if target < matrix[y][0]: if y == 0: return False else: iy = y - 1 break iy = height - 1 for x in matrix[iy]: if x == target: return True return False
# # PySNMP MIB module BSUCLK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BSUCLK-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:41:36 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) # bsu, = mibBuilder.importSymbols("ANIROOT-MIB", "bsu") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Unsigned32, ModuleIdentity, iso, ObjectIdentity, IpAddress, Bits, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, TimeTicks, MibIdentifier, Integer32, Gauge32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "ModuleIdentity", "iso", "ObjectIdentity", "IpAddress", "Bits", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "TimeTicks", "MibIdentifier", "Integer32", "Gauge32", "Counter64") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") aniBsuClock = ModuleIdentity((1, 3, 6, 1, 4, 1, 4325, 3, 4)) if mibBuilder.loadTexts: aniBsuClock.setLastUpdated('0105091130Z') if mibBuilder.loadTexts: aniBsuClock.setOrganization('Aperto Networks') if mibBuilder.loadTexts: aniBsuClock.setContactInfo(' Postal: Aperto Networks Inc 1637 S Main Street Milpitas, California 95035 Tel: +1 408 719 9977 ') if mibBuilder.loadTexts: aniBsuClock.setDescription('This module is used to configure the clock time on the BSU. BSUs need to obtain and set their current clock time at boot up. Sus will communicate with the BSU during their own boot up and set their own clock time to that of BSU. Time at the BSU can be set either through SNTP or manually. It is recommended to use SNTP to obtain time. ') aniBsuClkSntpTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setDescription('This is used to set the appropriate Time Zone offset from GMT. The format of data should be +Hour:Min or -Hour:Min. The valid Hour should be between -13 to +14 The valid Min should be 00,15,30 or 45 For example: +12:00 or +12:30 or -3:45 ') aniBsuClkSntpDstEnable = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setDescription('This shows whether Daylight Saving is enabled or not. It gives user the option to incorporate Daylight Saving Time in the configuration. ') aniBsuClkSntpDstStart = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setDescription("Used to specify the start of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") aniBsuClkSntpDstEnd = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setDescription("Used to specify the end of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") aniBsuClkSntpEnable = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkSntpEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpEnable.setDescription('This flag is used to enable(1) or disable(2) SNTP. It is recommended to use SNTP rather than manually setting the time to avoid errors in clock times simply due to manual entry across various BSUs. ') aniBsuClkManualTime = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aniBsuClkManualTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkManualTime.setDescription("Used to specify the local clock time manually. It should be entered in the 'mm/dd/yyyy hh:mm:ss' format that is, month/day/year hour:minute:second. When the user sends a set request on this parameter, the aniBsuClkSntpEnable value is automatically set to disable(2), to set this manual time entry on BSU. ") aniBsuClkCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 17))).setMaxAccess("readonly") if mibBuilder.loadTexts: aniBsuClkCurrentTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkCurrentTime.setDescription("The Current Time in 'mm/dd/yy hh:mm:ss' format, that is, month/day/year hour:minute:second. ") mibBuilder.exportSymbols("BSUCLK-MIB", aniBsuClkCurrentTime=aniBsuClkCurrentTime, aniBsuClkSntpDstStart=aniBsuClkSntpDstStart, PYSNMP_MODULE_ID=aniBsuClock, aniBsuClkSntpDstEnable=aniBsuClkSntpDstEnable, aniBsuClock=aniBsuClock, aniBsuClkManualTime=aniBsuClkManualTime, aniBsuClkSntpEnable=aniBsuClkSntpEnable, aniBsuClkSntpTimeZone=aniBsuClkSntpTimeZone, aniBsuClkSntpDstEnd=aniBsuClkSntpDstEnd)
(bsu,) = mibBuilder.importSymbols('ANIROOT-MIB', 'bsu') (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (unsigned32, module_identity, iso, object_identity, ip_address, bits, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, time_ticks, mib_identifier, integer32, gauge32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'IpAddress', 'Bits', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'TimeTicks', 'MibIdentifier', 'Integer32', 'Gauge32', 'Counter64') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') ani_bsu_clock = module_identity((1, 3, 6, 1, 4, 1, 4325, 3, 4)) if mibBuilder.loadTexts: aniBsuClock.setLastUpdated('0105091130Z') if mibBuilder.loadTexts: aniBsuClock.setOrganization('Aperto Networks') if mibBuilder.loadTexts: aniBsuClock.setContactInfo(' Postal: Aperto Networks Inc 1637 S Main Street Milpitas, California 95035 Tel: +1 408 719 9977 ') if mibBuilder.loadTexts: aniBsuClock.setDescription('This module is used to configure the clock time on the BSU. BSUs need to obtain and set their current clock time at boot up. Sus will communicate with the BSU during their own boot up and set their own clock time to that of BSU. Time at the BSU can be set either through SNTP or manually. It is recommended to use SNTP to obtain time. ') ani_bsu_clk_sntp_time_zone = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpTimeZone.setDescription('This is used to set the appropriate Time Zone offset from GMT. The format of data should be +Hour:Min or -Hour:Min. The valid Hour should be between -13 to +14 The valid Min should be 00,15,30 or 45 For example: +12:00 or +12:30 or -3:45 ') ani_bsu_clk_sntp_dst_enable = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnable.setDescription('This shows whether Daylight Saving is enabled or not. It gives user the option to incorporate Daylight Saving Time in the configuration. ') ani_bsu_clk_sntp_dst_start = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstStart.setDescription("Used to specify the start of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") ani_bsu_clk_sntp_dst_end = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpDstEnd.setDescription("Used to specify the end of Daylight Saving Time which should be entered in the 'mmddhh' format where m - month, d - day and h - hour. Can and must be set only if aniBsuClkSntpDstEnable is enabled. ") ani_bsu_clk_sntp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkSntpEnable.setStatus('current') if mibBuilder.loadTexts: aniBsuClkSntpEnable.setDescription('This flag is used to enable(1) or disable(2) SNTP. It is recommended to use SNTP rather than manually setting the time to avoid errors in clock times simply due to manual entry across various BSUs. ') ani_bsu_clk_manual_time = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aniBsuClkManualTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkManualTime.setDescription("Used to specify the local clock time manually. It should be entered in the 'mm/dd/yyyy hh:mm:ss' format that is, month/day/year hour:minute:second. When the user sends a set request on this parameter, the aniBsuClkSntpEnable value is automatically set to disable(2), to set this manual time entry on BSU. ") ani_bsu_clk_current_time = mib_scalar((1, 3, 6, 1, 4, 1, 4325, 3, 4, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 17))).setMaxAccess('readonly') if mibBuilder.loadTexts: aniBsuClkCurrentTime.setStatus('current') if mibBuilder.loadTexts: aniBsuClkCurrentTime.setDescription("The Current Time in 'mm/dd/yy hh:mm:ss' format, that is, month/day/year hour:minute:second. ") mibBuilder.exportSymbols('BSUCLK-MIB', aniBsuClkCurrentTime=aniBsuClkCurrentTime, aniBsuClkSntpDstStart=aniBsuClkSntpDstStart, PYSNMP_MODULE_ID=aniBsuClock, aniBsuClkSntpDstEnable=aniBsuClkSntpDstEnable, aniBsuClock=aniBsuClock, aniBsuClkManualTime=aniBsuClkManualTime, aniBsuClkSntpEnable=aniBsuClkSntpEnable, aniBsuClkSntpTimeZone=aniBsuClkSntpTimeZone, aniBsuClkSntpDstEnd=aniBsuClkSntpDstEnd)
""" Cut matrices by row or column and apply operations to them. """ class Cutter: """ Base class that pre-calculates cuts and can use them to apply a function to the layout. Each "cut" is a row or column, depending on the value of by_row. The entries are iterated forward or backwards, depending on the value of forward. """ def __init__(self, layout, by_row=True): self.layout = layout cuts = layout.height if by_row else layout.width cutter = self.cut_row if by_row else self.cut_column self.cuts = [cutter(i) for i in range(cuts)] def apply(self, function): """ For each row or column in cuts, read a list of its colors, apply the function to that list of colors, then write it back to the layout. """ for cut in self.cuts: value = self.read(cut) function(value) self.write(cut, value) class Slicer(Cutter): """ Implementation of Cutter that uses slices of the underlying colorlist. Does not work if the Matrix layout is serpentine or has any reflections or rotations. """ def cut_row(self, i): return slice(self.layout.width * i, self.layout.width * (i + 1)) def cut_column(self, i): return slice(i, None, self.layout.width) def read(self, cut): return self.layout.color_list[cut] def write(self, cut, value): self.layout.color_list[cut] = value class Indexer(Cutter): """ Slower implementation of Cutter that uses lists of indices and the Matrix interface. """ def cut_row(self, i): return [(column, i) for column in range(self.layout.width)] def cut_column(self, i): return [(i, row) for row in range(self.layout.height)] def read(self, cut): return [self.layout.get(*i) for i in cut] def write(self, cut, value): for i, v in zip(cut, value): self.layout.set(*i, color=v)
""" Cut matrices by row or column and apply operations to them. """ class Cutter: """ Base class that pre-calculates cuts and can use them to apply a function to the layout. Each "cut" is a row or column, depending on the value of by_row. The entries are iterated forward or backwards, depending on the value of forward. """ def __init__(self, layout, by_row=True): self.layout = layout cuts = layout.height if by_row else layout.width cutter = self.cut_row if by_row else self.cut_column self.cuts = [cutter(i) for i in range(cuts)] def apply(self, function): """ For each row or column in cuts, read a list of its colors, apply the function to that list of colors, then write it back to the layout. """ for cut in self.cuts: value = self.read(cut) function(value) self.write(cut, value) class Slicer(Cutter): """ Implementation of Cutter that uses slices of the underlying colorlist. Does not work if the Matrix layout is serpentine or has any reflections or rotations. """ def cut_row(self, i): return slice(self.layout.width * i, self.layout.width * (i + 1)) def cut_column(self, i): return slice(i, None, self.layout.width) def read(self, cut): return self.layout.color_list[cut] def write(self, cut, value): self.layout.color_list[cut] = value class Indexer(Cutter): """ Slower implementation of Cutter that uses lists of indices and the Matrix interface. """ def cut_row(self, i): return [(column, i) for column in range(self.layout.width)] def cut_column(self, i): return [(i, row) for row in range(self.layout.height)] def read(self, cut): return [self.layout.get(*i) for i in cut] def write(self, cut, value): for (i, v) in zip(cut, value): self.layout.set(*i, color=v)
#!/usr/bin/env python3 """SoloLearn > Code Coach > Pig Latin""" english = input('Enter a phrase without punctuation: ').lower() piglatin = '' # NOT REQUIRED: Sanitize the string common_punctuation = ('.', '?', '!', ',', ';', ':') for punctuation in common_punctuation: english = english.replace(punctuation, '') # igpay atinlay for word in english.split(): wordlen = len(word) word = word[1:wordlen] + word[0] + 'ay' piglatin = piglatin + word + ' ' print(piglatin.strip())
"""SoloLearn > Code Coach > Pig Latin""" english = input('Enter a phrase without punctuation: ').lower() piglatin = '' common_punctuation = ('.', '?', '!', ',', ';', ':') for punctuation in common_punctuation: english = english.replace(punctuation, '') for word in english.split(): wordlen = len(word) word = word[1:wordlen] + word[0] + 'ay' piglatin = piglatin + word + ' ' print(piglatin.strip())
# # @lc app=leetcode id=557 lang=python3 # # [557] Reverse Words in a String III # # https://leetcode.com/problems/reverse-words-in-a-string-iii/description/ # # algorithms # Easy (66.26%) # Likes: 778 # Dislikes: 80 # Total Accepted: 166.2K # Total Submissions: 248.5K # Testcase Example: `"Let's take LeetCode contest"` # # Given a string, you need to reverse the order of characters in each word # within a sentence while still preserving whitespace and initial word order. # # Example 1: # # Input: "Let's take LeetCode contest" # Output: "s'teL ekat edoCteeL tsetnoc" # # # # Note: # In the string, each word is separated by single space and there will not be # any extra space in the string. # # # @lc code=start class Solution: def reverseWords(self, s: str) -> str: lst = s.split(' ') return ' '.join([w[::-1] for w in lst]) # @lc code=end
class Solution: def reverse_words(self, s: str) -> str: lst = s.split(' ') return ' '.join([w[::-1] for w in lst])
dvs = [] for i in range(9): dvs.append(int(input())) for i in dvs: for j in dvs: if i != j and i + j == sum(dvs) - 100: dvs.remove(i) dvs.remove(j) break print(*dvs)
dvs = [] for i in range(9): dvs.append(int(input())) for i in dvs: for j in dvs: if i != j and i + j == sum(dvs) - 100: dvs.remove(i) dvs.remove(j) break print(*dvs)
def put(data,location): f = open(location,"w") for i in data: f.write(i+"\n\n--------------====================--------------\n\n") f.close()
def put(data, location): f = open(location, 'w') for i in data: f.write(i + '\n\n--------------====================--------------\n\n') f.close()
def main(): print(not 1) if __name__ == "__main__": main()
def main(): print(not 1) if __name__ == '__main__': main()
# """ # x = int(input("Enter 1st Number ")) # y = int(input("Enter 2nd Number ")) # z = int(input("Enter 3rd Number ")) # print("The sum is : " + str(x + y + z)) # """ name = "Hey There !!" print(name.replace('ey', 'ii')) print(name.count("Hey There!!")) print(name.lower()) print(name.upper()) cars = ['Lamborghini', 'Ferrari', 'BMW', 'Audi'] cars.insert(1, 'Mercedes') print(cars) cars.sort() print(cars)
name = 'Hey There !!' print(name.replace('ey', 'ii')) print(name.count('Hey There!!')) print(name.lower()) print(name.upper()) cars = ['Lamborghini', 'Ferrari', 'BMW', 'Audi'] cars.insert(1, 'Mercedes') print(cars) cars.sort() print(cars)
#!/usr/bin/python3 magic = [0x47, 0xCD, 0x40, 0xC6, 0x7A, 0xD9, 0x45, 0xD9, 0x45, 0xAF, 0x2F, 0xAF, 0x50, 0xC0, 0x50, 0xFC] x = 1 for i in magic: print(chr(i ^ x), end = '') x ^= 0x80
magic = [71, 205, 64, 198, 122, 217, 69, 217, 69, 175, 47, 175, 80, 192, 80, 252] x = 1 for i in magic: print(chr(i ^ x), end='') x ^= 128
class Suit: """Representation of a standard playing card suit.""" def __init__(self, name: str, color: str) -> None: self.name = name self.color = color def __repr__(self) -> str: return f"Suit({self.name}, {self.color})" def __str__(self) -> str: return f"{self.name}"
class Suit: """Representation of a standard playing card suit.""" def __init__(self, name: str, color: str) -> None: self.name = name self.color = color def __repr__(self) -> str: return f'Suit({self.name}, {self.color})' def __str__(self) -> str: return f'{self.name}'
DATA = [ '210.153.84.0/24', '210.136.161.0/24', '210.153.86.0/24', '124.146.174.0/24', '124.146.175.0/24', '202.229.176.0/24', '202.229.177.0/24', '202.229.178.0/24']
data = ['210.153.84.0/24', '210.136.161.0/24', '210.153.86.0/24', '124.146.174.0/24', '124.146.175.0/24', '202.229.176.0/24', '202.229.177.0/24', '202.229.178.0/24']
class Solution(object): def fib(self, n): """ :type n: int :rtype: int """ d = {} def fibo_r(n): if(n in d): return d[n] if(n < 2): res = n else: res = fibo_r(n-1) + fibo_r(n-2) d[n] = res return res return fibo_r(n)
class Solution(object): def fib(self, n): """ :type n: int :rtype: int """ d = {} def fibo_r(n): if n in d: return d[n] if n < 2: res = n else: res = fibo_r(n - 1) + fibo_r(n - 2) d[n] = res return res return fibo_r(n)
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------------------------------------------------------------------------------ class NodeVisitor(object): """ A base class for implementing node visitors. Subclasses should implement visitor methods using the naming scheme 'visit_<name>' where `<name>` is the type name of a given node. """ def __call__(self, node): """ The main entry point of the visitor class. This method should be called to execute the visitor. It will call the setup and teardown methods before and after invoking the visit method on the node. Parameter --------- node : object The toplevel node of interest. Returns ------- result : object The return value from the result() method. """ self.setup(node) self.visit(node) result = self.result(node) self.teardown(node) return result def setup(self, node): """ Perform any necessary setup before running the visitor. This method is invoked before the visitor is executed over a particular node. The default implementation does nothing. Parameters ---------- node : object The node passed to the visitor. """ pass def result(self, node): """ Get the results for the visitor. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation returns None. Parameters ---------- node : object The node passed to the visitor. Returns ------- result : object The results of the visitor. """ return None def teardown(self, node): """ Perform any necessary cleanup when the visitor is finished. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation does nothing. Parameters ---------- node : object The node passed to visitor. """ pass def visit(self, node): """ The main visitor dispatch method. Parameters ---------- node : object A node from the tree. """ for cls in type(node).mro(): visitor_name = 'visit_' + cls.__name__ visitor = getattr(self, visitor_name, None) if visitor is not None: visitor(node) return self.default_visit(node) def default_visit(self, node): """ The default node visitor method. This method is invoked when no named visitor method is found for a given node. This default behavior raises an exception for the missing handler. Subclasses may reimplement this method for custom default behavior. """ msg = "no visitor found for node of type `%s`" raise TypeError(msg % type(node).__name__)
class Nodevisitor(object): """ A base class for implementing node visitors. Subclasses should implement visitor methods using the naming scheme 'visit_<name>' where `<name>` is the type name of a given node. """ def __call__(self, node): """ The main entry point of the visitor class. This method should be called to execute the visitor. It will call the setup and teardown methods before and after invoking the visit method on the node. Parameter --------- node : object The toplevel node of interest. Returns ------- result : object The return value from the result() method. """ self.setup(node) self.visit(node) result = self.result(node) self.teardown(node) return result def setup(self, node): """ Perform any necessary setup before running the visitor. This method is invoked before the visitor is executed over a particular node. The default implementation does nothing. Parameters ---------- node : object The node passed to the visitor. """ pass def result(self, node): """ Get the results for the visitor. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation returns None. Parameters ---------- node : object The node passed to the visitor. Returns ------- result : object The results of the visitor. """ return None def teardown(self, node): """ Perform any necessary cleanup when the visitor is finished. This method is invoked after the visitor is executed over a particular node and the result() method has been called. The default implementation does nothing. Parameters ---------- node : object The node passed to visitor. """ pass def visit(self, node): """ The main visitor dispatch method. Parameters ---------- node : object A node from the tree. """ for cls in type(node).mro(): visitor_name = 'visit_' + cls.__name__ visitor = getattr(self, visitor_name, None) if visitor is not None: visitor(node) return self.default_visit(node) def default_visit(self, node): """ The default node visitor method. This method is invoked when no named visitor method is found for a given node. This default behavior raises an exception for the missing handler. Subclasses may reimplement this method for custom default behavior. """ msg = 'no visitor found for node of type `%s`' raise type_error(msg % type(node).__name__)
''' In order to get the Learn credentials, they do not to open a case on behind the blackboard nor email developers@blackboard.com. They need to go to developer.blackboard.com and register from there to grab the Learn credentials for their application, it is also imperative to remind them that they are creating an application based on your code, so they need to register as a developer. Now, for Collaborate production they CAN and MUST create a ticket on behind the blackboard requesting their credentials. ''' credenciales = { "verify_certs" : "True", "learn_rest_fqdn" : "learn URL", "learn_rest_key" : "Learn API Key", "learn_rest_secret" : "Learn API Secret", "collab_key": "Collab Key", "collab_secret": "Collab Secret", "collab_base_url": "us.bbcollab.com/collab/api/csa" }
""" In order to get the Learn credentials, they do not to open a case on behind the blackboard nor email developers@blackboard.com. They need to go to developer.blackboard.com and register from there to grab the Learn credentials for their application, it is also imperative to remind them that they are creating an application based on your code, so they need to register as a developer. Now, for Collaborate production they CAN and MUST create a ticket on behind the blackboard requesting their credentials. """ credenciales = {'verify_certs': 'True', 'learn_rest_fqdn': 'learn URL', 'learn_rest_key': 'Learn API Key', 'learn_rest_secret': 'Learn API Secret', 'collab_key': 'Collab Key', 'collab_secret': 'Collab Secret', 'collab_base_url': 'us.bbcollab.com/collab/api/csa'}
#!/usr/bin/env python class Bee: def __init__(self, bee_id, tag_id, length_tracked): self.bee_id = bee_id self.tag_id = tag_id self.length_tracked = length_tracked self.last_path_id = None self.path_length = None self.last_x = None self.last_y = None self.list_speeds = [] self.list_angles = [] self.cells_visited = {} self.frame_xy = {} self.seconds_idle = 0 self.seconds_tracked = 0 def main(): pass if __name__ == "__main__": main()
class Bee: def __init__(self, bee_id, tag_id, length_tracked): self.bee_id = bee_id self.tag_id = tag_id self.length_tracked = length_tracked self.last_path_id = None self.path_length = None self.last_x = None self.last_y = None self.list_speeds = [] self.list_angles = [] self.cells_visited = {} self.frame_xy = {} self.seconds_idle = 0 self.seconds_tracked = 0 def main(): pass if __name__ == '__main__': main()
good_ops = {'+': '-', '-': '+', '=<': '==', '>=': '==', '==': '=/=', '=/=': '==', '<':'>', '>': '<'} def count(ast): if ast.expr_name == "binary_operator": return 1 if ast.text in good_ops else 0 if ast.children: return sum(map(count, ast.children)) return 0 def inverse(number, ast, filename): if ast.expr_name == "binary_operator": if ast.text not in good_ops: return number if number == 0: with open(filename, 'w') as file: file.write(ast.full_text[:ast.start]) file.write(good_ops[ast.text]) file.write(ast.full_text[ast.end:]) return number - 1 if ast.children: return reduce(lambda a, x: inverse(a, x, filename), ast.children, number) return number
good_ops = {'+': '-', '-': '+', '=<': '==', '>=': '==', '==': '=/=', '=/=': '==', '<': '>', '>': '<'} def count(ast): if ast.expr_name == 'binary_operator': return 1 if ast.text in good_ops else 0 if ast.children: return sum(map(count, ast.children)) return 0 def inverse(number, ast, filename): if ast.expr_name == 'binary_operator': if ast.text not in good_ops: return number if number == 0: with open(filename, 'w') as file: file.write(ast.full_text[:ast.start]) file.write(good_ops[ast.text]) file.write(ast.full_text[ast.end:]) return number - 1 if ast.children: return reduce(lambda a, x: inverse(a, x, filename), ast.children, number) return number
''' The MIT License(MIT) Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' class Exclude: def get_quotes(self): ''' Exclude quoted text from the scan. ''' return self.quotes def set_quotes(self, value): ''' Exclude quoted text from the scan. Parameters: value: Boolean. ''' assert value self.quotes = value def get_references(self): ''' Exclude referenced text from the scan. ''' return self.references def set_references(self, value): ''' Exclude referenced text from the scan. Parameters: value: Boolean. ''' assert value self.references = value def get_table_of_content(self): ''' Exclude referenced text from the scan. ''' return self.tableOfContents def set_table_of_content(self, value): ''' Exclude referenced text from the scan. Parameters: value: Boolean. ''' assert value self.tableOfContents = value def get_titles(self): ''' Exclude titles from the scan. ''' return self.titles def set_titles(self, value): ''' Exclude titles from the scan. Parameters: value: Boolean. ''' assert value self.titles = value def get_html_template(self): ''' When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. ''' return self.htmlTemplate def set_html_template(self, value): ''' When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. Parameters: value: Boolean. ''' assert value self.htmlTemplate = value
""" The MIT License(MIT) Copyright(c) 2016 Copyleaks LTD (https://copyleaks.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ class Exclude: def get_quotes(self): """ Exclude quoted text from the scan. """ return self.quotes def set_quotes(self, value): """ Exclude quoted text from the scan. Parameters: value: Boolean. """ assert value self.quotes = value def get_references(self): """ Exclude referenced text from the scan. """ return self.references def set_references(self, value): """ Exclude referenced text from the scan. Parameters: value: Boolean. """ assert value self.references = value def get_table_of_content(self): """ Exclude referenced text from the scan. """ return self.tableOfContents def set_table_of_content(self, value): """ Exclude referenced text from the scan. Parameters: value: Boolean. """ assert value self.tableOfContents = value def get_titles(self): """ Exclude titles from the scan. """ return self.titles def set_titles(self, value): """ Exclude titles from the scan. Parameters: value: Boolean. """ assert value self.titles = value def get_html_template(self): """ When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. """ return self.htmlTemplate def set_html_template(self, value): """ When the scanned document is an HTML document, exclude irrelevant text that appears across the site like the website footer or header. Parameters: value: Boolean. """ assert value self.htmlTemplate = value
""" Estimated time 5 minutes Level of difficulty Very easy Objectives Familiarize the student with: using the for loop; reflecting real-life situations in computer code. Scenario Do you know what Mississippi is? Well, it's the name of one of the states and rivers in the United States. The Mississippi River is about 2,340 miles long, which makes it the second-longest river in the United States (the longest being the Missouri River). It's so long that a single drop of water needs 90 days to travel its entire length! However, the word Mississippi is also used for a slightly different purpose: to "count mississippily". If you're not familiar with the phrase, we're here to explain to you: it's used to count seconds. The idea behind it is that adding the word Mississippi to a number when counting seconds aloud makes them sound closer to clock-time, and therefore "one Mississippi, two Mississippi, three Mississippi" will take approximately three seconds of time. It's often used by children playing hide-and-seek to make sure the seeker does an honest count. Your task is very simple here: create a for loop that counts "mississippily" to ten (make sure your output matches the expected output below; each line doesn't need to take a real second to print, you'll learn how to do this trick later in the course), and then prints to the screen the message "Ready or not, here I come!". Expected output 1 Mississippi 2 Mississippi 3 Mississippi 4 Mississippi 5 Mississippi 6 Mississippi 7 Mississippi 8 Mississippi 9 Mississippi 10 Mississippi Ready or not, here I come! """ for i in range(1,11): print(i, "Mississippi") print("Ready or not, here I come!")
""" Estimated time 5 minutes Level of difficulty Very easy Objectives Familiarize the student with: using the for loop; reflecting real-life situations in computer code. Scenario Do you know what Mississippi is? Well, it's the name of one of the states and rivers in the United States. The Mississippi River is about 2,340 miles long, which makes it the second-longest river in the United States (the longest being the Missouri River). It's so long that a single drop of water needs 90 days to travel its entire length! However, the word Mississippi is also used for a slightly different purpose: to "count mississippily". If you're not familiar with the phrase, we're here to explain to you: it's used to count seconds. The idea behind it is that adding the word Mississippi to a number when counting seconds aloud makes them sound closer to clock-time, and therefore "one Mississippi, two Mississippi, three Mississippi" will take approximately three seconds of time. It's often used by children playing hide-and-seek to make sure the seeker does an honest count. Your task is very simple here: create a for loop that counts "mississippily" to ten (make sure your output matches the expected output below; each line doesn't need to take a real second to print, you'll learn how to do this trick later in the course), and then prints to the screen the message "Ready or not, here I come!". Expected output 1 Mississippi 2 Mississippi 3 Mississippi 4 Mississippi 5 Mississippi 6 Mississippi 7 Mississippi 8 Mississippi 9 Mississippi 10 Mississippi Ready or not, here I come! """ for i in range(1, 11): print(i, 'Mississippi') print('Ready or not, here I come!')
#suma de dos digitos print(1+2) #multiplicacion de dos digitos print (3*4) #division de dos digitos print(3/2) #division estricta, sin decimales, de dos digitos print(81//2) #Potencia de un digito print(3**2)
print(1 + 2) print(3 * 4) print(3 / 2) print(81 // 2) print(3 ** 2)
# This is the main chess game engine that implements the rules of the game # and stores the state of the the chess board, including its pieces and moves class Game_state(): def __init__(self): """ The chess board is an 8 X 8 dimensional array (Matrix of 8 rows and 8 columns ) i.e a list of lists. Each element of the Matrix is a string of two characters representing the chess pieces in the order "type" + "colour" light pawn = pl dark pawn = pd light knight = nl dark knight = nd e.t.c empty board square = " " ---> double empty space """ self.board = [ ["rd", "nd", "bd", "qd", "kd", "bd", "nd", "rd"], ["pd", "pd", "pd", "pd", "pd", "pd", "pd", "pd"], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " ", " ", " "], ["pl", "pl", "pl", "pl", "pl", "pl", "pl", "pl"], ["rl", "nl", "bl", "ql", "kl", "bl", "nl", "rl"]] self.light_to_move = True # True = light's turn to play; False = dark's turn to play self.move_log = [] # keeps a log of all moves made withing a game self.en_passant = [] # flags possible en-passant moves self.castling = [] # flags possible casling moves self.move_piece = {"p": self.get_pawn_moves, "r": self.get_rook_moves, "q": self.get_queen_moves, "k": self.get_king_moves, "b": self.get_bishop_moves, "n": self.get_knight_moves} self.light_king_location = (7, 4) self.dark_king_location = (0, 4) # king is being attacked (initiated by opposing piece) self.check_mate = False # no valid moves (king cornered; initiated by king) self.stale_mate = False # light king side castle available (king and right rook not moved) self.light_king_side_castle = True # light queen side castle available (king and left rook not moved) self.light_queen_side_castle = True # dark king side castle available (king and right rook not moved) self.dark_king_side_castle = True # dark queen side castle available (king and left rook not moved) self.dark_queen_side_castle = True def get_pawn_moves(self, r, c, moves): """ Calculates all possible pawn moves for a given color (light or dark) and appends them to a list input parameter(s): r --> starting row (int) c --> starting colum (int) moves --> possible moves container (list) return parameter(s): None """ if self.light_to_move: # light pawns if r-1 >= 0 and self.board[r-1][c] == " ": # one square advance moves.append(Move((r, c), (r-1, c), self.board)) if r == 6 and self.board[r-2][c] == " ": # two square advance moves.append(Move((r, c), (r-2, c), self.board)) if c-1 >= 0: # left captures # dark piece present if r-1 >= 0 and self.board[r-1][c-1][1] == "d": moves.append(Move((r, c), (r-1, c-1), self.board)) if c+1 <= len(self.board[0]) - 1: # right captures if r-1 >= 0 and self.board[r-1][c+1][1] == "d": moves.append(Move((r, c), (r-1, c+1), self.board)) else: # dark pawns if r+1 <= 7 and self.board[r+1][c] == " ": # one square advance moves.append(Move((r, c), (r+1, c), self.board)) if r == 1 and self.board[r+2][c] == " ": # two square advance moves.append(Move((r, c), (r+2, c), self.board)) if c-1 >= 0: # left captures # light piece present if r+1 <= 7 and self.board[r+1][c-1][1] == "l": moves.append(Move((r, c), (r+1, c-1), self.board)) if c+1 <= len(self.board[0]) - 1: # right captures if r+1 <= 7 and self.board[r+1][c+1][1] == "l": moves.append(Move((r, c), (r+1, c+1), self.board)) def get_bishop_moves(self, r, c, moves): """ calculates all possible bishop moves for a given colour (light or dark) and appends them to a list input parameters: r --> starting row (int) c --> starting column (int) moves --> posiible moves container (list) return parameter(s): None """ directions = ((-1, -1), (-1, 1), (1, -1), (1, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination == " ": moves.append( Move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append( Move((r, c), (end_row, end_col), self.board)) break else: # friendly piece break else: # off board break def get_knight_moves(self, r, c, moves): directions = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == " ": moves.append(Move((r, c), (end_row, end_col), self.board)) def get_king_moves(self, r, c, moves): directions = ((-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == " ": moves.append(Move((r, c), (end_row, end_col), self.board)) # castling # light king side if self.light_to_move and self.light_king_side_castle: # if path is clear if self.board[7][5] == " " and self.board[7][6] == " ": # if path not under attack if (not self.is_square_attacked(7, 5)) and (not self.is_square_attacked(7, 6)): moves.append(Move((7, 4), (7, 6), self.board)) self.castling.append(Move((7, 4), (7, 6), self.board)) # light queen side if self.light_to_move and self.light_queen_side_castle: # if path is clear if self.board[7][1] == " " and self.board[7][2] == " " and self.board[7][3] == " ": # if path not under attack if (not self.is_square_attacked(7, 1)) and (not self.is_square_attacked(7, 2)) and (not self.is_square_attacked(7, 3)): moves.append(Move((7, 4), (7, 2), self.board)) self.castling.append(Move((7, 4), (7, 2), self.board)) # dark king side if not self.light_to_move and self.dark_king_side_castle: # if path is clear if self.board[0][5] == " " and self.board[0][6] == " ": # if path not under attack if (not self.is_square_attacked(0, 5)) and (not self.is_square_attacked(0, 6)): moves.append(Move((0, 4), (0, 6), self.board)) self.castling.append(Move((0, 4), (0, 6), self.board)) # dark queen side if not self.light_to_move and self.dark_queen_side_castle: # if path is clear if self.board[0][1] == " " and self.board[0][2] == " " and self.board[0][3] == " ": # if path not under attach if (not self.is_square_attacked(0, 1)) and (not self.is_square_attacked(0, 2)) and (not self.is_square_attacked(0, 3)): moves.append(Move((0, 4), (0, 2), self.board)) self.castling.append(Move((0, 4), (0, 2), self.board)) def get_rook_moves(self, r, c, moves): directions = ((-1, 0), (0, -1), (1, 0), (0, 1)) enemy_color = "d" if self.light_to_move else "l" for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: # on board destination = self.board[end_row][end_col] if destination == " ": # empty moves.append( Move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append( Move((r, c), (end_row, end_col), self.board)) break else: # friendly piece break else: # off board break def get_queen_moves(self, r, c, moves): self.get_bishop_moves(r, c, moves) self.get_rook_moves(r, c, moves) def make_move(self, move, look_ahead_mode=False): """ moves pieces on the board input parameters: move --> move to be made (Move object) look_ahead_mode --> flag to ignore castling or not (during thinking mode) return parameter(s): None """ # if self.move_log: # print(self.move_log[-1]) self.board[move.start_row][move.start_col] = " " self.board[move.end_row][move.end_col] = move.piece_moved # if self.en_passant and not look_ahead_mode: # print(self.en_passant) # handles en-passant moves if not look_ahead_mode and move in self.en_passant: if self.light_to_move: move.en_passant_captured = self.board[move.end_row + 1][move.end_col] self.board[move.end_row+1][move.end_col] = " " else: move.en_passant_captured = self.board[move.end_row - 1][move.end_col] self.board[move.end_row-1][move.end_col] = " " self.move_log.append(move) # log move # handles castling moves if not look_ahead_mode and move in self.castling: # determine rook to be castled if move.end_col == 2: move.castling_rook = (move.start_row, 0) self.board[move.start_row][0] = " " self.board[move.end_row][3] = "r" + \ self.board[move.end_row][move.end_col][1] # castle rook elif move.end_col == 6: move.castling_rook = (move.start_row, 7) self.board[move.start_row][7] = " " self.board[move.end_row][5] = "r" + \ self.board[move.end_row][move.end_col][1] # castle rook self.light_to_move = not self.light_to_move # next player to move if not look_ahead_mode: self.castling = [] # reset castling self.en_passant = [] # reset en-passant # dark en-passant if (move.start_row == 6 and move.piece_moved == "pl" and move.start_row - move.end_row == 2): # from left of light pawn if (move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col-1] == "pd"): self.en_passant.append( Move((move.end_row, move.end_col-1), (move.end_row+1, move.end_col), self.board)) # from right of light pawn elif (move.end_col + 1 <= len(self.board[0])-1 and self.board[move.end_row][move.end_col+1] == "pd"): self.en_passant.append(Move( (move.end_row, move.start_col+1), (move.end_row+1, move.end_col), self.board)) # light en-passant if (move.start_row == 1 and move.piece_moved == "pd" and move.end_row - move.start_row == 2): # from left of dark pawn if (move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col-1] == "pl"): self.en_passant.append(Move( (move.end_row, move.start_col-1), (move.end_row-1, move.end_col), self.board)) # from right of dark pawn elif (move.end_col + 1 <= len(self.board[0])-1 and self.board[move.end_row][move.end_col+1] == "pl"): self.en_passant.append( Move((move.end_row, move.end_col+1), (move.end_row-1, move.end_col), self.board)) # update king's position if move.piece_moved == "kl": self.light_king_location = (move.end_row, move.end_col) if not look_ahead_mode: # non castling king move if not move.castling_rook: self.light_king_side_castle = False self.light_queen_side_castle = False # castling king moves # queen side castled elif move.castling_rook and move.end_col == 2: self.light_queen_side_castle = False # king side castled elif move.castling_rook and move.end_col == 6: self.light_king_side_castle = False elif move.piece_moved == "kd": self.dark_king_location = (move.end_row, move.end_col) if not look_ahead_mode: # non castling king move if not move.castling_rook: self.dark_king_side_castle = False self.dark_queen_side_castle = False # castling king moves # queen side castled elif move.castling_rook and move.end_col == 2: self.dark_queen_side_castle = False # king side castled elif move.castling_rook and move.end_col == 6: self.dark_king_side_castle = False # check rook moves for castling if not look_ahead_mode: # light rooks if move.start_row == 7 and move.start_col == 0: self.light_queen_side_castle = False elif move.start_row == 7 and move.start_col == 7: self.light_king_side_castle = False # dark rooks elif move.start_row == 0 and move.start_col == 0: self.dark_queen_side_castle = False elif move.start_row == 0 and move.start_col == 7: self.dark_king_side_castle = False def undo_move(self, look_ahead_mode=False): """ undoes last move input parameter(s): look_ahead_mode --> flag for thinking mode vs playing mode (false = playing mode) return parameter(s): None """ if self.move_log: last_move = self.move_log.pop() self.board[last_move.start_row][last_move.start_col] = last_move.piece_moved self.board[last_move.end_row][last_move.end_col] = last_move.piece_captured # handles enpassant self.light_to_move = not self.light_to_move if not look_ahead_mode: self.en_passant = [] if last_move.en_passant_captured: self.en_passant.append(Move((last_move.start_row, last_move.start_col), ( last_move.end_row, last_move.end_col), self.board)) # recall en-passant valid move if self.light_to_move: self.board[last_move.end_row + 1][last_move.end_col] = last_move.en_passant_captured else: self.board[last_move.end_row - 1][last_move.end_col] = last_move.en_passant_captured # handles checkmate and stalemate self.check_mate = False if self.check_mate else False self.stale_mate = False if self.stale_mate else False # update king's position if last_move.piece_moved == "kl": self.light_king_location = ( last_move.start_row, last_move.start_col) # undoing first-time non-castling light king move (for castling) if last_move.start_row == 7 and last_move.start_col == 4 and not last_move.castling_rook: # ensure no king moves in past moves (first time king move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row) and \ (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True self.light_king_side_castle = True elif last_move.piece_moved == "kd": self.dark_king_location = ( last_move.start_row, last_move.start_col) # undoing first-time non-castling dark king move (for castling) if last_move.start_row == 0 and last_move.start_col == 4 and not last_move.castling_rook: # ensure no king moves in past moves (first time king move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row) and \ (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True self.dark_king_side_castle = True # handles castling if last_move.castling_rook: if last_move.piece_moved == "kl" and last_move.end_col == 2: self.light_queen_side_castle = True self.board[7][3] = " " self.board[7][0] = "rl" elif last_move.piece_moved == "kl" and last_move.end_col == 6: self.light_king_side_castle = True self.board[7][5] = " " self.board[7][7] = "rl" elif last_move.piece_moved == "kd" and last_move.end_col == 2: self.dark_queen_side_castle = True self.board[0][3] = " " self.board[0][0] = "rd" elif last_move.piece_moved == "kd" and last_move.end_col == 6: self.dark_king_side_castle = True self.board[0][5] = " " self.board[0][7] = "rd" # undoing first-time rook moves (for castling) # light king side rook if last_move.piece_moved == "rl": if last_move.start_row == 7 and last_move.start_col == 7: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_king_side_castle = True # light queen side rook elif last_move.start_row == 7 and last_move.start_col == 0: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True # dark king side rook elif last_move.piece_moved == "rd": if last_move.start_row == 0 and last_move.start_col == 7: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_king_side_castle = True # dark queen side rook elif last_move.start_row == 0 and last_move.start_col == 0: # ensure no rook moves in past moves (first time rook move!) count = 0 for past_move in self.move_log: if (past_move.piece_moved == last_move.piece_moved) and (past_move.start_row == last_move.start_row)\ and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True # interactive if not look_ahead_mode: print("Reversing", last_move.get_chess_notation()) #last_move.piece_captured = " " else: print("All undone!") def get_valid_moves(self): """ gives the valid piece moves on the board while considering potential checks input parameter(s): None return parameter(s): moves --> list of vlid move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ moves, turn = self.get_possible_moves() for move in moves[::-1]: # reverse iteration self.make_move(move, True) self.light_to_move = not self.light_to_move if self.is_in_check(): moves.remove(move) self.undo_move(True) self.light_to_move = not self.light_to_move if len(moves) == 0: if self.is_in_check(): self.check_mate = True else: self.stale_mate = True # handles undoing else: self.check_mate = False self.stale_mate = False return moves, turn def get_possible_moves(self): """ gives naive possible moves of pieces on the board without taking checks into account input parameters: None return parameter(s): moves --> list of possible move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ moves = [] # if self.en_passant: for obj in self.en_passant: moves.append(obj) turn = "l" if self.light_to_move else "d" for i in range(len(self.board)): for j in range(len(self.board[i])): if self.board[i][j][1] == turn: self.move_piece[self.board[i][j][0]](i, j, moves) return moves, turn def is_in_check(self): """ determines if current player isnin check (king under attack) input parameter(s): None return parameter(s): bool of True or False """ if self.light_to_move: return self.is_square_attacked(self.light_king_location[0], self.light_king_location[1]) else: return self.is_square_attacked(self.dark_king_location[0], self.dark_king_location[1]) def is_square_attacked(self, r, c): """ determines if enemy can attack given board position input parameter(s): r --> board row (int) c --> board column (int) return parameter(s): bool of True or False """ turn = 'l' if self.light_to_move else "d" # allies turn opp_turn = "d" if self.light_to_move else "l" # opponents turn # check for all possible knight attacks checks = ((1, 2), (-1, 2), (1, -2), (-1, -2), (2, 1), (2, -1), (-2, -1), (-2, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == "n": return True # check for all possible pawn attacks checks = ((-1, -1), (-1, 1)) if self.light_to_move else ((1, -1), (1, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == "p": return True # check for all possible bishop or queen or king attacks checks = ((1, -1), (1, 1), (-1, -1), (-1, 1)) for loc in checks: for i in range(1, 8): end_row = loc[0]*i + r end_col = loc[1]*i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif (i == 1) and (self.board[end_row][end_col][1] == opp_turn) and (self.board[end_row][end_col][0] == "k"): return True elif self.board[end_row][end_col][1] == opp_turn: if self.board[end_row][end_col][0] == "b" or self.board[end_row][end_col][0] == "q": return True else: break # check for all possible rook or queen or king attacks checks = ((1, 0), (-1, 0), (0, 1), (0, -1)) for loc in checks: for i in range(1, 8): end_row = loc[0]*i + r end_col = loc[1]*i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif (i == 1) and (self.board[end_row][end_col][1] == opp_turn) and (self.board[end_row][end_col][0] == "k"): return True elif (self.board[end_row][end_col][1] == opp_turn): if self.board[end_row][end_col][0] == "r" or self.board[end_row][end_col][0] == "q": return True else: break return False class Move(): # map ranks to rows ranks_to_rows = {"1": 7, "2": 6, "3": 5, "4": 4, "5": 3, "6": 2, "7": 1, "8": 0} # map rows to ranks (revers of ranks to rows) rows_to_ranks = {row: rank for rank, row in ranks_to_rows.items()} # map files to columns files_to_cols = {"a": 0, "b": 1, "c": 2, "d": 3, "e": 4, "f": 5, "g": 6, "h": 7} # map columns to files (revers of files to columns) cols_to_files = {col: file for file, col in files_to_cols.items()} def __init__(self, start_sq, end_sq, board): """ A Move class abstracting all parameters needed for moving chess pieces on the board input parameter(s): start_sq --> (row, column) of piece to be moved (tuple) end_square --> (row, column) of move destination on the board (tuple) board --> board object referencing current state of the board (class Game_state) """ self.start_row = start_sq[0] # row location of piece to be moved self.start_col = start_sq[1] # column location of piece to be moved # intended row destination of piece to be moved self.end_row = end_sq[0] # intended column destiantion of piece to e moved self.end_col = end_sq[1] # actual piece moved self.piece_moved = board[self.start_row][self.start_col] # opponent piece if any on the destination square self.piece_captured = board[self.end_row][self.end_col] self.en_passant_captured = None # piece captured during en-passant self.castling_rook = None # rook castled during castling def get_chess_notation(self): """ creates a live commentary of pieces moved on the chess board during a game input parameter(s): None return parameter(s) commentary (string) """ if self.en_passant_captured: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + self.en_passant_captured[0].upper() + " captured!)" elif not self.en_passant_captured and self.piece_captured != " ": return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + self.piece_captured[0].upper() + " captured!)" elif self.castling_rook: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ "(" + "Queen side castling!)" if self.end_col == 2 else "King side castling!)" else: return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + \ self.get_rank_file(self.end_row, self.end_col) # return self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + self.get_rank_file(self.end_row, self.end_col) + \ # "(" + self.piece_captured[0].upper() + " captured!)" if self.piece_captured != " " else self.piece_moved[0].upper() + "(" + self.get_rank_file(self.start_row, self.start_col) + ") to " + \ # self.get_rank_file(self.end_row, self.end_col) def get_rank_file(self, r, c): """ calls cols_to_file and rows_to_rank attributes input parameter(s): r --> row to be converted to rank (int) c --> column to be converted to file (int) return parameter(s): "file" + "rank" (str) """ return self.cols_to_files[c] + self.rows_to_ranks[r] def __eq__(self, other): """ operator overloading for equating two move objects """ # if first (self) and second (other) parameters are both Move objects if isinstance(other, Move): return self.start_row == other.start_row and self.start_col == other.start_col and \ self.end_row == other.end_row and self.end_col == other.end_col else: return False def __ne__(self, other): """ "not equals to" --> conventional counterpart to __eq__ """ return not self.__eq__(other) def __str__(self): """ operator overloading for printing Move objects """ return "({}, {}) ({}, {})".format(self.start_row, self.start_col, self.end_row, self.end_col)
class Game_State: def __init__(self): """ The chess board is an 8 X 8 dimensional array (Matrix of 8 rows and 8 columns ) i.e a list of lists. Each element of the Matrix is a string of two characters representing the chess pieces in the order "type" + "colour" light pawn = pl dark pawn = pd light knight = nl dark knight = nd e.t.c empty board square = " " ---> double empty space """ self.board = [['rd', 'nd', 'bd', 'qd', 'kd', 'bd', 'nd', 'rd'], ['pd', 'pd', 'pd', 'pd', 'pd', 'pd', 'pd', 'pd'], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '], ['pl', 'pl', 'pl', 'pl', 'pl', 'pl', 'pl', 'pl'], ['rl', 'nl', 'bl', 'ql', 'kl', 'bl', 'nl', 'rl']] self.light_to_move = True self.move_log = [] self.en_passant = [] self.castling = [] self.move_piece = {'p': self.get_pawn_moves, 'r': self.get_rook_moves, 'q': self.get_queen_moves, 'k': self.get_king_moves, 'b': self.get_bishop_moves, 'n': self.get_knight_moves} self.light_king_location = (7, 4) self.dark_king_location = (0, 4) self.check_mate = False self.stale_mate = False self.light_king_side_castle = True self.light_queen_side_castle = True self.dark_king_side_castle = True self.dark_queen_side_castle = True def get_pawn_moves(self, r, c, moves): """ Calculates all possible pawn moves for a given color (light or dark) and appends them to a list input parameter(s): r --> starting row (int) c --> starting colum (int) moves --> possible moves container (list) return parameter(s): None """ if self.light_to_move: if r - 1 >= 0 and self.board[r - 1][c] == ' ': moves.append(move((r, c), (r - 1, c), self.board)) if r == 6 and self.board[r - 2][c] == ' ': moves.append(move((r, c), (r - 2, c), self.board)) if c - 1 >= 0: if r - 1 >= 0 and self.board[r - 1][c - 1][1] == 'd': moves.append(move((r, c), (r - 1, c - 1), self.board)) if c + 1 <= len(self.board[0]) - 1: if r - 1 >= 0 and self.board[r - 1][c + 1][1] == 'd': moves.append(move((r, c), (r - 1, c + 1), self.board)) else: if r + 1 <= 7 and self.board[r + 1][c] == ' ': moves.append(move((r, c), (r + 1, c), self.board)) if r == 1 and self.board[r + 2][c] == ' ': moves.append(move((r, c), (r + 2, c), self.board)) if c - 1 >= 0: if r + 1 <= 7 and self.board[r + 1][c - 1][1] == 'l': moves.append(move((r, c), (r + 1, c - 1), self.board)) if c + 1 <= len(self.board[0]) - 1: if r + 1 <= 7 and self.board[r + 1][c + 1][1] == 'l': moves.append(move((r, c), (r + 1, c + 1), self.board)) def get_bishop_moves(self, r, c, moves): """ calculates all possible bishop moves for a given colour (light or dark) and appends them to a list input parameters: r --> starting row (int) c --> starting column (int) moves --> posiible moves container (list) return parameter(s): None """ directions = ((-1, -1), (-1, 1), (1, -1), (1, 1)) enemy_color = 'd' if self.light_to_move else 'l' for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination == ' ': moves.append(move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append(move((r, c), (end_row, end_col), self.board)) break else: break else: break def get_knight_moves(self, r, c, moves): directions = ((-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)) enemy_color = 'd' if self.light_to_move else 'l' for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == ' ': moves.append(move((r, c), (end_row, end_col), self.board)) def get_king_moves(self, r, c, moves): directions = ((-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)) enemy_color = 'd' if self.light_to_move else 'l' for d in directions: end_row = r + d[0] end_col = c + d[1] if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination[1] == enemy_color or destination == ' ': moves.append(move((r, c), (end_row, end_col), self.board)) if self.light_to_move and self.light_king_side_castle: if self.board[7][5] == ' ' and self.board[7][6] == ' ': if not self.is_square_attacked(7, 5) and (not self.is_square_attacked(7, 6)): moves.append(move((7, 4), (7, 6), self.board)) self.castling.append(move((7, 4), (7, 6), self.board)) if self.light_to_move and self.light_queen_side_castle: if self.board[7][1] == ' ' and self.board[7][2] == ' ' and (self.board[7][3] == ' '): if not self.is_square_attacked(7, 1) and (not self.is_square_attacked(7, 2)) and (not self.is_square_attacked(7, 3)): moves.append(move((7, 4), (7, 2), self.board)) self.castling.append(move((7, 4), (7, 2), self.board)) if not self.light_to_move and self.dark_king_side_castle: if self.board[0][5] == ' ' and self.board[0][6] == ' ': if not self.is_square_attacked(0, 5) and (not self.is_square_attacked(0, 6)): moves.append(move((0, 4), (0, 6), self.board)) self.castling.append(move((0, 4), (0, 6), self.board)) if not self.light_to_move and self.dark_queen_side_castle: if self.board[0][1] == ' ' and self.board[0][2] == ' ' and (self.board[0][3] == ' '): if not self.is_square_attacked(0, 1) and (not self.is_square_attacked(0, 2)) and (not self.is_square_attacked(0, 3)): moves.append(move((0, 4), (0, 2), self.board)) self.castling.append(move((0, 4), (0, 2), self.board)) def get_rook_moves(self, r, c, moves): directions = ((-1, 0), (0, -1), (1, 0), (0, 1)) enemy_color = 'd' if self.light_to_move else 'l' for d in directions: for i in range(1, 8): end_row = r + d[0] * i end_col = c + d[1] * i if 0 <= end_row < 8 and 0 <= end_col < 8: destination = self.board[end_row][end_col] if destination == ' ': moves.append(move((r, c), (end_row, end_col), self.board)) elif destination[1] == enemy_color: moves.append(move((r, c), (end_row, end_col), self.board)) break else: break else: break def get_queen_moves(self, r, c, moves): self.get_bishop_moves(r, c, moves) self.get_rook_moves(r, c, moves) def make_move(self, move, look_ahead_mode=False): """ moves pieces on the board input parameters: move --> move to be made (Move object) look_ahead_mode --> flag to ignore castling or not (during thinking mode) return parameter(s): None """ self.board[move.start_row][move.start_col] = ' ' self.board[move.end_row][move.end_col] = move.piece_moved if not look_ahead_mode and move in self.en_passant: if self.light_to_move: move.en_passant_captured = self.board[move.end_row + 1][move.end_col] self.board[move.end_row + 1][move.end_col] = ' ' else: move.en_passant_captured = self.board[move.end_row - 1][move.end_col] self.board[move.end_row - 1][move.end_col] = ' ' self.move_log.append(move) if not look_ahead_mode and move in self.castling: if move.end_col == 2: move.castling_rook = (move.start_row, 0) self.board[move.start_row][0] = ' ' self.board[move.end_row][3] = 'r' + self.board[move.end_row][move.end_col][1] elif move.end_col == 6: move.castling_rook = (move.start_row, 7) self.board[move.start_row][7] = ' ' self.board[move.end_row][5] = 'r' + self.board[move.end_row][move.end_col][1] self.light_to_move = not self.light_to_move if not look_ahead_mode: self.castling = [] self.en_passant = [] if move.start_row == 6 and move.piece_moved == 'pl' and (move.start_row - move.end_row == 2): if move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col - 1] == 'pd': self.en_passant.append(move((move.end_row, move.end_col - 1), (move.end_row + 1, move.end_col), self.board)) elif move.end_col + 1 <= len(self.board[0]) - 1 and self.board[move.end_row][move.end_col + 1] == 'pd': self.en_passant.append(move((move.end_row, move.start_col + 1), (move.end_row + 1, move.end_col), self.board)) if move.start_row == 1 and move.piece_moved == 'pd' and (move.end_row - move.start_row == 2): if move.end_col - 1 >= 0 and self.board[move.end_row][move.end_col - 1] == 'pl': self.en_passant.append(move((move.end_row, move.start_col - 1), (move.end_row - 1, move.end_col), self.board)) elif move.end_col + 1 <= len(self.board[0]) - 1 and self.board[move.end_row][move.end_col + 1] == 'pl': self.en_passant.append(move((move.end_row, move.end_col + 1), (move.end_row - 1, move.end_col), self.board)) if move.piece_moved == 'kl': self.light_king_location = (move.end_row, move.end_col) if not look_ahead_mode: if not move.castling_rook: self.light_king_side_castle = False self.light_queen_side_castle = False elif move.castling_rook and move.end_col == 2: self.light_queen_side_castle = False elif move.castling_rook and move.end_col == 6: self.light_king_side_castle = False elif move.piece_moved == 'kd': self.dark_king_location = (move.end_row, move.end_col) if not look_ahead_mode: if not move.castling_rook: self.dark_king_side_castle = False self.dark_queen_side_castle = False elif move.castling_rook and move.end_col == 2: self.dark_queen_side_castle = False elif move.castling_rook and move.end_col == 6: self.dark_king_side_castle = False if not look_ahead_mode: if move.start_row == 7 and move.start_col == 0: self.light_queen_side_castle = False elif move.start_row == 7 and move.start_col == 7: self.light_king_side_castle = False elif move.start_row == 0 and move.start_col == 0: self.dark_queen_side_castle = False elif move.start_row == 0 and move.start_col == 7: self.dark_king_side_castle = False def undo_move(self, look_ahead_mode=False): """ undoes last move input parameter(s): look_ahead_mode --> flag for thinking mode vs playing mode (false = playing mode) return parameter(s): None """ if self.move_log: last_move = self.move_log.pop() self.board[last_move.start_row][last_move.start_col] = last_move.piece_moved self.board[last_move.end_row][last_move.end_col] = last_move.piece_captured self.light_to_move = not self.light_to_move if not look_ahead_mode: self.en_passant = [] if last_move.en_passant_captured: self.en_passant.append(move((last_move.start_row, last_move.start_col), (last_move.end_row, last_move.end_col), self.board)) if self.light_to_move: self.board[last_move.end_row + 1][last_move.end_col] = last_move.en_passant_captured else: self.board[last_move.end_row - 1][last_move.end_col] = last_move.en_passant_captured self.check_mate = False if self.check_mate else False self.stale_mate = False if self.stale_mate else False if last_move.piece_moved == 'kl': self.light_king_location = (last_move.start_row, last_move.start_col) if last_move.start_row == 7 and last_move.start_col == 4 and (not last_move.castling_rook): count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True self.light_king_side_castle = True elif last_move.piece_moved == 'kd': self.dark_king_location = (last_move.start_row, last_move.start_col) if last_move.start_row == 0 and last_move.start_col == 4 and (not last_move.castling_rook): count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True self.dark_king_side_castle = True if last_move.castling_rook: if last_move.piece_moved == 'kl' and last_move.end_col == 2: self.light_queen_side_castle = True self.board[7][3] = ' ' self.board[7][0] = 'rl' elif last_move.piece_moved == 'kl' and last_move.end_col == 6: self.light_king_side_castle = True self.board[7][5] = ' ' self.board[7][7] = 'rl' elif last_move.piece_moved == 'kd' and last_move.end_col == 2: self.dark_queen_side_castle = True self.board[0][3] = ' ' self.board[0][0] = 'rd' elif last_move.piece_moved == 'kd' and last_move.end_col == 6: self.dark_king_side_castle = True self.board[0][5] = ' ' self.board[0][7] = 'rd' if last_move.piece_moved == 'rl': if last_move.start_row == 7 and last_move.start_col == 7: count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_king_side_castle = True elif last_move.start_row == 7 and last_move.start_col == 0: count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.light_queen_side_castle = True elif last_move.piece_moved == 'rd': if last_move.start_row == 0 and last_move.start_col == 7: count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_king_side_castle = True elif last_move.start_row == 0 and last_move.start_col == 0: count = 0 for past_move in self.move_log: if past_move.piece_moved == last_move.piece_moved and past_move.start_row == last_move.start_row and (past_move.start_col == last_move.start_col): count += 1 break if count == 0: self.dark_queen_side_castle = True if not look_ahead_mode: print('Reversing', last_move.get_chess_notation()) else: print('All undone!') def get_valid_moves(self): """ gives the valid piece moves on the board while considering potential checks input parameter(s): None return parameter(s): moves --> list of vlid move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ (moves, turn) = self.get_possible_moves() for move in moves[::-1]: self.make_move(move, True) self.light_to_move = not self.light_to_move if self.is_in_check(): moves.remove(move) self.undo_move(True) self.light_to_move = not self.light_to_move if len(moves) == 0: if self.is_in_check(): self.check_mate = True else: self.stale_mate = True else: self.check_mate = False self.stale_mate = False return (moves, turn) def get_possible_moves(self): """ gives naive possible moves of pieces on the board without taking checks into account input parameters: None return parameter(s): moves --> list of possible move objects turn --> char of current player turn ('l' for light, 'd' for dark) """ moves = [] for obj in self.en_passant: moves.append(obj) turn = 'l' if self.light_to_move else 'd' for i in range(len(self.board)): for j in range(len(self.board[i])): if self.board[i][j][1] == turn: self.move_piece[self.board[i][j][0]](i, j, moves) return (moves, turn) def is_in_check(self): """ determines if current player isnin check (king under attack) input parameter(s): None return parameter(s): bool of True or False """ if self.light_to_move: return self.is_square_attacked(self.light_king_location[0], self.light_king_location[1]) else: return self.is_square_attacked(self.dark_king_location[0], self.dark_king_location[1]) def is_square_attacked(self, r, c): """ determines if enemy can attack given board position input parameter(s): r --> board row (int) c --> board column (int) return parameter(s): bool of True or False """ turn = 'l' if self.light_to_move else 'd' opp_turn = 'd' if self.light_to_move else 'l' checks = ((1, 2), (-1, 2), (1, -2), (-1, -2), (2, 1), (2, -1), (-2, -1), (-2, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == 'n': return True checks = ((-1, -1), (-1, 1)) if self.light_to_move else ((1, -1), (1, 1)) for loc in checks: end_row = r + loc[0] end_col = c + loc[1] if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == opp_turn and self.board[end_row][end_col][0] == 'p': return True checks = ((1, -1), (1, 1), (-1, -1), (-1, 1)) for loc in checks: for i in range(1, 8): end_row = loc[0] * i + r end_col = loc[1] * i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif i == 1 and self.board[end_row][end_col][1] == opp_turn and (self.board[end_row][end_col][0] == 'k'): return True elif self.board[end_row][end_col][1] == opp_turn: if self.board[end_row][end_col][0] == 'b' or self.board[end_row][end_col][0] == 'q': return True else: break checks = ((1, 0), (-1, 0), (0, 1), (0, -1)) for loc in checks: for i in range(1, 8): end_row = loc[0] * i + r end_col = loc[1] * i + c if 0 <= end_row < 8 and 0 <= end_col < 8: if self.board[end_row][end_col][1] == turn: break elif i == 1 and self.board[end_row][end_col][1] == opp_turn and (self.board[end_row][end_col][0] == 'k'): return True elif self.board[end_row][end_col][1] == opp_turn: if self.board[end_row][end_col][0] == 'r' or self.board[end_row][end_col][0] == 'q': return True else: break return False class Move: ranks_to_rows = {'1': 7, '2': 6, '3': 5, '4': 4, '5': 3, '6': 2, '7': 1, '8': 0} rows_to_ranks = {row: rank for (rank, row) in ranks_to_rows.items()} files_to_cols = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7} cols_to_files = {col: file for (file, col) in files_to_cols.items()} def __init__(self, start_sq, end_sq, board): """ A Move class abstracting all parameters needed for moving chess pieces on the board input parameter(s): start_sq --> (row, column) of piece to be moved (tuple) end_square --> (row, column) of move destination on the board (tuple) board --> board object referencing current state of the board (class Game_state) """ self.start_row = start_sq[0] self.start_col = start_sq[1] self.end_row = end_sq[0] self.end_col = end_sq[1] self.piece_moved = board[self.start_row][self.start_col] self.piece_captured = board[self.end_row][self.end_col] self.en_passant_captured = None self.castling_rook = None def get_chess_notation(self): """ creates a live commentary of pieces moved on the chess board during a game input parameter(s): None return parameter(s) commentary (string) """ if self.en_passant_captured: return self.piece_moved[0].upper() + '(' + self.get_rank_file(self.start_row, self.start_col) + ') to ' + self.get_rank_file(self.end_row, self.end_col) + '(' + self.en_passant_captured[0].upper() + ' captured!)' elif not self.en_passant_captured and self.piece_captured != ' ': return self.piece_moved[0].upper() + '(' + self.get_rank_file(self.start_row, self.start_col) + ') to ' + self.get_rank_file(self.end_row, self.end_col) + '(' + self.piece_captured[0].upper() + ' captured!)' elif self.castling_rook: return self.piece_moved[0].upper() + '(' + self.get_rank_file(self.start_row, self.start_col) + ') to ' + self.get_rank_file(self.end_row, self.end_col) + '(' + 'Queen side castling!)' if self.end_col == 2 else 'King side castling!)' else: return self.piece_moved[0].upper() + '(' + self.get_rank_file(self.start_row, self.start_col) + ') to ' + self.get_rank_file(self.end_row, self.end_col) def get_rank_file(self, r, c): """ calls cols_to_file and rows_to_rank attributes input parameter(s): r --> row to be converted to rank (int) c --> column to be converted to file (int) return parameter(s): "file" + "rank" (str) """ return self.cols_to_files[c] + self.rows_to_ranks[r] def __eq__(self, other): """ operator overloading for equating two move objects """ if isinstance(other, Move): return self.start_row == other.start_row and self.start_col == other.start_col and (self.end_row == other.end_row) and (self.end_col == other.end_col) else: return False def __ne__(self, other): """ "not equals to" --> conventional counterpart to __eq__ """ return not self.__eq__(other) def __str__(self): """ operator overloading for printing Move objects """ return '({}, {}) ({}, {})'.format(self.start_row, self.start_col, self.end_row, self.end_col)
class Player: VERSION = "fuck" def betRequest(self, game_state): return 10000000 def showdown(self, game_state): pass
class Player: version = 'fuck' def bet_request(self, game_state): return 10000000 def showdown(self, game_state): pass
class WL(object): def __init__(self,data=None): if data: self.id = data['id'] self.title = data['title'] self.created_at = data['created_at'] def get_id(self): return self.id def get_title(self): return self.title def get_created_at(self): return self.created_at def set_title(self,title): self.title = title class List(WL): def __init__(self,data=None): super(List, self).__init__(data) def get_json(self): wlist = { 'title': self.title } return wlist class Task(WL): def __init__(self,data=None): super(Task, self).__init__(data) if data: self.list_id = data['list_id'] def get_list_id(self): return self.list_id def set_list_id(self,list_id): self.list_id = list_id def set_due_date(self,due_date): self.due_date = due_date def get_json(self): task = { 'list_id': int(self.list_id), 'title': self.title } if(self.due_date): task['due_date'] = str(self.due_date.year)+"-"+str(self.due_date.month)+"-"+str(self.due_date.day) return task
class Wl(object): def __init__(self, data=None): if data: self.id = data['id'] self.title = data['title'] self.created_at = data['created_at'] def get_id(self): return self.id def get_title(self): return self.title def get_created_at(self): return self.created_at def set_title(self, title): self.title = title class List(WL): def __init__(self, data=None): super(List, self).__init__(data) def get_json(self): wlist = {'title': self.title} return wlist class Task(WL): def __init__(self, data=None): super(Task, self).__init__(data) if data: self.list_id = data['list_id'] def get_list_id(self): return self.list_id def set_list_id(self, list_id): self.list_id = list_id def set_due_date(self, due_date): self.due_date = due_date def get_json(self): task = {'list_id': int(self.list_id), 'title': self.title} if self.due_date: task['due_date'] = str(self.due_date.year) + '-' + str(self.due_date.month) + '-' + str(self.due_date.day) return task
# Title: Array Partition 1 # Link: https://leetcode.com/problems/array-partition-i/ class Solution: def array_pair_sum(self, nums: list) -> int: nums = sorted(nums) s = 0 for i in range(0, len(nums), 2): s += nums[i] return s def solution(): nums = [1,4,3,2] sol = Solution() return sol.array_pair_sum(nums) def main(): print(solution()) if __name__ == '__main__': main()
class Solution: def array_pair_sum(self, nums: list) -> int: nums = sorted(nums) s = 0 for i in range(0, len(nums), 2): s += nums[i] return s def solution(): nums = [1, 4, 3, 2] sol = solution() return sol.array_pair_sum(nums) def main(): print(solution()) if __name__ == '__main__': main()
def get_user_response(question, valid_responses, error_message=None): """ Function to obtain input from the user. :param question: string Question to ask user :param valid_responses: list of valid responses to use in error catching :param error_message: string Message to display if an exception occurs :return: user decision """ while True: try: decision = int(input(question)) if decision not in valid_responses: raise ValueError except ValueError: if error_message: print(error_message) else: print('Sorry, please provide a valid input....') continue else: break return decision class Hand: """Superclass""" def __init__(self, cards={}, dealerflag=False, makerflag=False): self.cards = cards self.dealer = dealerflag self.maker = makerflag def set_values(self, trumpsuit=None, leadsuit=None, resetval=False, evaltrumpsuit=False, basevaluereset=False): """ Iterates through the cards and sets their round value based on the input conditions. :param trumpsuit: current suit of trumpcard :param leadsuit: suit of the card played by the other player in a trick :param resetval: 'soft' reset which doesn't affect trumpsuited cards :param evaltrumpsuit: triggers card valuation using trump suit :param basevaluereset: 'hard' reset """ for i in self.cards: self.cards[i].set_value(trumpsuit=trumpsuit, leadsuit=leadsuit, resetval=resetval, evaltrumpsuit=evaltrumpsuit, basevaluereset=basevaluereset) def set_cards(self, carddict): """ Sets the dictionary of cards :param carddict: dict of Cards """ self.cards = carddict def set_maker(self): """ Sets the maker flag to True """ self.maker = True def set_dealer(self): """ Sets the dealer flag to True """ self.dealer = True def clear_hand(self): """ Resets hand for the next round. """ self.cards = "" self.dealer = False self.maker = False def play_card(self, cardindex): """Pops and returns the card at the given index""" return self.cards.pop(cardindex) def get_cards_matching_suit(self, suit): """ Determines if any cards in hand match the played suit :param suit: string suit of played card i.e. 'Spades' :return: list of keys in hand that match the passed suit """ mustplaykeys = [] for i, j in self.cards.items(): if j.suit == suit: # TODO update this so that the left bower matches the suit mustplaykeys.append(i) return mustplaykeys def __repr__(self): """Overloads str() operator""" card_string = "" for i in self.cards: card_string = card_string + str(i) + str(self.cards[i]) return card_string class UserHand(Hand): """Controls the Player's hand""" def __init__(self, cards={}, dealerflag=False, makerflag=False): super().__init__(cards, dealerflag, makerflag) self.name = "Player" def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Defines user's bid phase :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string User decision """ if rnd == 1: if not self.dealer: decision = get_user_response('Press (1) to Order Up or (2) to Pass: ', [1, 2]) if decision == 1: return 'order-up' elif decision == 2: return 'pass' elif self.dealer: decision = get_user_response('Press (1) to Accept or (2) to Pass: ', [1, 2]) if decision == 1: cardtodiscard = get_user_response('Which card would you like to discard?', [1, 2, 3, 4, 5]) self.cards[cardtodiscard] = bidcard return 'accept' elif decision == 2: return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', "Diamonds", 'Hearts'] suitlist.remove(excludesuit) suitsstring = "" option = 2 for i in suitlist: suitsstring += '(' + str(option) + '):' + str(i) + ' ' option += 1 if not self.dealer: decision = get_user_response('Input (1) to Pass, or choose a trump suit ' + suitsstring, [1, 2, 3, 4]) if decision == 1: return 'pass' else: return suitlist[decision - 2] elif self.dealer: decision = get_user_response('Choose a trump suit: ' + suitsstring, [1, 2, 3, 4]) return suitlist[decision - 2] def trick_decide(self, playedcard=None): """ Controls user's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: mustplaykeys = self.get_cards_matching_suit(playedcard.get_suit()) else: mustplaykeys = [] if len(mustplaykeys) > 0: card_to_play = get_user_response("Which card would you like to play? ", mustplaykeys, 'Sorry, please play card with the matching suit') else: card_to_play = get_user_response("Which card would you like to play? ", self.cards.keys()) return self.play_card(card_to_play) def pickup_bidcard(self, bidcard): """ Allows user to decide whether to pick up bidcard upon acceptance :param bidcard: Card type Played card :return: None """ cardtodiscard = int(input('Select a card to replace, or press (6) to leave it.')) if cardtodiscard != 6: self.cards[cardtodiscard] = bidcard class ComputerHand(Hand): """Controls the Computer's Hand """ def __init__(self, cards={}, dealerflag=False, makerflag=False, play_mode=False): super().__init__(cards, dealerflag, makerflag) self.playMode = play_mode self.name = "Computer" # needed to make object hashable for key in dict def calc_hand_value(self, trumpsuit=None): """ Private method which provides a sum of the values of the cards in the computer's hand :param trumpsuit: string If provided, re-evaluates the card value using the trumpsuit :return: int Sum of card values """ if trumpsuit: self.set_values(trumpsuit=trumpsuit, evaltrumpsuit=True) else: self.set_values(basevaluereset=True) hand_val = 0 for i in self.cards: hand_val += self.cards[i].roundvalue return hand_val def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Controls Computer's bid phase. :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string Computer decision """ if bidcard: hand_val = self.calc_hand_value(bidcard.get_suit()) else: hand_val = self.calc_hand_value() if rnd == 1: if not self.dealer: if hand_val >= 35: print('Computer Orders Up') return 'order-up' else: print('Computer passes') return 'pass' elif self.dealer: if hand_val >= 48: print('Computer accepts') self.set_values(trumpsuit=bidcard.suit, evaltrumpsuit=True) swap_index = self.find_lowest_card() self.cards[swap_index] = bidcard return 'accept' else: print('Computer passes') return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', "Diamonds", 'Hearts'] suitlist.remove(excludesuit) handvalforeachsuit = {} for i in suitlist: self.set_values(basevaluereset=True) handvalforeachsuit[i] = self.calc_hand_value(trumpsuit=i) highestsuit = max(handvalforeachsuit, key=lambda k: handvalforeachsuit[k]) if handvalforeachsuit[highestsuit] >= 65 or self.dealer: # magic number print('Computer chooses: ' + str(highestsuit)) return highestsuit else: print('Computer passes') return 'pass' def trick_decide(self, playedcard=None): """ Controls Computers's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: # Chooses card with lowest value that still wins, or plays the card with the lowest value overall must_play_cards = self.get_cards_matching_suit(playedcard.get_suit()) min_val = 100 winner_min_val = 100 winner_index = -1 if len(must_play_cards) > 0: for i in must_play_cards: if winner_min_val > self.cards[i].roundvalue > playedcard.roundvalue: # Find lowest winning card, if available winner_index = i winner_min_val = self.cards[i].roundvalue if self.cards[i].roundvalue < min_val: # Find lowest card overall min_index = i min_val = self.cards[i].roundvalue if winner_index != -1: return self.play_card(winner_index) else: return self.play_card(min_index) else: return self.play_card(self.find_lowest_card()) else: return self.play_card(self.find_highest_card()) def find_lowest_card(self): """ Returns the index in cards of the card with the lowest value """ minval = 100 lowcardindex = None for idx, card in self.cards.items(): if card.get_value() <= minval: minval = card.get_value() lowcardindex = idx return lowcardindex def find_highest_card(self): """ Returns the index in cards of the card with the highest value """ maxval = 0 highcardindex = None for idx, card in self.cards.items(): if card.get_value() >= maxval: maxval = card.get_value() highcardindex = idx return highcardindex def pickup_bidcard(self, bidcard): """ Method for computer to decide on picking up the bidcard :param bidcard: Card type on which to perform bid phase :return: None """ self.set_values(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) bidcard.set_value(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) if self.cards[self.find_lowest_card()].roundvalue < bidcard.roundvalue: self.cards[self.find_lowest_card()] = bidcard def __repr__(self): if not self.playMode: card_string = "" for i in self.cards: card_string = card_string + str(i) + str("('*','*')") return card_string else: return super(ComputerHand, self).__repr__()
def get_user_response(question, valid_responses, error_message=None): """ Function to obtain input from the user. :param question: string Question to ask user :param valid_responses: list of valid responses to use in error catching :param error_message: string Message to display if an exception occurs :return: user decision """ while True: try: decision = int(input(question)) if decision not in valid_responses: raise ValueError except ValueError: if error_message: print(error_message) else: print('Sorry, please provide a valid input....') continue else: break return decision class Hand: """Superclass""" def __init__(self, cards={}, dealerflag=False, makerflag=False): self.cards = cards self.dealer = dealerflag self.maker = makerflag def set_values(self, trumpsuit=None, leadsuit=None, resetval=False, evaltrumpsuit=False, basevaluereset=False): """ Iterates through the cards and sets their round value based on the input conditions. :param trumpsuit: current suit of trumpcard :param leadsuit: suit of the card played by the other player in a trick :param resetval: 'soft' reset which doesn't affect trumpsuited cards :param evaltrumpsuit: triggers card valuation using trump suit :param basevaluereset: 'hard' reset """ for i in self.cards: self.cards[i].set_value(trumpsuit=trumpsuit, leadsuit=leadsuit, resetval=resetval, evaltrumpsuit=evaltrumpsuit, basevaluereset=basevaluereset) def set_cards(self, carddict): """ Sets the dictionary of cards :param carddict: dict of Cards """ self.cards = carddict def set_maker(self): """ Sets the maker flag to True """ self.maker = True def set_dealer(self): """ Sets the dealer flag to True """ self.dealer = True def clear_hand(self): """ Resets hand for the next round. """ self.cards = '' self.dealer = False self.maker = False def play_card(self, cardindex): """Pops and returns the card at the given index""" return self.cards.pop(cardindex) def get_cards_matching_suit(self, suit): """ Determines if any cards in hand match the played suit :param suit: string suit of played card i.e. 'Spades' :return: list of keys in hand that match the passed suit """ mustplaykeys = [] for (i, j) in self.cards.items(): if j.suit == suit: mustplaykeys.append(i) return mustplaykeys def __repr__(self): """Overloads str() operator""" card_string = '' for i in self.cards: card_string = card_string + str(i) + str(self.cards[i]) return card_string class Userhand(Hand): """Controls the Player's hand""" def __init__(self, cards={}, dealerflag=False, makerflag=False): super().__init__(cards, dealerflag, makerflag) self.name = 'Player' def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Defines user's bid phase :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string User decision """ if rnd == 1: if not self.dealer: decision = get_user_response('Press (1) to Order Up or (2) to Pass: ', [1, 2]) if decision == 1: return 'order-up' elif decision == 2: return 'pass' elif self.dealer: decision = get_user_response('Press (1) to Accept or (2) to Pass: ', [1, 2]) if decision == 1: cardtodiscard = get_user_response('Which card would you like to discard?', [1, 2, 3, 4, 5]) self.cards[cardtodiscard] = bidcard return 'accept' elif decision == 2: return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', 'Diamonds', 'Hearts'] suitlist.remove(excludesuit) suitsstring = '' option = 2 for i in suitlist: suitsstring += '(' + str(option) + '):' + str(i) + ' ' option += 1 if not self.dealer: decision = get_user_response('Input (1) to Pass, or choose a trump suit ' + suitsstring, [1, 2, 3, 4]) if decision == 1: return 'pass' else: return suitlist[decision - 2] elif self.dealer: decision = get_user_response('Choose a trump suit: ' + suitsstring, [1, 2, 3, 4]) return suitlist[decision - 2] def trick_decide(self, playedcard=None): """ Controls user's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: mustplaykeys = self.get_cards_matching_suit(playedcard.get_suit()) else: mustplaykeys = [] if len(mustplaykeys) > 0: card_to_play = get_user_response('Which card would you like to play? ', mustplaykeys, 'Sorry, please play card with the matching suit') else: card_to_play = get_user_response('Which card would you like to play? ', self.cards.keys()) return self.play_card(card_to_play) def pickup_bidcard(self, bidcard): """ Allows user to decide whether to pick up bidcard upon acceptance :param bidcard: Card type Played card :return: None """ cardtodiscard = int(input('Select a card to replace, or press (6) to leave it.')) if cardtodiscard != 6: self.cards[cardtodiscard] = bidcard class Computerhand(Hand): """Controls the Computer's Hand """ def __init__(self, cards={}, dealerflag=False, makerflag=False, play_mode=False): super().__init__(cards, dealerflag, makerflag) self.playMode = play_mode self.name = 'Computer' def calc_hand_value(self, trumpsuit=None): """ Private method which provides a sum of the values of the cards in the computer's hand :param trumpsuit: string If provided, re-evaluates the card value using the trumpsuit :return: int Sum of card values """ if trumpsuit: self.set_values(trumpsuit=trumpsuit, evaltrumpsuit=True) else: self.set_values(basevaluereset=True) hand_val = 0 for i in self.cards: hand_val += self.cards[i].roundvalue return hand_val def bid_decide(self, bidcard=None, rnd=1, excludesuit=None): """ Controls Computer's bid phase. :param bidcard: Card type for decision :param rnd: int Which round of bidding :param excludesuit: string suit of bid card which can no longer be selected :return: string Computer decision """ if bidcard: hand_val = self.calc_hand_value(bidcard.get_suit()) else: hand_val = self.calc_hand_value() if rnd == 1: if not self.dealer: if hand_val >= 35: print('Computer Orders Up') return 'order-up' else: print('Computer passes') return 'pass' elif self.dealer: if hand_val >= 48: print('Computer accepts') self.set_values(trumpsuit=bidcard.suit, evaltrumpsuit=True) swap_index = self.find_lowest_card() self.cards[swap_index] = bidcard return 'accept' else: print('Computer passes') return 'pass' elif rnd == 2: suitlist = ['Spades', 'Clubs', 'Diamonds', 'Hearts'] suitlist.remove(excludesuit) handvalforeachsuit = {} for i in suitlist: self.set_values(basevaluereset=True) handvalforeachsuit[i] = self.calc_hand_value(trumpsuit=i) highestsuit = max(handvalforeachsuit, key=lambda k: handvalforeachsuit[k]) if handvalforeachsuit[highestsuit] >= 65 or self.dealer: print('Computer chooses: ' + str(highestsuit)) return highestsuit else: print('Computer passes') return 'pass' def trick_decide(self, playedcard=None): """ Controls Computers's trick phase. :param playedcard: Card type Card played by other 'hand' if applicable :return: Card type Card to play """ if playedcard: must_play_cards = self.get_cards_matching_suit(playedcard.get_suit()) min_val = 100 winner_min_val = 100 winner_index = -1 if len(must_play_cards) > 0: for i in must_play_cards: if winner_min_val > self.cards[i].roundvalue > playedcard.roundvalue: winner_index = i winner_min_val = self.cards[i].roundvalue if self.cards[i].roundvalue < min_val: min_index = i min_val = self.cards[i].roundvalue if winner_index != -1: return self.play_card(winner_index) else: return self.play_card(min_index) else: return self.play_card(self.find_lowest_card()) else: return self.play_card(self.find_highest_card()) def find_lowest_card(self): """ Returns the index in cards of the card with the lowest value """ minval = 100 lowcardindex = None for (idx, card) in self.cards.items(): if card.get_value() <= minval: minval = card.get_value() lowcardindex = idx return lowcardindex def find_highest_card(self): """ Returns the index in cards of the card with the highest value """ maxval = 0 highcardindex = None for (idx, card) in self.cards.items(): if card.get_value() >= maxval: maxval = card.get_value() highcardindex = idx return highcardindex def pickup_bidcard(self, bidcard): """ Method for computer to decide on picking up the bidcard :param bidcard: Card type on which to perform bid phase :return: None """ self.set_values(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) bidcard.set_value(trumpsuit=bidcard.get_suit(), evaltrumpsuit=True) if self.cards[self.find_lowest_card()].roundvalue < bidcard.roundvalue: self.cards[self.find_lowest_card()] = bidcard def __repr__(self): if not self.playMode: card_string = '' for i in self.cards: card_string = card_string + str(i) + str("('*','*')") return card_string else: return super(ComputerHand, self).__repr__()