content
stringlengths
7
1.05M
# -*- coding: utf-8 -*- """ Created on Fri May 31 16:00:39 2019 @author: Administrator """ class Solution: def flipAndInvertImage(self, A: list) -> list: for a in A: p, q = 0, len(a)-1 while p<=q: if p == q: a[p] = 1 - a[p] break a[p], a[q] = a[q], a[p] a[p] = 1 - a[p] a[q] = 1 - a[q] p += 1 q -= 1 return A solu = Solution() #A = [[1,1,0],[1,0,1],[0,0,0]] A = [[1,1,0,0],[1,0,0,1],[0,1,1,1],[1,0,1,0]] print(solu.flipAndInvertImage(A))
""" Given a 32-bit signed integer, reverse digits of an integer. """ class Solution: def isPalindrome(self, x: int) -> bool: if x < 0: s = str(x) s = s[1:] a = int(s[::-1]) return -a else: s = str(x) return int(s[::-1]) print(Solution().isPalindrome(123)) print(Solution().isPalindrome(-321))
result = [] for count in range (1,100): if count % 3 == 0: result.append("Fizz") if count % 5 == 0: result.append("Buzz") else: result.append(count) print(result)
def on_data_received(): global cmd cmd = serial.read_until(serial.delimiters(Delimiters.HASH)) basic.show_string(cmd) if cmd == "0": basic.show_leds(""" . # # # . . # . # . . # . # . . # . # . . # # # . """) elif cmd == "1": basic.show_leds(""" . . # . . . # # . . . . # . . . . # . . . # # # . """) elif cmd == "2": basic.show_leds(""" . # # # . . . . # . . # # # . . # . . . . # # # . """) elif cmd == "3": basic.show_leds(""" . # # # . . . . # . . # # # . . . . # . . # # # . """) serial.on_data_received(serial.delimiters(Delimiters.HASH), on_data_received) cmd = "" isTemp = 1 period = 5 def on_forever(): global period, isTemp if period >= 5: period = 0 if isTemp == 1: serial.write_string("!1:TEMP:" + ("" + str(input.temperature())) + "#") isTemp = 0 else: serial.write_string("!1:LIGHT:" + ("" + str(input.light_level())) + "#") isTemp = 1 period = period + 1 basic.pause(1000) basic.forever(on_forever)
class SgfTree(object): def __init__(self, properties=None, children=None): self.properties = properties or {} self.children = children or [] def __eq__(self, other): if not isinstance(other, SgfTree): return False for k, v in self.properties.items(): if k not in other.properties: return False if other.properties[k] != v: return False for k in other.properties.keys(): if k not in self.properties: return False if len(self.children) != len(other.children): return False for a, b in zip(self.children, other.children): if not (a == b): return False return True def __repr__(self): """Ironically, encoding to SGF is much easier""" rep = '(;' for k, vs in self.properties.items(): rep += k for v in vs: rep += '[{}]'.format(v) if self.children: if len(self.children) > 1: rep += '(' for c in self.children: rep += repr(c)[1:-1] if len(self.children) > 1: rep += ')' return rep + ')' def is_upper(s): a, z = map(ord, 'AZ') return all( a <= o and o <= z for o in map(ord, s) ) def parse(input_string): root = None current = None stack = list(input_string) def assert_that(condition): if not condition: raise ValueError( 'invalid format at {}:{}: {}'.format( repr(input_string), len(input_string) - len(stack), repr(''.join(stack)) ) ) assert_that(stack) def pop(): if stack[0] == '\\': stack.pop(0) ch = stack.pop(0) return ' ' if ch in ['\t'] else ch def peek(): return stack[0] def pop_until(ch): try: v = '' while peek() != ch: v += pop() return v except IndexError: raise ValueError('Unable to find {}'.format(ch)) while stack: assert_that(pop() == '(' and peek() == ';') while pop() == ';': properties = {} while is_upper(peek()): key = pop_until('[') assert_that(is_upper(key)) values = [] while peek() == '[': pop() values.append(pop_until(']')) pop() properties[key] = values if root is None: current = root = SgfTree(properties) else: current = SgfTree(properties) root.children.append(current) while peek() == '(': child_input = pop() + pop_until(')') + pop() current.children.append(parse(child_input)) return root
# <<<DBGL8R>>> def add_floats(float_1, float_2): """ Add two floating point numbers together. """ return float_1 + float_2 print('Hello world') # <<<DBGL8R
class ListView: __slots__ = ['_list'] def __init__(self, list_object): self._list = list_object def __add__(self, other): return self._list.__add__(other) def __getitem__(self, other): return self._list.__getitem__(other) def __contains__(self, item): return self._list.__contains__(item) def __eq__(self, other): return self._list.__eq__(other) def __hash__(self): return self._list.__hash__() def __ge__(self, other): if isinstance(other, ListView): return self._list.__ge__(other._list) return self._list.__ge__(other) def __gt__(self, other): if isinstance(other, ListView): return self._list.__gt__(other._list) return self._list.__gt__(other) def __iter__(self): return self._list.__iter__() def __le__(self, other): if isinstance(other, ListView): return self._list.__le__(other._list) return self._list.__le__(other) def __len__(self): return self._list.__len__() def __lt__(self, other): if isinstance(other, ListView): return self._list.__lt__(other._list) return self._list.__lt__(other) def __ne__(self, other): return self._list.__ne__(other) def __mul__(self, other): return self._list.__mul__(other) def __rmul__(self, n): return self._list.__rmul__(n) def __reversed__(self): return self._list.__reversed__() def __repr__(self): return self._list.__repr__() def __str__(self): return self._list.__str__() def __radd__(self, other): return other + self._list def __iadd__(self, other): raise TypeError("unsupported operator for type SetView") def __imul__(self, other): raise TypeError("unsupported operator for type SetView") def copy(self): return self._list.copy() def count(self, object): return self._list.count(object) def index(self, *args, **kwargs): return self._list.index(*args, **kwargs)
def print_with_linenumbers(*args, numberwidth=3): """Prints every argument in a new line and adds line numbers""" for i,arg in enumerate(args): print(f"{i:0{numberwidth}d}: {arg}")
class DSSnet_hosts: 'class for meta process/IED info' p_id = 0 def __init__(self, msg, IED_id, command, ip, pipe = True): self.properties= msg self.IED_id = IED_id self.process_id= DSSnet_hosts.p_id self.command = command self.ip = ip self.pipe = pipe DSSnet_hosts.p_id +=1 def number_processes(self): return DSSnet_hosts.p_id def get_host_name(self): return self.IED_id def get_ip(self): return self.ip def get_process_command(self): return self.command def display_process(self): return('%s : %s : %s \n' % (self.process_id , self.IED_id, self.properties))
''' Longest Increasing Subarray Find the longest increasing subarray (subarray is when all elements are neighboring in the original array). Input: [10, 1, 3, 8, 2, 0, 5, 7, 12, 3] Output: 4 ========================================= Only in one iteration, check if the current element is bigger than the previous and increase the counter if true. Time Complexity: O(N) Space Complexity: O(1) ''' ############ # Solution # ############ def longest_increasing_subarray(arr): n = len(arr) longest = 0 current = 1 i = 1 while i < n: if arr[i] < arr[i - 1]: longest = max(longest, current) current = 1 else: current += 1 i += 1 # check again for max, maybe the last element is a part of the longest subarray return max(longest, current) ########### # Testing # ########### # Test 1 # Correct result => 4 print(longest_increasing_subarray([10, 1, 3, 8, 2, 0, 5, 7, 12, 3]))
# This method breaks up text into words for us def break_words(text): words = text.split() return words # Counts the number of words def count_words(words): return len(words) # Sorts the words (alphabetically) def sort_words(words): words.sort() return words # Takes in a full sentence and returns the sorted words def sort_sentence(sentence): words = break_words(sentence) return words # Prints the first word after popping it off def print_first_word(words): word = words.pop(0) return word # Prints the last word after popping it off def print_last_word(words): word = words.pop() return word # Prints the first and last words of the sentence def print_first_and_last_word(sentence): words = break_words(sentence) return ("{}\n{}".format(print_first_word(words), print_last_word(words))) demitri_martin_joke = """I used to play sports. Then I realized you can buy trophies. Now I am good at everything.""" print("----------") print(demitri_martin_joke) print("----------") bottles_of_beer = 100 + 10 - 15 + 4 print("This should be ninety-nine:", bottles_of_beer) def sing(bottles): for number in reversed(range(bottles + 1)): if number > 0: print_verse(number) else: print_last_verse() def print_verse(bottles): print(bottles, "bottles of beer on the wall,", end=' ') print(bottles, "bottles of beer.") print("Take one down and pass it around,", end=' ') print(bottles - 1, "bottles of beer on the wall.\n") def print_last_verse(): print("No more bottles of beer on the wall,", end=' ') print("no more bottles of beer.") print("Go to the store and buy some more,", end=' ') print("99 bottles of beer on the wall.\n") # sing(bottles) sing(99) sentence = "I think it's interesting that 'cologne' rhymes with 'alone'" words = break_words(sentence) sorted_words = sort_words(sort_sentence(sentence)) print("\"{}\" has {} words".format(sentence, count_words(words))) print("The words are:", words) print("The sorted words are:", sorted_words) print(print_first_word(words)) print(print_last_word(words)) print(print_first_and_last_word(sentence))
class Damper: def __init__(self): self.damper_force0 = 0 def d_damper_force(self, force, action): damper_force = force * -action # AIが決定するパラメータで、与えられた力に対して、どんな割合で力を返すかを決める値 d_damper_force = damper_force - self.damper_force0 self.damper_force0 = damper_force return d_damper_force
# Faça um programa que peça um número inteiro e determine se ele é ou não um número primo. Um número primo é aquele que é divisível somente por ele mesmo e por 1. num = int(input("Digite um número inteiro: ")) tot = 0 for c in range(1, num+1): if num % c == 0: print('\033[33m', end="") tot += 1 else: print('\033[31m', end="") print("{} ".format(c), end="") print("\n\033[mO número {} foi divisível {} vezes".format(num ,tot)) if tot == 2: print("Esse número é primo!") else: print("Esse número não é primo")
def esc_kw(kw): """ Take a keyword and escape all the Solr parts we want to escape!""" kw = kw.replace('\\', '\\\\') # be sure to do this first, as we inject \! kw = kw.replace('(', '\(') kw = kw.replace(')', '\)') kw = kw.replace('+', '\+') kw = kw.replace('-', '\-') kw = kw.replace(':', '\:') kw = kw.replace('/', '\/') kw = kw.replace(']', '\]') kw = kw.replace('[', '\[') kw = kw.replace('*', '\*') kw = kw.replace('?', '\?') kw = kw.replace('{', '\{') kw = kw.replace('}', '\}') kw = kw.replace('~', '\~') return kw
def main(): # input a, b = input().split() # compute # output print('H' if a==b else 'D') if __name__ == '__main__': main()
# -*- coding: utf-8 -*- description = 'DNS detector setup' group = 'lowlevel' includes = ['counter'] sysconfig = dict( datasinks = ['LiveView'], ) tango_base = 'tango://phys.dns.frm2:10000/dns/' devices = dict( LiveView = device('nicos.devices.datasinks.LiveViewSink', ), dettof = device('nicos_mlz.dns.devices.detector.TofChannel', description = 'TOF data channel', tangodevice = tango_base + 'sis/det', readchannels = (0, 23), readtimechan = (0, 1000), ), det = device('nicos_mlz.dns.devices.detector.DNSDetector', description = 'Tof detector', timers = ['timer'], monitors = ['mon1'], images = ['dettof'], others = ['chopctr'], flipper = 'flipper', ), ) extended = dict( poller_cache_reader = ['flipper'], representative = 'dettof', ) startupcode = ''' SetDetectors(det) '''
#/* n=int(input("Enter the number to print the tables for:")) #for i in range(1,11): # print(n,"x",i,"=",n*i) n=int(input("Enter the number")) for i in range(1,11): print (n ,"x", i, "=", n * i)
# -*- coding: utf-8 -*- """ File: config.sample.py - Copy `config.sample.py` to `config.py`. """ # Subscription Key for calling the Cognitive Face API. FACE_API_KEY = "your_face_api_key" # subscription key for speach API SPEACH_API_KEY = "your_speach_api_key" # Base URL for calling the Cognitive Face API. BASE_URL = "your_base_url" # Time (in seconds) for sleep between each call to avoid exceeding quota. # Default to 3 as free subscription have limit of 20 calls per minute. TIME_SLEEP = 3 # group id can be set by user but has to be a string, e.g. "foo_bar" or "hello_world" GROUP_ID = "your_group_id"
class CMDDiffLevelEnum: BreakingChange = 1 # diff breaking change part Structure = 2 # Associate = 5 # include diff for links All = 10 # including description and help messages
def isColoured(mult,i,j): if i//mult%2==j//mult%2: return True return False def colour(i,j): col = False for each in mults: if isColoured(each,i,j): col = (col==False) return col data = open("DATA21.txt") input = data.readline for j in range(10): n = int(input()) mults = [] for i in range(1,int(n**0.5)+1): if n%i==0: mults.append(i) mults.append(n/i) mults.append(n) mults = list(set(mults)) for i in range(5): a,b = list(map(int,input().strip().split(" "))) col = colour(a-1,b-1) if col: print("B",end="") else: print("G",end="") print("")
def is_narcissistic_number(n): original_number = n number_of_digits = get_number_of_digits(n) sum = 0 while n != 0: sum += (n % 10) ** number_of_digits n //= 10 return original_number == sum def get_number_of_digits(n): return len(str(n)) if __name__ == "__main__": n = int(input("Enter number: ")) print("Is a Narcissistic Number" if is_narcissistic_number(n) else "Is NOT a Narcissistic Number")
# Program to work with file input / output (i/o) # This is pulling the days.txt file in this directory in this repo path = 'days.txt' days_file = open(path,'r') days = days_file.read() new_path = 'new_days.txt' new_days = open(new_path,'w') title = 'Days of the Week\n' new_days.write(title) print(title) new_days.write(days) print(days) days_file.close() new_days.close()
#!/usr/bin/env python # coding: utf-8 # In[3]: # DEMO OF WEAK TYPING in PYTHON # int age = 4 <-strongly typed variables, declare type along with id age = 4; # we CANNOT declare a type for variable age print(age) print(type(age)) age = ('calico','calico','himalyian') print(age) print(type(age)) # # Allegheny county EMS dispatch analysis # In[ ]: # HIGH LEVEL GOAL: # Source: WPRDC Data set on EMS/Fire dispatch via # https://data.wprdc.org/dataset/allegheny-county-911-dispatches-ems-and-fire/resource/ff33ca18-2e0c-4cb5-bdcd-60a5dc3c0418?view_id=5007870f-c48b-4849-bb25-3e46c37f2dc7 # Determine the rate of redacted call descriptions across # EMS dispatches # Has the rate of redaction changed year over year? # if so, how? # TODO: download CSV file from WPRDC into a raw data directory # Review the fields in the file on WPRDC # In[ ]: # Raw input: CSV file containing a header row of column names # and 1 or more rows, each row representing a single EMS dispatch # in Allegheny County in year X # In[ ]: def iterate_EMS_records(file_path): ''' Retrieve each record from a CSV of EMS records from the filepath Intended for use with the WPRDC's record of EMS dispatches in Allegheny County and will provide a dictionary of each record for use by processing functions ''' # Open file at filepath # Use for loop over each record # In[ ]: def test_for_redacted_description(ems_rec): ''' Examine EMS dispatch record and look for redacted or blank descriptions ''' # In[ ]: # Based on record check, increment count by year def red_year_total(redaction_year): ''' Maintains a dictionary of counts by year passed when called Assumes that each call corresponds with a single record in the EMS dispatch data set, so a call with input of '2019' means, add 1 to the 2019 total of redacted records ''' # In[ ]: # Based on record check, write record ID to log file def write_redacted_rec_to_log(ems_rec): ''' Extract record ID and write to log file specific in global dict ''' # In[ ]: def display_redaction_count_by_year(year_counts): ''' Given a dictionary of year(key):['total','redactions'] make a pretty output to the console ''' # In[ ]: # Desired output # 1) Dictionary of format: { year:count_of_removed_records} # 2) Text file whose rows are the record IDs of EMS # dispatches whose description was removed/redacted
""" Created on October 15, 2019 This file is subject to the terms and conditions defined in the file 'LICENSE.txt', which is part of this source code package. @author: David Moss """ # Task priorities TASK_PRIORITY_DETAIL = 0 TASK_PRIORITY_INFO = 1 TASK_PRIORITY_WARNING = 2 TASK_PRIORITY_CRITICAL = 3 def update_task(botengine, location_object, task_id, title, comment="", priority=TASK_PRIORITY_INFO, icon=None, icon_font=None, url=None, editable=True): """ Add or update a task :param botengine: BotEngine environment :param location_object: Location Object :param task_id: Unique Task ID for later reference :param title: Title of the task :param comment: Comment of the task :param priority: Priority of the task: 0=detail; 1=info; 2=warning; 3=critical :param icon: Optional task icon :param icon_font: Icon font package to render the icon. See the ICON_FONT_* descriptions in com.ppc.Bot/utilities/utilities.py :param url: Instead of tapping into the task, jump straight to this URL when the user taps on the task from their Dashboard. :param editable: True if this task can be edited. """ task = { "id": task_id, "title": title, "comment": comment, "editable": editable } if priority is not None: task['priority'] = priority if icon is not None: task['icon'] = icon if icon_font is not None: task['icon_font'] = icon_font if url is not None: task['url'] = url location_object.distribute_datastream_message(botengine, "update_task", task, internal=True, external=False) def delete_task(botengine, location_object, task_id): """ Delete a task :param botengine: BotEngine environment :param location_object: Location object :param task_id: Task ID to delete """ task = { "id": task_id } location_object.distribute_datastream_message(botengine, "update_task", task, internal=True, external=False)
""" topc: 实现迭代器协议 desc: 构建一个能支持迭代操作的自定义对象,并希望找到一个能实现迭代协议的简单方法。 """ class Node: def __init__(self, value): self._value = value self._children = [] def __repr__(self): return 'Node({!r})'.format(self._value) def add_child(self, node): self._children.append(node) def __iter__(self): return iter(self._children) def depth_first(self): yield self for c in self: yield from c.depth_first() """ python的迭代协议要求一个__iter__()方法发挥一个特殊的迭代器对象, 这个迭代器对象实现了__next__()方法, 并通过StopIteration异常标识迭代的完成. 但是实现比较繁琐. 下面我们演示这种方式, 如何使用一个关联迭代器类重新实现depth_first()方法 """ class Node2: def __init(self, value): self._value = value self._children = [] def __repr(self): return 'Node({!r})'.format(self._value) def add_child(self, node): self._children.append(node) def __iter__(self): return iter(self._children) def depth_first(self): return DepthFirstInterator(self) class DepthFirstInterator(object): """ 深度优先遍历 """ def __init__(self, start_node): self._node = start_node self._children_iter = None self._child_iter = None def __iter__(self): return self def __next__(self): # 如果是开始节点就返回自身; 为子节点生成一个迭代器 if self._children_iter is None: self._children_iter = iter(self._node) return self._node # 如果执行到子节点, 就返回它的下一个节点 elif self._child_iter: try: nextchild = next(self._child_iter) return nextchild except StopIteration: self._child_iter = None return next(self) else: self._child_iter = next(self._children_iter).depth_first() return next(self) if __name__ == '__main__': root = Node(0) child1 = Node(1) child2 = Node(2) root.add_child(child1) root.add_child(child2) child1.add_child(Node(3)) child1.add_child(Node(4)) child2.add_child(Node(5)) for ch in root.depth_first(): print(ch)
class Rectangle(object): def __init__(self, x, y): self._x = x # don't trigger _setSide prematurely self.y = y # now trigger it, so area gets computed def _setSide(self, attrname, value): setattr(self, attrname, value) self.area = self._x * self._y x = CommonProperty('_x', fset=_setSide, fdel=None) y = CommonProperty('_y', fset=_setSide, fdel=None)
orders = ["daisies", "periwinkle"] print(orders) orders.append("tulips") orders.append("roses") print(orders)
#6. As Organizações Tabajara resolveram dar um aumento de salário aos seus colaboradores e lhe contraram para # desenvolver o programa que calculará os reajustes. # Faça um programa que recebe o salário de um colaborador e o reajuste segundo o seguinte critério, baseado no salário atual: # salários até R$ 280,00 (incluindo) : aumento de 20% # salários entre R$ 280,00 e R$ 700,00 : aumento de 15% # salários entre R$ 700,00 e R$ 1500,00 : aumento de 10% # salários de R$ 1500,00 em diante : aumento de 5% Após o aumento ser realizado, informe na tela: # salário antes do reajuste; # percentual de aumento aplicado; # valor do aumento; # novo salário, após o aumento. salario = float(input('Digite seu salário: ')) if salario <= 280: aumento = (salario * 0.20) + salario percentual = aumento - salario print('Salário antes do ajuste R$%.2f'%(salario)) print('Aumentou 20%.') print('Valor do aumento foi R$%.2f'%(percentual)) print('Salário ajustado R$%.2f'%(aumento)) elif salario > 280 and salario <= 700: aumento = (salario * 0.15) + salario percentual = aumento - salario print('Salário antes do ajuste R$%.2f'%(salario)) print('Aumentou 15%.') print('Valor do aumento foi R$%.2f'%(percentual)) print('Salário ajustado R$%.2f'%(aumento)) elif salario > 700 and salario <= 1500: aumento = (salario * 0.10) + salario percentual = aumento - salario print('Salário antes do ajuste R$%.2f'%(salario)) print('Aumentou 10%.') print('Valor do aumento foi R$%.2f'%(percentual)) print('Salário ajustado R$%.2f'%(aumento)) elif salario > 1500: aumento = (salario * 0.05) + salario percentual = aumento - salario print('Salário antes do ajuste R$%.2f'%(salario)) print('Aumentou 5%.') print('Valor do aumento foi R$%.2f'%(percentual)) print('Salário ajustado R$%.2f'%(aumento))
def test_parameters(api_client, api_prefix): url = f"{api_prefix}/parameterset/" response = api_client.get(url) assert response.status_code == 200 json_dict = response.json expected = { "parameter_list_url": f"{api_prefix}/parameters/", "parameter_set": { "name": None, "parameters": [ { "excluded": [], "excluded_by": [], "name": "Colour", "parameter_set": 1, "position": 0, "uid": 1, "values": [ {"name": "Red", "parameter": 1, "position": 0, "uid": 1}, {"name": "Green", "parameter": 1, "position": 1, "uid": 2}, ], }, { "excluded": [], "excluded_by": [], "name": "Pet", "parameter_set": 1, "position": 1, "uid": 2, "values": [ {"name": "Bird", "parameter": 2, "position": 0, "uid": 3}, {"name": "Cat", "parameter": 2, "position": 1, "uid": 4}, {"name": "Dog", "parameter": 2, "position": 2, "uid": 5}, {"name": "Fish", "parameter": 2, "position": 3, "uid": 6}, ], }, { "excluded": [], "excluded_by": [], "name": "Speed", "parameter_set": 1, "position": 2, "uid": 3, "values": [ {"name": "Fast", "parameter": 3, "position": 0, "uid": 7}, {"name": "Slow", "parameter": 3, "position": 1, "uid": 8}, ], }, { "excluded": [], "excluded_by": [], "name": "Music", "parameter_set": 1, "position": 3, "uid": 4, "values": [ {"name": "80s", "parameter": 4, "position": 0, "uid": 9}, {"name": "20s", "parameter": 4, "position": 1, "uid": 10}, ], }, ], "position": None, "uid": 1, }, "parameter_set_url": f"{api_prefix}/parameterset/", } assert json_dict == expected
#! /usr/bin/python3 DATA_FILENAME = "data.txt" data_file = open(DATA_FILENAME, 'r') # open the file for reading date_string = data_file.readline() date_string = date_string.strip() year, month, day = tuple(date_string.split('-')) year, month, day = int(year), int(month), int(day) month_names = {1:'January', 2:'February', 3:'March', 4:'April', 5: 'May', 6: 'June', 7:'July', 8: 'August', 9:'September', 10:'October', 11:'November', 12:'December'} new_date_string = month_names[month] + ' ' + str(day) + ', ' + str(year) print(new_date_string)
# Version-specific constants - EDIT THESE VALUES VERSION_NAME = "Version003 - Brute Force, Even Smarter Iteration" VERSION_DESCRIPTION = """ A slightly more formulaic approach, but still iterative. """ def solution(resources, args): """Problem 1 - Version 3 Use a formula to determine the additional sum 15 integers at a time, then use the iterative approach for any remaining integers in the range. Parameters: args.number The upper limit of the range of numbers over which the sum will be taken Return: Sum of all numbers in range [1, args.number) that are divisible by 3 or 5. """ retval = 0 repeats = [3, 5, 6, 9, 10, 12, 15] i = 0 n = args.number - 1 while n > 15: retval += sum(repeats) retval += 15*len(repeats)*i n -= 15 i += 1 while n >= 3: if n % 3 == 0 or n % 5 == 0: retval += 15*i + n n -= 1 return retval if __name__ == "__main__": errmsg = "Cannot run {} as a standalone script" raise RuntimeError(errmsg.format(VERSION_NAME))
""" link: https://leetcode-cn.com/problems/find-mode-in-binary-search-tree problem: 给二叉排序树,求其众数,要求空间O(1) solution: 中序遍历记录前访问值。 """ class Solution: def findMode(self, root: TreeNode) -> List[int]: res, m, pre, cnt = [], 1, -1, 0 def dfs(k: TreeNode): if not k: return nonlocal m, res, pre, cnt dfs(k.left) if k.val == pre: cnt += 1 else: pre = k.val cnt = 1 if cnt > m: res = [pre] m = cnt elif m == cnt: res.append(pre) dfs(k.right) dfs(root) return res
# Author: SAHIL SAINI # This script helps to count number of words, number of lines and number of characters from a file def countWords(fileName): numwords = 0 numchars = 0 numlines = 0 with open(fileName, 'r') as file: for line in file: wordlist = line.split() numlines += 1 numwords += len(wordlist) numchars += len(line) print ("Words: ", numwords) print ("Lines: ", numlines) print ("Characters: ", numchars) if __name__ == '__main__': countWords('P07_ScriptToSendMail.py') # OUTPUT: # Words:  55 # Lines:  14 # Characters:  554
def handle_error_response(resp): codes = { -1: FATdAPIError, -32600: InvalidRequest, -32601: MethodNotFound, -32602: InvalidParam, -32603: InternalError, -32700: ParseError, -32800: TokenNotFound, -32801: InvalidToken, -32802: InvalidAddress, -32803: TransactionNotFound, -32804: InvalidTransaction, -32805: TokenSyncing, } error = resp.json().get("error", {}) message = error.get("message") code = error.get("code", -1) data = error.get("data", {}) raise codes[code](message=message, code=code, data=data, response=resp) class FATdAPIError(Exception): response = None data = {} code = -1 message = "An unknown error occurred" def __init__(self, message=None, code=None, data=None, response=None): if data is None: data = {} self.response = response if message: self.message = message if code: self.code = code if data: self.data = data def __str__(self): if self.code: return "{}: {}".format(self.code, self.message) return self.message class InvalidRequest(FATdAPIError): pass class MethodNotFound(FATdAPIError): pass class InternalError(FATdAPIError): pass class ParseError(FATdAPIError): pass class TokenNotFound(FATdAPIError): pass class InvalidToken(FATdAPIError): pass class InvalidAddress(FATdAPIError): pass class TransactionNotFound(FATdAPIError): pass class InvalidTransaction(FATdAPIError): pass class TokenSyncing(FATdAPIError): pass class InvalidFactoidKey(ValueError): pass class InvalidChainID(ValueError): pass class InvalidParam(ValueError): pass class MissingRequiredParameter(Exception): pass
class Hitbox: def __init__(self): pass def point_inside(self, obj, point): return False class Box(Hitbox): def __init__(self, width, height): Hitbox.__init__(self) self.width = width self.height = height def point_inside(self, obj, pos): x = obj.x y = obj.y xm = x + (self.width*obj.scale) ym = y + (self.height*obj.scale) ix = pos[0] iy = pos[1] xgood = x <= ix < xm ygood = y <= iy < ym return xgood and ygood class Ellipse(Hitbox): def __init__(self, width, height): Hitbox.__init__(self) self.width = width self.height = height def point_inside(self, obj, pos): h, k = obj.x, obj.y x, y = pos a = self.width/2.0 b = self.height/2.0 a *= obj.scale b *= obj.scale atop = (x-h-a)**2 btop = (y-k-b)**2 aside = atop/(a**2) bside = btop/(b**2) return aside + bside <= 1 class Compound(Hitbox): def __init__(self, *hitboxes): Hitbox.__init__(self) self.hitboxes = hitboxes def point_inside(self, obj, pos): inside = False for hitbox in self.hitboxes: if hitbox.point_inside(obj, pos): inside = True return inside
def Function(anumber): if anumber == 1: print ("One") elif anumber == 2: print ("Two") elif anumber == 3: print ("Three") elif anumber == 4: print ("Four") elif anumber == 5: print ("Five") elif anumber == 6: print ("Six") elif anumber == 7: print ("Seven") elif anumber == 8: print ("Eight") elif anumber == 9: print ("Nine") elif anumber == 10: print ("Ten") elif anumber == 11: print ("Eleven") elif anumber == 12: print ("Twelve") elif anumber == 13: print ("Thirteen") elif anumber == 14: print ("Fourteen") elif anumber == 15: print ("Fifteen") elif anumber == 16: print ("Sixteen") elif anumber == 17: print ("Seventeen") elif anumber == 18: print ("Eighteen") elif anumber == 19: print ("Nineteen") Function(6)
def disp(*txt, p): print(*txt) ask = lambda p : p.b(input()) functions = {">>":disp,"?":ask}
''' Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.Return the decimal value of the number in the linked list. Example : 1 ---> 0 ---> 1 Input: head = [1,0,1] Output: 5 Explanation: (101) in base 2 = (5) in base 10 Approach: 1. Initialize result number to be equal to head value: num = head.val. This operation is safe because the list is guaranteed to be non-empty. 2. Parse linked list starting from the head: while head.next: The current value is head.next.val. Update the result by shifting it by one to the left and adding the current value: num = num * 2 + head.next.val. 3. Return num. Time complexity:O(N). Space complexity:O(1). ''' class ListNode(object): def __init__(self, val=0, next=None): self.val = val self.next = next class Solution(object): def getDecimalValue(self, head): """ :type head: ListNode :rtype: int """ num = head.val while(head.next): num = (2*num) + (head.next.val) head = head.next return num
val = int(input(print("Enter a number: "))) option = { "n":"Nae nigga nae \n", "c":"Uohhhhhh :sob::sob::sob: \n", "i":"I am living in your walls, oomfie. \n" } userinput = input("Choose your poison: [N]iggas, [C]unny, [I]solation") with open("outputtings.txt",'w') as f: f.write(option[userinput.lower()] * val) print("Output saved to file. Spam responsibly, fam.")
''' Ganon's Tower ''' __all__ = 'LOCATIONS', LOCATIONS = { "Ganon's Tower Entrance (I)": { 'type': 'interior', 'link': { 'Castle Tower Entrance (E)': [('settings', 'inverted')], "Ganon's Tower Entrance (E)": [('nosettings', 'inverted')], "Ganon's Tower Lobby": [('and', [ ('or', [ ('settings', 'placement_advanced'), ('and', [ ('or', [ ('settings', 'swordless'), ('item', 'mastersword')]), ('or', [ ('item', 'bottle'), ('item', 'bluemail')])])]), ('rabbitbarrier', None)])]} }, "Ganon's Tower Lobby": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Entrance (I)": [], "Ganon's Tower Torch Key Room": [], "Ganon's Tower Trap Room": [], "Ganon's Tower Ascent 1": [('bigkey', "Ganon's Tower")]} }, "Ganon's Tower Torch Key Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Lobby": [], "Ganon's Tower Torch Key": [('item', 'pegasus')], "Ganon's Tower Moving Bumper Key": []} }, "Ganon's Tower Torch Key": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Torch Key Room": []} }, "Ganon's Tower Moving Bumper Key": { 'type': 'dungeonkey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Torch Key Room": [], "Ganon's Tower Pit Room": [('item', 'hammer')]} }, "Ganon's Tower Pit Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Moving Bumper Key": [('item', 'hookshot')], "Ganon's Tower Stalfos Room": [('item', 'hookshot')], "Ganon's Tower Map": [('item', 'hookshot'), ('item', 'pegasus')]} }, "Ganon's Tower Stalfos Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Pit Room": [ ('item', 'hookshot'), ('item', 'pegasus')], "Ganon's Tower Stalfos Room Chest 1": [], "Ganon's Tower Stalfos Room Chest 2": [], "Ganon's Tower Stalfos Room Chest 3": [], "Ganon's Tower Stalfos Room Chest 4": []} }, "Ganon's Tower Stalfos Room Chest 1": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Stalfos Room": []} }, "Ganon's Tower Stalfos Room Chest 2": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Stalfos Room": []} }, "Ganon's Tower Stalfos Room Chest 3": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Stalfos Room": []} }, "Ganon's Tower Stalfos Room Chest 4": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Stalfos Room": []} }, "Ganon's Tower Map": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Pit Room": [('item', 'hookshot')], "Ganon's Tower Switch Key": []} }, "Ganon's Tower Switch Key": { 'type': 'dungeonkey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Map": [], "Ganon's Tower Winder Room": [('item', 'hookshot')]} }, "Ganon's Tower Winder Room": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Treasure": [('item', 'bombs')], "Ganon's Tower Convergence": []} }, "Ganon's Tower Secret Treasure": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Chest 1": [], "Ganon's Tower Secret Chest 2": [], "Ganon's Tower Secret Chest 3": [], "Ganon's Tower Secret Chest 4": [], "Ganon's Tower Convergence": []} }, "Ganon's Tower Secret Chest 1": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Treasure": []} }, "Ganon's Tower Secret Chest 2": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Treasure": []} }, "Ganon's Tower Secret Chest 3": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Treasure": []} }, "Ganon's Tower Secret Chest 4": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Secret Treasure": []} }, "Ganon's Tower Trap Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Lobby": [], "Ganon's Tower Trap Chest 1": [], "Ganon's Tower Trap Chest 2": [], "Ganon's Tower Tile Room": [('item', 'somaria')]} }, "Ganon's Tower Trap Chest 1": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Trap Room": []} }, "Ganon's Tower Trap Chest 2": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Trap Room": []} }, "Ganon's Tower Tile Room": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Trap Room": [], "Ganon's Tower Torch Race": []} }, "Ganon's Tower Torch Race": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Tile Room": [], "Ganon's Tower Compass Room": [('item', 'firerod')]} }, "Ganon's Tower Compass Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Torch Race": [], "Ganon's Tower Compass Chest 1": [], "Ganon's Tower Compass Chest 2": [], "Ganon's Tower Compass Chest 3": [], "Ganon's Tower Compass Chest 4": [], "Ganon's Tower Obstacle Course Key": []} }, "Ganon's Tower Compass Chest 1": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Compass Room": []} }, "Ganon's Tower Compass Chest 2": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Compass Room": []} }, "Ganon's Tower Compass Chest 3": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Compass Room": []} }, "Ganon's Tower Compass Chest 4": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Compass Room": []} }, "Ganon's Tower Obstacle Course Key": { 'type': 'dungeonkey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Convergence": []} }, "Ganon's Tower Convergence": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Anti-Fairy Room": [], "Ganon's Tower Treasure": []} }, "Ganon's Tower Anti-Fairy Room": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Convergence": [], "Ganon's Tower Armos On Ice": [('item', 'bombs')]} }, "Ganon's Tower Armos On Ice": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Big Key Room": [], "Ganon's Tower Treasure": []} }, "Ganon's Tower Big Key Room": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Armos On Ice": [], "Ganon's Tower Big Key Chest 1": [], "Ganon's Tower Big Key Chest 2": [], "Ganon's Tower Big Key Chest 3": []} }, "Ganon's Tower Big Key Chest 1": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Big Key Room": []} }, "Ganon's Tower Big Key Chest 2": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Big Key Room": []} }, "Ganon's Tower Big Key Chest 3": { 'type': 'dungeonchest', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Big Key Room": []} }, "Ganon's Tower Treasure": { 'type': 'dungeonchest_nokey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Convergence": [], "Ganon's Tower Torch Key Room": []} }, "Ganon's Tower Ascent 1": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Lobby": [], "Ganon's Tower Ascent 2": [('item', 'bow')]} }, "Ganon's Tower Ascent 2": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 1": [('item', 'bow')], "Ganon's Tower Ascent 3": [ ('item', 'lantern'), ('item', 'firerod')]} }, "Ganon's Tower Ascent 3": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 2": [], "Ganon's Tower Helmasaur Key": [], "Ganon's Tower Helmasaur Chest 1": [], "Ganon's Tower Helmasaur Chest 2": [], "Ganon's Tower Ascent 4": []} }, "Ganon's Tower Helmasaur Key": { 'type': 'dungeonkey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 3": []} }, "Ganon's Tower Helmasaur Chest 1": { 'type': 'dungeonchest_nokey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 3": []} }, "Ganon's Tower Helmasaur Chest 2": { 'type': 'dungeonchest_nokey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 3": []} }, "Ganon's Tower Ascent 4": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 3": [], "Ganon's Tower Rabbit Beam Chest": [], "Ganon's Tower Ascent 5": []} }, "Ganon's Tower Rabbit Beam Chest": { 'type': 'dungeonchest_nokey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 4": []} }, "Ganon's Tower Ascent 5": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 4": [], "Ganon's Tower Ascent 6": [('item', 'hookshot')]} }, "Ganon's Tower Ascent 6": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Last Chest": [], "Ganon's Tower Boss": []} }, "Ganon's Tower Last Chest": { 'type': 'dungeonchest_nokey', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Ascent 6": []} }, "Ganon's Tower Boss": { 'type': 'dungeonboss', "dungeon": "Ganon's Tower", 'link': { "Ganon's Tower Boss Item": [ ('item', 'sword'), ('and', [ ('settings', 'swordless'), ('item', 'hammer')]), ('item', 'bugnet')]} }, "Ganon's Tower Boss Item": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { "Ganon's Tower Reward": []} }, "Ganon's Tower Reward": { 'type': 'area', 'dungeon': "Ganon's Tower", 'link': { 'Pyramid': [('nosettings', 'inverted')], 'Castle Walls': [('settings', 'inverted')]} }, }
class Codec: def __init__(self): self.codec_dict = dict() self.codec_reversed = dict() self.codec_len = 0 def encode(self, longUrl: str) -> str: """Encodes a URL to a shortened URL. """ if longUrl not in self.codec_dict: self.codec_dict[longUrl]=self.codec_len self.codec_reversed[self.codec_len] = longUrl self.codec_len+=1 return "http://tinyurl.com/{}".format(self.codec_dict[longUrl]) def decode(self, shortUrl: str) -> str: """Decodes a shortened URL to its original URL. """ val = int(shortUrl.split("/")[-1]) return self.codec_reversed[val] # Your Codec object will be instantiated and called as such: # codec = Codec() # codec.decode(codec.encode(url))
# -*- coding: utf-8 -*- """ Created on Wed May 22 17:54:15 2019 @author: Parikshith.H """ L1 = [10,20,30,40] print(L1) print(L1[0]) print(L1[3]) L1[3] = 50 print(L1) #output: # ============================================================================= # [10, 20, 30, 40] # 10 # 40 # [10, 20, 30, 50] # ============================================================================= L2 = [10,2.5,"hello"] print(L2) print(L2[2]) L2[1] = "welcome" #lists are mutable print(L2) # ============================================================================= # #output: # [10, 2.5, 'hello'] # hello # [10, 'welcome', 'hello'] # ============================================================================= l3 = [10,20,'hello',['A','B']] #4 elements int,int,string,list #it has list #inside a list print(l3[3]) print(l3[2]) print(l3[3][0])#in list3 acces 4th element inside that 1st element # ============================================================================= # #output: # ['A', 'B'] # hello # A # ============================================================================= l4 = [[10,20,30],[2,5,6]] print(l4) # ============================================================================= # #output: # [[10, 20, 30], [2, 5, 6]] # =============================================================================
def siOr(s0, s1): '''Performs s0 | s1 where s0 and s1 are lists of sections or intervals''' actSec = [False, False] secs = [] k0 = [i for s in s0 for i in s] k1 = [i for s in s1 for i in s] keyPoints = list(sorted([(k, 0) for k in k0] + [(k, 1) for k in k1], key=lambda x: x[0])) X = None for k, i in keyPoints: a0 = actSec[0] | actSec[1] actSec[i] = not actSec[i] a1 = actSec[0] | actSec[1] if a0 != a1: if a1: X = k else: if len(secs) > 0 and secs[-1][1] == X: secs[-1] = (secs[-1][0], k) else: secs.append((X, k)) secs = [(a, b) for a, b in secs if a != b] return secs def siAnd(s0, s1): '''Performs s0 & s1 where s0 and s1 are lists of sections or intervals''' actSec = [False, False] secs = [] k0 = [i for s in s0 for i in s] k1 = [i for s in s1 for i in s] keyPoints = list(sorted([(k, 0) for k in k0] + [(k, 1) for k in k1], key=lambda x: x[0])) X = None for k, i in keyPoints: a0 = actSec[0] & actSec[1] actSec[i] = not actSec[i] a1 = actSec[0] & actSec[1] if a0 != a1: if a1: X = k else: if len(secs) > 0 and secs[-1][1] == X: secs[-1] = (secs[-1][0], k) else: secs.append((X, k)) secs = [(a, b) for a, b in secs if a != b] return secs def siXor(s0, s1): '''Performs s0 ^ s1 where s0 and s1 are lists of sections or intervals''' actSec = [False, False] secs = [] k0 = [i for s in s0 for i in s] k1 = [i for s in s1 for i in s] keyPoints = list(sorted([(k, 0) for k in k0] + [(k, 1) for k in k1], key=lambda x: x[0])) X = None for k, i in keyPoints: a0 = actSec[0] ^ actSec[1] actSec[i] = not actSec[i] a1 = actSec[0] ^ actSec[1] if a0 != a1: if a1: X = k else: if len(secs) > 0 and secs[-1][1] == X: secs[-1] = (secs[-1][0], k) else: secs.append((X, k)) secs = [(a, b) for a, b in secs if a != b] return secs def siMinus(s0, s1): '''Performs s0 - s1 where s0 and s1 are lists of sections or intervals''' actSec = [False, False] secs = [] k0 = [i for s in s0 for i in s] k1 = [i for s in s1 for i in s] keyPoints = list(sorted([(k, 0) for k in k0] + [(k, 1) for k in k1], key=lambda x: x[0])) X = None active = False for k, i in keyPoints: actSec[i] = not actSec[i] if actSec[0] and not actSec[1]: X = k active = True elif active and X is not None and (not actSec[0] or actSec[1]): if len(secs) > 0 and secs[-1][1] == X: secs[-1] = (secs[-1][0], k) else: secs.append((X, k)) active = False secs = [(a, b) for a, b in secs if a != b] return secs def verifySI(s): keyPoints = [] for x0, x1 in s: keyPoints.append((x0, True)) keyPoints.append((x1, False)) keyPoints.sort(key=lambda x: x[0]) newS = [] X = None depth = 0 for x, inS in keyPoints: if inS: if depth == 0: X = x depth += 1 else: depth -= 1 if depth == 0: newS.append((X, x)) return newS
class Solution: def numIslands(self, grid: 'List[List[str]]') -> 'int': if not grid: return 0 no_lines = len(grid) no_cols = len(grid[0]) def solve(line_idx, col_idx): grid[line_idx][col_idx] = '-1' queue = [(line_idx, col_idx)] idx = 0 while idx < len(queue): land_x, land_y = queue[idx] idx += 1 if land_x + 1 < no_lines and grid[land_x + 1][land_y] == '1': grid[land_x + 1][land_y] = '-1' queue.append((land_x + 1, land_y)) if land_x - 1 >= 0 and grid[land_x - 1][land_y] == '1': grid[land_x - 1][land_y] = '-1' queue.append((land_x - 1, land_y)) if land_y + 1 < no_cols and grid[land_x][land_y + 1] == '1': grid[land_x][land_y + 1] = '-1' queue.append((land_x, land_y + 1)) if land_y - 1 >= 0 and grid[land_x][land_y - 1] == '1': grid[land_x][land_y - 1] = '-1' queue.append((land_x, land_y - 1)) count = 0 for line_idx, line in enumerate(grid): for col_idx, value in enumerate(line): if grid[line_idx][col_idx] != '1': continue count += 1 solve(line_idx, col_idx) return count
a = [[3,],[]] for x in a: x.append(4) # print (x) print (a) b= [] for x in b: print (3) print (x)
filename='pi_million_digits.txt' with open(filename) as file_object: lines=file_object.readlines() pi_string='' for line in lines: pi_string+=line.strip() birthday=input("Enter your birthday, in the form mmddyy:") if birthday in pi_string: print("Your birthday appears in the first millions digits of pi!") else: print("Your birthday does not appear in the first million digits of pi.")
""" This module is used to define constants used throughout the code. It should not depend on any other part of the globus-cli codebase. (If you need to import something else, maybe it's not simple enough to be a constant...) """ __all__ = ["EXPLICIT_NULL"] class _ExplicitNullClass: """ Magic sentinel value used to disambiguate values which are being intentionally nulled from values which are `None` because no argument was provided """ def __bool__(self): return False def __repr__(self): return "null" EXPLICIT_NULL = _ExplicitNullClass()
"""https://adventofcode.com/2021/day/21""" class Die: def __init__(self, sides=100): self.sides = sides self.value = 0 self.rolled = 0 def roll(self): self.rolled += 1 self.value = self.value % self.sides + 1 return self.value data = open("day-21/input.txt", "r", encoding="utf-8").read().splitlines() position_1 = int(data[0].split(" ")[-1]) position_2 = int(data[1].split(" ")[-1]) score_1, score_2 = 0, 0 die = Die() while True: position_1 = (position_1 + die.roll() + die.roll() + die.roll() - 1) % 10 + 1 score_1 += position_1 if score_1 >= 1000: print(score_2 * die.rolled) exit() position_2 = (position_2 + die.roll() + die.roll() + die.roll() - 1) % 10 + 1 score_2 += position_2 if score_2 >= 1000: print(score_1 * die.rolled) exit()
def outer(): def inner(): print(out_var) out_var = 10 inner() if "__main__" == __name__: outer()
# Copyright (c) Vera Galstyan Jan 2018 favorite_places ={ 'vera': ['lyon','paris','london'], 'ofa':['berlin','madrid','milan'], 'karen':['dubai','barcelona'] } for name,places in favorite_places.items(): print("\n" + name + "'s favorite places are:") for place in places: print(place)
number1 = 10 pi_number = 3.1415 img_number = -10+4j first_name = 'kaveh' last_name = "mehrbanian" bio = """some description about me""" is_sad = False is_happy = True initial_value = None
# -*- coding: utf-8 -*- # See /usr/include/sysexits.h EX_OK = 0 EX_USAGE = 64 EX_DATAERR = 65 EX_NOUSER = 67 EX_PROTOCOL = 76 EX_TEMPFAIL = 75 EX_CONFIG = 78 # Standard for Bash: <http://www.tldp.org/LDP/abs/html/exitcodes.html> EX_CTRL_C = 130 exit_vals = { 'success': EX_OK, 'config_error': EX_CONFIG, 'url_bung': EX_USAGE, 'communication_failure': EX_PROTOCOL, 'socket_error': EX_PROTOCOL, 'json_decode_error': EX_PROTOCOL, 'no_user': EX_NOUSER, 'terminated': EX_CTRL_C, }
class bidict(dict): """Bi-directional dictionary for label Lookup. Implementation by Basj :param dict: dictionnary to be made bi-directional :type dict: dict """ def __init__(self, *args, **kwargs): super(bidict, self).__init__(*args, **kwargs) self.inverse = {} for key, value in self.items(): self.inverse.setdefault(value, []).append(key) def __setitem__(self, key, value): if key in self: self.inverse[self[key]].remove(key) super(bidict, self).__setitem__(key, value) self.inverse.setdefault(value, []).append(key) def __delitem__(self, key): self.inverse.setdefault(self[key], []).remove(key) if self[key] in self.inverse and not self.inverse[self[key]]: del self.inverse[self[key]] super(bidict, self).__delitem__(key)
# 可用来判断该文件是否为入口文件,并做一些逻辑 if __name__ == '__main__': print('this is app') print('this is module')
class Error: def __init__(self, error_type: str, details: str, file: str, line: int, column: int): self.error_type = error_type self.details = details self.file = file self.line = line self.column = column def __repr__(self): return "{} ERROR: '{}', file {}, line {}, column {}".format(self.error_type, self.details, self.file, self.line, self.column) class UnknownCharacterError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("UNKNOWN CHARACTER", details, file, line, column) class UnexpectedCharacterError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("UNEXPECTED CHARACTER", details, file, line, column) class UnbalancedBracketsError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("UNBALANCED BRACKET", details, file, line, column) class IncorrectCallError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("INCORRECT CALL", details, file, line, column) class CheckTypesError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("TYPE ERROR", details, file, line, column) class RunTimeError(Error): def __init__(self, details: str, file: str, line: int, column: int): super().__init__("RUNTIME ERROR", details, file, line, column) #ZeroDivisionError
# -*- coding: utf-8 -*- ''' Escreva a sua solução aqui Code your solution here Escriba su solución aquí ''' vendedor = input() salario_fixo = float(input()) total_vendas = float(input()) TOTAL = salario_fixo + total_vendas * 0.15 print("TOTAL = R$ %.2f" %TOTAL)
#!/usr/bin/env python3 def main(): s = str(input('What country are you from? ')) print('I have heard that {0} is a beautiful country.'.format(s)) if __name__ == "__main__": main()
{ "targets": [ { "target_name": "nodeNativeInput", "sources": [ "src/nodeNativeInput.cpp", "src/getOne/getOne.cpp", "src/getTwo/getTwo.cpp", "src/getThree/getThree.cpp" ], "include_dirs": ["<!(node -e \"require('nan')\")"], "conditions": [ ["OS == \"win\"", { "defines": ["Windows"], "link_settings": { "libraries": [] } }], ["OS == \"mac\"", { "defines": ["MacOS"], "link_settings": { "libraries": [] } }], ["OS == \"linux\"", { "defines": ["Linux"], "link_settings": { "libraries": [] } }] ] } ] }
# -*- coding: utf-8 -*- """Test file.""" """ >>> from pyrgg import * >>> import pyrgg.params >>> import random >>> import os >>> import json >>> import yaml >>> import pickle >>> pyrgg.params.PYRGG_TEST_MODE = True >>> get_precision(2) 0 >>> get_precision(2.2) 1 >>> get_precision(2.22) 2 >>> get_precision(2.223) 3 >>> convert_str_to_number("20") 20 >>> convert_str_to_number("20.2") 20.2 >>> convert_str_to_bool("1") True >>> convert_str_to_bool("3") True >>> convert_str_to_bool("0") False >>> is_float(10) False >>> is_float(10.2) True >>> is_float(None) False >>> result = input_filter({"file_name": "test","vertices": 5,"max_weight": 1000,"min_weight":455,"min_edge": -45,"max_edge": -11,"sign": False,"output_format": 19, "direct": False,"self_loop": True,"multigraph":False,"number_of_files":2}) >>> result == {'output_format': 1, 'min_weight': 455, 'min_edge': 5, 'max_edge': 5, 'file_name': 'test', 'vertices': 5, 'max_weight': 1000, 'sign': False, "direct": False,"self_loop": True,"multigraph":False,"number_of_files":2} True >>> result = input_filter({"file_name": "test","vertices": 5,"max_weight": 1000,"min_weight":455,"min_edge": -45,"max_edge": -11,"sign": False,"output_format": 19, "direct": False,"self_loop": False,"multigraph":False,"number_of_files":2}) >>> result == {'output_format': 1, 'min_weight': 455, 'min_edge': 4, 'max_edge': 4, 'file_name': 'test', 'vertices': 5, 'max_weight': 1000, 'sign': False, "direct": False,"self_loop": False,"multigraph":False,"number_of_files":2} True >>> result = input_filter({"file_name": "test","vertices": -5,"max_weight": 1000,"min_weight":455,"min_edge": -45,"max_edge": -11,"sign": False,"output_format": 19, "direct": False,"self_loop": False,"multigraph":True,"number_of_files":-1}) >>> result == {'output_format': 1, 'min_weight': 455, 'min_edge': 11, 'max_edge': 45, 'file_name': 'test', 'vertices': 5, 'max_weight': 1000, 'sign': False, "direct": False,"self_loop": False,"multigraph":True,"number_of_files":1} True >>> result = input_filter({"file_name": "test2","vertices": 23,"max_weight": 2,"min_weight": 80,"min_edge": 23,"max_edge": 1,"sign": True,"output_format": 1, "direct": False,"self_loop": True,"multigraph":False,"number_of_files":100}) >>> result == {'min_weight': 2, 'vertices': 23, 'file_name': 'test2', 'max_edge': 23, 'min_edge': 1, 'max_weight': 80, 'output_format': 1, 'sign': True, "direct": False,"self_loop": True,"multigraph":False,"number_of_files":100} True >>> logger('test',100,50,1000,10,1,0,0,1,20,1,'2min') >>> file=open('logfile.log','r') >>> print("\n".join(file.read().splitlines()[1:-1])) Filename : test Vertices : 100 Total Edges : 50 Max Edge : 1000 Min Edge : 10 Directed : True Signed : False Multigraph : False Self Loop : True Weighted : True Max Weight : 20 Min Weight : 1 Elapsed Time : 2min >>> convert_bytes(200) '200.0 bytes' >>> convert_bytes(6000) '5.9 KB' >>> convert_bytes(80000) '78.1 KB' >>> time_convert(33) '00 days, 00 hours, 00 minutes, 33 seconds' >>> time_convert(15000) '00 days, 04 hours, 10 minutes, 00 seconds' >>> time_convert('sadasdasd') Traceback (most recent call last): ... ValueError: could not convert string to float: 'sadasdasd' >>> line(12,"*") ************ >>> random.seed(2) >>> sign_gen() 1 >>> random.seed(11) >>> sign_gen() -1 >>> used_vertices = {k:[] for k in range(1,41)} >>> degree_dict = {k:0 for k in range(1,41)} >>> degree_dict_sort = {k:{} for k in range(41)} >>> degree_dict_sort[0] = {i:i for i in range(1,41)} >>> all_vertices = list(range(1, 41)) >>> random.seed(2) >>> branch_gen(1,10,10,1,20,True,True,True,False,used_vertices,degree_dict,degree_dict_sort) [[4, 25, 18, 3, 30, 34, 2, 26, 14, 11], [3, 10, 20, 14, -18, -2, -15, -14, 8, 6]] >>> random.seed(20) >>> branch_gen(1,10,4,1,20,False,True,True,False,used_vertices,degree_dict,degree_dict_sort) [[], []] >>> used_vertices = {k:[] for k in range(1,41)} >>> degree_dict = {k:0 for k in range(1,41)} >>> degree_dict_sort = {k:{} for k in range(41)} >>> degree_dict_sort[0] = {i:i for i in range(1,41)} >>> branch_gen(1,10,4,1,20,False,True,True,False,used_vertices,degree_dict,degree_dict_sort) [[10, 7, 39, 2], [9, 11, 6, 14]] >>> branch_gen(40,1,20,1) Traceback (most recent call last): ... TypeError: branch_gen() missing 8 required positional arguments: 'max_weight', 'sign', 'direct', 'self_loop', 'multigraph', 'used_vertices', 'degree_dict', and 'degree_sort_dict' >>> random.seed(2) >>> edge_gen(20,0,400,2,10,True,True,True,False) [{1: [3, 7], 2: [4, 17, 20, 9, 11], 3: [14, 8, 5, 12, 16, 19, 15], 4: [15, 17, 12, 8, 14, 13], 5: [16, 9, 7, 20, 19, 18, 13, 5], 6: [6, 10], 7: [18, 10, 11], 8: [], 9: [], 10: [12, 18, 8, 1, 14], 11: [9, 11], 12: [], 13: [], 14: [19, 16, 17, 20, 15], 15: [6, 1, 19], 16: [12, 13, 8, 9, 17], 17: [], 18: [9, 12, 17, 6, 20, 19, 1], 19: [13], 20: []}, {1: [184, -128], 2: [220, -278, -257, 14, -163], 3: [286, 118, 166, 261, -263, 228, -303], 4: [-82, -335, 250, -256, -338, -179], 5: [-337, -358, -395, -155, -159, 250, -350, -371], 6: [30, -302], 7: [386, -125, 216], 8: [], 9: [], 10: [127, 42, 12, 191, 80], 11: [-301, 77], 12: [], 13: [], 14: [146, -15, -282, 135, 242], 15: [-52, -65, -249], 16: [-132, -334, 343, -17, 87], 17: [], 18: [126, -37, 302, -131, -142, 77, -209], 19: [123], 20: []}, 61] >>> random.seed(11) >>> edge_gen(20,0,100,2,10,False,True,True,False) [{1: [18, 15, 19, 7, 20, 11, 2, 6, 3], 2: [17], 3: [8, 4, 5, 9, 12, 10, 14, 16], 4: [20, 13, 4, 6], 5: [12, 7, 11, 10, 14], 6: [9], 7: [19], 8: [8, 18, 11, 2, 16, 17, 10], 9: [15, 12, 18], 10: [20, 14, 13, 15, 17, 16], 11: [19, 7, 20], 12: [13], 13: [2, 16, 13], 14: [18, 19, 6, 14, 17, 15], 15: [6, 7, 16], 16: [17, 20, 12, 18], 17: [19], 18: [7, 6, 9, 12, 20], 19: [19, 11, 4], 20: []}, {1: [99, 57, 75, 23, 80, 23, 57, 18, 68], 2: [50], 3: [79, 67, 7, 24, 76, 99, 41, 75], 4: [29, 63, 84, 58], 5: [70, 90, 40, 65, 3], 6: [51], 7: [37], 8: [2, 0, 26, 60, 90, 53, 72], 9: [43, 39, 1], 10: [15, 31, 1, 59, 22, 57], 11: [98, 53, 49], 12: [53], 13: [34, 2, 23], 14: [82, 12, 18, 56, 1, 37], 15: [9, 26, 1], 16: [47, 58, 75, 73], 17: [23], 18: [39, 78, 92, 20, 49], 19: [10, 6, 13], 20: []}, 74] >>> edge_gen(0,400,2,10,1) Traceback (most recent call last): ... TypeError: edge_gen() missing 4 required positional arguments: 'sign', 'direct', 'self_loop', and 'multigraph' >>> random.seed(2) >>> dimacs_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.gr','r') >>> print(file.read()) c FILE :testfile.gr c No. of vertices :10 c No. of edges :7 c Max. weight :200 c Min. weight :0 c Min. edge :0 c Max. edge :2 p sp 10 7 a 4 3 -64 a 5 6 148 a 5 9 110 a 6 10 -139 a 7 7 7 a 8 2 -97 a 9 1 60 <BLANKLINE> >>> random.seed(4) >>> dimacs_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.gr','r') >>> print(file.read()) c FILE :testfile2.gr c No. of vertices :30 c No. of edges :35 c Max. weight :50 c Min. weight :0 c Min. edge :0 c Max. edge :4 p sp 30 35 a 1 10 46 a 2 18 5 a 2 4 25 a 2 22 -48 a 4 23 -17 a 5 7 -13 a 7 15 10 a 7 17 -40 a 8 8 -42 a 8 25 11 a 9 29 -5 a 10 3 -36 a 10 27 -48 a 11 13 -27 a 11 26 -27 a 11 21 14 a 11 16 -2 a 14 20 -44 a 14 14 43 a 14 12 26 a 15 28 -11 a 16 30 -40 a 16 24 20 a 19 19 7 a 20 12 -29 a 20 1 22 a 22 24 20 a 22 23 -9 a 23 18 18 a 23 27 28 a 24 6 -24 a 25 17 23 a 27 6 -50 a 28 21 28 a 28 13 -13 <BLANKLINE> >>> random.seed(20) >>> dimacs_maker('testfile3',10,30,100,0,4,False,True,True,False) 137 >>> file=open('testfile3.gr','r') >>> print(file.read()) c FILE :testfile3.gr c No. of vertices :100 c No. of edges :137 c Max. weight :30 c Min. weight :10 c Min. edge :0 c Max. edge :4 p sp 100 137 a 1 34 30 a 3 76 15 a 3 5 23 a 4 13 13 a 4 21 20 a 4 67 28 a 5 60 16 a 5 32 20 a 5 92 20 a 6 64 12 a 6 94 26 a 7 62 12 a 7 36 28 a 7 42 11 a 8 20 12 a 9 47 19 a 10 49 15 a 10 27 10 a 11 48 17 a 11 51 11 a 13 58 14 a 13 70 29 a 14 37 30 a 14 61 27 a 14 87 15 a 15 84 13 a 16 83 28 a 17 45 17 a 17 24 29 a 17 18 26 a 18 59 15 a 19 98 12 a 21 2 30 a 21 99 20 a 22 69 26 a 22 96 11 a 22 88 15 a 24 79 20 a 24 12 12 a 24 82 13 a 26 50 30 a 26 30 19 a 29 52 26 a 31 25 26 a 32 68 14 a 33 65 13 a 33 78 13 a 33 55 17 a 34 63 13 a 35 44 27 a 35 57 14 a 37 74 10 a 37 41 16 a 37 100 30 a 38 72 13 a 38 56 16 a 39 91 19 a 39 43 13 a 41 28 22 a 41 81 19 a 42 90 13 a 42 46 28 a 42 97 16 a 45 86 10 a 45 53 18 a 46 85 13 a 46 23 11 a 47 71 29 a 48 95 12 a 48 77 19 a 48 93 11 a 49 75 22 a 50 73 18 a 50 40 24 a 50 54 28 a 51 80 17 a 51 66 19 a 51 89 20 a 52 58 29 a 52 16 21 a 52 43 12 a 53 8 13 a 53 98 17 a 54 55 10 a 56 62 26 a 56 27 10 a 57 70 26 a 58 44 22 a 59 90 27 a 59 91 19 a 59 78 29 a 60 87 12 a 60 92 25 a 61 69 14 a 61 79 17 a 62 25 21 a 63 97 27 a 63 29 30 a 65 9 26 a 65 64 21 a 66 67 27 a 66 95 19 a 66 93 30 a 68 30 18 a 70 83 12 a 70 99 15 a 71 31 17 a 71 89 20 a 73 36 18 a 75 72 12 a 76 2 26 a 76 12 25 a 76 86 22 a 78 23 19 a 78 100 27 a 79 40 24 a 80 84 26 a 80 80 14 a 81 20 16 a 82 15 16 a 82 88 22 a 83 19 19 a 84 85 13 a 84 28 16 a 85 77 16 a 85 94 23 a 86 1 21 a 87 74 15 a 87 96 19 a 90 93 22 a 92 49 14 a 95 98 26 a 95 55 11 a 97 38 28 a 99 19 29 a 99 89 24 a 100 40 11 <BLANKLINE> >>> dimacs_maker('testfile', 0, 200, 10, 0,0,True) Traceback (most recent call last): ... TypeError: dimacs_maker() missing 3 required positional arguments: 'direct', 'self_loop', and 'multigraph' >>> random.seed(2) >>> json_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.json','r') >>> testfile_1=json.load(file) >>> testfile_1['graph']['nodes'][1] {'id': 2} >>> testfile_1['graph']['edges'][1]['source'] 5 >>> testfile_1['graph']['edges'][1]['target'] 6 >>> testfile_1['graph']['edges'][1]['weight'] 148 >>> json_to_yaml('testfile') >>> file=open('testfile.yaml','r') >>> testfile_1_yaml=yaml.load(file) >>> testfile_1_yaml['graph']['edges'][1]['source'] 5 >>> testfile_1_yaml['graph']['edges'][1]['target'] 6 >>> testfile_1_yaml['graph']['edges'][1]['weight'] 148 >>> json_to_pickle('testfile') >>> testfile_1_p=pickle.load( open( 'testfile.p', 'rb' ) ) >>> testfile_1_p['graph']['edges'][1]['source'] 5 >>> testfile_1_p['graph']['edges'][1]['target'] 6 >>> testfile_1_p['graph']['edges'][1]['weight'] 148 >>> random.seed(4) >>> json_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.json','r') >>> testfile_2=json.load(file) >>> testfile_2['graph']['nodes'][1] {'id': 2} >>> testfile_2['graph']['edges'][1]['source'] 2 >>> testfile_2['graph']['edges'][1]['target'] 18 >>> testfile_2['graph']['edges'][1]['weight'] 5 >>> json_to_yaml('testfile2') >>> file=open('testfile2.yaml','r') >>> testfile_2_yaml=yaml.load(file) >>> testfile_2_yaml['graph']['nodes'][1] {'id': 2} >>> testfile_2_yaml['graph']['edges'][1]['source'] 2 >>> testfile_2_yaml['graph']['edges'][1]['target'] 18 >>> testfile_2_yaml['graph']['edges'][1]['weight'] 5 >>> json_to_pickle('testfile2') >>> testfile_2_p=pickle.load( open( 'testfile2.p', 'rb' ) ) >>> testfile_2_p['graph']['edges'][1]['source'] 2 >>> testfile_2_p['graph']['edges'][1]['target'] 18 >>> testfile_2_p['graph']['edges'][1]['weight'] 5 >>> random.seed(20) >>> json_maker('testfile3',10,30,100,0,4,False,True,True,False) 137 >>> file=open('testfile3.json','r') >>> testfile_3=json.load(file) >>> testfile_3['graph']['nodes'][1] {'id': 2} >>> testfile_3['graph']['edges'][1]['source'] 3 >>> testfile_3['graph']['edges'][1]['target'] 76 >>> testfile_3['graph']['edges'][1]['weight'] 15 >>> json_to_yaml('testfile3') >>> file=open('testfile3.yaml','r') >>> testfile_3_yaml=yaml.load(file) >>> testfile_3_yaml['graph']['nodes'][1] {'id': 2} >>> testfile_3_yaml['graph']['edges'][1]['source'] 3 >>> testfile_3_yaml['graph']['edges'][1]['target'] 76 >>> testfile_3_yaml['graph']['edges'][1]['weight'] 15 >>> json_to_yaml('testfile24') [Error] Bad Input File! >>> json_to_pickle('testfile24') [Error] Bad Input File! >>> json_maker('testfile', 0, 200, 10, 0, 0,True) Traceback (most recent call last): ... TypeError: json_maker() missing 3 required positional arguments: 'direct', 'self_loop', and 'multigraph' >>> json_to_pickle('testfile3') >>> testfile_3_p=pickle.load( open( 'testfile3.p', 'rb' ) ) >>> testfile_3_p['graph']['edges'][1]['source'] 3 >>> testfile_3_p['graph']['edges'][1]['target'] 76 >>> testfile_3_p['graph']['edges'][1]['weight'] 15 >>> random.seed(2) >>> csv_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> random.seed(2) >>> gml_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.gml','r') >>> print(file.read()) graph [ multigraph 0 directed 1 node [ id 1 label "Node 1" ] node [ id 2 label "Node 2" ] node [ id 3 label "Node 3" ] node [ id 4 label "Node 4" ] node [ id 5 label "Node 5" ] node [ id 6 label "Node 6" ] node [ id 7 label "Node 7" ] node [ id 8 label "Node 8" ] node [ id 9 label "Node 9" ] node [ id 10 label "Node 10" ] edge [ source 4 target 3 value -64 ] edge [ source 5 target 6 value 148 ] edge [ source 5 target 9 value 110 ] edge [ source 6 target 10 value -139 ] edge [ source 7 target 7 value 7 ] edge [ source 8 target 2 value -97 ] edge [ source 9 target 1 value 60 ] ] >>> random.seed(2) >>> gexf_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.gexf', 'r') >>> random.seed(2) >>> mtx_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> random.seed(2) >>> tsv_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.mtx','r') >>> print(file.read()) %%MatrixMarket matrix coordinate real general 10 10 7 4 3 -64 5 6 148 5 9 110 6 10 -139 7 7 7 8 2 -97 9 1 60 <BLANKLINE> >>> random.seed(2) >>> gdf_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.gdf','r') >>> print(file.read()) nodedef>name VARCHAR,label VARCHAR 1,Node1 2,Node2 3,Node3 4,Node4 5,Node5 6,Node6 7,Node7 8,Node8 9,Node9 10,Node10 edgedef>node1 VARCHAR,node2 VARCHAR,weight DOUBLE 4,3,-64 5,6,148 5,9,110 6,10,-139 7,7,7 8,2,-97 9,1,60 <BLANKLINE> >>> random.seed(2) >>> gl_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.gl','r') >>> print(file.read()) 4 3:-64 5 6:148 9:110 6 10:-139 7 7:7 8 2:-97 9 1:60 <BLANKLINE> >>> file=open('testfile.csv','r') >>> print(file.read()) 4,3,-64 5,6,148 5,9,110 6,10,-139 7,7,7 8,2,-97 9,1,60 <BLANKLINE> >>> random.seed(4) >>> csv_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.csv','r') >>> print(file.read()) 1,10,46 2,18,5 2,4,25 2,22,-48 4,23,-17 5,7,-13 7,15,10 7,17,-40 8,8,-42 8,25,11 9,29,-5 10,3,-36 10,27,-48 11,13,-27 11,26,-27 11,21,14 11,16,-2 14,20,-44 14,14,43 14,12,26 15,28,-11 16,30,-40 16,24,20 19,19,7 20,12,-29 20,1,22 22,24,20 22,23,-9 23,18,18 23,27,28 24,6,-24 25,17,23 27,6,-50 28,21,28 28,13,-13 <BLANKLINE> >>> random.seed(4) >>> csv_maker('testfile4',0,50.2,30,0,4,True,True,True,False) 41 >>> file=open('testfile4.csv','r') >>> print(file.read()) 1,10,36.2 2,6,3.3 2,16,-40.2 2,29,11.1 3,17,-39.1 3,7,-10.8 3,3,-40.2 4,12,-14.5 5,9,-33.7 5,28,8.9 6,21,47.4 6,27,-0.4 6,15,-42.6 7,20,-30.1 8,23,11.7 8,18,4.1 8,25,-26.0 9,24,50.1 9,13,20.7 9,14,-13.9 10,26,-31.8 10,19,-5.1 12,22,6.1 13,30,-1.3 14,11,-36.9 14,22,16.2 15,16,-43.2 15,11,-31.0 16,19,12.6 17,21,18.2 18,18,-39.3 18,25,-28.7 19,23,-46.0 24,20,27.4 25,4,-50.1 25,1,-38.8 26,27,-10.1 26,30,-24.7 26,29,-12.5 27,28,-9.4 29,20,26.4 <BLANKLINE> >>> random.seed(20) >>> csv_maker('testfile3',10,30,100,0,4,False,True,True,False) 137 >>> file=open('testfile3.csv','r') >>> print(file.read()) 1,34,30 3,76,15 3,5,23 4,13,13 4,21,20 4,67,28 5,60,16 5,32,20 5,92,20 6,64,12 6,94,26 7,62,12 7,36,28 7,42,11 8,20,12 9,47,19 10,49,15 10,27,10 11,48,17 11,51,11 13,58,14 13,70,29 14,37,30 14,61,27 14,87,15 15,84,13 16,83,28 17,45,17 17,24,29 17,18,26 18,59,15 19,98,12 21,2,30 21,99,20 22,69,26 22,96,11 22,88,15 24,79,20 24,12,12 24,82,13 26,50,30 26,30,19 29,52,26 31,25,26 32,68,14 33,65,13 33,78,13 33,55,17 34,63,13 35,44,27 35,57,14 37,74,10 37,41,16 37,100,30 38,72,13 38,56,16 39,91,19 39,43,13 41,28,22 41,81,19 42,90,13 42,46,28 42,97,16 45,86,10 45,53,18 46,85,13 46,23,11 47,71,29 48,95,12 48,77,19 48,93,11 49,75,22 50,73,18 50,40,24 50,54,28 51,80,17 51,66,19 51,89,20 52,58,29 52,16,21 52,43,12 53,8,13 53,98,17 54,55,10 56,62,26 56,27,10 57,70,26 58,44,22 59,90,27 59,91,19 59,78,29 60,87,12 60,92,25 61,69,14 61,79,17 62,25,21 63,97,27 63,29,30 65,9,26 65,64,21 66,67,27 66,95,19 66,93,30 68,30,18 70,83,12 70,99,15 71,31,17 71,89,20 73,36,18 75,72,12 76,2,26 76,12,25 76,86,22 78,23,19 78,100,27 79,40,24 80,84,26 80,80,14 81,20,16 82,15,16 82,88,22 83,19,19 84,85,13 84,28,16 85,77,16 85,94,23 86,1,21 87,74,15 87,96,19 90,93,22 92,49,14 95,98,26 95,55,11 97,38,28 99,19,29 99,89,24 100,40,11 <BLANKLINE> >>> csv_maker('testfile', 0, 200, 10, 0,0,True) Traceback (most recent call last): ... TypeError: csv_maker() missing 3 required positional arguments: 'direct', 'self_loop', and 'multigraph' >>> random.seed(2) >>> wel_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.wel','r') >>> print(file.read()) 4 3 -64 5 6 148 5 9 110 6 10 -139 7 7 7 8 2 -97 9 1 60 <BLANKLINE> >>> random.seed(4) >>> wel_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.wel','r') >>> print(file.read()) 1 10 46 2 18 5 2 4 25 2 22 -48 4 23 -17 5 7 -13 7 15 10 7 17 -40 8 8 -42 8 25 11 9 29 -5 10 3 -36 10 27 -48 11 13 -27 11 26 -27 11 21 14 11 16 -2 14 20 -44 14 14 43 14 12 26 15 28 -11 16 30 -40 16 24 20 19 19 7 20 12 -29 20 1 22 22 24 20 22 23 -9 23 18 18 23 27 28 24 6 -24 25 17 23 27 6 -50 28 21 28 28 13 -13 <BLANKLINE> >>> random.seed(20) >>> wel_maker('testfile3',10,30,100,0,4,False,True,True,False) 137 >>> file=open('testfile3.wel','r') >>> print(file.read()) 1 34 30 3 76 15 3 5 23 4 13 13 4 21 20 4 67 28 5 60 16 5 32 20 5 92 20 6 64 12 6 94 26 7 62 12 7 36 28 7 42 11 8 20 12 9 47 19 10 49 15 10 27 10 11 48 17 11 51 11 13 58 14 13 70 29 14 37 30 14 61 27 14 87 15 15 84 13 16 83 28 17 45 17 17 24 29 17 18 26 18 59 15 19 98 12 21 2 30 21 99 20 22 69 26 22 96 11 22 88 15 24 79 20 24 12 12 24 82 13 26 50 30 26 30 19 29 52 26 31 25 26 32 68 14 33 65 13 33 78 13 33 55 17 34 63 13 35 44 27 35 57 14 37 74 10 37 41 16 37 100 30 38 72 13 38 56 16 39 91 19 39 43 13 41 28 22 41 81 19 42 90 13 42 46 28 42 97 16 45 86 10 45 53 18 46 85 13 46 23 11 47 71 29 48 95 12 48 77 19 48 93 11 49 75 22 50 73 18 50 40 24 50 54 28 51 80 17 51 66 19 51 89 20 52 58 29 52 16 21 52 43 12 53 8 13 53 98 17 54 55 10 56 62 26 56 27 10 57 70 26 58 44 22 59 90 27 59 91 19 59 78 29 60 87 12 60 92 25 61 69 14 61 79 17 62 25 21 63 97 27 63 29 30 65 9 26 65 64 21 66 67 27 66 95 19 66 93 30 68 30 18 70 83 12 70 99 15 71 31 17 71 89 20 73 36 18 75 72 12 76 2 26 76 12 25 76 86 22 78 23 19 78 100 27 79 40 24 80 84 26 80 80 14 81 20 16 82 15 16 82 88 22 83 19 19 84 85 13 84 28 16 85 77 16 85 94 23 86 1 21 87 74 15 87 96 19 90 93 22 92 49 14 95 98 26 95 55 11 97 38 28 99 19 29 99 89 24 100 40 11 <BLANKLINE> >>> wel_maker('testfile', 0, 200, 10, 0,0,True) Traceback (most recent call last): ... TypeError: wel_maker() missing 3 required positional arguments: 'direct', 'self_loop', and 'multigraph' >>> random.seed(2) >>> lp_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.lp','r') >>> print(file.read()) node(1). node(2). node(3). node(4). node(5). node(6). node(7). node(8). node(9). node(10). edge(4,3,-64). edge(5,6,148). edge(5,9,110). edge(6,10,-139). edge(7,7,7). edge(8,2,-97). edge(9,1,60). <BLANKLINE> >>> random.seed(4) >>> lp_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.lp','r') >>> print(file.read()) node(1). node(2). node(3). node(4). node(5). node(6). node(7). node(8). node(9). node(10). node(11). node(12). node(13). node(14). node(15). node(16). node(17). node(18). node(19). node(20). node(21). node(22). node(23). node(24). node(25). node(26). node(27). node(28). node(29). node(30). edge(1,10,46). edge(2,18,5). edge(2,4,25). edge(2,22,-48). edge(4,23,-17). edge(5,7,-13). edge(7,15,10). edge(7,17,-40). edge(8,8,-42). edge(8,25,11). edge(9,29,-5). edge(10,3,-36). edge(10,27,-48). edge(11,13,-27). edge(11,26,-27). edge(11,21,14). edge(11,16,-2). edge(14,20,-44). edge(14,14,43). edge(14,12,26). edge(15,28,-11). edge(16,30,-40). edge(16,24,20). edge(19,19,7). edge(20,12,-29). edge(20,1,22). edge(22,24,20). edge(22,23,-9). edge(23,18,18). edge(23,27,28). edge(24,6,-24). edge(25,17,23). edge(27,6,-50). edge(28,21,28). edge(28,13,-13). <BLANKLINE> >>> input_dic=get_input(input_func=lambda x: str(len(x))) >>> input_dic['sign'] True >>> input_dic['vertices'] 20 >>> input_dic['min_edge'] 20 >>> input_dic['min_weight'] 15 >>> input_dic['output_format'] 1 >>> input_dic['max_weight'] 15 >>> input_dic['file_name'] '14' >>> input_dic['max_edge'] 20 >>> random.seed(2) >>> tgf_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.tgf','r') >>> print(file.read()) 1 2 3 4 5 6 7 8 9 10 # 4 3 -64 5 6 148 5 9 110 6 10 -139 7 7 7 8 2 -97 9 1 60 <BLANKLINE> >>> random.seed(4) >>> tgf_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.tgf','r') >>> print(file.read()) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 # 1 10 46 2 18 5 2 4 25 2 22 -48 4 23 -17 5 7 -13 7 15 10 7 17 -40 8 8 -42 8 25 11 9 29 -5 10 3 -36 10 27 -48 11 13 -27 11 26 -27 11 21 14 11 16 -2 14 20 -44 14 14 43 14 12 26 15 28 -11 16 30 -40 16 24 20 19 19 7 20 12 -29 20 1 22 22 24 20 22 23 -9 23 18 18 23 27 28 24 6 -24 25 17 23 27 6 -50 28 21 28 28 13 -13 <BLANKLINE> >>> random.seed(2) >>> dl_maker('testfile', 0, 200, 10, 0, 2, True,True,True,False) 7 >>> file=open('testfile.dl','r') >>> print(file.read()) dl format=edgelist1 n=10 data: 4 3 -64 5 6 148 5 9 110 6 10 -139 7 7 7 8 2 -97 9 1 60 <BLANKLINE> >>> random.seed(4) >>> dl_maker('testfile2',0,50,30,0,4,True,True,True,False) 35 >>> file=open('testfile2.dl','r') >>> print(file.read()) dl format=edgelist1 n=30 data: 1 10 46 2 18 5 2 4 25 2 22 -48 4 23 -17 5 7 -13 7 15 10 7 17 -40 8 8 -42 8 25 11 9 29 -5 10 3 -36 10 27 -48 11 13 -27 11 26 -27 11 21 14 11 16 -2 14 20 -44 14 14 43 14 12 26 15 28 -11 16 30 -40 16 24 20 19 19 7 20 12 -29 20 1 22 22 24 20 22 23 -9 23 18 18 23 27 28 24 6 -24 25 17 23 27 6 -50 28 21 28 28 13 -13 <BLANKLINE> >>> file.close() >>> os.remove('testfile.csv') >>> os.remove('testfile.gml') >>> os.remove('testfile.gexf') >>> os.remove('testfile.tsv') >>> os.remove('testfile.dl') >>> os.remove('testfile.gr') >>> os.remove('testfile.json') >>> os.remove('testfile.lp') >>> os.remove('testfile.p') >>> os.remove('testfile.tgf') >>> os.remove('testfile.wel') >>> os.remove('testfile.yaml') >>> os.remove('testfile.mtx') >>> os.remove('testfile.gdf') >>> os.remove('testfile.gl') >>> os.remove('testfile2.csv') >>> os.remove('testfile2.dl') >>> os.remove('testfile2.gr') >>> os.remove('testfile2.json') >>> os.remove('testfile2.lp') >>> os.remove('testfile2.p') >>> os.remove('testfile2.tgf') >>> os.remove('testfile2.wel') >>> os.remove('testfile2.yaml') >>> os.remove('testfile3.csv') >>> os.remove('testfile4.csv') >>> os.remove('testfile3.gr') >>> os.remove('testfile3.json') >>> os.remove('testfile3.p') >>> os.remove('testfile3.wel') >>> os.remove('testfile3.yaml') >>> os.remove('logfile.log') """
# working with strings # function to sort frase def sort(str): print(f'Frase usando sorting: {str[num_sorts1:num_sorts2]}') # function to print frase 2 in 2 def print_f(str): print(str[::2]) print('Frase de 2 en 2: ') for e in str[::2]: print(f'{e}', end='') # functional def print_str(str, num_sorts1, jump): seq = str[num_sorts1::jump] print(f'a frase fica asim: {seq}') # sorting def sort_f(str): num_sort = int(input(f'Ingrese um numero entre 1 e {len(str)}: ')) print(f'Frase imprimiendo até posição {num_sort}: {str[:num_sort+1]}') print(f'Frase imprimiendo desde posição {num_sort}: {str[num_sort:]}') # for e in str[:num_sort]: # print(f'{e}', end="") # for e in str[num_sort:]: # print(f"{e}", end='') # main script str = input('Escreva uma frase: ') print(f'A frase é: {str}') # tamanho da frase print(f'O tamanho da frase e com len(): {len(str)}') #option2 using for loop qt = 0 for c in str: qt += 1 print(f'O tamanho da frase com for: {qt}') # Mayusculas, minusculas e capitalize # print('Frase Capitalize, title, mayusculas e minusculas: ') print(f'Frase usando capitalize: {str.capitalize()}, so imprime a primera Letra da frase en Maiusculas') print(f'Frase usando tittle: {str.title()}, capitaliza cada palavra da frase') print(f'Frase usando upper: {str.upper()}') print(f'Frase usando lower: {str.lower()}') # print(str.swapcase()) # .islower() or .isupper() num_sorts1 = int(input(f'Ingrese um valor entre 0 e {len(str)}: ')) num_sorts2 = int(input(f'Ingrese outro valor entre 0 e {len(str)}: ')) jump = int(input('Ingrese o valor do salto entre cada caracter: ')) # how many character occurs in the frase # for l in str: # if l == letter: # qt+=1 # find some word in the frase word = input('Ingrese una palavra a buscar na frase') position = str.find(word) if position == -1: print('Word not find in the frase: ') else: print(f'The word: {word} is find in the position: {position}') def count(str): qt = 0 for l in str: qt += 1 print(f'O tamanho da frase e: {qt}') sort(str) print_f(str) sort_f(str) print_str(str, num_sorts1, jump) count(str)
message_decrypter=input("Votre message a decrypter:") cle=int(input("Nombre de decalage ?:")) longueur=len(message_decrypter) i=0 alph="" resultat="" for i in range(longueur): asc=ord(message_decrypter[i]) if asc>=65 or asc<=90: asc=asc-cle resultat=resultat+chr(asc) print (resultat)
class VowelConsonant: def __init__(self): """Heuristic strategy: place words that are have either more vowels of consonants based on the letters remaining in the rack_tiles""" # Row below not needed but given for refrence of constants # constants ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"] self.vowel = ["a", "o", "i", "u", "e"] def determine_vowel_consonant_move(self, rack_tiles, all_words): """ for every letter in rack_tiles determine the amount of vowels and consonants. for every word in all_words determine the amount of vowels and consonants. sort the lists with vowels and consonants on highest value. if there are more more vowels in the count of rack_tiles return a list with the vowel words first. else return a list with the consonants words first. :param rack_tiles: List of letters. :param all_words: List of possible words. :return: a list with words orders by consonants and vowel amount. """ current_vowel_count, current_consonant_count = self._vowel_consonant_count(rack_tiles) vowels, consonanten = self._get_count_dict_vowel_consonant(all_words) vowel_word_list = list(sorted(vowels, key=vowels.get, reverse=True)) consonant_word_list = list(sorted(consonanten, key=consonanten.get, reverse=True)) if current_vowel_count + 1 > current_consonant_count: return vowel_word_list + consonant_word_list else: return consonant_word_list + vowel_word_list def _get_count_dict_vowel_consonant(self, possible_word_list): """ for every word in possible_word_list determine the amount of vowels and consonants. :param possible_word_list: list of possible words. :return: two dictionary's with the count of the vowels and consonant. """ best_vowel_word = {} best_consonant_word = {} for word in possible_word_list: best_vowel_word[word], best_consonant_word[word] = self._vowel_consonant_count([char for char in word]) return best_vowel_word, best_consonant_word def _vowel_consonant_count(self, letter_list): """ for every letter in letter_list determine the amount of vowels and consonants. if current letter is a vowel add 1 to vowel count else letter must be a consonants add 1 to consonants count :param letter_list: List of letters. :return: two int the count of vowels and consonants """ vowel_count = 0 consonants_count = 0 for letter in letter_list: if letter in self.vowel: vowel_count += 1 else: consonants_count += 1 return vowel_count, consonants_count
class Kilobyte: def __init__(self, value_kilobytes: int): self._value_kilobytes = value_kilobytes self.one_kilobyte_in_bits = 8000 self._value_bits = self._convert_into_bits(value_kilobytes) self.id = "KB" def _convert_into_bits(self, value_kilobytes: int) -> int: return value_kilobytes * self.one_kilobyte_in_bits def convert_from_bits_to_kilobytes(self, bits: int) -> float: return (bits / self.one_kilobyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_kilobytes(self) -> int: return self._value_kilobytes class Megabyte: def __init__(self, value_megabytes: int): self._value_megabytes = value_megabytes self.one_megabyte_in_bits = 8e+6 self._value_bits = self._convert_into_bits(value_megabytes) self.id = "MB" def _convert_into_bits(self, value_megabytes: int) -> int: return value_megabytes * self.one_megabyte_in_bits def convert_from_bits_to_megabytes(self, bits: int) -> float: return (bits / self.one_megabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_megabytes(self) -> int: return self._value_megabytes class Gigabyte: def __init__(self, value_gigabytes: int): self._value_gigabytes = value_gigabytes self.one_gigabyte_in_bits = 8e+9 self._value_bits = self._convert_into_bits(value_gigabytes) self.id = "GB" def _convert_into_bits(self, value_gigabytes: int) -> int: return value_gigabytes * self.one_gigabyte_in_bits def convert_from_bits_to_gigabytes(self, bits: int) -> float: return (bits / self.one_gigabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_gigabytes(self) -> int: return self._value_gigabytes class Terabyte: def __init__(self, value_terabytes: int): self._value_terabytes = value_terabytes self.one_terabyte_in_bits = 8e+12 self._value_bits = self._convert_into_bits(value_terabytes) self.id = "TB" def _convert_into_bits(self, value_terabytes: int) -> int: return value_terabytes * self.one_terabyte_in_bits def convert_from_bits_to_terabytes(self, bits: int) -> float: return (bits / self.one_terabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_terabytes(self) -> int: return self._value_terabytes class Petabyte: def __init__(self, value_petabytes: int): self._value_petabytes = value_petabytes self.one_petabyte_in_bits = 8e+15 self._value_bits = self._convert_into_bits(value_petabytes) self.id = "PB" def _convert_into_bits(self, value_petabytes: int) -> int: return value_petabytes * self.one_petabyte_in_bits def convert_from_bits_to_petabytes(self, bits: int) -> float: return (bits / self.one_petabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bytes def get_val_in_petabytes(self) -> int: return self._value_petabytes class Exabyte: def __init__(self, value_exabytes: int): self._value_exabytes = value_exabytes self.one_exabyte_in_bits = 8e+18 self._value_bits = self._convert_into_bits(value_exabytes) self.id = "EB" def _convert_into_bits(self, value_exabytes: int) -> int: return value_exabytes * self.one_exabyte_in_bits def convert_from_bits_to_exabytes(self, bits: int) -> float: return (bits / self.one_exabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_exabytes(self) -> int: return self._value_exabytes class Zettabyte: def __init__(self, value_zettabytes: int): self._value_zettabytes = value_zettabytes self.one_zettabyte_in_bits = 8e+21 self._value_bits = self._convert_into_bits(value_zettabytes) self.id = "ZB" def _convert_into_bits(self, value_zettabytes: int) -> int: return value_zettabytes * self.one_zettabyte_in_bits def convert_from_bits_to_zettabytes(self, bits: int) -> float: return (bits / self.one_zettabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_zettabyte(self) -> int: return self._value_zettabytes class Yottabyte: def __init__(self, value_yottabytes: int): self._value_yottabytes = value_yottabytes self.one_yottabyte_in_bits = 8e+24 self._value_bits = self._convert_into_bits(value_yottabytes) self.id = "YB" def _convert_into_bits(self, value_yottabytes: int) -> int: return value_yottabytes * self.one_yottabyte_in_bits def convert_from_bits_to_yottabytes(self, bits: int) -> float: return (bits / self.one_yottabyte_in_bits) def get_val_in_bits(self) -> int: return self._value_bits def get_val_in_yottabyte(self) -> int: return self._value_yottabytes
class Credential: """ Class that generates new instances of Credentials . """ Credential_list = [] # Empty User list def __init__(self,Account,user_name,password): # docstring removed for simplicity self.Account= Account self.user_name = user_name self.password = password def save_Credential(self): ''' save_Credential method saves Credential objects into Credential_list ''' Credential.Credential_list.append(self) def delete_Credential(self): ''' delete_Credential method deletes a saved Credential from the Credential_list ''' Credential.Credential_list.remove(self) @classmethod def find_by_Account(cls,Account): ''' Method that takes in a credential and returns a account that matches that account . Args: Account: Account to search for Returns : Credential of Account that matches the Account. ''' for Credential in cls.Credential_list: if Credential.Account == Account: return Credential @classmethod def Credential_exist(cls,Account): ''' Method that checks if a Account exists from the Credential list. Args: Account: ACCOUNT to search if it exists Returns : Boolean: True or false depending if the Account exists ''' for Credential in cls.Credential_list: if Credential.Account == Account: return True return False @classmethod def display_Credentials(cls): ''' method that returns the Credential list ''' return cls.Credential_list
def matchmaking(): people = [ { 'name': "Мария", 'interests': ['пътуване', 'танци', 'плуване', 'кино'], 'age': 24, 'gender': "female", "ex": ["Кирил", "Петър"], }, { 'name': "Диана", 'interests': ['мода', 'спортна стрелба', 'четене', 'скандинавска поезия'], 'age': 21, 'gender': "female", "ex": [], }, { 'name': "Дарина", 'interests': ['танци', 'покер', 'история', 'софтуер'], 'age': 34, 'gender': "female", "ex": ["Борис"], }, { 'name': "Лилия", 'interests': ['покер', 'автомобили', 'танци', 'кино'], 'age': 36, 'gender': "female", "ex": [], }, { 'name': "Галя", 'interests': ['пътуване', 'автомобили', 'плуване', 'баскетбол'], 'age': 18, 'gender': "female", "ex": ['Димитър'], }, { 'name': "Валерия", 'interests': ['плуване', 'покер', 'наука', 'скандинавска поезия'], 'age': 27, 'gender': "female", "ex": [], }, { 'name': "Ина", 'interests': ['кино', 'лов със соколи', 'пътуване', 'мода'], 'age': 20, 'gender': "female", "ex": [], }, { 'name': "Кирил", 'interests': ['баскетбол', 'автомобили', 'кино', 'наука'], 'age': 19, 'gender': "male", 'ex': ["Мария"], }, { 'name': "Георги", 'interests': ['автомобили', 'футбол', 'плуване', 'танци'], 'age': 32, 'gender': "male", 'ex': [], }, { 'name': "Андрей", 'interests': ['футбол', 'скандинавска поезия', 'история', 'танци'], 'age': 26, 'gender': "male", 'ex': ["Мария"], }, { 'name': "Емил", 'interests': ['летене', 'баскетбол', 'софтуер', 'наука'], 'age': 34, 'gender': "male", 'ex': ['Дарина'], }, { 'name': "Димитър", 'interests': ['футбол', 'лов със соколи', 'автомобили', 'баскетбол'], 'age': 22, 'gender': "male", 'ex': ['Галя'], }, { 'name': "Петър", 'interests': ['пътуване', 'покер', 'баскетбол', 'лов със соколи'], 'age': 23, 'gender': "male", 'ex': ["Мария"], }, { 'name': "Калоян", 'interests': ['кино', 'покер', 'пътуване', 'автомобили'], 'age': 29, 'gender': "male", 'ex': [], }, ] people_interests_sets = {} for i, p1 in enumerate(people): for j, p2 in enumerate(people[i:]): common_interests = set(people[i]['interests']).intersection(set(people[j]['interests'])) if len(common_interests) > 0 and p1['gender'] != p2['gender'] and p2['name'] not in p1['ex'] and abs( p1['age'] - p2['age']) <= 6: print('{}({}) и {}({}) - общи интереси: {}'.format(p1['name'], p1['age'], p2['name'], p2['age'], common_interests)) matchmaking()
# Inheritance is used to share property and functionality across similar code. # like car and 2 wheels # It creates resuable code. # Breaks code into hierarchy, more generics to more specific. # Objects higher up in the hiearchy is more generics. # Multiple inheritance is possible in Python.z class Vehicle: def __init__(self, make, model, fuel="gas"): self.make = make self.model = model self.fuel = fuel # This method will be available to any object inheriting from this Class. def is_eco_friendly(self): if self.fuel == "gas": return True else: return False # We inherit by sending the base class name as param during class creation. class Car(Vehicle): def __init__(self, make, model, fuel="gas", num_wheels=4): # This calls the Vehicle's __init__() super().__init__(make, model) # Adds new functionality for this class. self.num_wheels = num_wheels if __name__ == "__main__": four_by_four = Vehicle("No idea", "hello idea") print( four_by_four.make, four_by_four.model, four_by_four.fuel, four_by_four.is_eco_friendly(), ) my_suburu = Car("Suburu", "XUV", fuel="diesel") print(my_suburu.make, my_suburu.model, my_suburu.fuel, my_suburu.is_eco_friendly())
"""Intialise the counter i=j=first element of array and pivot=last element of array if array[j]< pivot swap array(i,j) and increment i last swap array(i,pivot) element this algorithm give in place 0(n) partitioning in 0(1) extra memory """ def pivot(array, a, b): i = a x = array[b - 1] for j in range(a, b - 1): if array[j] < x: array[i], array[j] = array[j], array[i] i += 1 array[i], array[b - 1] = array[b - 1], array[i] return i '''This Quicksort algorithms work on randomise input we can do better introducing randomisation to algorithm ''' def Quicksort(array, start, end): if start < end: q = pivot(array, start, end) Quicksort(array, start, q) Quicksort(array, q + 1, end) array=[1,3,4,6,9,7,5] print(pivot(array,0,6)) print(array)
######################################################### # Fred12 Setup the Head Servos ######################################################### # We will be using the following services: # Servo Service ######################################################### # In Fred's head, we have a Servo to turn the head from side to side (HeadX), a Jaw Servo for the mouth # to open and close and servos to control the eyes. # Lets look at the HeadX servo first # First we need to create a Servo Service, like all the other Services, we do this using the Runtime Sevice headX = Runtime.createAndStart("headX", "Servo") # Next we need to attach ther servo Service to a Controller Service, in this case it will be the head # Adafruit16ChServoDriver. We also need to tell the Servo Service which pin on the controller # the servo is connected to, in this case pin 3 headX.attach(head,3) # Now we tell the Servo Service about our servos limits, in some cases if the servo goes to far, things will break headX.setMinMax(0,180) # This allows you to map the input to the Servo service to an actual servo position output headX.map(0,180,1,180) # there is a rest command that can be issued to the servo, # when that happens, this is the position that the servo will go to headX.setRest(90) # if your servo run backwards, then set this to true in order to reverse it. headX.setInverted(True) # degrees per second rotational velocity, setting -1 will set the speed to the servo's default headX.setVelocity(60) # this allows the Servo Sevice to turn off the motor when it has reached the target position. # the major advantage to this is the servos will use less power and have a lower chance of buring out. headX.setAutoDisable(True) # Ok now that we have fully defined the headX servo lets make sure it is in the rest position. headX.rest() # commands not used here but will be in other parts on the program are the following: # headX.moveTo(x) where x is the position you want move to. # headX.moveToBlockig(x) as above except execution of the program will pause until the position is reached. # headX.disable() will turn off the servo without unloading the service. # headX.enable() the oposite of disable will turn the servo back on after being disabled. # disable and enable are not required if setAutoDisable is set to True # For each servo that we have, we need to create a Servo Service jaw = Runtime.createAndStart("jaw", "Servo") jaw.attach(head,2) jaw.setMinMax(90,165) jaw.map(90,166,90,165) jaw.setRest(160) jaw.setInverted(True) jaw.setVelocity(-1) jaw.setAutoDisable(True) jaw.rest() eyesX = Runtime.createAndStart("eyesX", "Servo") eyesX.attach(head,0) eyesX.setMinMax(0,180) eyesX.map(0,180,0,180) eyesX.setRest(90) eyesX.setInverted(False) eyesX.setVelocity(-1) eyesX.setAutoDisable(True) eyesY = Runtime.createAndStart("eyesY", "Servo") eyesY.attach(head,1) eyesY.setMinMax(0,180) eyesY.map(0,180,0,180) eyesY.setRest(90) eyesY.setInverted(False) eyesY.setVelocity(-1) eyesY.setAutoDisable(True)
# -*- coding: UTF-8 -*- #!/usr/bin/env python #------------------------------------------------------------------------------- # Name: # Purpose: # # Author: hekai #------------------------------------------------------------------------------- arrs = ['a', 'b', 'c', ['x', 'y'],'d', 'e'] print(arrs) # 浅拷贝 arrs_copy = arrs.copy() print(arrs_copy) arrs_ = arrs[:] print(arrs_) l = list(arrs) print(l) print(arrs[0:-1:2]) print(arrs[:2]) print('------------') for i in arrs: print(i)
# Done by Carlos Amaral (16/09/2020) # SCU_2.7 - Modify a User-Defined Function def my_function(x, y): return (x+y)/2 x = 4 y = 5 print("The average is: ", my_function(x,y))
def fib(n): if n < 0: raise FibonacciError elif n <= 2: return 1 else: return fib(n-1) + fib(n-2) class FibonacciError(Exception): pass class FibTestClass: pass
#coding=utf-8 #披萨配料P110 2017.4.17 active = True while active: seasoning = input("please input the seasoning that you want to add in your pizza"+ "(input 'quit' to exit)\n") if seasoning == 'quit': break else: print("We'll add "+seasoning+' your pizza!')
class Solution: """ @param A: an array @return: divide the array into 3 non-empty parts """ def threeEqualParts(self, A): total = A.count(1) if total == 0: return [0, 2] if total % 3: return [-1, -1] k = total // 3 count = 0 for i, a in enumerate(A): if a == 1: count += 1 if count == 1: start = i elif count == k + 1: mid = i elif count == k * 2 + 1: end = i break while end < len(A) and A[start] == A[mid] == A[end]: start += 1 mid += 1 end += 1 if end == len(A): return [start - 1, mid] else: return [-1, -1]
"""Custom synapse-related classes.""" # Copyright 2020-2021 Blue Brain Project / EPFL # 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 SynapseMixin: """Class containing the synapse-related methods.""" def set_random_nmb_generator(self, sim, icell, sid): """Sets the random number generator. Args: sim (bluepyopt.ephys.NrnSimulator): neuron simulator icell (neuron cell): cell instantiation in simulator sid (int): synapse id """ if self.rng_settings_mode == "Random123": self.randseed1 = icell.gid + 250 self.randseed2 = sid + 100 self.randseed3 = 300 self.hsynapse.setRNG(self.randseed1, self.randseed2, self.randseed3) if self.rng_settings_mode == "Compatibility": self.rndd = sim.neuron.h.Random() self.rndd.MCellRan4( sid * 100000 + 100, icell.gid + 250 + self.seed, ) self.rndd.uniform(0, 1) self.hsynapse.setRNG(self.rndd) def set_tau_r(self, sim, icell, sid): """Set tau_r_GABAA using random nmb generator. Args: sim (bluepyopt.ephys.NrnSimulator): neuron simulator icell (neuron cell): cell instantiation in simulator sid (int): synapse id """ self.rng = sim.neuron.h.Random() if self.rng_settings_mode == "Random123": self.rng.Random123(icell.gid + 250, sid + 100, 450) elif self.rng_settings_mode == "Compatibility": self.rng.MCellRan4( sid * 100000 + 100, icell.gid + 250 + self.seed, ) self.rng.lognormal(0.2, 0.1) self.hsynapse.tau_r_GABAA = self.rng.repick() def execute_synapse_configuration(self, synconf_dict, sid, sim, exec_all=False): """Create a hoc file configuring synapse. Args: synconf_dict (dict): synapse configuration sid (int): synapse id sim (bluepyopt.ephys.NrnSimulator): neuron simulator exec_all (bool): whether to also execute commands with '*' """ # pylint: disable=consider-using-f-string for cmd, ids in synconf_dict.items(): if sid in ids and (exec_all or "*" not in cmd): cmd = cmd.replace("%s", "\n%(syn)s") hoc_cmd = cmd % {"syn": self.hsynapse.hname()} hoc_cmd = "{%s}" % hoc_cmd sim.neuron.h(hoc_cmd) class SynapseCustom(SynapseMixin): """Attach a synapse to the simulation. Attributes: seed (int): random number generator seed number rng_settins_mode (str) : mode of the random number generator Can be "Random123" or "Compatibility" section (neuron section): cell location where the synapse is attached to hsynapse (neuron ProbGABAAB_EMS or ProbAMPANMDA_EMS): synapse instantion in simulator delay (float): synapse delay weight (float): synapse weight pre_mtype (int): ID (but not gid) of the presynaptic cell start (int/None): force synapse to start firing at given value when using NetStim interval (int/None): force synapse to fire at given interval when using NetStim number (int/None): force synapse to fire N times when using NetStim noise (int/None): force synapse to have given noise when using NetStim """ def __init__( self, sim, icell, synapse, section, seed, rng_settings_mode, synconf_dict, start=None, interval=None, number=None, noise=None, ): """Constructor. Args: sim (NrnSimulator): simulator icell (Hoc Cell): cell to which attach the synapse synapse (dict): synapse data section (neuron section): cell location where the synapse is attached to seed (int) : random number generator seed number rng_settings_mode (str) : mode of the random number generator Can be "Random123" or "Compatibility" synconf_dict (dict) : synapse configuration start (int/None): force synapse to start firing at given value when using NetStim interval (int/None): force synapse to fire at given interval when using NetStim number (int/None): force synapse to fire N times when using NetStim noise (int/None): force synapse to have given noise when using NetStim """ # pylint: disable=too-many-arguments self.seed = seed self.rng_settings_mode = rng_settings_mode self.section = section # the synapse is inhibitory if synapse["synapse_type"] < 100: self.hsynapse = sim.neuron.h.ProbGABAAB_EMS( synapse["seg_x"], sec=self.section ) self.hsynapse.tau_d_GABAA = synapse["tau_d"] self.set_tau_r(sim, icell, synapse["sid"]) # the synapse is excitatory elif synapse["synapse_type"] > 100: self.hsynapse = sim.neuron.h.ProbAMPANMDA_EMS( synapse["seg_x"], sec=self.section ) self.hsynapse.tau_d_AMPA = synapse["tau_d"] self.hsynapse.Use = abs(synapse["use"]) self.hsynapse.Dep = abs(synapse["dep"]) self.hsynapse.Fac = abs(synapse["fac"]) self.hsynapse.synapseID = synapse["sid"] self.hsynapse.Nrrp = synapse["Nrrp"] # set random number generator self.set_random_nmb_generator(sim, icell, synapse["sid"]) self.execute_synapse_configuration(synconf_dict, synapse["sid"], sim) self.delay = synapse["delay"] self.weight = synapse["weight"] self.pre_mtype = synapse["pre_mtype"] # netstim params if given self.start = start self.interval = interval self.number = number self.noise = noise
COLLECTION_NAME = "types" TYPE_NAME_KEY = "name" TYPE_VERSION_KEY = "version" DEFAULT_TYPE_VERSION = 1 TYPE_COLLECTION_KEY = "collection" TYPE_PRIMITIVE_VALUE = "primitive" DEFAULT_TYPE_COLLECTION = TYPE_PRIMITIVE_VALUE STRING_VALUE = "String" NUMBER_VALUE = "Number" def make_app_stack_type(type_name, **kwargs): app_stack_type = dict() app_stack_type[TYPE_NAME_KEY] = type_name version = kwargs.get(TYPE_VERSION_KEY, DEFAULT_TYPE_VERSION) print("- {}: {}".format(TYPE_VERSION_KEY, version)) app_stack_type[TYPE_VERSION_KEY] = version collection = kwargs.get(TYPE_COLLECTION_KEY, DEFAULT_TYPE_COLLECTION) print("- {}: {}".format(TYPE_COLLECTION_KEY, collection)) app_stack_type[TYPE_COLLECTION_KEY] = collection return app_stack_type
# Autonr : Biswadeep Roy # import os ''' thiple single quote is used to do multiple line comments''' print("Hello world")
class Box: def __init__(self, xmin, xmax, ymin, ymax): assert xmax > xmin >= 0, ("Got invalid box with xmin: {0} and xmax {1}".format(xmin, xmax)) assert ymax > ymin >= 0, ("Got invalid box with ymin: {0} and ymax {1}".format(ymin, ymax)) self._xmin = xmin self._xmax = xmax self._ymin = ymin self._ymax = ymax @property def xmin(self): return self._xmin @property def ymin(self): return self._ymin @property def xmax(self): return self._xmax @property def ymax(self): return self._ymax @property def width(self): return self.xmax - self.xmin @property def height(self): return self.ymax - self.ymin @property def area(self): return self.width * self.height def intersection(box1: Box, box2: Box): # find the upper left and bottom right corner of intersection box xmin = max(box1.xmin, box2.xmin) xmax = min(box1.xmax, box2.xmax) ymin = max(box1.ymin, box2.ymin) ymax = min(box1.ymax, box2.ymax) intersection_area = max(xmax - xmin, 0) * max(ymax - ymin, 0) return intersection_area def calculate_iou(box1: Box, box2: Box): _intersection = intersection(box1, box2) union = box1.area + box2.area - _intersection return _intersection / union if __name__ == "__main__": # some test samples a = [0, 1, 0, 1] b = [0, 1, 0, 2] box1 = Box(*a) box2 = Box(*b) print(box1) print(box1.area) print(calculate_iou(box1, box2))
"""Session 2 Class, object, instance Attributes, methods Constructor, destructor """ class Object: """Object only has a defined attribute `name` """ def __init__(self, name='anonymous python object'): """Constructor performs initialization of the instances of Object class. """ self.name = name def __str__(self): """Special method to provide a string representation of the instances of Object. obj = Object str(obj) is the same as obj.__str__ Also implicitly called when printing an object. """ return self.name def __repr__(self): """Special method to provide a representation of the instances of Object, but gives more information, in this case, than str(obj). We will provide the name of the class; also the `name` attribute of the object. repr(obj) is the same as obj.__repr__ """ msg = self.__class__.__name__ return f'{msg}("{self.name}")' def __del__(self): """Destructor should perform a cleanup before the object destruction. """ print(f'About to destroy {repr(self)}') def dos_objs(): """Creates two objects""" obj_a = Object("nombre_a") obj_b = Object("nombre_a") obj_c = obj_a print(f'{obj_c=}') print(f'{obj_a=}') print(obj_a, " vs ", repr(obj_a)) assert obj_c is obj_a assert obj_b is not obj_a if __name__ == '__main__': dos_objs() print('Starting example...') instance_a = Object() assert instance_a.name == 'Objeto python' instance_b = Object('OBJ B') assert instance_b.name != 'Objeto python' print('Finishing example...')
class FindShortestID: __slots__ = 'short_id', 'new_id' def __init__(self): self.short_id = '' self.new_id = None def step(self, other_id, new_id): self.new_id = new_id for i in range(len(self.new_id)): if other_id[i] != self.new_id[i]: if i > len(self.short_id)-1: self.short_id = self.new_id[:i+1] break def finalize(self): if self.short_id: return '#'+self.short_id @classmethod def factory(cls): return cls(), cls.step, cls.finalize def register_canonical_functions(connection): connection.createaggregatefunction("shortest_id", FindShortestID.factory, 2)
# x=frase[0] # y=frase[1] # z=frase[2] # w=frase[3] # print('seu numero: {} \nTem como unidade:{}\nDezena:{} \ncentena:{} \nmilhar:{}'.format(frase,w,z,y,x)) num: int = int(input('digite um numero: ')) u = num % 10 d = num // 10 % 10 c = num // 100 % 10 m = num // 1000 % 10 print('analisando o numero {} '.format(num)) print('sua unidade é {}'.format(u)) print('sua dezena é {}'.format(d)) print('sua centena é {}'.format(c)) print('seu milhar é {}'.format(m))
BLACK_HEX = '000' WHITE_HEX = 'fff' IMG_BLUEHAT = "https://assets.imgix.net/examples/bluehat.jpg" IMG_PINE = "https://sherwinski.imgix.net/pineneedles.jpg" BROKEN_URL = "https://assets.imgix.net/examples/invalid" INVALID_URL = "https://google.com" CSS_BLUEHAT = """.image-fg-1 { color:#0d0c10 !important; } .image-bg-1 { background-color:#0d0c10 !important; } .image-fg-2 { color:#015091 !important; } .image-bg-2 { background-color:#015091 !important; } .image-fg-3 { color:#0870d3 !important; } .image-bg-3 { background-color:#0870d3 !important; } .image-fg-4 { color:#239be0 !important; } .image-bg-4 { background-color:#239be0 !important; } .image-fg-5 { color:#b1dfeb !important; } .image-bg-5 { background-color:#b1dfeb !important; } .image-fg-6 { color:#f0c9b4 !important; } .image-bg-6 { background-color:#f0c9b4 !important; } .image-fg-ex-1 { color:#000000 !important; } .image-bg-ex-1 { background-color:#000000 !important; } .image-fg-ex-2 { color:#ffffff !important; } .image-bg-ex-2 { background-color:#ffffff !important; } .image-fg-vibrant { color:#0d95e4 !important; } .image-bg-vibrant { background-color:#0d95e4 !important; } .image-fg-muted-dark { color:#38445c !important; } .image-bg-muted-dark { background-color:#38445c !important; } .image-fg-muted { color:#966760 !important; } .image-bg-muted { background-color:#966760 !important; } .image-fg-vibrant-light { color:#72c5f4 !important; } .image-bg-vibrant-light { background-color:#72c5f4 !important; } .image-fg-muted-light { color:#d8b6aa !important; } .image-bg-muted-light { background-color:#d8b6aa !important; } .image-fg-vibrant-dark { color:#015091 !important; } .image-bg-vibrant-dark { background-color:#015091 !important; }""" JSON_BLUEHAT = {'colors': [{'red': 0.0509804, 'hex': '#0d0c10', 'blue': 0.0627451, 'green': 0.0470588}, {'red': 0.00392157, 'hex': '#015091', 'blue': 0.568627, 'green': 0.313725}, {'red': 0.0313725, 'hex': '#0870d3', 'blue': 0.827451, 'green': 0.439216}, {'red': 0.137255, 'hex': '#239be0', 'blue': 0.878431, 'green': 0.607843}, {'red': 0.694118, 'hex': '#b1dfeb', 'blue': 0.921569, 'green': 0.87451}, {'red': 0.941176, 'hex': '#f0c9b4', 'blue': 0.705882, 'green': 0.788235}], 'average_luminance': 0.708396, 'dominant_colors': {'vibrant': {'red': 0.0509804, 'hex': '#0d95e4', 'blue': 0.894118, 'green': 0.584314}, 'muted_light': {'red': 0.847059, 'hex': '#d8b6aa', 'blue': 0.666667, 'green': 0.713725}, 'muted': {'red': 0.588235, 'hex': '#966760', 'blue': 0.376471, 'green': 0.403922}, 'vibrant_dark': {'red': 0.00392157, 'hex': '#015091', 'blue': 0.568627, 'green': 0.313725}, 'vibrant_light': {'red': 0.447059, 'hex': '#72c5f4', 'blue': 0.956863, 'green': 0.772549}, 'muted_dark': {'red': 0.219608, 'hex': '#38445c', 'blue': 0.360784, 'green': 0.266667}}} CSS_PINE = """.image-fg-1 { color:#f6e4ee !important; } .image-bg-1 { background-color:#f6e4ee !important; } .image-fg-2 { color:#d9afc3 !important; } .image-bg-2 { background-color:#d9afc3 !important; } .image-fg-3 { color:#aac373 !important; } .image-bg-3 { background-color:#aac373 !important; } .image-fg-4 { color:#6e9170 !important; } .image-bg-4 { background-color:#6e9170 !important; } .image-fg-5 { color:#375d2d !important; } .image-bg-5 { background-color:#375d2d !important; } .image-fg-6 { color:#2c4309 !important; } .image-bg-6 { background-color:#2c4309 !important; } .image-fg-ex-1 { color:#ffffff !important; } .image-bg-ex-1 { background-color:#ffffff !important; } .image-fg-ex-2 { color:#000000 !important; } .image-bg-ex-2 { background-color:#000000 !important; } .image-fg-vibrant { color:#aac373 !important; } .image-bg-vibrant { background-color:#aac373 !important; } .image-fg-muted-dark { color:#36522c !important; } .image-bg-muted-dark { background-color:#36522c !important; } .image-fg-muted { color:#98656d !important; } .image-bg-muted { background-color:#98656d !important; } .image-fg-vibrant-light { color:#e1acba !important; } .image-bg-vibrant-light { background-color:#e1acba !important; } .image-fg-muted-light { color:#d3abb5 !important; } .image-bg-muted-light { background-color:#d3abb5 !important; } .image-fg-vibrant-dark { color:#2c4309 !important; } .image-bg-vibrant-dark { background-color:#2c4309 !important; }""" JSON_PINE = {'colors': [{'red': 0.964706, 'hex': '#f6e4ee', 'blue': 0.933333, 'green': 0.894118}, {'red': 0.85098, 'hex': '#d9afc3', 'blue': 0.764706, 'green': 0.686275}, {'red': 0.666667, 'hex': '#aac373', 'blue': 0.45098, 'green': 0.764706}, {'red': 0.431373, 'hex': '#6e9170', 'blue': 0.439216, 'green': 0.568627}, {'red': 0.215686, 'hex': '#375d2d', 'blue': 0.176471, 'green': 0.364706}, {'red': 0.172549, 'hex': '#2c4309', 'blue': 0.0352941, 'green': 0.262745}], 'average_luminance': 0.38134, 'dominant_colors': {'vibrant': {'red': 0.666667, 'hex': '#aac373', 'blue': 0.45098, 'green': 0.764706}, 'muted_light': {'red': 0.827451, 'hex': '#d3abb5', 'blue': 0.709804, 'green': 0.670588}, 'muted': {'red': 0.596078, 'hex': '#98656d', 'blue': 0.427451, 'green': 0.396078}, 'vibrant_dark': {'red': 0.172549, 'hex': '#2c4309', 'blue': 0.0352941, 'green': 0.262745}, 'vibrant_light': {'red': 0.882353, 'hex': '#e1acba', 'blue': 0.729412, 'green': 0.67451}, 'muted_dark': {'red': 0.211765, 'hex': '#36522c', 'blue': 0.172549, 'green': 0.321569}}}
class PradamClass(object): def __init__(self, name, age): self._name = name self._age = age @property def name(self): return self._name @name.setter def name(self, val): if val.lower() == 'pradam': print('Corrent Name.') else: raise NameError('Not a Good Name') self._name = val POG = PradamClass('pradam',78) DICTIONARY = {1: 'one', 2: 'two', 3: 'three'}
TEMPLATES_AUTO_RELOAD = True SECRET_KEY = '£$%^HJGE97655@~?><XGHWEDI7974' DEBUG = False ##mails MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 465 MAIL_USE_SSL = True MAIL_USERNAME = 'rmachaz@gmail.com' MAIL_DEFAULT_SENDER = 'rmachaz@gmail.com' MAIL_PASSWORD = '684192684192' ## databases SQLALCHEMY_DATABASE_URI = 'mysql+mysqldb://root:1234567@35.198.11.162/Projects?unix_socket=/cloudsql/primeval-melody-169005:southamerica-east1:project-module' SQLALCHEMY_TRACK_MODIFICATIONS = False # SQLALCHEMY_BINDS = { # 'users': 'mysqldb://localhost/users', # 'appmeta': 'sqlite:////path/to/appmeta.db' # } ##files storage UPLOADED_FILES_DEST = "./projectfilesupload/"
'''MongoExceptions''' class MongoExceptions(Exception): def __init__(self, *args): self.args = args class NoDatabaseException(MongoExceptions): def __init__(self, message = 'No such Database!', code = 422, args = ('No such Database!',)): self.args = args self.message = message self.code = code class InvalidArgumentsException(MongoExceptions): def __init__(self, message = 'Invalid Arguments!', code = 422, args = ('Invalid Arguments!',)): self.args = args self.message = message self.code = code class ConnectFailedException(MongoExceptions): def __init__(self, message = 'Authentication Required or Connection Error!', code = 422, args = ('Authentication Required or Connection Error!',)): self.args = args self.message = message self.code = code class InvalidCollectionException(MongoExceptions): def __init__(self, message = 'Invalid Collection!', code = 422, args = ('Invalid Collection!',)): self.args = args self.message = message self.code = code class InvalidQueryObjectException(MongoExceptions): def __init__(self, message = 'Invalid Query Object!', code = 422, args = ('Invalid Query Object!',)): self.args = args self.message = message self.code = code class InvalidInsertObjectException(MongoExceptions): def __init__(self, message = 'Invalid Insert Object!', code = 422, args = ('Invalid Insert Object!',)): self.args = args self.message = message self.code = code class InvalidRemoveQueryException(MongoExceptions): def __init__(self, message = 'Invalid Remove Query!', code = 422, args = ('Invalid Remove Query!',)): self.args = args self.message = message self.code = code class InvalidRemoveOptionException(MongoExceptions): def __init__(self, message = 'Invalid Remove Option!', code = 422, args = ('Invalid Remove Option!',)): self.args = args self.message = message self.code = code class RemoveAllNotConfirmedException(MongoExceptions): def __init__(self, message = 'Remove All not Confirmed!', code = 422, args = ('Remove All not Confirmed!',)): self.args = args self.message = message self.code = code class OperationFailedException(MongoExceptions): def __init__(self, message = 'Operation Failed!', code = 422, args = ('Operation Failed!',)): self.args = args self.message = message self.code = code class InvalidUpdateQueryException(MongoExceptions): def __init__(self, message = 'Invalid Update Query!', code = 422, args = ('Invalid Update Query!',)): self.args = args self.message = message self.code = code class InvalidUpdateDictException(MongoExceptions): def __init__(self, message = 'Invalid Update Dict!', code = 422, args = ('Invalid Update Dict!',)): self.args = args self.message = message self.code = code class InvalidUpdateOptionException(MongoExceptions): def __init__(self, message = 'Invalid Update Option!', code = 422, args = ('Invalid Update Option!',)): self.args = args self.message = message self.code = code class InvalidObjectIdException(MongoExceptions): def __init__(self, message = 'Invalid ObjectId!', code = 422, args = ('Invalid ObjectId!',)): self.args = args self.message = message self.code = code
# -*- coding:utf-8 -*- CSRF_ENABLED = True # CSRF_ENABLED 激活 跨站点请求伪造 保护。激活该配置 使得你的应用程序更安全。 SECRET_KEY = "TEST_BLOG" # SECRET_KEY 配置仅仅当 CSRF 激活时才需要,用来建立一个加密令牌,验证表单。务必设置很难被猜测到密钥
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def isPalindrome(self, head): """ :type head: ListNode :rtype: bool """ # Runtime: 1036 ms # Memory: 67.6 MB half1_ptr = head half2_ptr = head while half1_ptr.next is not None and half1_ptr.next.next is not None: half1_ptr = half1_ptr.next.next half2_ptr = half2_ptr.next half1_ptr = head half2_ptr = half2_ptr.next # half2_ptr is now pointing to the middle of the linked list # Reverse the second half last_node = None while half2_ptr is not None: next_node = half2_ptr.next half2_ptr.next = last_node last_node = half2_ptr half2_ptr = next_node half2_ptr = last_node # Compare two halves while half1_ptr is not None and half2_ptr is not None: if half1_ptr.val != half2_ptr.val: return False half1_ptr = half1_ptr.next half2_ptr = half2_ptr.next return True
# cook your dish here test = int(input()) while test > 0 : n = int(input()) l = list(map(int,input().split())) l.sort() count = 0 for i in range(n - 1) : if l[i] == l[i + 1] : print("NO") break else : count += 1 if count == n - 1 : print("YES") test -= 1
"""Binary Exponentiation.""" # Author : Junth Basnet # Time Complexity : O(logn) def binary_exponentiation(a, n): if (n == 0): return 1 elif (n % 2 == 1): return binary_exponentiation(a, n - 1) * a else: b = binary_exponentiation(a, n / 2) return b * b if __name__ == "__main__": try: BASE = int(input("Enter Base : ").strip()) POWER = int(input("Enter Power : ").strip()) except ValueError: print("Invalid literal for integer") RESULT = binary_exponentiation(BASE, POWER) print("{}^({}) : {}".format(BASE, POWER, RESULT))
def mean(u): if type(u) == dict: the_mean = sum(u.values())/len(u) else: the_mean = sum(u) / len(u) return the_mean student_grades = {"Marry":9.8, "jhon":2.1, "Kayle":6.5} mondey_temparature = [2,3,54,48,48,57] print('This is a mean of a Dictonary',mean(student_grades)) print('This is a mean of a list',mean(mondey_temparature))
#Filter Fucntion Example 2 def isVow(x): if x=='a' or x=='e' or x=='i' or x=='o' or x=='u': return True def isCons(x): if x!='a' and x!='e' and x!='i' and x!='o' and x!='u': return True print("Enter the letters:") lst = [x for x in input().split()] print('-'*40) vowlist = list(filter(isVow, lst)) print("Vowels =",vowlist) print('-'*40) conslist = list(filter(isCons, lst)) print("Consonents =",conslist) print('-'*40)
print(2**3) print(2**3.) print(2.**3) print(2.**3.) print(5//2) print(2**2**3) print(2*4) print(2**4) print(2.*4) print(2**4.) print(2/4) print(2//4) print(-2/4) print(-2//4) print(2%4) print(2%-4)
# # PySNMP MIB module Nortel-MsCarrier-MscPassport-AtmNetworkingMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-AtmNetworkingMIB # Produced by pysmi-0.3.4 at Wed May 1 14:29:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection") mscAtmIfVptVcc, mscAtmIfVpc, mscAtmIfVpcIndex, mscAtmIfIndex, mscAtmIfVptVccIndex, mscAtmIfVcc, mscAtmIfVptIndex, mscAtmIfVccIndex = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVcc", "mscAtmIfVpc", "mscAtmIfVpcIndex", "mscAtmIfIndex", "mscAtmIfVptVccIndex", "mscAtmIfVcc", "mscAtmIfVptIndex", "mscAtmIfVccIndex") Unsigned32, StorageType, DisplayString, RowStatus, Counter32, RowPointer, Integer32, Gauge32 = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB", "Unsigned32", "StorageType", "DisplayString", "RowStatus", "Counter32", "RowPointer", "Integer32", "Gauge32") HexString, AsciiString, NonReplicated, AsciiStringIndex, IntegerSequence, FixedPoint1 = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-TextualConventionsMIB", "HexString", "AsciiString", "NonReplicated", "AsciiStringIndex", "IntegerSequence", "FixedPoint1") mscPassportMIBs, mscComponents = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB", "mscPassportMIBs", "mscComponents") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") ObjectIdentity, Unsigned32, NotificationType, IpAddress, Gauge32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Counter32, Counter64, TimeTicks, ModuleIdentity, Integer32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Unsigned32", "NotificationType", "IpAddress", "Gauge32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Counter32", "Counter64", "TimeTicks", "ModuleIdentity", "Integer32", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") atmNetworkingMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42)) mscARtg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95)) mscARtgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1), ) if mibBuilder.loadTexts: mscARtgRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtg components.') mscARtgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex")) if mibBuilder.loadTexts: mscARtgRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgRowStatusEntry.setDescription('A single entry in the table represents a single mscARtg component.') mscARtgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtg components. These components can be added and deleted.') mscARtgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgStorageType.setDescription('This variable represents the storage type value for the mscARtg tables.') mscARtgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscARtgIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgIndex.setDescription('This variable represents the index for the mscARtg tables.') mscARtgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 10), ) if mibBuilder.loadTexts: mscARtgStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgStatsTable.setDescription('This group contains the statistical operational attributes of an ARtg component.') mscARtgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex")) if mibBuilder.loadTexts: mscARtgStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgStatsEntry.setDescription('An entry in the mscARtgStatsTable.') mscARtgRoutingAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 10, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgRoutingAttempts.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgRoutingAttempts.setDescription('This attribute counts the total number of calls routed. The counter wraps when it exceeds the maximum value.') mscARtgFailedRoutingAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 10, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgFailedRoutingAttempts.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgFailedRoutingAttempts.setDescription('This attribute counts the total number of calls which were not successfully routed.The counter wraps when it exceeds the maximum value.') mscARtgDna = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2)) mscARtgDnaRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1), ) if mibBuilder.loadTexts: mscARtgDnaRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgDna components.') mscARtgDnaRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgDnaIndex")) if mibBuilder.loadTexts: mscARtgDnaRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgDna component.') mscARtgDnaRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgDna components. These components cannot be added nor deleted.') mscARtgDnaComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgDnaStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaStorageType.setDescription('This variable represents the storage type value for the mscARtgDna tables.') mscARtgDnaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 40))) if mibBuilder.loadTexts: mscARtgDnaIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaIndex.setDescription('This variable represents the index for the mscARtgDna tables.') mscARtgDnaDestInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2)) mscARtgDnaDestInfoRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1), ) if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgDnaDestInfo components.') mscARtgDnaDestInfoRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgDnaIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgDnaDestInfoIndex")) if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgDnaDestInfo component.') mscARtgDnaDestInfoRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgDnaDestInfo components. These components cannot be added nor deleted.') mscARtgDnaDestInfoComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgDnaDestInfoStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoStorageType.setDescription('This variable represents the storage type value for the mscARtgDnaDestInfo tables.') mscARtgDnaDestInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 50))) if mibBuilder.loadTexts: mscARtgDnaDestInfoIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoIndex.setDescription('This variable represents the index for the mscARtgDnaDestInfo tables.') mscARtgDnaDestInfoOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10), ) if mibBuilder.loadTexts: mscARtgDnaDestInfoOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the operational attributes for the DestInfo component.') mscARtgDnaDestInfoOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgDnaIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgDnaDestInfoIndex")) if mibBuilder.loadTexts: mscARtgDnaDestInfoOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoOperEntry.setDescription('An entry in the mscARtgDnaDestInfoOperTable.') mscARtgDnaDestInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("primary", 0), ("alternate", 1), ("registered", 2), ("default", 3), ("ebr", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoType.setDescription('This attribute indicates the type of the address at the destination interface. Provisioned addresses are assigned a type of primary or alternate; ATM routing will try primary routes and then the alternate routes if none of the primary routes succeed. The type registered is used for dynamic addresses registered through ILMI. The type default is used for Soft PVC addresses. The type ebr indicates addresses used by Edge Based Rerouting.') mscARtgDnaDestInfoScope = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoScope.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoScope.setDescription('This attribute indicates the highest level (meaning the lowest level number) in the hierarchy that the address will be advertised to. A value of -1 indicates that the scope is not applicable since this node has not been configured as a PNNI node.') mscARtgDnaDestInfoStdComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10, 1, 3), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoStdComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoStdComponentName.setDescription('This attribute represents a component name of the interface through which the address can be reached.') mscARtgDnaDestInfoReachability = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 2, 2, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("internal", 0), ("exterior", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgDnaDestInfoReachability.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgDnaDestInfoReachability.setDescription('This attribute indicates whether the address is internal or exterior.') mscARtgPnni = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3)) mscARtgPnniRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1), ) if mibBuilder.loadTexts: mscARtgPnniRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtgPnni components.') mscARtgPnniRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnni component.') mscARtgPnniRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnni components. These components can be added and deleted.') mscARtgPnniComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniStorageType.setDescription('This variable represents the storage type value for the mscARtgPnni tables.') mscARtgPnniIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscARtgPnniIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniIndex.setDescription('This variable represents the index for the mscARtgPnni tables.') mscARtgPnniProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10), ) if mibBuilder.loadTexts: mscARtgPnniProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniProvTable.setDescription('This group contains the generic provisionable attributes of a Pnni component.') mscARtgPnniProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniProvEntry.setDescription('An entry in the mscARtgPnniProvTable.') mscARtgPnniNodeAddressPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniNodeAddressPrefix.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniNodeAddressPrefix.setDescription("This attribute specifies the ATM address of this node. It allows the default node address to be overridden. If this attribute is set to the null string, then the default node address prefix is assumed, and computed as follows: the value provisioned for the ModuleData component's nodePrefix attribute, followed by a unique MAC address (6 octets).") mscARtgPnniDefaultScope = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 104))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniDefaultScope.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniDefaultScope.setDescription('This attribute specifies the default PNNI scope for ATM addresses associated with this node. The PNNI scope determines the level to which the address will be advertised within the PNNI routing domain. A provisioned Addr component may override the default scope in a PnniInfo subcomponent. A value of 0 means that all addresses which do not have provisioned scopes will be advertised globally within the PNNI routing domain. The value specified must be numerically smaller than or equal to that of the lowest level at which this node is configured in the PNNI hierarchy.') mscARtgPnniDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1, 3), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)).clone(hexValue="31")).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniDomain.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniDomain.setDescription('This attribute specifies the routing domain name. This attribute should be set identically for all nodes in the same routing domain.') mscARtgPnniRestrictTransit = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRestrictTransit.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRestrictTransit.setDescription('This attribute specifies if the node should restrict tandeming of SVCs. If this attribute is set to true, then other lowest level nodes in the PNNI hierarchy will avoid traversing this node during route computation.') mscARtgPnniMaxAlternateRoutesOnCrankback = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniMaxAlternateRoutesOnCrankback.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniMaxAlternateRoutesOnCrankback.setDescription('This attribute specifies the number of alternate routing attempts before a call requiring crank back is rejected.') mscARtgPnniPglParmsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 11), ) if mibBuilder.loadTexts: mscARtgPnniPglParmsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPglParmsTable.setDescription('This group contains the provisionable attributes for the peer group leader election timer parameters of a Pnni component.') mscARtgPnniPglParmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniPglParmsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPglParmsEntry.setDescription('An entry in the mscARtgPnniPglParmsTable.') mscARtgPnniPglInitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 11, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniPglInitTime.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPglInitTime.setDescription('This attribute specifies how long this node will delay advertising its choice of preferred peer group leader after having initialized operation and reached the full peer state with at least one neighbor in the peer group.') mscARtgPnniOverrideDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 11, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniOverrideDelay.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOverrideDelay.setDescription('This attribute specifies how long a node will wait for itself to be declared the preferred peer group leader by unanimous agreement among its peers.') mscARtgPnniReElectionInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniReElectionInterval.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniReElectionInterval.setDescription('This attribute specifies how long this node will wait after losing connectivity to the current peer group leader before re-starting the process of electing a new peer group leader.') mscARtgPnniHlParmsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 12), ) if mibBuilder.loadTexts: mscARtgPnniHlParmsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniHlParmsTable.setDescription('This group contains the default provisionable Hello protocol parameters.') mscARtgPnniHlParmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 12, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniHlParmsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniHlParmsEntry.setDescription('An entry in the mscARtgPnniHlParmsTable.') mscARtgPnniHelloHoldDown = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 12, 1, 1), FixedPoint1().subtype(subtypeSpec=ValueRangeConstraint(1, 655350)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniHelloHoldDown.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniHelloHoldDown.setDescription('This attribute is used to limit the rate at which this node sends out Hello packets. Specifically, it specifies the default minimum amount of time between successive Hellos used by routing control channels on this node.') mscARtgPnniHelloInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 12, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniHelloInterval.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniHelloInterval.setDescription('This attribute specifies the default duration of the Hello Timer in seconds for routing control channels on this node. Every helloInterval seconds, this node will send out a Hello packet to the neighbor node, subject to the helloHoldDown timer having expired at least once since the last Hello packet was sent.') mscARtgPnniHelloInactivityFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 12, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniHelloInactivityFactor.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniHelloInactivityFactor.setDescription('This attribute specifies the default number of Hello intervals allowed to pass without receiving a Hello from the neighbor node, before an attempt is made to re-stage, for routing control channels on this node. The hello inactivity timer is enabled in the oneWayInside, twoWayInside, oneWayOutside, twoWayOutside and commonOutside (see the helloState attribute on the Rcc component for a description of these states). Note that the value for the Hello interval used in the calculation is the one specified in the Hello packet from the neighbor node.') mscARtgPnniPtseParmsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13), ) if mibBuilder.loadTexts: mscARtgPnniPtseParmsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPtseParmsTable.setDescription('This group contains the provisionable attributes for the PTSE timer values of a Pnni component.') mscARtgPnniPtseParmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniPtseParmsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPtseParmsEntry.setDescription('An entry in the mscARtgPnniPtseParmsTable.') mscARtgPnniPtseHoldDown = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1, 1), FixedPoint1().subtype(subtypeSpec=ValueRangeConstraint(1, 655350)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniPtseHoldDown.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPtseHoldDown.setDescription('This attribute is used to limit the rate at which this node sends out PTSE packets. Specifically, it specifies the minimum amount of time in seconds that this node must wait between sending successive PTSE packets.') mscARtgPnniPtseRefreshInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(300, 65535)).clone(1800)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniPtseRefreshInterval.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPtseRefreshInterval.setDescription('This attribute specifies the duration of the PTSE Timer. Every ptseRefreshInterval seconds, this node will send out a self- originated PTSE packet to the neighbor node, subject to the ptseHoldDown timer having expired at least once since the last PTSE packet was sent.') mscARtgPnniPtseLifetimeFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(101, 1000)).clone(200)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniPtseLifetimeFactor.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPtseLifetimeFactor.setDescription('This attribute specifies the lifetime multiplier. The result of multiplying the ptseRefreshInterval by this value is used as the initial lifetime that this node places into PTSEs.') mscARtgPnniRequestRxmtInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRequestRxmtInterval.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRequestRxmtInterval.setDescription('This attribute specifies the period between retransmissions of unacknowledged Database Summary packets, PTSE Request packets and PTSPs.') mscARtgPnniPeerDelayedAckInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 13, 1, 5), FixedPoint1().subtype(subtypeSpec=ValueRangeConstraint(1, 655350)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniPeerDelayedAckInterval.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPeerDelayedAckInterval.setDescription('This attribute specifies the minimum amount of time between transmissions of delayed PTSE acknowledgment packets.') mscARtgPnniThreshParmsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 14), ) if mibBuilder.loadTexts: mscARtgPnniThreshParmsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniThreshParmsTable.setDescription('This group contains the provisionable attributes for the change thresholds of a ARtg Pnni component.') mscARtgPnniThreshParmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 14, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniThreshParmsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniThreshParmsEntry.setDescription('An entry in the mscARtgPnniThreshParmsTable.') mscARtgPnniAvcrMt = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 14, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniAvcrMt.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniAvcrMt.setDescription('This attribute when multiplied by the Maximum Cell Rate specifies the minimum threshold used in the algorithms that determine significant change for average cell rate parameters.') mscARtgPnniAvcrPm = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 14, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(50)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniAvcrPm.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniAvcrPm.setDescription('This attribute when multiplied by the current Available Cell Rate specifies the threshold used in the algorithms that determine significant change for AvCR parameters. If the resulting threshold is lower than minimum threshold, minimum threshold will be used. Increasing the value of the attribute increases the range of insignificance and reduces the amount of PTSP flooding due to changes in resource availability.') mscARtgPnniOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 15), ) if mibBuilder.loadTexts: mscARtgPnniOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOperTable.setDescription('This group contains the generic operational attributes of an ARtg Pnni component.') mscARtgPnniOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 15, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOperEntry.setDescription('An entry in the mscARtgPnniOperTable.') mscARtgPnniTopologyMemoryExhaustion = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 15, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopologyMemoryExhaustion.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopologyMemoryExhaustion.setDescription('This attribute indicates if the topology database is overloaded. A node goes into a database overload state when it fails to store the complete topology database due to insufficient memory in the node. A node in this state performs resynchronization periodically by restarting all its Neighbor Peer Finite State Machines. The node will stay in this state until it synchronizes with all of its neighbors without any overload problems. When this attribute is set an alarm will be issued.') mscARtgPnniStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 16), ) if mibBuilder.loadTexts: mscARtgPnniStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniStatsTable.setDescription('This group contains the statistical operational attributes of a ARtg Pnni component.') mscARtgPnniStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 16, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex")) if mibBuilder.loadTexts: mscARtgPnniStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniStatsEntry.setDescription('An entry in the mscARtgPnniStatsTable.') mscARtgPnniSuccessfulRoutingAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 16, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniSuccessfulRoutingAttempts.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniSuccessfulRoutingAttempts.setDescription('This attribute counts successful PNNI routing attempts. The counter wraps when it exceeds the maximum value.') mscARtgPnniFailedRoutingAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 16, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniFailedRoutingAttempts.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniFailedRoutingAttempts.setDescription('This attribute counts failed PNNI routing attempts. The counter wraps when it exceeds the maximum value.') mscARtgPnniAlternateRoutingAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 16, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniAlternateRoutingAttempts.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniAlternateRoutingAttempts.setDescription('This attribute counts successful PNNI alternate routing attempts. The counter wraps when it exceeds the maximum value.') mscARtgPnniOptMetricTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 386), ) if mibBuilder.loadTexts: mscARtgPnniOptMetricTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOptMetricTable.setDescription('This attribute is a vector that specifies the optimization metric for each ATM service category. The optimization metric is used during Generic Connection Admission Control (GCAC) route computation. Setting the value to cdv for a particular service category will cause GCAC to optimize for cell delay variation on call setups requiring that service category. Setting the value to maxCtd for a particular service category will cause GCAC to optimize for maximum cell transfer delay on call setups requiring that service category. Setting the value to aw for a particular service category will cause GCAC to optimize for administrative weight on call setups requiring that service category.') mscARtgPnniOptMetricEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 386, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniOptMetricIndex")) if mibBuilder.loadTexts: mscARtgPnniOptMetricEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOptMetricEntry.setDescription('An entry in the mscARtgPnniOptMetricTable.') mscARtgPnniOptMetricIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 386, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("cbr", 1), ("rtVbr", 2), ("nrtVbr", 3), ("ubr", 4)))) if mibBuilder.loadTexts: mscARtgPnniOptMetricIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOptMetricIndex.setDescription('This variable represents the mscARtgPnniOptMetricTable specific index for the mscARtgPnniOptMetricTable.') mscARtgPnniOptMetricValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 386, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("cdv", 0), ("maxCtd", 1), ("aw", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniOptMetricValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniOptMetricValue.setDescription('This variable represents an individual value for the mscARtgPnniOptMetricTable.') mscARtgPnniRf = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2)) mscARtgPnniRfRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1), ) if mibBuilder.loadTexts: mscARtgPnniRfRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtgPnniRf components.') mscARtgPnniRfRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex")) if mibBuilder.loadTexts: mscARtgPnniRfRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniRf component.') mscARtgPnniRfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniRfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniRf components. These components cannot be added nor deleted.') mscARtgPnniRfComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniRfComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniRfStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniRfStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniRf tables.') mscARtgPnniRfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscARtgPnniRfIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfIndex.setDescription('This variable represents the index for the mscARtgPnniRf tables.') mscARtgPnniRfCriteriaTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10), ) if mibBuilder.loadTexts: mscARtgPnniRfCriteriaTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfCriteriaTable.setDescription('This group contains the attributes specifying the routing criteria for the route computation.') mscARtgPnniRfCriteriaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex")) if mibBuilder.loadTexts: mscARtgPnniRfCriteriaEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfCriteriaEntry.setDescription('An entry in the mscARtgPnniRfCriteriaTable.') mscARtgPnniRfDestinationAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(1, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfDestinationAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfDestinationAddress.setDescription('This attribute specifies the destination NSAP address to be used for the computation. If this attribute specifies an invalid address then no routes will be found.') mscARtgPnniRfMaxRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfMaxRoutes.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfMaxRoutes.setDescription('This attribute specifies a ceiling on the number of routes to be computed.') mscARtgPnniRfTxTrafficDescType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("n1", 1), ("n2", 2), ("n3", 3), ("n4", 4), ("n5", 5), ("n6", 6), ("n7", 7), ("n8", 8))).clone('n1')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfTxTrafficDescType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTxTrafficDescType.setDescription('This attribute specifies the type of traffic management which is applied to the transmit direction as defined in the ATM Forum. The txTrafficDescType determines the number and meaning of the parameters in the txTrafficDescParm attribute.') mscARtgPnniRfRxTrafficDescType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 15))).clone(namedValues=NamedValues(("n1", 1), ("n2", 2), ("n3", 3), ("n4", 4), ("n5", 5), ("n6", 6), ("n7", 7), ("n8", 8), ("sameAsTx", 15))).clone('sameAsTx')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfRxTrafficDescType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRxTrafficDescType.setDescription('This attribute specifies the type of traffic management which is applied to the receive direction of this connection as defined in the ATM Forum. The rxTrafficDescType determines the number and meaning of the parameters in the rxTrafficDescParm attribute When sameAsTx is selected, the rxTrafficDescType as well as the rxTrafficDescParm are taken from the transmit values.') mscARtgPnniRfAtmServiceCategory = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 15))).clone(namedValues=NamedValues(("unspecifiedBitRate", 0), ("constantBitRate", 1), ("rtVariableBitRate", 2), ("nrtVariableBitRate", 3), ("derivedFromBBC", 15))).clone('unspecifiedBitRate')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfAtmServiceCategory.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfAtmServiceCategory.setDescription("This attribute specifies the ATM service category for both directions of the connection. If this attribute is set to derivedFromBBC, the Broadband Bearer Capability (BBC) and bestEffort attributes are used to determine the atmServiceCategory of this connection. If this attribute is set to other than derivedFromBBC, the value of this attribute is used to override the provisioned BBC IE parameters. In those cases, the BBC attributes are not used. The constantBitRate service category is intended for real time applications, that is those requiring tightly constrained delay and delay variation, as would be appropriate for voice and video applications. The consistent availability of a fixed quantity of bandwidth is considered appropriate for CBR service. Cells which are delayed beyond the value specified by CellTransfer Delay are assumed to be of significantly reduce value to the application. The rtVariableBitRate service category is intended for real time applications, that is those requiring tightly constrained delay and delay variation, as would be appropriate for voice and video applications. Sources are expected to transmit at a rate which varies with time. Equivalently, the source can be described as 'bursty'. Cells which are delayed beyond the value specified by CTD are assumed to be of significantly reduced value to the application. VBR real time service may support statistical multiplexing of real time sources. The nrtVariableBitRate service category is intended for non-real time applications which have bursty traffic characteristics and which can be characterized in terms of a PCR, SCR, and MBS. For those cells which are transferred within the traffic contract, the application expects a low cell loss ratio. For all connections, it expects a bound on the mean cell transfer delay. VBR non-real time service may support statistical multiplexing of connections. The unspecifiedBitRate service is intended for non-real time applications; that is, those not requiring tightly constrained delay and delay variation. UBR sources are expected to be bursty. UBR service supports a high degree of statistical multiplexing among sources. UBR service does not specify traffic related service guarantees. No numerical commitments are made with respect to the cell loss ratio experienced by a UBR connection, or as to the cell transfer delay experienced by cells on the connection.") mscARtgPnniRfFwdQosClass = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("n0", 0), ("n1", 1), ("n2", 2), ("n3", 3), ("n4", 4))).clone('n0')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfFwdQosClass.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfFwdQosClass.setDescription('This attribute specifies the quality of service for the forward direction for this connection. Class 1 supports a QOS that will meet Service Class A performance requirements (Circuit emulation, constant bit rate video). Class 2 supports a QOS that will meet Service Class B performance requirements (Variable bit rate audio and video). Class 3 supports a QOS that will meet Service Class C performance requirements (Connection-Oriented Data Transfer). Class 4 supports a QOS that will meet Service Class D performance requirements (Connectionless Data Transfer). Class 0 is the unspecified bit rate QOS class; no objective is specified for the performance parameters.') mscARtgPnniRfBwdQosClass = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 15))).clone(namedValues=NamedValues(("n0", 0), ("n1", 1), ("n2", 2), ("n3", 3), ("n4", 4), ("sameAsFwd", 15))).clone('sameAsFwd')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfBwdQosClass.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBwdQosClass.setDescription('This attribute specifies the quality of service for the backward direction for this connection. Class 1 supports a QOS that will meet Service Class A performance requirements (Circuit emulation, constant bit rate video). Class 2 supports a QOS that will meet Service Class B performance requirements (Variable bit rate audio and video). Class 3 supports a QOS that will meet Service Class C performance requirements (Connection-Oriented Data Transfer). Class 4 supports a QOS that will meet Service Class D performance requirements (Connectionless Data Transfer). Class 0 is the unspecified bit rate QOS class; no objective is specified for the performance parameters. The sameAsFwd selection sets the backward quality of service to be the same as the forward quality of service.') mscARtgPnniRfBearerClassBbc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 16, 31))).clone(namedValues=NamedValues(("a", 1), ("c", 3), ("x", 16), ("derivedFromServiceCategory", 31))).clone('derivedFromServiceCategory')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfBearerClassBbc.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBearerClassBbc.setDescription('This attribute specifies the bearer capability. It is one of the Broadband Bearer Capability (BBC) attributes. The purpose of the BBC information element is to indicate a requested broadband connection-oriented bearer service to be provided by the network. The value derivedFromServiceCategory specifies that the actual value which is used for this connection is derived from the value of the atmServiceCategory. Either, this attribute must be set to derivedFromServiceCategory, or the atmServiceCategory attribute must be set to derivedFromBBC, but not both. Class a service is a connection-oriented, constant bit rate ATM transport service. Class a service has end to end timing requirements and may require stringent cell loss, cell delay and cell delay variation performance.When a is set, the user is requesting more than an ATM only service. The network may look at the AAL to provide interworking based upon its contents. Class c service is a connection-oriented, variable bit rate ATM transport service. Class c service has no end-to-end timing requirements. When c is set, the user is requesting more than an ATM only service. The network interworking function may look at the AAL and provide service based on it. Class x service is a connection-oriented ATM transport service where the AAL, trafficType (vbr or cbr) and timing requirements are user defined (that is, transparent to the network).When x is set the user is requesting an ATM only service from the network. In this case, the network shall not process any higher layer protocol.') mscARtgPnniRfTransferCapabilityBbc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 5, 8, 9, 10, 30, 31))).clone(namedValues=NamedValues(("n0", 0), ("n1", 1), ("n2", 2), ("n5", 5), ("n8", 8), ("n9", 9), ("n10", 10), ("notApplicable", 30), ("derivedFromServiceCategory", 31))).clone('derivedFromServiceCategory')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfTransferCapabilityBbc.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTransferCapabilityBbc.setDescription('This attribute specifies the transfer capability for this connection. Uni 3.0/3.1 traffic type and end-to-end timing parameters are mapped into this parameter as follows: <transferCapability : TrafficType, Timing> 0 : NoIndication, NoIndication 1 : NoIndication, yes 2 : NoIndication, no 5 : CBR, yes 8 : VBR, NoIndication 9 : VBR, yes 10: VBR, no NotApplicable specifies that the user does not want to specify the transfer capability. The CBR traffic type refers to traffic offered on services such as a constant bit rate video service or a circuit emulation. The VBR traffic type refers to traffic offered on services such as packetized audio and video, or data. The value NoIndication for traffic type is used if the user has not set the traffic type; this is also the case for end-to-end timing. The value yes for end-to-end timing indicates that end-to-end timing is required. The value no for end-to-end timing indicates that end-to-end timing is not required. The value derivedFromServiceCategory specifies that the actual value which is used for this connection is derived from the value of the atmServiceCategory. Either, this attribute must be set to derivedFromServiceCategory, or the atmServiceCategory attribute must be set to derivedFromBBC, but not both.') mscARtgPnniRfClippingBbc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1))).clone('no')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfClippingBbc.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfClippingBbc.setDescription('This attribute specifies the value for the clipping susceptibility parameter in the BBC IE. This attribute is only used for SPVC connections. It is one of the Broadband Bearer Capability attributes. Clipping is an impairment in which the first fraction of a second of information to be transferred is lost. It occurs after a call is answered and before an associated connection is switched through.') mscARtgPnniRfBestEffort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 15))).clone(namedValues=NamedValues(("indicated", 0), ("notIndicated", 1), ("derivedFromServiceCategory", 15))).clone('derivedFromServiceCategory')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfBestEffort.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBestEffort.setDescription('This attribute specifies the value of the best effort parameter in the ATM Traffic Descriptor IE. It is one of the Broadband Bearer Capability attributes. The value indicated implies that the quality of service for this connection is not guaranteed. The value notIndicated implies that the quality of service for this connection is guaranteed. The value derivedFromServiceCategory specifies that the actual value which is used for this connection is derived from the value of the atmServiceCategory. Either, this attribute must be set to derivedFromServiceCategory, or the atmServiceCategory attribute must be set to derivedFromBBC, but not both. DESCRIPTION') mscARtgPnniRfOptimizationMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 10, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("cdv", 0), ("maxCtd", 1), ("aw", 2))).clone('aw')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfOptimizationMetric.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfOptimizationMetric.setDescription('This attribute specifies the optimization metric to be used in the route computation; one of cell delay variation (cdv), maximum cell transfer delay (maxCtd), or administrative weight (aw).') mscARtgPnniRfRxTdpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 388), ) if mibBuilder.loadTexts: mscARtgPnniRfRxTdpTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRxTdpTable.setDescription('This attribute is a vector of four traffic parameters whose meanings are defined by the rxTrafficDescType attribute. The values of peak cell rate (PCR) and sustained cell rate (SCR) are expressed in cell/s. Maximum burst size (MBS) is expressed in cells. The value of CDVT is expressed in microseconds. The values of PCR, SCR, MBS and CDVT are used for usage parameter control (UPC). When rxTrafficDescType is 1 or 2, all of the parameters must be set to zero (unused). When rxTrafficDescType is 3, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic. Parameter 1 must be non-zero. Parameters 2 and 3 must be set to zero (unused). When rxTrafficDescType is 4, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the PCR for CLP equal to 0 traffic with cell discard. Parameters 1 and 2 must be non-zero. Parameter 3 must be set to zero (unused). Parameter 1 must be greater than or equal to parameter 2. When rxTrafficDescType is 5, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the PCR for CLP equal to 0 traffic with cell tagging. Parameters 1 and 2 must be non-zero. Parameter 3 must be set to zero (unused). Parameter 1 must be greater than or equal to parameter 2. When rxTrafficDescType is a 6, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 and 1 traffic; parameter 3 represents the MBS for CLP equal to 0 and 1 traffic. Parameters 1, 2 and 3 must be non- zero. Parameter 1 must be greater than or equal to Parameter 2. When rxTrafficDescType is 7, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 traffic with cell discard; parameter 3 represents the MBS for CLP equal to 0 traffic. Parameters 1, 2 and 3 must be non- zero. Parameter 1 must be greater than or equal to parameter 2. When rxTrafficDescType is 8, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 traffic with cell tagging; parameter 3 represents the MBS for CLP equal to 0 traffic. Parameter 1, 2 and 3 must be non- zero. Parameter 1 must be greater than or equal to parameter 2. When rxTrafficDescType is any value from 3 through 8, parameter 4 represents the CDVT. If this value is zero, the CDVT is taken from the ConnectionAdministrator defaults for the particular atmServiceCategory of this connection. When rxTrafficDescriptorType is 3 through 8, there are certain extreme combinations of rxTrafficDescParm which are outside the capabilities of the UPC hardware. To calculate the limits, use the following formulae: I1 = 1 000 000 000 / PCR L1 = CDVT * 1000 I2 = 1 000 000 000 / SCR L2 = CDVT + (MBS - 1) * (I2 - I1) I1 and I2 must be less than or equal to 335 523 840. I1 + L1 must be less than or equal to 1 342 156 800. I2 + L2 must be less than or equal to 1 342 156 800. Note that I2 and L2 only apply when the rxTrafficDescriptorType is 6 through 8. If the values of I1, L1, I2 or L2 are closer to the limits described above, a further restriction applies. Specifically, if either: I1 > 41 940 480 or I2 > 41 940 480 or I1 + L1 > 167 769 600 or I2 + L2 > 167 769 600 then both I1 and I2 must be greater than 20 480. Parameter 5 of the rxTrafficDescParm is always unused. If the rxTrafficDescType is sameAsTx, the values in this attribute will be taken from the txTrafficDescParm.') mscARtgPnniRfRxTdpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 388, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfRxTdpIndex")) if mibBuilder.loadTexts: mscARtgPnniRfRxTdpEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRxTdpEntry.setDescription('An entry in the mscARtgPnniRfRxTdpTable.') mscARtgPnniRfRxTdpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 388, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))) if mibBuilder.loadTexts: mscARtgPnniRfRxTdpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRxTdpIndex.setDescription('This variable represents the mscARtgPnniRfRxTdpTable specific index for the mscARtgPnniRfRxTdpTable.') mscARtgPnniRfRxTdpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 388, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfRxTdpValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfRxTdpValue.setDescription('This variable represents an individual value for the mscARtgPnniRfRxTdpTable.') mscARtgPnniRfTxTdpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 389), ) if mibBuilder.loadTexts: mscARtgPnniRfTxTdpTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTxTdpTable.setDescription('This attribute is a vector of five traffic parameters whose meanings are defined by the txTrafficDescType attribute. The values of peak cell rate (PCR), sustained cell rate (SCR) and requested shaping rate are expressed in cell/s. Maximum burst size (MBS) is expressed in cells. CDVT is expressed in microseconds. The values of PCR, SCR, MBS and CDVT are used for connection admission control (CAC). The value of CDVT is only used for connections where the atmServiceCategory is constantBitRate. For all other values of atmServiceCategory, CDVT is ignored. The values of PCR, SCR and requested shaping rate are used to determine the actual shaping rate where traffic shaping is enabled. When txTrafficDescType is 1 or 2, all of the parameters must be set to zero. When txTrafficDescType is 3, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameter 1 must be non-zero. Parameters 2 and 3 must be zero. When txTrafficDescType is 4, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic with cell discard; parameter 2 represents the PCR for CLP equal to 0 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameter 1 must be greater than or equal to parameter 2. Parameters 1 and 2 must be non-zero. Parameter 3 must be zero. When txTrafficDescType is 5, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic with cell tagging; parameter 2 represents the PCR for CLP equal to 0 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameter 1 must be greater than or equal to parameter 2. Parameters 1 and 2 must be non-zero. Parameter 3 must be zero. When txTrafficDescType is 6, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 and 1 traffic; parameter 3 represents the MBS for CLP equal to 0 and 1 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameters 1, 2 and 3 must be non-zero. Parameter 1 must be greater than or equal to parameter 2. Parameter 5, must either be zero (unused) or greater than or equal to parameter 2. When txTrafficDescType is 7, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 with cell discard; parameter 3 represents the MBS for CLP equal to 0 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameters 1, 2 and 3 must be non-zero. Parameter 1 must be greater than or equal to parameter 2. Parameter 5, must either be zero (unused) or greater than or equal to parameter 2. When txTrafficDescType is 8, parameter 1 represents the PCR for CLP equal to 0 and 1 traffic; parameter 2 represents the SCR for CLP equal to 0 traffic with cell tagging; parameter 3 represents the MBS for CLP equal to 0 traffic; parameter 4 represents the CDVT; and parameter 5 represents the requested shaping rate. A non-zero value in parameter 5 overrides any value in parameter 1. This result is used as the PCR. Parameters 1, 2 and 3 must be non-zero. Parameter 1 must be greater than or equal to parameter 2. Parameter 5, must either be zero (unused) or greater than or equal to parameter 2. Whenever it is valid for PCR to be specified, parameter 5 may also be used to specify a requested shaping rate. A non-zero value in parameter 5 overrides the value in parameter 1 and is used as the peak cell rate in calculations of CAC and shaping rate. For txTrafficDescType 3, 4 and 5, the transmit traffic will be shaped at the next rate less than the PCR. For txTrafficDescType 6, 7 and 8, the transmit traffic will be shaped at the highest available rate which is between PCR and SCR. However, if there is no available shaping rate between PCR and SCR, traffic will be shaped at the next rate above the PCR.') mscARtgPnniRfTxTdpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 389, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfTxTdpIndex")) if mibBuilder.loadTexts: mscARtgPnniRfTxTdpEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTxTdpEntry.setDescription('An entry in the mscARtgPnniRfTxTdpTable.') mscARtgPnniRfTxTdpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 389, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))) if mibBuilder.loadTexts: mscARtgPnniRfTxTdpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTxTdpIndex.setDescription('This variable represents the mscARtgPnniRfTxTdpTable specific index for the mscARtgPnniRfTxTdpTable.') mscARtgPnniRfTxTdpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 389, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfTxTdpValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfTxTdpValue.setDescription('This variable represents an individual value for the mscARtgPnniRfTxTdpTable.') mscARtgPnniRfFqpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 390), ) if mibBuilder.loadTexts: mscARtgPnniRfFqpTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfFqpTable.setDescription('This attribute is a vector of three elements that specify the quality of service parameters for the forward direction for this connection. This attribute is used for SPVC connections. The cdv element specifies the acceptable peak-to-peak Cell Delay Variation (CDV) of real-time connections (CBR, and rt-VBR). It is signalled through the extended QoS information element. The ctd specifies the acceptable maximum Cell Transfer Delay (maxCtd) of real-time connections (CBR, and rt-VBR). It is signalled through the end to end transit delay information element. The clr specifies the acceptable Cell Loss Ratio (CLR) of CBR, rt- VBR, and nrt-VBR connections. It is signalled through the extended QoS information element.') mscARtgPnniRfFqpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 390, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfFqpIndex")) if mibBuilder.loadTexts: mscARtgPnniRfFqpEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfFqpEntry.setDescription('An entry in the mscARtgPnniRfFqpTable.') mscARtgPnniRfFqpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 390, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("cdv", 0), ("ctd", 1), ("clr", 2)))) if mibBuilder.loadTexts: mscARtgPnniRfFqpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfFqpIndex.setDescription('This variable represents the mscARtgPnniRfFqpTable specific index for the mscARtgPnniRfFqpTable.') mscARtgPnniRfFqpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 390, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfFqpValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfFqpValue.setDescription('This variable represents an individual value for the mscARtgPnniRfFqpTable.') mscARtgPnniRfBqpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 393), ) if mibBuilder.loadTexts: mscARtgPnniRfBqpTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBqpTable.setDescription('This attribute is a vector of three elements that specify the quality of service parameters for the backward direction for this connection. This attribute is used for SPVC connections. The cdv element specifies the acceptable peak-to-peak Cell Delay Variation (CDV) of real-time connections (CBR, and rt-VBR). It is signalled through the extended QoS information element. The ctd specifies the acceptable maximum Cell Transfer Delay (maxCtd) of real-time connections (CBR, and rt-VBR). It is signalled through the end to end transit delay information element. The clr specifies the acceptable Cell Loss Ratio (CLR) of CBR, rt- VBR, and nrt-VBR connections. It is signalled through the extended QoS information element.') mscARtgPnniRfBqpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 393, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniRfBqpIndex")) if mibBuilder.loadTexts: mscARtgPnniRfBqpEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBqpEntry.setDescription('An entry in the mscARtgPnniRfBqpTable.') mscARtgPnniRfBqpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 393, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("cdv", 0), ("ctd", 1), ("clr", 2)))) if mibBuilder.loadTexts: mscARtgPnniRfBqpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBqpIndex.setDescription('This variable represents the mscARtgPnniRfBqpTable specific index for the mscARtgPnniRfBqpTable.') mscARtgPnniRfBqpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 2, 393, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniRfBqpValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniRfBqpValue.setDescription('This variable represents an individual value for the mscARtgPnniRfBqpTable.') mscARtgPnniCfgNode = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3)) mscARtgPnniCfgNodeRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtgPnniCfgNode components.') mscARtgPnniCfgNodeRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniCfgNode component.') mscARtgPnniCfgNodeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniCfgNode components. These components can be added and deleted.') mscARtgPnniCfgNodeComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniCfgNodeStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniCfgNode tables.') mscARtgPnniCfgNodeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 104))) if mibBuilder.loadTexts: mscARtgPnniCfgNodeIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeIndex.setDescription('This variable represents the index for the mscARtgPnniCfgNode tables.') mscARtgPnniCfgNodeProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 10), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeProvTable.setDescription('This group contains the provisionable attributes of a ConfiguredNode component.') mscARtgPnniCfgNodeProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeProvEntry.setDescription('An entry in the mscARtgPnniCfgNodeProvTable.') mscARtgPnniCfgNodeNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 10, 1, 2), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNodeId.setDescription('This attribute specifies the node id of the configured node. If this attribute is set to null, then the node id is computed as follows: If this is the lowest configured node, then the node id is computed as the level (one octet), followed by the integer value 160 (one octet), followed by the node address (20 octets). If this is not the lowest configured node, then the node id is computed as the level (one octet), followed by the 14 octet peer group id of the child peer group which the LGN represents, followed by the ESI specified in the node address (6 octets), followed by the integer value 0 (one octet).') mscARtgPnniCfgNodePeerGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 14))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniCfgNodePeerGroupId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodePeerGroupId.setDescription("This attribute allows the peer group id of the Logical Group Node (LGN) to be set. The peer group id is specified by 28 hex digits where the first octet represents the level of the node and the remaining 13 octets form the End System Address. If this attribute is set to the null string then the peer group id is computed as follows: The peer group id for a lowest level node is computed to be the node's level (one octet), followed by the first <level> bits of the node's address, followed by zero or more padding 0 bits. The peer group id for an LGN is computed to be the LGN's level (one octet), followed by the first <level> bits of the id of the peer group which this LGN represents.") mscARtgPnniCfgNodeOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeOperTable.setDescription('This group contains the generic operational attributes of a ConfiguredNode component.') mscARtgPnniCfgNodeOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeOperEntry.setDescription('An entry in the mscARtgPnniCfgNodeOperTable.') mscARtgPnniCfgNodeNodeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNodeAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNodeAddress.setDescription('This attribute indicates the address of the node at this level. At the lowest level, the nodeAddress is determined by the value of the nodeAddressPrefix attribute for the ARtg Pnni component followed by the level of this CfgNode. For LGNs, the nodeAddress is the same as the nodeAddress of the node at the lowest level, with the selector field set to the level of the peer group containing the LGN.') mscARtgPnniCfgNodeOpNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 2), HexString().subtype(subtypeSpec=ValueSizeConstraint(22, 22)).setFixedLength(22)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeOpNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeOpNodeId.setDescription('This attribute indicates the node id of the node at this level. The default node id is computed as follows: If this is the lowest level node, then the default node id is computed as the level (one octet), followed by the integer value 160 (one octet), followed by the node address (20 octets). If this is not the lowest level node, then the default node id is computed as the level (one octet), followed by the 14 octet peer group id of the child peer group which the LGN represents, followed by the ESI specified in the node address (6 octets), followed by the integer value 0 (one octet).') mscARtgPnniCfgNodeOpPeerGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(14, 14)).setFixedLength(14)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeOpPeerGroupId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeOpPeerGroupId.setDescription('This attribute indicates the peer group id of the node at this level. The value is determined by the provisioned peerGroupId attribute.') mscARtgPnniCfgNodeNumNeighbors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNumNeighbors.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNumNeighbors.setDescription('This attribute indicates the number of PNNI nodes which are neighbors of this node at this level.') mscARtgPnniCfgNodeNumRccs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNumRccs.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNumRccs.setDescription("This attribute indicates the number of Routing Control Channels to this node's neighbors at this level.") mscARtgPnniCfgNodeCurrentLeadershipPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 205))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeCurrentLeadershipPriority.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeCurrentLeadershipPriority.setDescription('This attribute indicates the leadership priority of the node that this node believes should be the peer group leader at this point in time.') mscARtgPnniCfgNodePglElectionState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 11, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("starting", 0), ("awaiting", 1), ("awaitingFull", 2), ("initialDelay", 3), ("calculating", 4), ("operNotPgl", 5), ("operPgl", 6), ("awaitUnanimity", 7), ("hungElection", 8), ("awaitReElection", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodePglElectionState.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodePglElectionState.setDescription('This attribute indicates the current state of the peer group leader election process. The following are the possible values for this attribute: starting: the initial state of the state machine. awaiting: the node has started the Hello Finite State Machine on at least one link, and no peer has been found yet. awaitingFull: no database synchronization process has been completed yet but at least one neighboring peer has been found. initialDelay: Database synchronization has been completed with at least one neighboring peer. The node must wait pglInitTime second before it can select and advertise its preferred Peer Group Leader (PGL). calculating: the node is in the process of calculating what its new choice for preferred PGL will be. operNotPgl: a non PGL node is in the process of determining which node has the highest priority to be PGL by examining PTSEs sent by other nodes. operPgl: a PGL node is in the process of determining if another node has a higher priority than itself by examining PTSEs sent by other nodes. awaitUnanimity: the node has chosen itself as PGL. If the node has been elected unanimously, it generates a Unanimity event. It waits for unanimity or expiration of the overrideDelay timer before declaring itself peer group leader. hungElection: the node has chosen itself as PGL with less than 2/3 of the other nodes advertising it as their preferred PGL. In this case either this node should change its choice of preferred PGL, or the other nodes are going to accept it as PGL. awaitReElection: the node has lost connectivity to the current PGL. The connectivity must be reestablished before the reElectionInterval timer fires, otherwise the election is redone.') mscARtgPnniCfgNodeSAddr = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2)) mscARtgPnniCfgNodeSAddrRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtgPnniCfgNodeSAddr components.') mscARtgPnniCfgNodeSAddrRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrAddressIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrPrefixLengthIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrReachabilityIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniCfgNodeSAddr component.') mscARtgPnniCfgNodeSAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniCfgNodeSAddr components. These components can be added and deleted.') mscARtgPnniCfgNodeSAddrComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniCfgNodeSAddrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniCfgNodeSAddr tables.') mscARtgPnniCfgNodeSAddrAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 10), HexString().subtype(subtypeSpec=ValueSizeConstraint(19, 19)).setFixedLength(19)) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrAddressIndex.setDescription('This variable represents an index for the mscARtgPnniCfgNodeSAddr tables.') mscARtgPnniCfgNodeSAddrPrefixLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 152))) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrPrefixLengthIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrPrefixLengthIndex.setDescription('This variable represents an index for the mscARtgPnniCfgNodeSAddr tables.') mscARtgPnniCfgNodeSAddrReachabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("internal", 0), ("exterior", 1)))) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrReachabilityIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrReachabilityIndex.setDescription('This variable represents an index for the mscARtgPnniCfgNodeSAddr tables.') mscARtgPnniCfgNodeSAddrProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 10), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrProvTable.setDescription('This group contains the provisionable attributes of a SummaryAddress component. A summary address is an abbreviation of a set of addresses, represented by an address prefix that all of the summarized addresses have in common. A suppressed summary address is used to suppress the advertisement of addresses which match this prefix, regardless of scope.') mscARtgPnniCfgNodeSAddrProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrAddressIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrPrefixLengthIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrReachabilityIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrProvEntry.setDescription('An entry in the mscARtgPnniCfgNodeSAddrProvTable.') mscARtgPnniCfgNodeSAddrSuppress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrSuppress.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrSuppress.setDescription('This attribute specifies whether or not the address should be suppressed. If this attribute is set to true, then all addresses matching that prefix will not be advertised above this level.') mscARtgPnniCfgNodeSAddrOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 11), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrOperTable.setDescription('This group contains the operational attributes of a SummaryAddress component.') mscARtgPnniCfgNodeSAddrOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrAddressIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrPrefixLengthIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeSAddrReachabilityIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrOperEntry.setDescription('An entry in the mscARtgPnniCfgNodeSAddrOperTable.') mscARtgPnniCfgNodeSAddrState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("advertising", 0), ("suppressing", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrState.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrState.setDescription('This attribute indicates the state of the address: one of advertising, suppressing or inactive. inactive: the summary address has been configured but is not suppressing or summarizing any ATM addresses. suppressing: the summary address has suppressed at least one ATM address on the node. advertising: the summary address is summarizing at least one ATM address on the node.') mscARtgPnniCfgNodeSAddrScope = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrScope.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeSAddrScope.setDescription('This attribute indicates the scope of the summary address. The scope corresponds to the scope of the underlying summarized address with the highest advertised scope. A value of -1 means the scope is unknown.') mscARtgPnniCfgNodeNbr = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3)) mscARtgPnniCfgNodeNbrRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniCfgNodeNbr components.') mscARtgPnniCfgNodeNbrRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeNbrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniCfgNodeNbr component.') mscARtgPnniCfgNodeNbrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniCfgNodeNbr components. These components cannot be added nor deleted.') mscARtgPnniCfgNodeNbrComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniCfgNodeNbrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniCfgNodeNbr tables.') mscARtgPnniCfgNodeNbrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 1, 1, 10), HexString().subtype(subtypeSpec=ValueSizeConstraint(22, 22)).setFixedLength(22)) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrIndex.setDescription('This variable represents the index for the mscARtgPnniCfgNodeNbr tables.') mscARtgPnniCfgNodeNbrOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 10), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the operational attributes of a Neighbor component.') mscARtgPnniCfgNodeNbrOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeNbrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrOperEntry.setDescription('An entry in the mscARtgPnniCfgNodeNbrOperTable.') mscARtgPnniCfgNodeNbrPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("npDown", 0), ("negotiating", 1), ("exchanging", 2), ("loading", 3), ("full", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPeerState.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPeerState.setDescription('This attribute indicates the state of the routing database exchange with the peer node. npDown: there are no active links (i.e. in the twoWayInside Hello state) to the neighboring peer. negotiating: the first step in creating an adjacency between the two neighboring peers; this step determines which node is the master, and what the initial DS sequence number will be. exchanging: the node describes its topology database by sending Database Summary packets to the neighboring peer. loading: a full sequence of Database Summary packets has been exchanged with the neighboring peer, and the required PTSEs are requested and at least one has not yet been received. full: All PTSEs known to be available have been received from the neighboring peer. At this point the all ports leading to the neighbor node will be flooded in PTSEs within the peer group.') mscARtgPnniCfgNodeNbrStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStatsTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the statistical operational attributes of a Neighbor component.') mscARtgPnniCfgNodeNbrStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeNbrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrStatsEntry.setDescription('An entry in the mscARtgPnniCfgNodeNbrStatsTable.') mscARtgPnniCfgNodeNbrPtspRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtspRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtspRx.setDescription('This attribute counts the PNNI Topology State Packets received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtspTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtspTx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtspTx.setDescription('This attribute counts the total number of PTSPs send to the neighbor node.The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseRx.setDescription('This attribute counts the total number of PTSEs received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseTx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseTx.setDescription('This attribute counts the total number of PTSEs sent to the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseReqRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseReqRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseReqRx.setDescription('This attribute counts the total number of PTSE requests received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseReqTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseReqTx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseReqTx.setDescription('This attribute counts the total number of PTSE requests sent to the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseAcksRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseAcksRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseAcksRx.setDescription('This attribute counts the total number of PTSE acknowledgments received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrPtseAcksTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseAcksTx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrPtseAcksTx.setDescription('This attribute counts the total number of PTSE acknowledgments sent to the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrDbSummariesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrDbSummariesRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrDbSummariesRx.setDescription('This attribute counts the number of database summary packets received from the neighbor. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrDbSummariesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrDbSummariesTx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrDbSummariesTx.setDescription('This attribute counts the number of database summary packets transmitted to the neighbor. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrBadPtspRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtspRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtspRx.setDescription('This attribute counts the total number of invalid PTSP packets received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrBadPtseRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseRx.setDescription('This attribute counts the total number of invalid PTSE packets received to the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrBadPtseReqRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseReqRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseReqRx.setDescription('This attribute counts the total number of invalid PTSE requests received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrBadPtseAckRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseAckRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadPtseAckRx.setDescription('This attribute counts the total number of invalid PTSE acknowledgments received from the neighbor node. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrBadDbSummariesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 11, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadDbSummariesRx.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrBadDbSummariesRx.setDescription('This attribute counts the total number of invalid database summary packets received from the neighbor. The counter wraps when it exceeds the maximum value.') mscARtgPnniCfgNodeNbrRccListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 385), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This attribute indicates the component names of all Routing Control Channels to the neighbor PNNI node.') mscARtgPnniCfgNodeNbrRccListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 385, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeNbrIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeNbrRccListValue")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListEntry.setDescription('An entry in the mscARtgPnniCfgNodeNbrRccListTable.') mscARtgPnniCfgNodeNbrRccListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 3, 385, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListValue.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeNbrRccListValue.setDescription('This variable represents both the value and the index for the mscARtgPnniCfgNodeNbrRccListTable.') mscARtgPnniCfgNodeDefSAddr = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4)) mscARtgPnniCfgNodeDefSAddrRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatusTable.setDescription('This entry controls the addition and deletion of mscARtgPnniCfgNodeDefSAddr components.') mscARtgPnniCfgNodeDefSAddrRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeDefSAddrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniCfgNodeDefSAddr component.') mscARtgPnniCfgNodeDefSAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniCfgNodeDefSAddr components. These components cannot be added nor deleted.') mscARtgPnniCfgNodeDefSAddrComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniCfgNodeDefSAddrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniCfgNodeDefSAddr tables.') mscARtgPnniCfgNodeDefSAddrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrIndex.setDescription('This variable represents the index for the mscARtgPnniCfgNodeDefSAddr tables.') mscARtgPnniCfgNodeDefSAddrDefAddrTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 10), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrDefAddrTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrDefAddrTable.setDescription('This group contains the operational attributes of a DefSummaryAddress component.') mscARtgPnniCfgNodeDefSAddrDefAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeDefSAddrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrDefAddrEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrDefAddrEntry.setDescription('An entry in the mscARtgPnniCfgNodeDefSAddrDefAddrTable.') mscARtgPnniCfgNodeDefSAddrAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(13, 13)).setFixedLength(13)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrAddress.setDescription('This attribute indicates the default summary address of the node at this level.') mscARtgPnniCfgNodeDefSAddrOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 11), ) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrOperTable.setDescription('This group contains the operational attributes of a SummaryAddress component.') mscARtgPnniCfgNodeDefSAddrOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniCfgNodeDefSAddrIndex")) if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrOperEntry.setDescription('An entry in the mscARtgPnniCfgNodeDefSAddrOperTable.') mscARtgPnniCfgNodeDefSAddrState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("advertising", 0), ("suppressing", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrState.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrState.setDescription('This attribute indicates the state of the address: one of advertising, suppressing or inactive. inactive: the summary address has been configured but is not suppressing or summarizing any ATM addresses. suppressing: the summary address has suppressed at least one ATM address on the node. advertising: the summary address is summarizing at least one ATM address on the node.') mscARtgPnniCfgNodeDefSAddrScope = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 3, 4, 11, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrScope.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniCfgNodeDefSAddrScope.setDescription('This attribute indicates the scope of the summary address. The scope corresponds to the scope of the underlying summarized address with the highest advertised scope. A value of -1 means the scope is unknown.') mscARtgPnniTop = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4)) mscARtgPnniTopRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1), ) if mibBuilder.loadTexts: mscARtgPnniTopRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniTop components.') mscARtgPnniTopRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex")) if mibBuilder.loadTexts: mscARtgPnniTopRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniTop component.') mscARtgPnniTopRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniTop components. These components cannot be added nor deleted.') mscARtgPnniTopComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniTopStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniTop tables.') mscARtgPnniTopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 104))) if mibBuilder.loadTexts: mscARtgPnniTopIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopIndex.setDescription('This variable represents the index for the mscARtgPnniTop tables.') mscARtgPnniTopOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10), ) if mibBuilder.loadTexts: mscARtgPnniTopOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the operational attributes of a Topology component.') mscARtgPnniTopOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex")) if mibBuilder.loadTexts: mscARtgPnniTopOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopOperEntry.setDescription('An entry in the mscARtgPnniTopOperTable.') mscARtgPnniTopPtsesInDatabase = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopPtsesInDatabase.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopPtsesInDatabase.setDescription("This attribute indicates the number of PTSEs in storage in this node's topology database for this level.") mscARtgPnniTopPglNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10, 1, 2), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopPglNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopPglNodeId.setDescription('This attribute indicates the node id of the peer group leader. If this attribute is empty, it indicates the Peer Group Level node id is unknown.') mscARtgPnniTopActiveParentNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopActiveParentNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopActiveParentNodeId.setDescription('This attribute indicates the node identifier being used by the LGN representing this peer group at the next higher level peer group.') mscARtgPnniTopPreferredPglNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 10, 1, 4), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopPreferredPglNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopPreferredPglNodeId.setDescription('This attribute represents the node in database with the highest Peer Group Level (PGL) priority. If this attribute is empty, it indicates the preferred PGL node id is unknown.') mscARtgPnniTopNode = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2)) mscARtgPnniTopNodeRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1), ) if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniTopNode components.') mscARtgPnniTopNodeRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeIndex")) if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniTopNode component.') mscARtgPnniTopNodeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniTopNode components. These components cannot be added nor deleted.') mscARtgPnniTopNodeComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniTopNodeStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniTopNode tables.') mscARtgPnniTopNodeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 1, 1, 10), HexString().subtype(subtypeSpec=ValueSizeConstraint(22, 22)).setFixedLength(22)) if mibBuilder.loadTexts: mscARtgPnniTopNodeIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeIndex.setDescription('This variable represents the index for the mscARtgPnniTopNode tables.') mscARtgPnniTopNodeAddr = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2)) mscARtgPnniTopNodeAddrRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1), ) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniTopNodeAddr components.') mscARtgPnniTopNodeAddrRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrAddressIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrPrefixLengthIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrReachabilityIndex")) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniTopNodeAddr component.') mscARtgPnniTopNodeAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniTopNodeAddr components. These components cannot be added nor deleted.') mscARtgPnniTopNodeAddrComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniTopNodeAddrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniTopNodeAddr tables.') mscARtgPnniTopNodeAddrAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 10), HexString().subtype(subtypeSpec=ValueSizeConstraint(19, 19)).setFixedLength(19)) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrAddressIndex.setDescription('This variable represents an index for the mscARtgPnniTopNodeAddr tables.') mscARtgPnniTopNodeAddrPrefixLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 152))) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrPrefixLengthIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrPrefixLengthIndex.setDescription('This variable represents an index for the mscARtgPnniTopNodeAddr tables.') mscARtgPnniTopNodeAddrReachabilityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("internal", 0), ("exterior", 1)))) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrReachabilityIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrReachabilityIndex.setDescription('This variable represents an index for the mscARtgPnniTopNodeAddr tables.') mscARtgPnniTopNodeAddrOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 10), ) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This attribute group contains the operational attributes for the Address component.') mscARtgPnniTopNodeAddrOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrAddressIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrPrefixLengthIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeAddrReachabilityIndex")) if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrOperEntry.setDescription('An entry in the mscARtgPnniTopNodeAddrOperTable.') mscARtgPnniTopNodeAddrScope = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 104))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrScope.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeAddrScope.setDescription('This attribute specifies the scope of the ATM address, which is the highest level to which this address will be advertised in the PNNI hierarchy.') mscARtgPnniTopNodeLink = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3)) mscARtgPnniTopNodeLinkRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1), ) if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniTopNodeLink components.') mscARtgPnniTopNodeLinkRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeLinkIndex")) if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniTopNodeLink component.') mscARtgPnniTopNodeLinkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniTopNodeLink components. These components cannot be added nor deleted.') mscARtgPnniTopNodeLinkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniTopNodeLinkStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniTopNodeLink tables.') mscARtgPnniTopNodeLinkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 268435455))) if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkIndex.setDescription('This variable represents the index for the mscARtgPnniTopNodeLink tables.') mscARtgPnniTopNodeLinkOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 10), ) if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the operational attributes of a Link component.') mscARtgPnniTopNodeLinkOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniTopNodeLinkIndex")) if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkOperEntry.setDescription('An entry in the mscARtgPnniTopNodeLinkOperTable.') mscARtgPnniTopNodeLinkRemoteNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(22, 22)).setFixedLength(22)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRemoteNodeId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRemoteNodeId.setDescription('This attribute indicates the id of the node at the far end of this link.') mscARtgPnniTopNodeLinkRemotePortId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 4, 2, 3, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRemotePortId.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniTopNodeLinkRemotePortId.setDescription("This attribute indicates the node's port id at the far end of this link.") mscARtgPnniPort = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5)) mscARtgPnniPortRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1), ) if mibBuilder.loadTexts: mscARtgPnniPortRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscARtgPnniPort components.') mscARtgPnniPortRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniPortIndex")) if mibBuilder.loadTexts: mscARtgPnniPortRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortRowStatusEntry.setDescription('A single entry in the table represents a single mscARtgPnniPort component.') mscARtgPnniPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniPortRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscARtgPnniPort components. These components cannot be added nor deleted.') mscARtgPnniPortComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniPortComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscARtgPnniPortStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniPortStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortStorageType.setDescription('This variable represents the storage type value for the mscARtgPnniPort tables.') mscARtgPnniPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 268435455))) if mibBuilder.loadTexts: mscARtgPnniPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortIndex.setDescription('This variable represents the index for the mscARtgPnniPort tables.') mscARtgPnniPortOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 10), ) if mibBuilder.loadTexts: mscARtgPnniPortOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortOperTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the operational attributes of a Port component.') mscARtgPnniPortOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscARtgPnniPortIndex")) if mibBuilder.loadTexts: mscARtgPnniPortOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortOperEntry.setDescription('An entry in the mscARtgPnniPortOperTable.') mscARtgPnniPortStdComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 95, 3, 5, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscARtgPnniPortStdComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscARtgPnniPortStdComponentName.setDescription('This attribute indicates the component name of the port.') mscAtmCR = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113)) mscAtmCRRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1), ) if mibBuilder.loadTexts: mscAtmCRRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmCR components.') mscAtmCRRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRIndex")) if mibBuilder.loadTexts: mscAtmCRRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmCR component.') mscAtmCRRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmCRRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmCR components. These components can be added and deleted.') mscAtmCRComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmCRStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRStorageType.setDescription('This variable represents the storage type value for the mscAtmCR tables.') mscAtmCRIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmCRIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRIndex.setDescription('This variable represents the index for the mscAtmCR tables.') mscAtmCRProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 10), ) if mibBuilder.loadTexts: mscAtmCRProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRProvTable.setDescription('This group represents the provisioned attributes for the AtmCallRouter component.') mscAtmCRProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRIndex")) if mibBuilder.loadTexts: mscAtmCRProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRProvEntry.setDescription('An entry in the mscAtmCRProvTable.') mscAtmCRNodeAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(26, 26)).setFixedLength(26)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmCRNodeAddress.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRNodeAddress.setDescription('This attribute specifies the NSAP address prefix used for ILMI purposes.') mscAtmCRStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 11), ) if mibBuilder.loadTexts: mscAtmCRStatsTable.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRStatsTable.setDescription('This group represents the operational attributes for the AtmCallRouter component.') mscAtmCRStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRIndex")) if mibBuilder.loadTexts: mscAtmCRStatsEntry.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRStatsEntry.setDescription('An entry in the mscAtmCRStatsTable.') mscAtmCRCallsRouted = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRCallsRouted.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRCallsRouted.setDescription('This attribute counts the total number of calls routed.') mscAtmCRCallsFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRCallsFailed.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRCallsFailed.setDescription('This attribute specifies the number of calls that failed to route.') mscAtmCRDna = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2)) mscAtmCRDnaRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1), ) if mibBuilder.loadTexts: mscAtmCRDnaRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of mscAtmCRDna components.') mscAtmCRDnaRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRDnaIndex")) if mibBuilder.loadTexts: mscAtmCRDnaRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmCRDna component.') mscAtmCRDnaRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRDnaRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmCRDna components. These components cannot be added nor deleted.') mscAtmCRDnaComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRDnaComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmCRDnaStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRDnaStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaStorageType.setDescription('This variable represents the storage type value for the mscAtmCRDna tables.') mscAtmCRDnaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 40))) if mibBuilder.loadTexts: mscAtmCRDnaIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmCRDnaIndex.setDescription('This variable represents the index for the mscAtmCRDna tables.') mscAtmCRDnaDestinationNameTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 289), ) if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameTable.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This attribute indicates which components have this address provisioned or dynamically registered via ILMI.') mscAtmCRDnaDestinationNameEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 289, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRDnaIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmCRDnaDestinationNameValue")) if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameEntry.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameEntry.setDescription('An entry in the mscAtmCRDnaDestinationNameTable.') mscAtmCRDnaDestinationNameValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 113, 2, 289, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameValue.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmCRDnaDestinationNameValue.setDescription('This variable represents both the value and the index for the mscAtmCRDnaDestinationNameTable.') mscAtmIfVpcSrc = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6)) mscAtmIfVpcSrcRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1), ) if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVpcSrc components.') mscAtmIfVpcSrcRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVpcSrc component.') mscAtmIfVpcSrcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVpcSrc components. These components can be added and deleted.') mscAtmIfVpcSrcComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVpcSrcStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVpcSrc tables.') mscAtmIfVpcSrcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVpcSrcIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcIndex.setDescription('This variable represents the index for the mscAtmIfVpcSrc tables.') mscAtmIfVpcSrcProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 10), ) if mibBuilder.loadTexts: mscAtmIfVpcSrcProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcProvTable.setDescription('This attribute group contains the provisionable attributes of the AtmIf/n Vpc/vpi SrcPvp component.') mscAtmIfVpcSrcProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVpcSrcProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcProvEntry.setDescription('An entry in the mscAtmIfVpcSrcProvTable.') mscAtmIfVpcSrcCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 20)).clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVpcSrcCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcCallingAddress.setDescription('This attribute specifies the calling address of the soft PVP. If it is a null string, then the calling address is the address of the current interface (that is, where the soft PVC originates).') mscAtmIfVpcSrcCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 10, 1, 2), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVpcSrcCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcCalledAddress.setDescription('This attribute specifies the called (remote) address of the soft PVP.') mscAtmIfVpcSrcCalledVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVpcSrcCalledVpi.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcCalledVpi.setDescription('This attribute specifies the called VPI of the soft PVP.') mscAtmIfVpcSrcOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11), ) if mibBuilder.loadTexts: mscAtmIfVpcSrcOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcOperTable.setDescription('This attribute group contains the operational attributes associated with the SrcPvp or SrcPvc component.') mscAtmIfVpcSrcOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVpcSrcOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcOperEntry.setDescription('An entry in the mscAtmIfVpcSrcOperTable.') mscAtmIfVpcSrcState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("active", 0), ("inactive", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcState.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcState.setDescription('This attribute indicates the state of the soft PVP or soft PVC.') mscAtmIfVpcSrcRetryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcRetryCount.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcRetryCount.setDescription('This attribute indicates the number of failed attempts to set up the soft PVP or soft PVC since the last time the connection failed.') mscAtmIfVpcSrcLastFailureCauseCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcLastFailureCauseCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcLastFailureCauseCode.setDescription('This attribute contains the cause code in the last transmitted signalling message that contains the CAUSE information element. The cause code is used to describe the reason for generating certain signalling messages. The default value for this attribute is set to 0.') mscAtmIfVpcSrcLastFailureDiagCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 6, 11, 1, 4), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcSrcLastFailureDiagCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcSrcLastFailureDiagCode.setDescription('This attribute contains the diagnostic code in the last transmitted signalling message. The diagnostic code is contained in the CAUSE information element and identifies an information element type or timer type. The diagnostic code is present only if a procedural error is detected by the signalling protocol. A diagnostic code is always accompanied by the cause code. If there is no failure, this attribute is set to NULL.') mscAtmIfVpcRp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7)) mscAtmIfVpcRpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1), ) if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVpcRp components.') mscAtmIfVpcRpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcRpIndex")) if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVpcRp component.') mscAtmIfVpcRpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVpcRp components. These components cannot be added nor deleted.') mscAtmIfVpcRpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcRpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVpcRpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcRpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVpcRp tables.') mscAtmIfVpcRpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVpcRpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpIndex.setDescription('This variable represents the index for the mscAtmIfVpcRp tables.') mscAtmIfVpcRpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 10), ) if mibBuilder.loadTexts: mscAtmIfVpcRpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpOperTable.setDescription('This attribute group contains the operational attributes for the AtmRelayPoint component.') mscAtmIfVpcRpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcRpIndex")) if mibBuilder.loadTexts: mscAtmIfVpcRpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpOperEntry.setDescription('An entry in the mscAtmIfVpcRpOperTable.') mscAtmIfVpcRpNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcRpNextHop.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVpcRpNextHop.setDescription('This attribute indicates the component name of the Rp component with which this Rp component is associated.') mscAtmIfVpcRpNextHopsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 430), ) if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsTable.setDescription('This attribute indicates the component name(s) of the Rp component(s) with which this Rp component is associated. This attribute can have more than one component name only when the Vcc distributionType is pointToMultipoint and the callDirection is fromLink.') mscAtmIfVpcRpNextHopsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 430, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcRpIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcRpNextHopsValue")) if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsEntry.setDescription('An entry in the mscAtmIfVpcRpNextHopsTable.') mscAtmIfVpcRpNextHopsValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 7, 430, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsValue.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcRpNextHopsValue.setDescription('This variable represents both the value and the index for the mscAtmIfVpcRpNextHopsTable.') mscAtmIfVpcDst = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8)) mscAtmIfVpcDstRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1), ) if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVpcDst components.') mscAtmIfVpcDstRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcDstIndex")) if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVpcDst component.') mscAtmIfVpcDstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVpcDst components. These components cannot be added nor deleted.') mscAtmIfVpcDstComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVpcDstStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVpcDst tables.') mscAtmIfVpcDstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVpcDstIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstIndex.setDescription('This variable represents the index for the mscAtmIfVpcDst tables.') mscAtmIfVpcDstOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 10), ) if mibBuilder.loadTexts: mscAtmIfVpcDstOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstOperTable.setDescription('This attribute group contains the operational attributes for the AtmIf/n Vpc/vpi DstPvp component.') mscAtmIfVpcDstOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVpcIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVpcDstIndex")) if mibBuilder.loadTexts: mscAtmIfVpcDstOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstOperEntry.setDescription('An entry in the mscAtmIfVpcDstOperTable.') mscAtmIfVpcDstCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstCalledAddress.setDescription('This attribute indicates the called address of the soft PVP.') mscAtmIfVpcDstCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 10, 1, 2), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(7, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstCallingAddress.setDescription('This attribute indicates the calling (remote) address of the soft PVP. If the address in not known, then the value of this address is Unknown.') mscAtmIfVpcDstCallingVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 4, 8, 10, 1, 3), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVpcDstCallingVpi.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVpcDstCallingVpi.setDescription('This attribute represents the calling (remote) VPI of the soft PVP. If the VPI value is not known, the attribute value is set to Unknown.') mscAtmIfVccSrc = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8)) mscAtmIfVccSrcRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1), ) if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVccSrc components.') mscAtmIfVccSrcRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVccSrc component.') mscAtmIfVccSrcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVccSrc components. These components can be added and deleted.') mscAtmIfVccSrcComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVccSrcStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVccSrc tables.') mscAtmIfVccSrcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVccSrcIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcIndex.setDescription('This variable represents the index for the mscAtmIfVccSrc tables.') mscAtmIfVccSrcProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10), ) if mibBuilder.loadTexts: mscAtmIfVccSrcProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcProvTable.setDescription('This attribute group contains the provisionable attributes of the SourcePvc component.') mscAtmIfVccSrcProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVccSrcProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcProvEntry.setDescription('An entry in the mscAtmIfVccSrcProvTable.') mscAtmIfVccSrcRemoteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcRemoteAddress.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVccSrcRemoteAddress.setDescription('This attribute represents the remote address of the soft PVC.') mscAtmIfVccSrcRemoteVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1, 2), IntegerSequence().subtype(subtypeSpec=ValueSizeConstraint(3, 9))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcRemoteVpiVci.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVccSrcRemoteVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC.') mscAtmIfVccSrcCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 20)).clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcCallingAddress.setDescription('This attribute represents the calling address of the soft PVC. If it is a null string, then the calling address is the address of the current interface (that is, where the soft PVC originates).') mscAtmIfVccSrcCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1, 4), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcCalledAddress.setDescription('This attribute represents the called (remote) address of the soft PVC.') mscAtmIfVccSrcCalledVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 10, 1, 5), IntegerSequence().subtype(subtypeSpec=ValueSizeConstraint(3, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVccSrcCalledVpiVci.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcCalledVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC.') mscAtmIfVccSrcOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11), ) if mibBuilder.loadTexts: mscAtmIfVccSrcOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcOperTable.setDescription('This attribute group contains the operational attributes associated with the SrcPvp or SrcPvc component.') mscAtmIfVccSrcOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVccSrcOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcOperEntry.setDescription('An entry in the mscAtmIfVccSrcOperTable.') mscAtmIfVccSrcState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("active", 0), ("inactive", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcState.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcState.setDescription('This attribute indicates the state of the soft PVP or soft PVC.') mscAtmIfVccSrcRetryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcRetryCount.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcRetryCount.setDescription('This attribute indicates the number of failed attempts to set up the soft PVP or soft PVC since the last time the connection failed.') mscAtmIfVccSrcLastFailureCauseCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcLastFailureCauseCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcLastFailureCauseCode.setDescription('This attribute contains the cause code in the last transmitted signalling message that contains the CAUSE information element. The cause code is used to describe the reason for generating certain signalling messages. The default value for this attribute is set to 0.') mscAtmIfVccSrcLastFailureDiagCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 8, 11, 1, 4), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccSrcLastFailureDiagCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccSrcLastFailureDiagCode.setDescription('This attribute contains the diagnostic code in the last transmitted signalling message. The diagnostic code is contained in the CAUSE information element and identifies an information element type or timer type. The diagnostic code is present only if a procedural error is detected by the signalling protocol. A diagnostic code is always accompanied by the cause code. If there is no failure, this attribute is set to NULL.') mscAtmIfVccEp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9)) mscAtmIfVccEpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1), ) if mibBuilder.loadTexts: mscAtmIfVccEpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVccEp components.') mscAtmIfVccEpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccEpIndex")) if mibBuilder.loadTexts: mscAtmIfVccEpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVccEp component.') mscAtmIfVccEpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccEpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVccEp components. These components cannot be added nor deleted.') mscAtmIfVccEpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccEpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVccEpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccEpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVccEp tables.') mscAtmIfVccEpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVccEpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpIndex.setDescription('This variable represents the index for the mscAtmIfVccEp tables.') mscAtmIfVccEpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 10), ) if mibBuilder.loadTexts: mscAtmIfVccEpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpOperTable.setDescription('This attribute group contains the operational attributes for the AtmEndPoint component.') mscAtmIfVccEpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccEpIndex")) if mibBuilder.loadTexts: mscAtmIfVccEpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpOperEntry.setDescription('An entry in the mscAtmIfVccEpOperTable.') mscAtmIfVccEpApplicationName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 9, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccEpApplicationName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccEpApplicationName.setDescription('This attribute indicates the component name associated with the application associated with the switched VCC.') mscAtmIfVccRp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10)) mscAtmIfVccRpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1), ) if mibBuilder.loadTexts: mscAtmIfVccRpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVccRp components.') mscAtmIfVccRpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccRpIndex")) if mibBuilder.loadTexts: mscAtmIfVccRpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVccRp component.') mscAtmIfVccRpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccRpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVccRp components. These components cannot be added nor deleted.') mscAtmIfVccRpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccRpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVccRpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccRpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVccRp tables.') mscAtmIfVccRpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVccRpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpIndex.setDescription('This variable represents the index for the mscAtmIfVccRp tables.') mscAtmIfVccRpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 10), ) if mibBuilder.loadTexts: mscAtmIfVccRpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpOperTable.setDescription('This attribute group contains the operational attributes for the AtmRelayPoint component.') mscAtmIfVccRpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccRpIndex")) if mibBuilder.loadTexts: mscAtmIfVccRpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpOperEntry.setDescription('An entry in the mscAtmIfVccRpOperTable.') mscAtmIfVccRpNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccRpNextHop.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVccRpNextHop.setDescription('This attribute indicates the component name of the Rp component with which this Rp component is associated.') mscAtmIfVccRpNextHopsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 430), ) if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsTable.setDescription('This attribute indicates the component name(s) of the Rp component(s) with which this Rp component is associated. This attribute can have more than one component name only when the Vcc distributionType is pointToMultipoint and the callDirection is fromLink.') mscAtmIfVccRpNextHopsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 430, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccRpIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccRpNextHopsValue")) if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsEntry.setDescription('An entry in the mscAtmIfVccRpNextHopsTable.') mscAtmIfVccRpNextHopsValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 10, 430, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsValue.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccRpNextHopsValue.setDescription('This variable represents both the value and the index for the mscAtmIfVccRpNextHopsTable.') mscAtmIfVccDst = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11)) mscAtmIfVccDstRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1), ) if mibBuilder.loadTexts: mscAtmIfVccDstRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVccDst components.') mscAtmIfVccDstRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccDstIndex")) if mibBuilder.loadTexts: mscAtmIfVccDstRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVccDst component.') mscAtmIfVccDstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVccDst components. These components cannot be added nor deleted.') mscAtmIfVccDstComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVccDstStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVccDst tables.') mscAtmIfVccDstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVccDstIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstIndex.setDescription('This variable represents the index for the mscAtmIfVccDst tables.') mscAtmIfVccDstOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 10), ) if mibBuilder.loadTexts: mscAtmIfVccDstOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstOperTable.setDescription('This attribute group contains the operational attributes for the DestinationPvc component.') mscAtmIfVccDstOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVccDstIndex")) if mibBuilder.loadTexts: mscAtmIfVccDstOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstOperEntry.setDescription('An entry in the mscAtmIfVccDstOperTable.') mscAtmIfVccDstCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstCalledAddress.setDescription('This attribute represents the called address of the soft PVC.') mscAtmIfVccDstCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 10, 1, 4), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(7, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstCallingAddress.setDescription('This attribute represents the remote address of the soft PVC. If the address in not known, then the value of this address is Unknown.') mscAtmIfVccDstCallingVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 5, 11, 10, 1, 5), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(7, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVccDstCallingVpiVci.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVccDstCallingVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC. If the VPI and VCI values are not known, this attribute is set to Unknown.') mscAtmIfVptVccSrc = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8)) mscAtmIfVptVccSrcRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1), ) if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVptVccSrc components.') mscAtmIfVptVccSrcRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVptVccSrc component.') mscAtmIfVptVccSrcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVptVccSrc components. These components can be added and deleted.') mscAtmIfVptVccSrcComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVptVccSrcStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVptVccSrc tables.') mscAtmIfVptVccSrcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVptVccSrcIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcIndex.setDescription('This variable represents the index for the mscAtmIfVptVccSrc tables.') mscAtmIfVptVccSrcProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10), ) if mibBuilder.loadTexts: mscAtmIfVptVccSrcProvTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcProvTable.setDescription('This attribute group contains the provisionable attributes of the SourcePvc component.') mscAtmIfVptVccSrcProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccSrcProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcProvEntry.setDescription('An entry in the mscAtmIfVptVccSrcProvTable.') mscAtmIfVptVccSrcRemoteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcRemoteAddress.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRemoteAddress.setDescription('This attribute represents the remote address of the soft PVC.') mscAtmIfVptVccSrcRemoteVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1, 2), IntegerSequence().subtype(subtypeSpec=ValueSizeConstraint(3, 9))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcRemoteVpiVci.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRemoteVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC.') mscAtmIfVptVccSrcCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 20)).clone(hexValue="")).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcCallingAddress.setDescription('This attribute represents the calling address of the soft PVC. If it is a null string, then the calling address is the address of the current interface (that is, where the soft PVC originates).') mscAtmIfVptVccSrcCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1, 4), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcCalledAddress.setDescription('This attribute represents the called (remote) address of the soft PVC.') mscAtmIfVptVccSrcCalledVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 10, 1, 5), IntegerSequence().subtype(subtypeSpec=ValueSizeConstraint(3, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscAtmIfVptVccSrcCalledVpiVci.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcCalledVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC.') mscAtmIfVptVccSrcOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11), ) if mibBuilder.loadTexts: mscAtmIfVptVccSrcOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcOperTable.setDescription('This attribute group contains the operational attributes associated with the SrcPvp or SrcPvc component.') mscAtmIfVptVccSrcOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccSrcIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccSrcOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcOperEntry.setDescription('An entry in the mscAtmIfVptVccSrcOperTable.') mscAtmIfVptVccSrcState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("active", 0), ("inactive", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcState.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcState.setDescription('This attribute indicates the state of the soft PVP or soft PVC.') mscAtmIfVptVccSrcRetryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcRetryCount.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcRetryCount.setDescription('This attribute indicates the number of failed attempts to set up the soft PVP or soft PVC since the last time the connection failed.') mscAtmIfVptVccSrcLastFailureCauseCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcLastFailureCauseCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcLastFailureCauseCode.setDescription('This attribute contains the cause code in the last transmitted signalling message that contains the CAUSE information element. The cause code is used to describe the reason for generating certain signalling messages. The default value for this attribute is set to 0.') mscAtmIfVptVccSrcLastFailureDiagCode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 8, 11, 1, 4), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccSrcLastFailureDiagCode.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccSrcLastFailureDiagCode.setDescription('This attribute contains the diagnostic code in the last transmitted signalling message. The diagnostic code is contained in the CAUSE information element and identifies an information element type or timer type. The diagnostic code is present only if a procedural error is detected by the signalling protocol. A diagnostic code is always accompanied by the cause code. If there is no failure, this attribute is set to NULL.') mscAtmIfVptVccEp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9)) mscAtmIfVptVccEpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1), ) if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVptVccEp components.') mscAtmIfVptVccEpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccEpIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVptVccEp component.') mscAtmIfVptVccEpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVptVccEp components. These components cannot be added nor deleted.') mscAtmIfVptVccEpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccEpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVptVccEpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccEpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVptVccEp tables.') mscAtmIfVptVccEpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVptVccEpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpIndex.setDescription('This variable represents the index for the mscAtmIfVptVccEp tables.') mscAtmIfVptVccEpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 10), ) if mibBuilder.loadTexts: mscAtmIfVptVccEpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpOperTable.setDescription('This attribute group contains the operational attributes for the AtmEndPoint component.') mscAtmIfVptVccEpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccEpIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccEpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpOperEntry.setDescription('An entry in the mscAtmIfVptVccEpOperTable.') mscAtmIfVptVccEpApplicationName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 9, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccEpApplicationName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccEpApplicationName.setDescription('This attribute indicates the component name associated with the application associated with the switched VCC.') mscAtmIfVptVccRp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10)) mscAtmIfVptVccRpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1), ) if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVptVccRp components.') mscAtmIfVptVccRpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccRpIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVptVccRp component.') mscAtmIfVptVccRpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVptVccRp components. These components cannot be added nor deleted.') mscAtmIfVptVccRpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccRpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVptVccRpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccRpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVptVccRp tables.') mscAtmIfVptVccRpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVptVccRpIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpIndex.setDescription('This variable represents the index for the mscAtmIfVptVccRp tables.') mscAtmIfVptVccRpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 10), ) if mibBuilder.loadTexts: mscAtmIfVptVccRpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpOperTable.setDescription('This attribute group contains the operational attributes for the AtmRelayPoint component.') mscAtmIfVptVccRpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccRpIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccRpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpOperEntry.setDescription('An entry in the mscAtmIfVptVccRpOperTable.') mscAtmIfVptVccRpNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHop.setStatus('obsolete') if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHop.setDescription('This attribute indicates the component name of the Rp component with which this Rp component is associated.') mscAtmIfVptVccRpNextHopsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 430), ) if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsTable.setDescription('This attribute indicates the component name(s) of the Rp component(s) with which this Rp component is associated. This attribute can have more than one component name only when the Vcc distributionType is pointToMultipoint and the callDirection is fromLink.') mscAtmIfVptVccRpNextHopsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 430, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccRpIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccRpNextHopsValue")) if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsEntry.setDescription('An entry in the mscAtmIfVptVccRpNextHopsTable.') mscAtmIfVptVccRpNextHopsValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 10, 430, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsValue.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccRpNextHopsValue.setDescription('This variable represents both the value and the index for the mscAtmIfVptVccRpNextHopsTable.') mscAtmIfVptVccDst = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11)) mscAtmIfVptVccDstRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1), ) if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatusTable.setDescription('This entry controls the addition and deletion of mscAtmIfVptVccDst components.') mscAtmIfVptVccDstRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccDstIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatusEntry.setDescription('A single entry in the table represents a single mscAtmIfVptVccDst component.') mscAtmIfVptVccDstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstRowStatus.setDescription('This variable is used as the basis for SNMP naming of mscAtmIfVptVccDst components. These components cannot be added nor deleted.') mscAtmIfVptVccDstComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstComponentName.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") mscAtmIfVptVccDstStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstStorageType.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstStorageType.setDescription('This variable represents the storage type value for the mscAtmIfVptVccDst tables.') mscAtmIfVptVccDstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscAtmIfVptVccDstIndex.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstIndex.setDescription('This variable represents the index for the mscAtmIfVptVccDst tables.') mscAtmIfVptVccDstOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 10), ) if mibBuilder.loadTexts: mscAtmIfVptVccDstOperTable.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstOperTable.setDescription('This attribute group contains the operational attributes for the DestinationPvc component.') mscAtmIfVptVccDstOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmCoreMIB", "mscAtmIfVptVccIndex"), (0, "Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", "mscAtmIfVptVccDstIndex")) if mibBuilder.loadTexts: mscAtmIfVptVccDstOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstOperEntry.setDescription('An entry in the mscAtmIfVptVccDstOperTable.') mscAtmIfVptVccDstCalledAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 10, 1, 3), HexString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstCalledAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstCalledAddress.setDescription('This attribute represents the called address of the soft PVC.') mscAtmIfVptVccDstCallingAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 10, 1, 4), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(7, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstCallingAddress.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstCallingAddress.setDescription('This attribute represents the remote address of the soft PVC. If the address in not known, then the value of this address is Unknown.') mscAtmIfVptVccDstCallingVpiVci = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 114, 9, 20, 11, 10, 1, 5), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(7, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscAtmIfVptVccDstCallingVpiVci.setStatus('mandatory') if mibBuilder.loadTexts: mscAtmIfVptVccDstCallingVpiVci.setDescription('This attribute represents the remote VPI and VCI of the soft PVC. If the VPI and VCI values are not known, this attribute is set to Unknown.') atmNetworkingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 1)) atmNetworkingGroupCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 1, 1)) atmNetworkingGroupCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 1, 1, 3)) atmNetworkingGroupCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 1, 1, 3, 2)) atmNetworkingCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 3)) atmNetworkingCapabilitiesCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 3, 1)) atmNetworkingCapabilitiesCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 3, 1, 3)) atmNetworkingCapabilitiesCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 42, 3, 1, 3, 2)) mibBuilder.exportSymbols("Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", mscARtgPnniThreshParmsTable=mscARtgPnniThreshParmsTable, mscARtgPnniCfgNodeNbrStatsEntry=mscARtgPnniCfgNodeNbrStatsEntry, mscARtgPnniCfgNodeDefSAddrIndex=mscARtgPnniCfgNodeDefSAddrIndex, mscARtgDnaDestInfoRowStatusEntry=mscARtgDnaDestInfoRowStatusEntry, mscARtgPnniPtseLifetimeFactor=mscARtgPnniPtseLifetimeFactor, mscARtgPnniCfgNodeDefSAddrAddress=mscARtgPnniCfgNodeDefSAddrAddress, atmNetworkingGroupCA02=atmNetworkingGroupCA02, atmNetworkingCapabilitiesCA02=atmNetworkingCapabilitiesCA02, mscARtgPnniRfFqpIndex=mscARtgPnniRfFqpIndex, mscARtgPnniCfgNodeDefSAddrOperTable=mscARtgPnniCfgNodeDefSAddrOperTable, mscARtgPnniPglInitTime=mscARtgPnniPglInitTime, mscARtgPnniCfgNodeSAddrPrefixLengthIndex=mscARtgPnniCfgNodeSAddrPrefixLengthIndex, mscAtmIfVptVccRpComponentName=mscAtmIfVptVccRpComponentName, mscAtmIfVccDstOperTable=mscAtmIfVccDstOperTable, mscARtgPnniRfBqpEntry=mscARtgPnniRfBqpEntry, mscARtgPnniCfgNodeNbrPtseTx=mscARtgPnniCfgNodeNbrPtseTx, mscARtgPnniTopNodeRowStatusTable=mscARtgPnniTopNodeRowStatusTable, mscARtgPnniDomain=mscARtgPnniDomain, mscAtmIfVptVccSrcComponentName=mscAtmIfVptVccSrcComponentName, mscARtgPnniRowStatus=mscARtgPnniRowStatus, mscARtgPnniTopIndex=mscARtgPnniTopIndex, mscARtgPnniRfTxTdpTable=mscARtgPnniRfTxTdpTable, mscARtgPnniCfgNodeSAddrRowStatusTable=mscARtgPnniCfgNodeSAddrRowStatusTable, mscAtmIfVccEpStorageType=mscAtmIfVccEpStorageType, mscAtmIfVpcSrcLastFailureDiagCode=mscAtmIfVpcSrcLastFailureDiagCode, mscARtgPnniCfgNodeDefSAddrStorageType=mscARtgPnniCfgNodeDefSAddrStorageType, mscAtmCRCallsRouted=mscAtmCRCallsRouted, mscARtgPnniRfFqpValue=mscARtgPnniRfFqpValue, mscARtgPnniSuccessfulRoutingAttempts=mscARtgPnniSuccessfulRoutingAttempts, mscAtmIfVptVccEpIndex=mscAtmIfVptVccEpIndex, mscARtgPnniReElectionInterval=mscARtgPnniReElectionInterval, mscARtgPnniCfgNodeDefSAddrRowStatus=mscARtgPnniCfgNodeDefSAddrRowStatus, mscARtgStorageType=mscARtgStorageType, mscARtgPnniCfgNodeNbrIndex=mscARtgPnniCfgNodeNbrIndex, mscARtgPnniCfgNodeNbrBadPtseAckRx=mscARtgPnniCfgNodeNbrBadPtseAckRx, mscAtmIfVccSrcProvEntry=mscAtmIfVccSrcProvEntry, mscARtgPnniTopologyMemoryExhaustion=mscARtgPnniTopologyMemoryExhaustion, mscAtmIfVptVccSrcCallingAddress=mscAtmIfVptVccSrcCallingAddress, mscAtmIfVptVccSrcStorageType=mscAtmIfVptVccSrcStorageType, mscARtgPnniHelloInterval=mscARtgPnniHelloInterval, mscAtmIfVccDstComponentName=mscAtmIfVccDstComponentName, mscARtgPnniPtseParmsTable=mscARtgPnniPtseParmsTable, mscAtmIfVpcSrcComponentName=mscAtmIfVpcSrcComponentName, mscAtmIfVptVccSrcRetryCount=mscAtmIfVptVccSrcRetryCount, mscAtmIfVptVccSrcRemoteVpiVci=mscAtmIfVptVccSrcRemoteVpiVci, mscAtmCRRowStatusEntry=mscAtmCRRowStatusEntry, mscARtgPnniIndex=mscARtgPnniIndex, mscAtmCRDnaStorageType=mscAtmCRDnaStorageType, mscARtgPnniTopNodeLinkRowStatusEntry=mscARtgPnniTopNodeLinkRowStatusEntry, mscAtmIfVptVccRpRowStatus=mscAtmIfVptVccRpRowStatus, mscAtmIfVptVccEp=mscAtmIfVptVccEp, mscAtmIfVptVccRpNextHop=mscAtmIfVptVccRpNextHop, mscAtmIfVccRpNextHop=mscAtmIfVccRpNextHop, mscAtmIfVpcDst=mscAtmIfVpcDst, mscARtgPnniTopNodeLinkComponentName=mscARtgPnniTopNodeLinkComponentName, mscAtmCRProvEntry=mscAtmCRProvEntry, mscARtgDnaDestInfoOperTable=mscARtgDnaDestInfoOperTable, mscARtgPnniThreshParmsEntry=mscARtgPnniThreshParmsEntry, mscARtgPnniCfgNodeNbr=mscARtgPnniCfgNodeNbr, mscARtgPnniHlParmsEntry=mscARtgPnniHlParmsEntry, mscAtmIfVccRpComponentName=mscAtmIfVccRpComponentName, mscARtgPnniCfgNodeDefSAddr=mscARtgPnniCfgNodeDefSAddr, mscAtmIfVptVccSrcProvTable=mscAtmIfVptVccSrcProvTable, mscARtgPnniDefaultScope=mscARtgPnniDefaultScope, mscARtgPnniTopComponentName=mscARtgPnniTopComponentName, mscAtmIfVccSrcStorageType=mscAtmIfVccSrcStorageType, mscARtgPnniCfgNodeNumRccs=mscARtgPnniCfgNodeNumRccs, mscAtmIfVptVccEpRowStatusTable=mscAtmIfVptVccEpRowStatusTable, mscARtgPnniRfRxTdpIndex=mscARtgPnniRfRxTdpIndex, mscAtmIfVpcRp=mscAtmIfVpcRp, mscARtgPnniNodeAddressPrefix=mscARtgPnniNodeAddressPrefix, mscAtmIfVpcRpRowStatus=mscAtmIfVpcRpRowStatus, mscAtmIfVptVccDstCalledAddress=mscAtmIfVptVccDstCalledAddress, mscAtmIfVccDstCallingAddress=mscAtmIfVccDstCallingAddress, mscARtgPnniCfgNodeSAddrRowStatusEntry=mscARtgPnniCfgNodeSAddrRowStatusEntry, mscARtgPnniRfTxTrafficDescType=mscARtgPnniRfTxTrafficDescType, mscAtmIfVptVccEpStorageType=mscAtmIfVptVccEpStorageType, mscARtgPnniAvcrPm=mscARtgPnniAvcrPm, mscAtmIfVpcSrcRowStatusTable=mscAtmIfVpcSrcRowStatusTable, mscAtmIfVpcSrcStorageType=mscAtmIfVpcSrcStorageType, mscARtgPnniCfgNodeSAddrScope=mscARtgPnniCfgNodeSAddrScope, mscAtmIfVccSrcCalledAddress=mscAtmIfVccSrcCalledAddress, mscAtmIfVpcDstRowStatusTable=mscAtmIfVpcDstRowStatusTable, mscAtmIfVpcDstIndex=mscAtmIfVpcDstIndex, mscARtgPnniCfgNodeNbrPtseRx=mscARtgPnniCfgNodeNbrPtseRx, atmNetworkingGroupCA=atmNetworkingGroupCA, mscARtgPnniTopNodeComponentName=mscARtgPnniTopNodeComponentName, atmNetworkingMIB=atmNetworkingMIB, mscARtgPnniCfgNodeNodeId=mscARtgPnniCfgNodeNodeId, mscAtmCRStatsEntry=mscAtmCRStatsEntry, mscAtmIfVccSrcState=mscAtmIfVccSrcState, mscARtgPnniCfgNodeSAddrSuppress=mscARtgPnniCfgNodeSAddrSuppress, mscAtmIfVccDstIndex=mscAtmIfVccDstIndex, mscAtmIfVccRp=mscAtmIfVccRp, mscAtmIfVccRpStorageType=mscAtmIfVccRpStorageType, mscARtgPnniOperEntry=mscARtgPnniOperEntry, mscARtgPnniRfRowStatusTable=mscARtgPnniRfRowStatusTable, mscARtgDnaRowStatus=mscARtgDnaRowStatus, mscARtgPnni=mscARtgPnni, mscARtgPnniTopNodeRowStatus=mscARtgPnniTopNodeRowStatus, mscAtmIfVccSrcProvTable=mscAtmIfVccSrcProvTable, mscARtgPnniStatsEntry=mscARtgPnniStatsEntry, mscAtmIfVptVccSrcOperTable=mscAtmIfVptVccSrcOperTable, mscAtmIfVptVccEpOperTable=mscAtmIfVptVccEpOperTable, mscAtmCRDnaDestinationNameValue=mscAtmCRDnaDestinationNameValue, mscAtmIfVpcRpNextHopsTable=mscAtmIfVpcRpNextHopsTable, mscAtmIfVptVccDstStorageType=mscAtmIfVptVccDstStorageType, mscAtmIfVpcRpStorageType=mscAtmIfVpcRpStorageType, mscARtgPnniTopStorageType=mscARtgPnniTopStorageType, mscAtmCRDnaDestinationNameTable=mscAtmCRDnaDestinationNameTable, mscARtgPnniRfFqpEntry=mscARtgPnniRfFqpEntry, mscAtmIfVptVccSrcRemoteAddress=mscAtmIfVptVccSrcRemoteAddress, mscARtgDnaDestInfoRowStatus=mscARtgDnaDestInfoRowStatus, mscAtmIfVccRpIndex=mscAtmIfVccRpIndex, mscAtmIfVptVccDstRowStatus=mscAtmIfVptVccDstRowStatus, mscARtgPnniCfgNodeDefSAddrOperEntry=mscARtgPnniCfgNodeDefSAddrOperEntry, mscAtmIfVccSrcOperEntry=mscAtmIfVccSrcOperEntry, mscARtgPnniCfgNodeComponentName=mscARtgPnniCfgNodeComponentName, mscAtmIfVptVccDst=mscAtmIfVptVccDst, mscAtmIfVptVccSrcRowStatus=mscAtmIfVptVccSrcRowStatus, mscARtgPnniPortComponentName=mscARtgPnniPortComponentName, mscARtgPnniHelloInactivityFactor=mscARtgPnniHelloInactivityFactor, mscAtmIfVpcSrcRetryCount=mscAtmIfVpcSrcRetryCount, mscAtmIfVccDstStorageType=mscAtmIfVccDstStorageType, mscARtgPnniCfgNodeOpNodeId=mscARtgPnniCfgNodeOpNodeId, mscARtgPnniRfBestEffort=mscARtgPnniRfBestEffort, mscARtgDnaDestInfoReachability=mscARtgDnaDestInfoReachability, mscARtgPnniRfCriteriaTable=mscARtgPnniRfCriteriaTable, mscARtgPnniRequestRxmtInterval=mscARtgPnniRequestRxmtInterval, mscARtg=mscARtg, mscARtgPnniCfgNodeNbrRowStatusEntry=mscARtgPnniCfgNodeNbrRowStatusEntry, mscARtgPnniHlParmsTable=mscARtgPnniHlParmsTable, mscAtmIfVccRpRowStatusEntry=mscAtmIfVccRpRowStatusEntry, mscARtgPnniRfClippingBbc=mscARtgPnniRfClippingBbc, mscARtgDnaDestInfoIndex=mscARtgDnaDestInfoIndex, mscAtmIfVptVccDstCallingAddress=mscAtmIfVptVccDstCallingAddress, mscARtgDnaDestInfoOperEntry=mscARtgDnaDestInfoOperEntry, mscARtgPnniAlternateRoutingAttempts=mscARtgPnniAlternateRoutingAttempts, mscARtgPnniCfgNodeNbrPtspTx=mscARtgPnniCfgNodeNbrPtspTx, mscARtgPnniFailedRoutingAttempts=mscARtgPnniFailedRoutingAttempts, mscAtmIfVptVccDstCallingVpiVci=mscAtmIfVptVccDstCallingVpiVci, mscARtgPnniCfgNodeStorageType=mscARtgPnniCfgNodeStorageType, mscARtgPnniRfAtmServiceCategory=mscARtgPnniRfAtmServiceCategory, mscAtmIfVccEpIndex=mscAtmIfVccEpIndex, mscAtmIfVccSrcRowStatus=mscAtmIfVccSrcRowStatus, mscARtgPnniCfgNodeNbrRccListValue=mscARtgPnniCfgNodeNbrRccListValue, mscARtgPnniCfgNodeProvTable=mscARtgPnniCfgNodeProvTable, mscAtmIfVptVccRpNextHopsValue=mscAtmIfVptVccRpNextHopsValue, mscAtmIfVpcSrcRowStatusEntry=mscAtmIfVpcSrcRowStatusEntry, mscARtgPnniTopNodeAddrAddressIndex=mscARtgPnniTopNodeAddrAddressIndex, mscAtmIfVccSrcRemoteAddress=mscAtmIfVccSrcRemoteAddress, mscARtgPnniTopOperTable=mscARtgPnniTopOperTable, mscAtmIfVccSrcLastFailureCauseCode=mscAtmIfVccSrcLastFailureCauseCode, mscARtgPnniRfTxTdpIndex=mscARtgPnniRfTxTdpIndex, mscARtgPnniCfgNodeIndex=mscARtgPnniCfgNodeIndex, mscAtmIfVptVccDstIndex=mscAtmIfVptVccDstIndex, mscAtmIfVpcSrcIndex=mscAtmIfVpcSrcIndex, mscARtgPnniCfgNodeNbrDbSummariesTx=mscARtgPnniCfgNodeNbrDbSummariesTx, mscARtgPnniCfgNodeSAddrComponentName=mscARtgPnniCfgNodeSAddrComponentName, mscARtgPnniRfFwdQosClass=mscARtgPnniRfFwdQosClass, mscAtmCRStatsTable=mscAtmCRStatsTable, mscAtmIfVpcRpRowStatusEntry=mscAtmIfVpcRpRowStatusEntry, mscARtgDnaDestInfo=mscARtgDnaDestInfo, mscARtgPnniCfgNodeNbrPtspRx=mscARtgPnniCfgNodeNbrPtspRx, mscAtmIfVccEp=mscAtmIfVccEp, mscAtmIfVptVccDstOperEntry=mscAtmIfVptVccDstOperEntry, mscARtgPnniTop=mscARtgPnniTop, mscAtmIfVpcSrcLastFailureCauseCode=mscAtmIfVpcSrcLastFailureCauseCode, mscARtgRowStatusTable=mscARtgRowStatusTable, mscAtmIfVptVccSrcCalledVpiVci=mscAtmIfVptVccSrcCalledVpiVci, mscAtmIfVptVccRpStorageType=mscAtmIfVptVccRpStorageType, mscARtgPnniCfgNodeNbrOperTable=mscARtgPnniCfgNodeNbrOperTable, mscARtgPnniTopNodeLinkOperEntry=mscARtgPnniTopNodeLinkOperEntry, mscAtmIfVpcRpOperTable=mscAtmIfVpcRpOperTable, mscAtmIfVccEpRowStatusEntry=mscAtmIfVccEpRowStatusEntry, mscARtgPnniTopNodeAddrScope=mscARtgPnniTopNodeAddrScope, mscAtmIfVpcRpOperEntry=mscAtmIfVpcRpOperEntry, mscARtgPnniRfDestinationAddress=mscARtgPnniRfDestinationAddress, mscARtgPnniCfgNodeNbrRowStatus=mscARtgPnniCfgNodeNbrRowStatus, mscARtgPnniTopNodeAddrRowStatus=mscARtgPnniTopNodeAddrRowStatus, mscARtgPnniCfgNodeRowStatus=mscARtgPnniCfgNodeRowStatus, mscARtgPnniCfgNodeDefSAddrRowStatusEntry=mscARtgPnniCfgNodeDefSAddrRowStatusEntry, mscARtgPnniCfgNodeDefSAddrDefAddrEntry=mscARtgPnniCfgNodeDefSAddrDefAddrEntry, mscAtmIfVptVccSrcOperEntry=mscAtmIfVptVccSrcOperEntry, mscAtmIfVpcSrcOperEntry=mscAtmIfVpcSrcOperEntry, mscARtgDnaDestInfoType=mscARtgDnaDestInfoType, mscARtgPnniPortRowStatus=mscARtgPnniPortRowStatus, mscARtgStatsTable=mscARtgStatsTable, mscAtmIfVptVccSrcLastFailureCauseCode=mscAtmIfVptVccSrcLastFailureCauseCode, mscAtmIfVptVccRpNextHopsEntry=mscAtmIfVptVccRpNextHopsEntry, mscAtmIfVptVccDstRowStatusTable=mscAtmIfVptVccDstRowStatusTable, mscARtgPnniRfBqpTable=mscARtgPnniRfBqpTable, mscARtgPnniRowStatusEntry=mscARtgPnniRowStatusEntry, mscARtgPnniOverrideDelay=mscARtgPnniOverrideDelay, mscARtgPnniRfIndex=mscARtgPnniRfIndex, mscAtmIfVccDstCallingVpiVci=mscAtmIfVccDstCallingVpiVci, mscARtgPnniCfgNodeNbrComponentName=mscARtgPnniCfgNodeNbrComponentName, mscAtmIfVccRpNextHopsEntry=mscAtmIfVccRpNextHopsEntry, mscARtgPnniPortRowStatusEntry=mscARtgPnniPortRowStatusEntry, mscARtgPnniStorageType=mscARtgPnniStorageType, mscAtmIfVptVccRpOperEntry=mscAtmIfVptVccRpOperEntry, mscARtgPnniTopNodeLinkRowStatus=mscARtgPnniTopNodeLinkRowStatus, mscARtgPnniRfTxTdpEntry=mscARtgPnniRfTxTdpEntry, mscARtgPnniCfgNodeOperEntry=mscARtgPnniCfgNodeOperEntry, mscARtgPnniCfgNodeSAddrState=mscARtgPnniCfgNodeSAddrState, mscARtgPnniCfgNodeSAddrProvEntry=mscARtgPnniCfgNodeSAddrProvEntry, mscARtgRowStatusEntry=mscARtgRowStatusEntry, mscARtgPnniRfRxTdpEntry=mscARtgPnniRfRxTdpEntry, mscAtmIfVccSrcIndex=mscAtmIfVccSrcIndex, mscARtgDnaDestInfoComponentName=mscARtgDnaDestInfoComponentName, mscAtmIfVptVccSrcState=mscAtmIfVptVccSrcState, mscAtmIfVccDstRowStatus=mscAtmIfVccDstRowStatus, mscARtgPnniProvTable=mscARtgPnniProvTable, mscARtgPnniRf=mscARtgPnniRf, mscAtmIfVccSrc=mscAtmIfVccSrc, mscARtgPnniCfgNodeCurrentLeadershipPriority=mscARtgPnniCfgNodeCurrentLeadershipPriority, mscARtgPnniPortStorageType=mscARtgPnniPortStorageType, mscAtmIfVccDstRowStatusEntry=mscAtmIfVccDstRowStatusEntry, mscARtgPnniCfgNodeNbrRowStatusTable=mscARtgPnniCfgNodeNbrRowStatusTable, mscARtgPnniRfBearerClassBbc=mscARtgPnniRfBearerClassBbc, mscARtgPnniCfgNodeNbrBadPtseReqRx=mscARtgPnniCfgNodeNbrBadPtseReqRx, mscAtmIfVpcDstOperTable=mscAtmIfVpcDstOperTable, mscAtmIfVptVccSrcProvEntry=mscAtmIfVptVccSrcProvEntry, mscARtgDnaDestInfoRowStatusTable=mscARtgDnaDestInfoRowStatusTable, mscARtgPnniRfRowStatusEntry=mscARtgPnniRfRowStatusEntry, mscAtmIfVpcSrcCalledVpi=mscAtmIfVpcSrcCalledVpi, mscAtmCRNodeAddress=mscAtmCRNodeAddress, mscAtmCRDna=mscAtmCRDna, mscAtmCRProvTable=mscAtmCRProvTable, mscARtgPnniCfgNodeSAddrRowStatus=mscARtgPnniCfgNodeSAddrRowStatus, mscAtmCRDnaRowStatusTable=mscAtmCRDnaRowStatusTable, mscARtgPnniRfRowStatus=mscARtgPnniRfRowStatus, mscAtmCRComponentName=mscAtmCRComponentName, mscAtmIfVccSrcRowStatusTable=mscAtmIfVccSrcRowStatusTable, mscAtmIfVptVccSrcRowStatusTable=mscAtmIfVptVccSrcRowStatusTable, mscARtgPnniCfgNodeDefSAddrRowStatusTable=mscARtgPnniCfgNodeDefSAddrRowStatusTable, mscARtgPnniTopNode=mscARtgPnniTopNode, mscARtgPnniPort=mscARtgPnniPort, mscAtmIfVpcSrcProvTable=mscAtmIfVpcSrcProvTable, mscARtgPnniTopNodeLinkIndex=mscARtgPnniTopNodeLinkIndex, mscARtgPnniOperTable=mscARtgPnniOperTable, mscARtgPnniPortIndex=mscARtgPnniPortIndex, mscAtmIfVptVccDstComponentName=mscAtmIfVptVccDstComponentName, mscAtmIfVccSrcRemoteVpiVci=mscAtmIfVccSrcRemoteVpiVci, mscARtgPnniTopPtsesInDatabase=mscARtgPnniTopPtsesInDatabase, mscAtmIfVccRpRowStatusTable=mscAtmIfVccRpRowStatusTable, mscARtgPnniRfOptimizationMetric=mscARtgPnniRfOptimizationMetric, mscAtmIfVpcSrcOperTable=mscAtmIfVpcSrcOperTable, mscARtgPnniTopNodeLinkOperTable=mscARtgPnniTopNodeLinkOperTable, mscAtmCRRowStatusTable=mscAtmCRRowStatusTable, mscARtgPnniCfgNodeDefSAddrDefAddrTable=mscARtgPnniCfgNodeDefSAddrDefAddrTable, mscAtmIfVpcDstStorageType=mscAtmIfVpcDstStorageType, mscARtgPnniTopNodeLinkRemoteNodeId=mscARtgPnniTopNodeLinkRemoteNodeId, mscARtgPnniCfgNodeOperTable=mscARtgPnniCfgNodeOperTable) mibBuilder.exportSymbols("Nortel-MsCarrier-MscPassport-AtmNetworkingMIB", mscARtgPnniPglParmsEntry=mscARtgPnniPglParmsEntry, mscAtmIfVccSrcOperTable=mscAtmIfVccSrcOperTable, mscARtgPnniCfgNodeDefSAddrComponentName=mscARtgPnniCfgNodeDefSAddrComponentName, mscARtgPnniTopNodeAddrReachabilityIndex=mscARtgPnniTopNodeAddrReachabilityIndex, mscARtgPnniRfCriteriaEntry=mscARtgPnniRfCriteriaEntry, mscARtgPnniPeerDelayedAckInterval=mscARtgPnniPeerDelayedAckInterval, mscAtmIfVpcSrcRowStatus=mscAtmIfVpcSrcRowStatus, mscAtmIfVccDst=mscAtmIfVccDst, mscARtgPnniTopRowStatusEntry=mscARtgPnniTopRowStatusEntry, mscARtgPnniRfFqpTable=mscARtgPnniRfFqpTable, mscARtgPnniPortOperTable=mscARtgPnniPortOperTable, mscARtgPnniComponentName=mscARtgPnniComponentName, mscAtmIfVccSrcCalledVpiVci=mscAtmIfVccSrcCalledVpiVci, mscAtmIfVccSrcRowStatusEntry=mscAtmIfVccSrcRowStatusEntry, mscAtmIfVpcRpIndex=mscAtmIfVpcRpIndex, mscARtgPnniTopNodeLinkRemotePortId=mscARtgPnniTopNodeLinkRemotePortId, mscARtgPnniCfgNodeNbrBadPtspRx=mscARtgPnniCfgNodeNbrBadPtspRx, mscAtmIfVptVccRpRowStatusEntry=mscAtmIfVptVccRpRowStatusEntry, mscAtmIfVpcDstCallingAddress=mscAtmIfVpcDstCallingAddress, mscARtgPnniPglParmsTable=mscARtgPnniPglParmsTable, mscARtgPnniPortStdComponentName=mscARtgPnniPortStdComponentName, atmNetworkingGroup=atmNetworkingGroup, mscARtgDnaStorageType=mscARtgDnaStorageType, mscARtgDnaDestInfoStdComponentName=mscARtgDnaDestInfoStdComponentName, mscAtmCRCallsFailed=mscAtmCRCallsFailed, mscARtgRoutingAttempts=mscARtgRoutingAttempts, mscAtmIfVptVccDstOperTable=mscAtmIfVptVccDstOperTable, mscARtgPnniMaxAlternateRoutesOnCrankback=mscARtgPnniMaxAlternateRoutesOnCrankback, mscAtmIfVptVccSrcIndex=mscAtmIfVptVccSrcIndex, mscAtmIfVptVccRpRowStatusTable=mscAtmIfVptVccRpRowStatusTable, mscARtgPnniRfBqpIndex=mscARtgPnniRfBqpIndex, mscAtmIfVpcDstRowStatus=mscAtmIfVpcDstRowStatus, mscARtgPnniProvEntry=mscARtgPnniProvEntry, mscARtgPnniCfgNodeNbrPtseAcksRx=mscARtgPnniCfgNodeNbrPtseAcksRx, mscAtmIfVccRpNextHopsValue=mscAtmIfVccRpNextHopsValue, mscAtmIfVptVccRpNextHopsTable=mscAtmIfVptVccRpNextHopsTable, mscARtgPnniTopActiveParentNodeId=mscARtgPnniTopActiveParentNodeId, mscAtmIfVptVccEpRowStatusEntry=mscAtmIfVptVccEpRowStatusEntry, mscAtmIfVptVccEpApplicationName=mscAtmIfVptVccEpApplicationName, mscAtmIfVpcRpNextHopsValue=mscAtmIfVpcRpNextHopsValue, mscARtgPnniCfgNodeNbrRccListTable=mscARtgPnniCfgNodeNbrRccListTable, mscAtmIfVpcRpNextHop=mscAtmIfVpcRpNextHop, mscARtgPnniCfgNodeNbrPtseAcksTx=mscARtgPnniCfgNodeNbrPtseAcksTx, mscARtgPnniTopRowStatusTable=mscARtgPnniTopRowStatusTable, mscARtgPnniCfgNodeNbrStatsTable=mscARtgPnniCfgNodeNbrStatsTable, mscARtgPnniRestrictTransit=mscARtgPnniRestrictTransit, mscARtgPnniOptMetricTable=mscARtgPnniOptMetricTable, mscARtgPnniCfgNodeDefSAddrState=mscARtgPnniCfgNodeDefSAddrState, mscAtmIfVptVccSrcRowStatusEntry=mscAtmIfVptVccSrcRowStatusEntry, mscARtgIndex=mscARtgIndex, mscARtgPnniCfgNodeNumNeighbors=mscARtgPnniCfgNodeNumNeighbors, mscARtgPnniCfgNodeSAddrProvTable=mscARtgPnniCfgNodeSAddrProvTable, mscAtmIfVccRpRowStatus=mscAtmIfVccRpRowStatus, mscARtgPnniRfTransferCapabilityBbc=mscARtgPnniRfTransferCapabilityBbc, mscARtgPnniCfgNode=mscARtgPnniCfgNode, mscAtmIfVptVccRpIndex=mscAtmIfVptVccRpIndex, mscARtgPnniRfBwdQosClass=mscARtgPnniRfBwdQosClass, mscARtgPnniCfgNodeNbrPeerState=mscARtgPnniCfgNodeNbrPeerState, mscARtgPnniTopNodeAddrComponentName=mscARtgPnniTopNodeAddrComponentName, atmNetworkingGroupCA02A=atmNetworkingGroupCA02A, mscARtgPnniTopNodeRowStatusEntry=mscARtgPnniTopNodeRowStatusEntry, mscAtmCR=mscAtmCR, mscAtmIfVptVccEpComponentName=mscAtmIfVptVccEpComponentName, mscARtgPnniCfgNodeNbrDbSummariesRx=mscARtgPnniCfgNodeNbrDbSummariesRx, mscARtgPnniOptMetricValue=mscARtgPnniOptMetricValue, mscARtgPnniTopPglNodeId=mscARtgPnniTopPglNodeId, mscARtgDnaDestInfoStorageType=mscARtgDnaDestInfoStorageType, mscARtgDnaRowStatusEntry=mscARtgDnaRowStatusEntry, mscAtmIfVpcSrcState=mscAtmIfVpcSrcState, mscARtgPnniCfgNodeSAddrAddressIndex=mscARtgPnniCfgNodeSAddrAddressIndex, mscARtgPnniStatsTable=mscARtgPnniStatsTable, mscAtmIfVptVccRpOperTable=mscAtmIfVptVccRpOperTable, mscAtmIfVpcDstRowStatusEntry=mscAtmIfVpcDstRowStatusEntry, mscAtmIfVpcSrcProvEntry=mscAtmIfVpcSrcProvEntry, mscARtgStatsEntry=mscARtgStatsEntry, mscARtgPnniCfgNodeNodeAddress=mscARtgPnniCfgNodeNodeAddress, mscAtmIfVptVccEpRowStatus=mscAtmIfVptVccEpRowStatus, mscAtmIfVpcDstCalledAddress=mscAtmIfVpcDstCalledAddress, mscARtgPnniCfgNodeNbrPtseReqTx=mscARtgPnniCfgNodeNbrPtseReqTx, mscAtmIfVccDstCalledAddress=mscAtmIfVccDstCalledAddress, mscAtmIfVptVccRp=mscAtmIfVptVccRp, mscARtgPnniTopNodeAddrPrefixLengthIndex=mscARtgPnniTopNodeAddrPrefixLengthIndex, mscAtmIfVpcDstComponentName=mscAtmIfVpcDstComponentName, mscAtmIfVccSrcCallingAddress=mscAtmIfVccSrcCallingAddress, mscARtgPnniTopNodeIndex=mscARtgPnniTopNodeIndex, mscAtmIfVccDstRowStatusTable=mscAtmIfVccDstRowStatusTable, mscARtgPnniCfgNodeSAddr=mscARtgPnniCfgNodeSAddr, mscARtgPnniCfgNodeRowStatusEntry=mscARtgPnniCfgNodeRowStatusEntry, mscAtmCRDnaIndex=mscAtmCRDnaIndex, mscARtgPnniCfgNodeNbrRccListEntry=mscARtgPnniCfgNodeNbrRccListEntry, mscARtgPnniPtseHoldDown=mscARtgPnniPtseHoldDown, mscARtgPnniRfMaxRoutes=mscARtgPnniRfMaxRoutes, mscARtgPnniTopNodeAddrOperTable=mscARtgPnniTopNodeAddrOperTable, mscARtgDna=mscARtgDna, mscAtmIfVccEpApplicationName=mscAtmIfVccEpApplicationName, mscAtmIfVccEpComponentName=mscAtmIfVccEpComponentName, atmNetworkingCapabilitiesCA=atmNetworkingCapabilitiesCA, mscARtgPnniTopNodeLinkStorageType=mscARtgPnniTopNodeLinkStorageType, mscARtgPnniRfTxTdpValue=mscARtgPnniRfTxTdpValue, mscARtgRowStatus=mscARtgRowStatus, mscARtgPnniTopNodeLinkRowStatusTable=mscARtgPnniTopNodeLinkRowStatusTable, mscARtgPnniCfgNodeOpPeerGroupId=mscARtgPnniCfgNodeOpPeerGroupId, mscARtgPnniCfgNodeNbrOperEntry=mscARtgPnniCfgNodeNbrOperEntry, mscARtgPnniTopRowStatus=mscARtgPnniTopRowStatus, mscARtgPnniTopNodeAddrOperEntry=mscARtgPnniTopNodeAddrOperEntry, mscARtgPnniCfgNodeSAddrStorageType=mscARtgPnniCfgNodeSAddrStorageType, mscARtgPnniCfgNodeNbrPtseReqRx=mscARtgPnniCfgNodeNbrPtseReqRx, mscARtgPnniTopNodeLink=mscARtgPnniTopNodeLink, mscARtgDnaDestInfoScope=mscARtgDnaDestInfoScope, mscARtgPnniRfStorageType=mscARtgPnniRfStorageType, mscARtgPnniCfgNodeProvEntry=mscARtgPnniCfgNodeProvEntry, mscARtgPnniRfRxTrafficDescType=mscARtgPnniRfRxTrafficDescType, mscARtgDnaIndex=mscARtgDnaIndex, atmNetworkingCapabilitiesCA02A=atmNetworkingCapabilitiesCA02A, mscAtmCRIndex=mscAtmCRIndex, mscARtgPnniTopPreferredPglNodeId=mscARtgPnniTopPreferredPglNodeId, mscAtmIfVpcRpRowStatusTable=mscAtmIfVpcRpRowStatusTable, mscARtgPnniPtseParmsEntry=mscARtgPnniPtseParmsEntry, mscAtmCRRowStatus=mscAtmCRRowStatus, mscARtgPnniTopNodeStorageType=mscARtgPnniTopNodeStorageType, mscAtmIfVccDstOperEntry=mscAtmIfVccDstOperEntry, mscAtmIfVptVccSrc=mscAtmIfVptVccSrc, mscAtmIfVpcSrc=mscAtmIfVpcSrc, mscARtgDnaRowStatusTable=mscARtgDnaRowStatusTable, mscAtmIfVpcDstOperEntry=mscAtmIfVpcDstOperEntry, mscAtmIfVptVccSrcLastFailureDiagCode=mscAtmIfVptVccSrcLastFailureDiagCode, mscARtgPnniPortOperEntry=mscARtgPnniPortOperEntry, mscAtmIfVpcSrcCalledAddress=mscAtmIfVpcSrcCalledAddress, mscAtmCRDnaRowStatusEntry=mscAtmCRDnaRowStatusEntry, mscAtmIfVccSrcComponentName=mscAtmIfVccSrcComponentName, mscARtgPnniCfgNodeDefSAddrScope=mscARtgPnniCfgNodeDefSAddrScope, mscAtmIfVccSrcRetryCount=mscAtmIfVccSrcRetryCount, mscARtgPnniAvcrMt=mscARtgPnniAvcrMt, mscARtgPnniPtseRefreshInterval=mscARtgPnniPtseRefreshInterval, mscAtmIfVccEpOperTable=mscAtmIfVccEpOperTable, mscARtgPnniPortRowStatusTable=mscARtgPnniPortRowStatusTable, mscARtgPnniOptMetricEntry=mscARtgPnniOptMetricEntry, mscARtgPnniCfgNodeNbrStorageType=mscARtgPnniCfgNodeNbrStorageType, mscAtmCRDnaComponentName=mscAtmCRDnaComponentName, mscAtmIfVccRpOperEntry=mscAtmIfVccRpOperEntry, atmNetworkingCapabilities=atmNetworkingCapabilities, mscAtmIfVccRpOperTable=mscAtmIfVccRpOperTable, mscARtgPnniCfgNodePglElectionState=mscARtgPnniCfgNodePglElectionState, mscARtgPnniTopOperEntry=mscARtgPnniTopOperEntry, mscAtmIfVccEpRowStatus=mscAtmIfVccEpRowStatus, mscAtmIfVpcDstCallingVpi=mscAtmIfVpcDstCallingVpi, mscAtmIfVccRpNextHopsTable=mscAtmIfVccRpNextHopsTable, mscAtmIfVptVccDstRowStatusEntry=mscAtmIfVptVccDstRowStatusEntry, mscARtgPnniCfgNodeSAddrOperEntry=mscARtgPnniCfgNodeSAddrOperEntry, mscARtgPnniCfgNodeNbrBadPtseRx=mscARtgPnniCfgNodeNbrBadPtseRx, mscARtgPnniOptMetricIndex=mscARtgPnniOptMetricIndex, mscAtmCRStorageType=mscAtmCRStorageType, mscAtmCRDnaRowStatus=mscAtmCRDnaRowStatus, mscAtmIfVpcRpNextHopsEntry=mscAtmIfVpcRpNextHopsEntry, mscARtgPnniCfgNodeSAddrReachabilityIndex=mscARtgPnniCfgNodeSAddrReachabilityIndex, mscAtmIfVccSrcLastFailureDiagCode=mscAtmIfVccSrcLastFailureDiagCode, mscARtgPnniTopNodeAddr=mscARtgPnniTopNodeAddr, mscARtgPnniRfRxTdpValue=mscARtgPnniRfRxTdpValue, mscARtgPnniRfBqpValue=mscARtgPnniRfBqpValue, mscARtgPnniCfgNodeSAddrOperTable=mscARtgPnniCfgNodeSAddrOperTable, mscARtgPnniRfComponentName=mscARtgPnniRfComponentName, mscAtmIfVpcSrcCallingAddress=mscAtmIfVpcSrcCallingAddress, mscAtmIfVpcRpComponentName=mscAtmIfVpcRpComponentName, mscARtgPnniCfgNodeRowStatusTable=mscARtgPnniCfgNodeRowStatusTable, mscARtgPnniTopNodeAddrStorageType=mscARtgPnniTopNodeAddrStorageType, mscARtgPnniCfgNodeNbrBadDbSummariesRx=mscARtgPnniCfgNodeNbrBadDbSummariesRx, mscARtgPnniTopNodeAddrRowStatusTable=mscARtgPnniTopNodeAddrRowStatusTable, mscAtmIfVccEpOperEntry=mscAtmIfVccEpOperEntry, mscARtgPnniCfgNodePeerGroupId=mscARtgPnniCfgNodePeerGroupId, mscAtmIfVptVccEpOperEntry=mscAtmIfVptVccEpOperEntry, mscARtgFailedRoutingAttempts=mscARtgFailedRoutingAttempts, mscARtgComponentName=mscARtgComponentName, mscARtgDnaComponentName=mscARtgDnaComponentName, mscARtgPnniRowStatusTable=mscARtgPnniRowStatusTable, mscARtgPnniTopNodeAddrRowStatusEntry=mscARtgPnniTopNodeAddrRowStatusEntry, mscARtgPnniHelloHoldDown=mscARtgPnniHelloHoldDown, mscAtmCRDnaDestinationNameEntry=mscAtmCRDnaDestinationNameEntry, mscARtgPnniRfRxTdpTable=mscARtgPnniRfRxTdpTable, mscAtmIfVptVccSrcCalledAddress=mscAtmIfVptVccSrcCalledAddress, mscAtmIfVccEpRowStatusTable=mscAtmIfVccEpRowStatusTable)
class Agent(object): """Keeps relevant data of NPC and handles behavior.""" def __init__(self, name, hitpoints, strenght): self.name = name self.hitpoints = hitpoints self.strenght = strenght def move(self): pass def talk(self): pass def give_item(self): pass def take_item(self): pass def attack(self): pass def defend(self): pass alia = Agent('Alia', 50, 1) gertrude = Agent('Gertrude', 50, 1) dicker_junge = Agent('Marek', 50, 1) keines_maedchen = Agent('Sophia', 50, 1) james = Agent('james', 50, 1) gerald = Agent('Gerald', 50, 1) samira = Agent('samira', 50, 1) lisa = Agent('lisa', 50, 1) bergtroll = Agent('Gronkh', 50, 1) fledermaeuse = Agent('Die 3 Fledermaeuse', 50, 1) kraehen = Agent('Die 3 Kraehen', 50, 1)
input = """ p(2) | f. -p(1) :- true. true. :- f. """ output = """ p(2) | f. -p(1) :- true. true. :- f. """
DIRECT_LINK_SCHEMA = { "type": "object", "properties": { "local_file": { "type": ["string", "null"], "description": "local zip file path" } } } IMAGE_SCHEMA = { "type": "object", "properties": { "original": { "type": "file" }, "size": { "type": "array", "items": { "type": "number" } }, "custom_size": { "type": "file", "processors": [ { "name": "resize", "in": { "original_image": { "property": "original" }, "size": { "property": "size" } } } ] }, "120x120": { "type": "file", "processors": [ { "name": "resize", "in": { "original_image": { "property": "original" }, "size": { "value": [120, 120] } } } ] }, "152x152": { "type": "file", "processors": [ { "name": "resize", "in": { "original_image": { "property": "original" }, "size": { "value": [152, 152] } } } ] }, "167x167": { "type": "file", "processors": [ { "name": "resize", "in": { "original_image": { "property": "original" }, "size": { "value": [167, 167] } } } ] }, "180x180": { "type": "file", "processors": [ { "name": "resize", "in": { "original_image": { "property": "original" }, "size": { "value": [180, 180] } } } ] } } }
# -*- coding: utf-8 -*- # @Time : 2019-08-26 16:34 # @Author : Kai Zhang # @Email : kai.zhang@lizhiweike.com # @File : ex1-LetterCombinationsofaPhoneNumber.py # @Software: PyCharm class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ # 创建字母对应的字符列表的字典 dic = {2: ['a', 'b', 'c'], 3: ['d', 'e', 'f'], 4: ['g', 'h', 'i'], 5: ['j', 'k', 'l'], 6: ['m', 'n', 'o'], 7: ['p', 'q', 'r', 's'], 8: ['t', 'u', 'v'], 9: ['w', 'x', 'y', 'z'], } # 存储结果的数组 ret_str = [] if len(digits) == 0: return [] # 递归出口,当递归到最后一个数的时候result拿到结果进行for循环遍历 if len(digits) == 1: return dic[int(digits[0])] # 递归调用 result = self.letterCombinations(digits[1:]) # result是一个数组列表,遍历后字符串操作,加入列表 for r in result: for j in dic[int(digits[0])]: ret_str.append(j + r) return ret_str if __name__ == '__main__': s = Solution() print(s.letterCombinations('23'))
#!/usr/bin/python3 """ BaseCaching module.""" class BaseCaching(): """ BaseCaching defines: - constants of your caching system - where your data are stored (in a dictionary) """ MAX_ITEMS = 4 def __init__(self): """Initiliaze.""" self.cache_data = {} def print_cache(self): """ Print the cache """ print("Current cache:") for key in sorted(self.cache_data.keys()): print("{}: {}".format(key, self.cache_data.get(key))) def put(self, key, item): """ Add an item in the cache """ raise NotImplementedError("put must be implemented in your cache class") def get(self, key): """ Get an item by key """ raise NotImplementedError("get must be implemented in your cache class")
# by usingt he above trick we see that kidney_data.gsms is a dictionary (you can validate this) type(kidney_data.gsms) # a dict is a container of key,value pairs. The values in this case are of the class GEOparse.GEOTypes.GSM # e.g. print(type(list(kidney_data.gsms.values())[0])) ## to get the available methods: fst = list(kidney_data.gsms.values())[0] dir(fst) # for instance look at metadata: fst.metadata
def remove_smallest(n, lst): if n <= 0: return lst elif n > len(lst): return [] dex = [b[1] for b in sorted((a, i) for i, a in enumerate(lst))[:n]] return [c for i, c in enumerate(lst) if i not in dex]
class Solution: def countServers(self, grid: List[List[int]]) -> int: rows = defaultdict(set) cols = defaultdict(set) m = len(grid) n = len(grid[0]) for i in range(m): for j in range(n): if grid[i][j]: rows[i].add(j) cols[j].add(i) ans = 0 for i in range(m): for j in range(n): if grid[i][j]: if len(rows[i]) >= 2 or len(cols[j]) >= 2: ans += 1 return ans