content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
IMAGE_PATH = "H:\Asu\mwdb\project-phase-0\CSE 515 Fall19 - Smaller Dataset\Phase-1\CSE 515 Fall19 - Smaller Dataset\Hand_0008110.jpg" IMAGE_FOLDER = "H:\Asu\mwdb\project-phase-0\CSE 515 Fall19 - Smaller Dataset\images" DATABASE_FOLDER = "H:\Asu\mwdb\project-phase-0\CSE 515 Fall19 - Smaller Dataset\Database\\" METADATA_FOLDER = "H:\Asu\mwdb\project-phase-0\CSE 515 Fall19 - Smaller Dataset\metadata\HandInfo.csv" frTechniqueDict = {"1": "CM", "2": "LBP", "3": "HOG", "4": "SIFT"} fdTechniqueDict = {"1": "PCA", "2": "LDA", "3": "SVD", "4": "NMF"} flTechniqueDict = {"1": "LEFT", "2": "RIGHT", "3": "DORSAL", "4": "PALMER", "5": "ACCESS", "6": "NOACCESS", "7": "MALE", "8": "FEMALE"}
image_path = 'H:\\Asu\\mwdb\\project-phase-0\\CSE 515 Fall19 - Smaller Dataset\\Phase-1\\CSE 515 Fall19 - Smaller Dataset\\Hand_0008110.jpg' image_folder = 'H:\\Asu\\mwdb\\project-phase-0\\CSE 515 Fall19 - Smaller Dataset\\images' database_folder = 'H:\\Asu\\mwdb\\project-phase-0\\CSE 515 Fall19 - Smaller Dataset\\Database\\' metadata_folder = 'H:\\Asu\\mwdb\\project-phase-0\\CSE 515 Fall19 - Smaller Dataset\\metadata\\HandInfo.csv' fr_technique_dict = {'1': 'CM', '2': 'LBP', '3': 'HOG', '4': 'SIFT'} fd_technique_dict = {'1': 'PCA', '2': 'LDA', '3': 'SVD', '4': 'NMF'} fl_technique_dict = {'1': 'LEFT', '2': 'RIGHT', '3': 'DORSAL', '4': 'PALMER', '5': 'ACCESS', '6': 'NOACCESS', '7': 'MALE', '8': 'FEMALE'}
def remove_duplicates(some_list): return list(set(some_list)) def run(): random_list = [1,1,2,2,4] print(remove_duplicates(random_list)) if __name__ == '__main__': run()
def remove_duplicates(some_list): return list(set(some_list)) def run(): random_list = [1, 1, 2, 2, 4] print(remove_duplicates(random_list)) if __name__ == '__main__': run()
# -*- coding: utf-8 -*- # Copyright (c) 2016, 2017, 2018, 2019 Sqreen. All rights reserved. # Please refer to our terms for more information: # # https://www.sqreen.io/terms.html # __author__ = "Sqreen" __copyright__ = "Copyright 2016, 2017, 2018, 2019, Sqreen" __email__ = "contact@sqreen.io" __license__ = "proprietary" # The major version should strictly follow PowerWAF API version. __version__ = "0.4.1"
__author__ = 'Sqreen' __copyright__ = 'Copyright 2016, 2017, 2018, 2019, Sqreen' __email__ = 'contact@sqreen.io' __license__ = 'proprietary' __version__ = '0.4.1'
# Copyright 2017 Michael Blondin, Alain Finkel, Christoph Haase, Serge Haddad # 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. # Configurations must be immutable class Configuration: def __init__(self): pass def __eq__(self, other): raise NotImplementedError() def __ne__(self, other): raise NotImplementedError() def __gt__(self, other): raise NotImplementedError() def __ge__(self, other): raise NotImplementedError() def __lt__(self, other): raise NotImplementedError() def __le__(self, other): raise NotImplementedError() def __hash__(self): raise NotImplementedError()
class Configuration: def __init__(self): pass def __eq__(self, other): raise not_implemented_error() def __ne__(self, other): raise not_implemented_error() def __gt__(self, other): raise not_implemented_error() def __ge__(self, other): raise not_implemented_error() def __lt__(self, other): raise not_implemented_error() def __le__(self, other): raise not_implemented_error() def __hash__(self): raise not_implemented_error()
class Report(object): def __init__(self): self._packets_in_buffer = [] self._packet_wait_time = [] self._server_load = [] def update_state(self, packets_in_buffer, packet_wait_time, server_load): self._packets_in_buffer.append(packets_in_buffer) self._packet_wait_time.append(packet_wait_time) self._server_load.append(server_load)
class Report(object): def __init__(self): self._packets_in_buffer = [] self._packet_wait_time = [] self._server_load = [] def update_state(self, packets_in_buffer, packet_wait_time, server_load): self._packets_in_buffer.append(packets_in_buffer) self._packet_wait_time.append(packet_wait_time) self._server_load.append(server_load)
# coding=utf-8 if __name__ == "__main__": print("developing...")
if __name__ == '__main__': print('developing...')
ITALY_CITIES = ['Roma', 'Milano'] GERMAN_CITIES = ['Berlin', 'Frankfurt'] US_CITIES = ['Boston', 'Los Angeles'] # Our restaurant is named differently in different # in different parts of the world def get_restaurant_name(city: str) -> str: if city in ITALY_CITIES: return "Trattoria Viafore" if city in GERMAN_CITIES: return "Pat's Kantine" if city in US_CITIES: return "Pat's Place" return None if get_restaurant_name('Boston'): print("Location Found!")
italy_cities = ['Roma', 'Milano'] german_cities = ['Berlin', 'Frankfurt'] us_cities = ['Boston', 'Los Angeles'] def get_restaurant_name(city: str) -> str: if city in ITALY_CITIES: return 'Trattoria Viafore' if city in GERMAN_CITIES: return "Pat's Kantine" if city in US_CITIES: return "Pat's Place" return None if get_restaurant_name('Boston'): print('Location Found!')
"""easyNeuron is the simplest way to design, build and test machine learnng models. Submodules ---------- easyneuron.math - The math tools needed for the module easyneuron.neighbours - KNearest and other neighbourb based ML models easyneuron.types - The custom types for the module """
"""easyNeuron is the simplest way to design, build and test machine learnng models. Submodules ---------- easyneuron.math - The math tools needed for the module easyneuron.neighbours - KNearest and other neighbourb based ML models easyneuron.types - The custom types for the module """
# Description: Imports needed for most uses of pymol in Jupyter. Combination of importPyMOL and importPythonDisplay. # Source: placeHolder """ cmd.do('from pymol import cmd') cmd.do('from IPython.display import Image') cmd.do('from IPython.core.display import HTML') cmd.do('PATH = "/Users/blaine/"') """ cmd.do('from pymol import cmd') cmd.do('from IPython.display import Image') cmd.do('from IPython.core.display import HTML') cmd.do('PATH = "/Users/blaine/"')
""" cmd.do('from pymol import cmd') cmd.do('from IPython.display import Image') cmd.do('from IPython.core.display import HTML') cmd.do('PATH = "/Users/blaine/"') """ cmd.do('from pymol import cmd') cmd.do('from IPython.display import Image') cmd.do('from IPython.core.display import HTML') cmd.do('PATH = "/Users/blaine/"')
training_data_hparams = { 'shuffle': False, 'num_epochs': 1, 'batch_size': 5, 'allow_smaller_final_batch': False, 'source_dataset': { "files": ['data/iwslt14/train.de'], 'vocab_file': 'data/iwslt14/vocab.de', 'max_seq_length': 50 }, 'target_dataset': { 'files': ['data/iwslt14/train.en'], 'vocab_file': 'data/iwslt14/vocab.en', 'max_seq_length': 50 } } test_data_hparams = training_data_hparams valid_data_hparams = test_data_hparams
training_data_hparams = {'shuffle': False, 'num_epochs': 1, 'batch_size': 5, 'allow_smaller_final_batch': False, 'source_dataset': {'files': ['data/iwslt14/train.de'], 'vocab_file': 'data/iwslt14/vocab.de', 'max_seq_length': 50}, 'target_dataset': {'files': ['data/iwslt14/train.en'], 'vocab_file': 'data/iwslt14/vocab.en', 'max_seq_length': 50}} test_data_hparams = training_data_hparams valid_data_hparams = test_data_hparams
def foo(x): return x**2 def decorator(func): def wrapper(*args, **kwargs): print(func, args, kwargs) return func(*args, **kwargs) return wrapper _decorated_funcs = defaultdict(lambda: []) _applied_decorators = defaultdict(lambda: []) def apply_decorator(func, decorator): _decorated_funcs[func.__qualname__].append(func) # to undo _applied_decorators[func.__qualname__].append(decorator) func = decorator(func) apply_decorator(func, decorator)
def foo(x): return x ** 2 def decorator(func): def wrapper(*args, **kwargs): print(func, args, kwargs) return func(*args, **kwargs) return wrapper _decorated_funcs = defaultdict(lambda : []) _applied_decorators = defaultdict(lambda : []) def apply_decorator(func, decorator): _decorated_funcs[func.__qualname__].append(func) _applied_decorators[func.__qualname__].append(decorator) func = decorator(func) apply_decorator(func, decorator)
# Created by MechAviv # ID :: [910150001] # Frozen Fairy Forest : Elluel sm.showEffect("Effect/Direction5.img/effect/mercedesInIce/merBalloon/8", 2000, 0, -100, 0, -2, False, 0) sm.sendDelay(2000) sm.setTemporarySkillSet(0) sm.setInGameDirectionMode(False, True, False, False) sm.progressMessageFont(3, 20, 20, 0, "Press the Alt key to jump.")
sm.showEffect('Effect/Direction5.img/effect/mercedesInIce/merBalloon/8', 2000, 0, -100, 0, -2, False, 0) sm.sendDelay(2000) sm.setTemporarySkillSet(0) sm.setInGameDirectionMode(False, True, False, False) sm.progressMessageFont(3, 20, 20, 0, 'Press the Alt key to jump.')
"""Constants for testing the Coinbase integration.""" GOOD_CURRENCY = "BTC" GOOD_CURRENCY_2 = "USD" GOOD_CURRENCY_3 = "EUR" GOOD_EXCHNAGE_RATE = "BTC" GOOD_EXCHNAGE_RATE_2 = "ATOM" BAD_CURRENCY = "ETH" BAD_EXCHANGE_RATE = "ETH" MOCK_ACCOUNTS_RESPONSE = [ { "balance": {"amount": "13.38", "currency": GOOD_CURRENCY_3}, "currency": GOOD_CURRENCY_3, "id": "ABCDEF", "name": "BTC Wallet", "native_balance": {"amount": "15.02", "currency": GOOD_CURRENCY_2}, }, { "balance": {"amount": "0.00001", "currency": GOOD_CURRENCY}, "currency": GOOD_CURRENCY, "id": "123456789", "name": "BTC Wallet", "native_balance": {"amount": "100.12", "currency": GOOD_CURRENCY_2}, }, { "balance": {"amount": "9.90", "currency": GOOD_CURRENCY_2}, "currency": "USD", "id": "987654321", "name": "USD Wallet", "native_balance": {"amount": "9.90", "currency": GOOD_CURRENCY_2}, }, ]
"""Constants for testing the Coinbase integration.""" good_currency = 'BTC' good_currency_2 = 'USD' good_currency_3 = 'EUR' good_exchnage_rate = 'BTC' good_exchnage_rate_2 = 'ATOM' bad_currency = 'ETH' bad_exchange_rate = 'ETH' mock_accounts_response = [{'balance': {'amount': '13.38', 'currency': GOOD_CURRENCY_3}, 'currency': GOOD_CURRENCY_3, 'id': 'ABCDEF', 'name': 'BTC Wallet', 'native_balance': {'amount': '15.02', 'currency': GOOD_CURRENCY_2}}, {'balance': {'amount': '0.00001', 'currency': GOOD_CURRENCY}, 'currency': GOOD_CURRENCY, 'id': '123456789', 'name': 'BTC Wallet', 'native_balance': {'amount': '100.12', 'currency': GOOD_CURRENCY_2}}, {'balance': {'amount': '9.90', 'currency': GOOD_CURRENCY_2}, 'currency': 'USD', 'id': '987654321', 'name': 'USD Wallet', 'native_balance': {'amount': '9.90', 'currency': GOOD_CURRENCY_2}}]
#!/usr/bin/env python3 input = int(input()) def scores_after_n_receipes(n): scores = [3, 7] elfs_positions = [0, 1] target_scores = n + 10 while len(scores) < target_scores: new_receipe_score = 0 for i, pos in enumerate(elfs_positions): new_receipe_score += scores[pos] scores.extend(map(int, str(new_receipe_score))) for i, pos in enumerate(elfs_positions): elfs_positions[i] = (elfs_positions[i] + scores[pos] + 1) % len(scores) # debug_scores = scores[:] # for i, s in enumerate(debug_scores): # if i not in elfs_positions: # debug_scores[i] = f' {s} ' # debug_scores[elfs_positions[0]] = f'({debug_scores[elfs_positions[0]]})' # debug_scores[elfs_positions[1]] = f'[{debug_scores[elfs_positions[1]]}]' # print(' '.join(map(str, debug_scores))) return scores[n:n+10] def after_how_many(next_scores): scores = [3, 7] elfs_positions = [0, 1] target_len = len(next_scores) while True: new_receipe_score = 0 for i, pos in enumerate(elfs_positions): new_receipe_score += scores[pos] for score in map(int, str(new_receipe_score)): scores.append(score) if ''.join(map(str, scores[-target_len:])) == next_scores: return len(scores) - target_len for i, pos in enumerate(elfs_positions): elfs_positions[i] = (elfs_positions[i] + scores[pos] + 1) % len(scores) print(''.join(map(str, scores_after_n_receipes(input)))) print(after_how_many(str(input)))
input = int(input()) def scores_after_n_receipes(n): scores = [3, 7] elfs_positions = [0, 1] target_scores = n + 10 while len(scores) < target_scores: new_receipe_score = 0 for (i, pos) in enumerate(elfs_positions): new_receipe_score += scores[pos] scores.extend(map(int, str(new_receipe_score))) for (i, pos) in enumerate(elfs_positions): elfs_positions[i] = (elfs_positions[i] + scores[pos] + 1) % len(scores) return scores[n:n + 10] def after_how_many(next_scores): scores = [3, 7] elfs_positions = [0, 1] target_len = len(next_scores) while True: new_receipe_score = 0 for (i, pos) in enumerate(elfs_positions): new_receipe_score += scores[pos] for score in map(int, str(new_receipe_score)): scores.append(score) if ''.join(map(str, scores[-target_len:])) == next_scores: return len(scores) - target_len for (i, pos) in enumerate(elfs_positions): elfs_positions[i] = (elfs_positions[i] + scores[pos] + 1) % len(scores) print(''.join(map(str, scores_after_n_receipes(input)))) print(after_how_many(str(input)))
# try: # total = 1/0 # # this will not execute # except Exception: # total = 0 # print(total) # 0 # try: # total = 1/0 # print("This will not show up.") # except Exception: # print("Exception was caught") # Exception was caught # total = 0 # print(total) # 0 # num = input("What is a number? ") # What is a number? 10 # num = int(num) # print(num) # 10 num = input("What is a number? ") # What is a number? Python 301 num = int(num) print(num) # Traceback (most recent call last): # File "c:\Users\pgold\CarlsHub\CompletePython\ClassFiles\Python301\ObjectOrientatedProgramming\ErrorCatching\ErrorsExceptions.py", line 26, in <module> # num = int(num) # ValueError: invalid literal for int() with base 10: 'Python 301'
num = input('What is a number? ') num = int(num) print(num)
class ErroresLexicos(): ''' Parametros: - Descripcion:str Descripcion - linea y columna:numeric linea y columna - clase origen:str Sirve para decir en que clase del patron interprete trono ''' def __init__(self, descripcion, linea, columna, origen): self.descripcion = descripcion self.linea = linea self.columna = columna self.origen = origen ''' ______ _____ _____ ____ _____ | ____| __ \| __ \ / __ \| __ \ | |__ | |__) | |__) | | | | |__) | | __| | _ /| _ /| | | | _ / | |____| | \ \| | \ \| |__| | | \ \ |______|_| \_\_| \_\\____/|_| \_\ Descripcion: '''
class Erroreslexicos: """ Parametros: - Descripcion:str Descripcion - linea y columna:numeric linea y columna - clase origen:str Sirve para decir en que clase del patron interprete trono """ def __init__(self, descripcion, linea, columna, origen): self.descripcion = descripcion self.linea = linea self.columna = columna self.origen = origen '\n ______ _____ _____ ____ _____ \n | ____| __ \\| __ \\ / __ \\| __ \\ \n | |__ | |__) | |__) | | | | |__) |\n | __| | _ /| _ /| | | | _ / \n | |____| | \\ \\| | \\ \\| |__| | | \\ \\ \n |______|_| \\_\\_| \\_\\____/|_| \\_\n Descripcion: \n '
# # PySNMP MIB module CISCO-PORT-CHANNEL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-PORT-CHANNEL-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:09:40 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") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") PortMemberList, = mibBuilder.importSymbols("CISCO-ST-TC", "PortMemberList") InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifIndex") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") Unsigned32, ObjectIdentity, IpAddress, iso, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Integer32, TimeTicks, NotificationType, Gauge32, MibIdentifier, ModuleIdentity, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "ObjectIdentity", "IpAddress", "iso", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Integer32", "TimeTicks", "NotificationType", "Gauge32", "MibIdentifier", "ModuleIdentity", "Counter64") TimeStamp, RowStatus, DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TimeStamp", "RowStatus", "DisplayString", "TruthValue", "TextualConvention") ciscoPortChannelMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 285)) ciscoPortChannelMIB.setRevisions(('2004-09-13 00:00', '2004-06-08 00:00', '2004-03-11 00:00', '2003-05-28 00:00', '2002-10-02 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoPortChannelMIB.setRevisionsDescriptions(('Added new object portChannelExtOperChannelGrpMode to portChannelExtTable. Changed the SYNTAX of portChannelExtPersistent to INTEGER from TruthValue.', 'Added new tables portChannelGrpIfExtTable and portChannelExtTable. Also, added new object portChannelProtocolEnable.', 'Added portChannelMemberOperStatus to portChannelTable. ', 'Superceeded portChannelMIBCompliances with portChannelMIBCompliances1. Added portChannelAdminChannelMode object to portChannelMIBCompliances1. ', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: ciscoPortChannelMIB.setLastUpdated('200409130000Z') if mibBuilder.loadTexts: ciscoPortChannelMIB.setOrganization('Cisco Systems Inc.') if mibBuilder.loadTexts: ciscoPortChannelMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: cs-san@cisco.com') if mibBuilder.loadTexts: ciscoPortChannelMIB.setDescription('The MIB module for management of Port Channel ports. In addition to this MIB, CISCO-FC-FE-MIB and interface mib (rfc2863) will also contain entries for Port Channel ports.') ciscoPortChannelObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1)) portChannelMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2)) portChannelConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1)) portChannelStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 2)) portChannelNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 3)) portChannelNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 3, 0)) class PortChannelMode(TextualConvention, Integer32): description = 'Defines how a Port Channel does channeling. auto(1) - place the port into passive negotiation state, in which the port waits for its peer to initiate negotiation. on(2) - force the port to enable channeling. off(3) - channeling is disabled. desirable(4) - place the port into active negotiating state, in which the port initiates negotiations with its peer and if the peer end agrees, channeling is enabled between them. ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("auto", 1), ("on", 2), ("off", 3), ("desirable", 4)) class PortChannelGroupMode(TextualConvention, Integer32): description = "Defines how a Port Channel does channeling. on(1) - the port shall operate as part of a port channel or remain inactive. The port channel protocol is turned off and peer port is assumed to be configured in 'on' mode. active(2)- indicates that port shall initiate port channel negotiation with peer port according to the port channel protocol regardless of the channel mode of the peer port." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("on", 1), ("active", 2)) portChannelTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1), ) if mibBuilder.loadTexts: portChannelTable.setStatus('current') if mibBuilder.loadTexts: portChannelTable.setDescription("This table facilitates the creation and deletion of a Port Channel interface to achieve higher bandwidths than just one E_port. More than one E_port can be a member of an Port Channel port. NOTE:Only E_ports can be members of an Port Channel port. A port is added to a Port Channel port by setting portChannelMemberList,and the 'manner' in which the agent performs the type of addition is determined by the value of portChannelAddType. During the period when port(s) is being added to the Port Channel, the agent will not allow to change any parameters of the port(s) being added. Also if the operation is successful (i.e. port(s) is added to the Port Channel) then also the agent will not allow to change any parameters of the individual port(s) that is added. But any change done to the Port Channel port will also be applied to the port(s) which are member(s) of this Port channel port. Once a port(s) is removed from a Port Channel Port it will retain the values that it had when it was a member of the Port Channel port. It will not have the old values it had before joining the Port Channel port. The port(s) that are added/removed to/from a Port Channel port will be put into administratively down (ifAdminStatus='down') which results into operationally down(ifOperStatus='down'). To bring the port up again, the user has to set the port to be administratively up(ifAdminStatus='up'). Then the port goes through its initialization cycle to become active(ifOperStatus='up'). ") portChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-PORT-CHANNEL-MIB", "portChannelIndex")) if mibBuilder.loadTexts: portChannelEntry.setStatus('current') if mibBuilder.loadTexts: portChannelEntry.setDescription('There is one entry in this table for each created Port Channel port. ') portChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))) if mibBuilder.loadTexts: portChannelIndex.setStatus('current') if mibBuilder.loadTexts: portChannelIndex.setDescription('An index that uniquely identifies an entry in the portChannelTable table. ') portChannelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelIfIndex.setStatus('current') if mibBuilder.loadTexts: portChannelIfIndex.setDescription('The ifIndex of this interface. ') portChannelAdminChannelMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 3), PortChannelMode().clone('on')).setMaxAccess("readcreate") if mibBuilder.loadTexts: portChannelAdminChannelMode.setStatus('current') if mibBuilder.loadTexts: portChannelAdminChannelMode.setDescription("The channel mode desired by the network manager. If this object is configured to be auto(1), then the 'portChannelOperChannelMode' will show the current operating channel mode of port. ") portChannelOperChannelMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 4), PortChannelMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelOperChannelMode.setStatus('current') if mibBuilder.loadTexts: portChannelOperChannelMode.setDescription('The current operating channel mode of the port. ') portChannelAddType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("force", 2))).clone('normal')).setMaxAccess("readcreate") if mibBuilder.loadTexts: portChannelAddType.setStatus('current') if mibBuilder.loadTexts: portChannelAddType.setDescription('The method to be adopted by the agent to add port(s) to a Port Channel port. If normal(1), then a compatibility check is done on the parameters of the port(s) being added to this Port Channel. The port(s) being added must have the same physical and configured parameters as the Port Channel port. If force(2), a compatibility check is done on only physical parameters. The port(s) being added to this Port Channel port must have same physical parameters. The operation will fail only if the physical parameters are not same. The configured parameters of the port(s) being added are overwritten by configured parameters of this Port Channel port. ') portChannelLastActionStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("successful", 1), ("failed", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelLastActionStatus.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionStatus.setDescription('The status of the last operation (add or remove a member) done to change the member list of a Port Channel Port. When no ports are added or the last operation is successful then this object will be successful(1). If this value is failed(2) then the user can look at portChannelLastAddStatusCause to find the reason of failure. ') portChannelLastActionStatusCause = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 7), SnmpAdminString()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelLastActionStatusCause.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionStatusCause.setDescription("The cause of failure to last operation (add or remove a member) done to change the member list of a Port Channel port. This object will be zero length string if 'portChannelLastActionStatus' is successful(1). ") portChannelLastActionTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 8), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelLastActionTime.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionTime.setDescription('The timestamp indicating the time of last action performed on this entry. ') portChannelMemberList = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 9), PortMemberList().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: portChannelMemberList.setStatus('current') if mibBuilder.loadTexts: portChannelMemberList.setDescription("The list of ifIndex's of the E_ports that are members of this Port Channel port. ") portChannelCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 10), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelCreationTime.setStatus('current') if mibBuilder.loadTexts: portChannelCreationTime.setDescription("The timestamp of this entry's creation time. Note that at this creation time, a discontinuity occurs in the statistic/error counters which are defined in CISCO-FC-FE-MIB, and which are associated with this Port Channel. ") portChannelRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: portChannelRowStatus.setStatus('current') if mibBuilder.loadTexts: portChannelRowStatus.setDescription('The status of this conceptual row. ') portChannelMemberOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 12), PortMemberList().clone(hexValue="")).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelMemberOperStatus.setStatus('current') if mibBuilder.loadTexts: portChannelMemberOperStatus.setDescription("The list of port channel forwarding status of the E_ports that are members of this Port Channel port. Every four-byte is a status of the corresponding member port represented by ifIndex in portChannelMemberList. The portChannelMemberOperStatus may not be the same as ifOperStatus. A value of '00 00 00 01' means the corresponding member port is participating in the load balancing of the port channel. A value of '00 00 00 02' means the corresponding member port is not participating in the load balancing of the port channel. ") portChannelProtocolEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 2), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: portChannelProtocolEnable.setStatus('current') if mibBuilder.loadTexts: portChannelProtocolEnable.setDescription('Enables/disables Port Channel Protocol. If enabled, Port Channel Protocol provides following features: - detection and correction of mis-configurations of interfaces involved with a Port Channel. - automatic creation of Channel Groups (and therefore Port Channels) if both ends of the links are compatible with each other.') portChannelGrpIfExtTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3), ) if mibBuilder.loadTexts: portChannelGrpIfExtTable.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfExtTable.setDescription('This table facilitates Channel Group specific interface configurations.') portChannelGrpIfExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: portChannelGrpIfExtEntry.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfExtEntry.setDescription('There is one entry in this table for each created Port Channel port.') portChannelGrpIfAutoCreation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: portChannelGrpIfAutoCreation.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfAutoCreation.setDescription('This object indicates if this interface may be part of automatically created Channel Groups (and therefore Port Channels).') portChannelExtTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4), ) if mibBuilder.loadTexts: portChannelExtTable.setStatus('current') if mibBuilder.loadTexts: portChannelExtTable.setDescription('This table extends the portChannelTable to support Port Channel Protocol.') portChannelExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1), ) portChannelEntry.registerAugmentions(("CISCO-PORT-CHANNEL-MIB", "portChannelExtEntry")) portChannelExtEntry.setIndexNames(*portChannelEntry.getIndexNames()) if mibBuilder.loadTexts: portChannelExtEntry.setStatus('current') if mibBuilder.loadTexts: portChannelExtEntry.setDescription('There is one entry in this table for each created Port Channel port. It contains an entry for every Port Channel that is either automatically created or manually configured.') portChannelExtChannelGrpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 1), PortChannelGroupMode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: portChannelExtChannelGrpMode.setStatus('current') if mibBuilder.loadTexts: portChannelExtChannelGrpMode.setDescription('The admin channel group mode of this port channel.') portChannelExtAutoCreated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 2), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelExtAutoCreated.setStatus('current') if mibBuilder.loadTexts: portChannelExtAutoCreated.setDescription('Indicates of this port channel was automatically created. Note that this object is valid only for Fibre Channel port channels.') portChannelExtPersistent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noOp", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portChannelExtPersistent.setStatus('current') if mibBuilder.loadTexts: portChannelExtPersistent.setDescription("This object converts an auto-created port channel to a persistent port channel when it is set to 'enable'. No action is taken if this object is set to 'noOp'. The value of the object when read is always 'noOp'.") portChannelExtOperChannelGrpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 4), PortChannelGroupMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: portChannelExtOperChannelGrpMode.setStatus('current') if mibBuilder.loadTexts: portChannelExtOperChannelGrpMode.setDescription('The operational channel group mode of this port channel.') portChannelMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1)) portChannelMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2)) portChannelMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 1)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelMIBCompliance = portChannelMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') portChannelMIBCompliance1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 2)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelMIBCompliance1 = portChannelMIBCompliance1.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance1.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') portChannelMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 3)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelGroup"), ("CISCO-PORT-CHANNEL-MIB", "portChannelGroupRev1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelMIBCompliance2 = portChannelMIBCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance2.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') portChannelMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 4)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelGroup"), ("CISCO-PORT-CHANNEL-MIB", "portChannelGroupRev1"), ("CISCO-PORT-CHANNEL-MIB", "portChannelProtocolGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelMIBCompliance3 = portChannelMIBCompliance3.setStatus('current') if mibBuilder.loadTexts: portChannelMIBCompliance3.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') portChannelGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 1)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelIfIndex"), ("CISCO-PORT-CHANNEL-MIB", "portChannelAdminChannelMode"), ("CISCO-PORT-CHANNEL-MIB", "portChannelOperChannelMode"), ("CISCO-PORT-CHANNEL-MIB", "portChannelAddType"), ("CISCO-PORT-CHANNEL-MIB", "portChannelLastActionStatus"), ("CISCO-PORT-CHANNEL-MIB", "portChannelLastActionStatusCause"), ("CISCO-PORT-CHANNEL-MIB", "portChannelLastActionTime"), ("CISCO-PORT-CHANNEL-MIB", "portChannelMemberList"), ("CISCO-PORT-CHANNEL-MIB", "portChannelCreationTime"), ("CISCO-PORT-CHANNEL-MIB", "portChannelRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelGroup = portChannelGroup.setStatus('current') if mibBuilder.loadTexts: portChannelGroup.setDescription('A collection of objects related to Port Channel Interface parameters.') portChannelGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 2)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelMemberOperStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelGroupRev1 = portChannelGroupRev1.setStatus('current') if mibBuilder.loadTexts: portChannelGroupRev1.setDescription('A collection of objects related to Port Channel Interface parameters.') portChannelProtocolGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 3)).setObjects(("CISCO-PORT-CHANNEL-MIB", "portChannelProtocolEnable"), ("CISCO-PORT-CHANNEL-MIB", "portChannelGrpIfAutoCreation"), ("CISCO-PORT-CHANNEL-MIB", "portChannelExtChannelGrpMode"), ("CISCO-PORT-CHANNEL-MIB", "portChannelExtAutoCreated"), ("CISCO-PORT-CHANNEL-MIB", "portChannelExtPersistent"), ("CISCO-PORT-CHANNEL-MIB", "portChannelExtOperChannelGrpMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): portChannelProtocolGroup = portChannelProtocolGroup.setStatus('current') if mibBuilder.loadTexts: portChannelProtocolGroup.setDescription('A collection of objects related to Port Channel Protocol mamagement.') mibBuilder.exportSymbols("CISCO-PORT-CHANNEL-MIB", portChannelExtTable=portChannelExtTable, portChannelMIBCompliance1=portChannelMIBCompliance1, portChannelMIBGroups=portChannelMIBGroups, portChannelGroup=portChannelGroup, portChannelLastActionTime=portChannelLastActionTime, portChannelNotification=portChannelNotification, portChannelGrpIfExtEntry=portChannelGrpIfExtEntry, portChannelMIBConformance=portChannelMIBConformance, portChannelMIBCompliance=portChannelMIBCompliance, portChannelMIBCompliance2=portChannelMIBCompliance2, portChannelProtocolGroup=portChannelProtocolGroup, portChannelIndex=portChannelIndex, portChannelNotifications=portChannelNotifications, portChannelMemberList=portChannelMemberList, portChannelCreationTime=portChannelCreationTime, portChannelTable=portChannelTable, portChannelExtOperChannelGrpMode=portChannelExtOperChannelGrpMode, portChannelGrpIfExtTable=portChannelGrpIfExtTable, PortChannelGroupMode=PortChannelGroupMode, portChannelExtEntry=portChannelExtEntry, portChannelMIBCompliance3=portChannelMIBCompliance3, portChannelProtocolEnable=portChannelProtocolEnable, portChannelGroupRev1=portChannelGroupRev1, portChannelAdminChannelMode=portChannelAdminChannelMode, PYSNMP_MODULE_ID=ciscoPortChannelMIB, portChannelMemberOperStatus=portChannelMemberOperStatus, portChannelMIBCompliances=portChannelMIBCompliances, ciscoPortChannelMIB=ciscoPortChannelMIB, portChannelAddType=portChannelAddType, portChannelExtPersistent=portChannelExtPersistent, portChannelOperChannelMode=portChannelOperChannelMode, portChannelIfIndex=portChannelIfIndex, ciscoPortChannelObjects=ciscoPortChannelObjects, portChannelLastActionStatusCause=portChannelLastActionStatusCause, portChannelStatistics=portChannelStatistics, portChannelConfig=portChannelConfig, portChannelEntry=portChannelEntry, portChannelRowStatus=portChannelRowStatus, PortChannelMode=PortChannelMode, portChannelLastActionStatus=portChannelLastActionStatus, portChannelGrpIfAutoCreation=portChannelGrpIfAutoCreation, portChannelExtAutoCreated=portChannelExtAutoCreated, portChannelExtChannelGrpMode=portChannelExtChannelGrpMode)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (port_member_list,) = mibBuilder.importSymbols('CISCO-ST-TC', 'PortMemberList') (interface_index, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifIndex') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (unsigned32, object_identity, ip_address, iso, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, integer32, time_ticks, notification_type, gauge32, mib_identifier, module_identity, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'ObjectIdentity', 'IpAddress', 'iso', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Integer32', 'TimeTicks', 'NotificationType', 'Gauge32', 'MibIdentifier', 'ModuleIdentity', 'Counter64') (time_stamp, row_status, display_string, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TimeStamp', 'RowStatus', 'DisplayString', 'TruthValue', 'TextualConvention') cisco_port_channel_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 285)) ciscoPortChannelMIB.setRevisions(('2004-09-13 00:00', '2004-06-08 00:00', '2004-03-11 00:00', '2003-05-28 00:00', '2002-10-02 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoPortChannelMIB.setRevisionsDescriptions(('Added new object portChannelExtOperChannelGrpMode to portChannelExtTable. Changed the SYNTAX of portChannelExtPersistent to INTEGER from TruthValue.', 'Added new tables portChannelGrpIfExtTable and portChannelExtTable. Also, added new object portChannelProtocolEnable.', 'Added portChannelMemberOperStatus to portChannelTable. ', 'Superceeded portChannelMIBCompliances with portChannelMIBCompliances1. Added portChannelAdminChannelMode object to portChannelMIBCompliances1. ', 'Initial version of this MIB module.')) if mibBuilder.loadTexts: ciscoPortChannelMIB.setLastUpdated('200409130000Z') if mibBuilder.loadTexts: ciscoPortChannelMIB.setOrganization('Cisco Systems Inc.') if mibBuilder.loadTexts: ciscoPortChannelMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: cs-san@cisco.com') if mibBuilder.loadTexts: ciscoPortChannelMIB.setDescription('The MIB module for management of Port Channel ports. In addition to this MIB, CISCO-FC-FE-MIB and interface mib (rfc2863) will also contain entries for Port Channel ports.') cisco_port_channel_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1)) port_channel_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2)) port_channel_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1)) port_channel_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 2)) port_channel_notification = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 3)) port_channel_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 3, 0)) class Portchannelmode(TextualConvention, Integer32): description = 'Defines how a Port Channel does channeling. auto(1) - place the port into passive negotiation state, in which the port waits for its peer to initiate negotiation. on(2) - force the port to enable channeling. off(3) - channeling is disabled. desirable(4) - place the port into active negotiating state, in which the port initiates negotiations with its peer and if the peer end agrees, channeling is enabled between them. ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('auto', 1), ('on', 2), ('off', 3), ('desirable', 4)) class Portchannelgroupmode(TextualConvention, Integer32): description = "Defines how a Port Channel does channeling. on(1) - the port shall operate as part of a port channel or remain inactive. The port channel protocol is turned off and peer port is assumed to be configured in 'on' mode. active(2)- indicates that port shall initiate port channel negotiation with peer port according to the port channel protocol regardless of the channel mode of the peer port." status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('on', 1), ('active', 2)) port_channel_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1)) if mibBuilder.loadTexts: portChannelTable.setStatus('current') if mibBuilder.loadTexts: portChannelTable.setDescription("This table facilitates the creation and deletion of a Port Channel interface to achieve higher bandwidths than just one E_port. More than one E_port can be a member of an Port Channel port. NOTE:Only E_ports can be members of an Port Channel port. A port is added to a Port Channel port by setting portChannelMemberList,and the 'manner' in which the agent performs the type of addition is determined by the value of portChannelAddType. During the period when port(s) is being added to the Port Channel, the agent will not allow to change any parameters of the port(s) being added. Also if the operation is successful (i.e. port(s) is added to the Port Channel) then also the agent will not allow to change any parameters of the individual port(s) that is added. But any change done to the Port Channel port will also be applied to the port(s) which are member(s) of this Port channel port. Once a port(s) is removed from a Port Channel Port it will retain the values that it had when it was a member of the Port Channel port. It will not have the old values it had before joining the Port Channel port. The port(s) that are added/removed to/from a Port Channel port will be put into administratively down (ifAdminStatus='down') which results into operationally down(ifOperStatus='down'). To bring the port up again, the user has to set the port to be administratively up(ifAdminStatus='up'). Then the port goes through its initialization cycle to become active(ifOperStatus='up'). ") port_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-PORT-CHANNEL-MIB', 'portChannelIndex')) if mibBuilder.loadTexts: portChannelEntry.setStatus('current') if mibBuilder.loadTexts: portChannelEntry.setDescription('There is one entry in this table for each created Port Channel port. ') port_channel_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2048))) if mibBuilder.loadTexts: portChannelIndex.setStatus('current') if mibBuilder.loadTexts: portChannelIndex.setDescription('An index that uniquely identifies an entry in the portChannelTable table. ') port_channel_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelIfIndex.setStatus('current') if mibBuilder.loadTexts: portChannelIfIndex.setDescription('The ifIndex of this interface. ') port_channel_admin_channel_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 3), port_channel_mode().clone('on')).setMaxAccess('readcreate') if mibBuilder.loadTexts: portChannelAdminChannelMode.setStatus('current') if mibBuilder.loadTexts: portChannelAdminChannelMode.setDescription("The channel mode desired by the network manager. If this object is configured to be auto(1), then the 'portChannelOperChannelMode' will show the current operating channel mode of port. ") port_channel_oper_channel_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 4), port_channel_mode()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelOperChannelMode.setStatus('current') if mibBuilder.loadTexts: portChannelOperChannelMode.setDescription('The current operating channel mode of the port. ') port_channel_add_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('force', 2))).clone('normal')).setMaxAccess('readcreate') if mibBuilder.loadTexts: portChannelAddType.setStatus('current') if mibBuilder.loadTexts: portChannelAddType.setDescription('The method to be adopted by the agent to add port(s) to a Port Channel port. If normal(1), then a compatibility check is done on the parameters of the port(s) being added to this Port Channel. The port(s) being added must have the same physical and configured parameters as the Port Channel port. If force(2), a compatibility check is done on only physical parameters. The port(s) being added to this Port Channel port must have same physical parameters. The operation will fail only if the physical parameters are not same. The configured parameters of the port(s) being added are overwritten by configured parameters of this Port Channel port. ') port_channel_last_action_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('successful', 1), ('failed', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelLastActionStatus.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionStatus.setDescription('The status of the last operation (add or remove a member) done to change the member list of a Port Channel Port. When no ports are added or the last operation is successful then this object will be successful(1). If this value is failed(2) then the user can look at portChannelLastAddStatusCause to find the reason of failure. ') port_channel_last_action_status_cause = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 7), snmp_admin_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelLastActionStatusCause.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionStatusCause.setDescription("The cause of failure to last operation (add or remove a member) done to change the member list of a Port Channel port. This object will be zero length string if 'portChannelLastActionStatus' is successful(1). ") port_channel_last_action_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 8), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelLastActionTime.setStatus('current') if mibBuilder.loadTexts: portChannelLastActionTime.setDescription('The timestamp indicating the time of last action performed on this entry. ') port_channel_member_list = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 9), port_member_list().clone(hexValue='')).setMaxAccess('readcreate') if mibBuilder.loadTexts: portChannelMemberList.setStatus('current') if mibBuilder.loadTexts: portChannelMemberList.setDescription("The list of ifIndex's of the E_ports that are members of this Port Channel port. ") port_channel_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 10), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelCreationTime.setStatus('current') if mibBuilder.loadTexts: portChannelCreationTime.setDescription("The timestamp of this entry's creation time. Note that at this creation time, a discontinuity occurs in the statistic/error counters which are defined in CISCO-FC-FE-MIB, and which are associated with this Port Channel. ") port_channel_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: portChannelRowStatus.setStatus('current') if mibBuilder.loadTexts: portChannelRowStatus.setDescription('The status of this conceptual row. ') port_channel_member_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 1, 1, 12), port_member_list().clone(hexValue='')).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelMemberOperStatus.setStatus('current') if mibBuilder.loadTexts: portChannelMemberOperStatus.setDescription("The list of port channel forwarding status of the E_ports that are members of this Port Channel port. Every four-byte is a status of the corresponding member port represented by ifIndex in portChannelMemberList. The portChannelMemberOperStatus may not be the same as ifOperStatus. A value of '00 00 00 01' means the corresponding member port is participating in the load balancing of the port channel. A value of '00 00 00 02' means the corresponding member port is not participating in the load balancing of the port channel. ") port_channel_protocol_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 2), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: portChannelProtocolEnable.setStatus('current') if mibBuilder.loadTexts: portChannelProtocolEnable.setDescription('Enables/disables Port Channel Protocol. If enabled, Port Channel Protocol provides following features: - detection and correction of mis-configurations of interfaces involved with a Port Channel. - automatic creation of Channel Groups (and therefore Port Channels) if both ends of the links are compatible with each other.') port_channel_grp_if_ext_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3)) if mibBuilder.loadTexts: portChannelGrpIfExtTable.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfExtTable.setDescription('This table facilitates Channel Group specific interface configurations.') port_channel_grp_if_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: portChannelGrpIfExtEntry.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfExtEntry.setDescription('There is one entry in this table for each created Port Channel port.') port_channel_grp_if_auto_creation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 3, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: portChannelGrpIfAutoCreation.setStatus('current') if mibBuilder.loadTexts: portChannelGrpIfAutoCreation.setDescription('This object indicates if this interface may be part of automatically created Channel Groups (and therefore Port Channels).') port_channel_ext_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4)) if mibBuilder.loadTexts: portChannelExtTable.setStatus('current') if mibBuilder.loadTexts: portChannelExtTable.setDescription('This table extends the portChannelTable to support Port Channel Protocol.') port_channel_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1)) portChannelEntry.registerAugmentions(('CISCO-PORT-CHANNEL-MIB', 'portChannelExtEntry')) portChannelExtEntry.setIndexNames(*portChannelEntry.getIndexNames()) if mibBuilder.loadTexts: portChannelExtEntry.setStatus('current') if mibBuilder.loadTexts: portChannelExtEntry.setDescription('There is one entry in this table for each created Port Channel port. It contains an entry for every Port Channel that is either automatically created or manually configured.') port_channel_ext_channel_grp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 1), port_channel_group_mode()).setMaxAccess('readwrite') if mibBuilder.loadTexts: portChannelExtChannelGrpMode.setStatus('current') if mibBuilder.loadTexts: portChannelExtChannelGrpMode.setDescription('The admin channel group mode of this port channel.') port_channel_ext_auto_created = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 2), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelExtAutoCreated.setStatus('current') if mibBuilder.loadTexts: portChannelExtAutoCreated.setDescription('Indicates of this port channel was automatically created. Note that this object is valid only for Fibre Channel port channels.') port_channel_ext_persistent = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noOp', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portChannelExtPersistent.setStatus('current') if mibBuilder.loadTexts: portChannelExtPersistent.setDescription("This object converts an auto-created port channel to a persistent port channel when it is set to 'enable'. No action is taken if this object is set to 'noOp'. The value of the object when read is always 'noOp'.") port_channel_ext_oper_channel_grp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 285, 1, 1, 4, 1, 4), port_channel_group_mode()).setMaxAccess('readonly') if mibBuilder.loadTexts: portChannelExtOperChannelGrpMode.setStatus('current') if mibBuilder.loadTexts: portChannelExtOperChannelGrpMode.setDescription('The operational channel group mode of this port channel.') port_channel_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1)) port_channel_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2)) port_channel_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 1)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_mib_compliance = portChannelMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') port_channel_mib_compliance1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 2)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_mib_compliance1 = portChannelMIBCompliance1.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance1.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') port_channel_mib_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 3)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelGroup'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelGroupRev1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_mib_compliance2 = portChannelMIBCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: portChannelMIBCompliance2.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') port_channel_mib_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 1, 4)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelGroup'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelGroupRev1'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelProtocolGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_mib_compliance3 = portChannelMIBCompliance3.setStatus('current') if mibBuilder.loadTexts: portChannelMIBCompliance3.setDescription('The compliance statement for entities which implement the CISCO-PORT-CHANNEL-MIB mib.') port_channel_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 1)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelIfIndex'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelAdminChannelMode'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelOperChannelMode'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelAddType'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelLastActionStatus'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelLastActionStatusCause'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelLastActionTime'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelMemberList'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelCreationTime'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_group = portChannelGroup.setStatus('current') if mibBuilder.loadTexts: portChannelGroup.setDescription('A collection of objects related to Port Channel Interface parameters.') port_channel_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 2)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelMemberOperStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_group_rev1 = portChannelGroupRev1.setStatus('current') if mibBuilder.loadTexts: portChannelGroupRev1.setDescription('A collection of objects related to Port Channel Interface parameters.') port_channel_protocol_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 285, 2, 2, 3)).setObjects(('CISCO-PORT-CHANNEL-MIB', 'portChannelProtocolEnable'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelGrpIfAutoCreation'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelExtChannelGrpMode'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelExtAutoCreated'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelExtPersistent'), ('CISCO-PORT-CHANNEL-MIB', 'portChannelExtOperChannelGrpMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): port_channel_protocol_group = portChannelProtocolGroup.setStatus('current') if mibBuilder.loadTexts: portChannelProtocolGroup.setDescription('A collection of objects related to Port Channel Protocol mamagement.') mibBuilder.exportSymbols('CISCO-PORT-CHANNEL-MIB', portChannelExtTable=portChannelExtTable, portChannelMIBCompliance1=portChannelMIBCompliance1, portChannelMIBGroups=portChannelMIBGroups, portChannelGroup=portChannelGroup, portChannelLastActionTime=portChannelLastActionTime, portChannelNotification=portChannelNotification, portChannelGrpIfExtEntry=portChannelGrpIfExtEntry, portChannelMIBConformance=portChannelMIBConformance, portChannelMIBCompliance=portChannelMIBCompliance, portChannelMIBCompliance2=portChannelMIBCompliance2, portChannelProtocolGroup=portChannelProtocolGroup, portChannelIndex=portChannelIndex, portChannelNotifications=portChannelNotifications, portChannelMemberList=portChannelMemberList, portChannelCreationTime=portChannelCreationTime, portChannelTable=portChannelTable, portChannelExtOperChannelGrpMode=portChannelExtOperChannelGrpMode, portChannelGrpIfExtTable=portChannelGrpIfExtTable, PortChannelGroupMode=PortChannelGroupMode, portChannelExtEntry=portChannelExtEntry, portChannelMIBCompliance3=portChannelMIBCompliance3, portChannelProtocolEnable=portChannelProtocolEnable, portChannelGroupRev1=portChannelGroupRev1, portChannelAdminChannelMode=portChannelAdminChannelMode, PYSNMP_MODULE_ID=ciscoPortChannelMIB, portChannelMemberOperStatus=portChannelMemberOperStatus, portChannelMIBCompliances=portChannelMIBCompliances, ciscoPortChannelMIB=ciscoPortChannelMIB, portChannelAddType=portChannelAddType, portChannelExtPersistent=portChannelExtPersistent, portChannelOperChannelMode=portChannelOperChannelMode, portChannelIfIndex=portChannelIfIndex, ciscoPortChannelObjects=ciscoPortChannelObjects, portChannelLastActionStatusCause=portChannelLastActionStatusCause, portChannelStatistics=portChannelStatistics, portChannelConfig=portChannelConfig, portChannelEntry=portChannelEntry, portChannelRowStatus=portChannelRowStatus, PortChannelMode=PortChannelMode, portChannelLastActionStatus=portChannelLastActionStatus, portChannelGrpIfAutoCreation=portChannelGrpIfAutoCreation, portChannelExtAutoCreated=portChannelExtAutoCreated, portChannelExtChannelGrpMode=portChannelExtChannelGrpMode)
if __name__ == '__main__': na = int(input()) a = list(map(int,input().split())) nb = int(input()) b = list(map(int, input().split())) if len(a) == na and len(b) == nb: set_a = set(a) set_b = set(b) symmetric_diff = list(set_a.symmetric_difference(set_b)) symmetric_diff.sort() for num in symmetric_diff: print(num) else: print('Number of values entered are not equal to total values to be entered!')
if __name__ == '__main__': na = int(input()) a = list(map(int, input().split())) nb = int(input()) b = list(map(int, input().split())) if len(a) == na and len(b) == nb: set_a = set(a) set_b = set(b) symmetric_diff = list(set_a.symmetric_difference(set_b)) symmetric_diff.sort() for num in symmetric_diff: print(num) else: print('Number of values entered are not equal to total values to be entered!')
"""Configurations for the RC car""" PICAMERA_RESOLUTION_WIDTH = 640 PICAMERA_RESOLUTION_HEIGHT = 480 PICAMERA_RESOLUTION = (PICAMERA_RESOLUTION_WIDTH, PICAMERA_RESOLUTION_HEIGHT) PICAMERA_FRAMERATE = 60 PICAMERA_WARM_UP_TIME = 2 BACK_MOTOR_DATA_ONE = 17 BACK_MOTOR_DATA_TWO = 27 BACK_MOTOR_ENABLE_PIN = 22 FRONT_MOTOR_DATA_ONE = 19 FRONT_MOTOR_DATA_TWO = 26 PWM_FREQUENCY = 1000 INITIAL_PWM_DUTY_CYCLE = 100 CLASSIFICATION_LABELS = ['forward', 'reverse', 'left', 'right', 'idle'] CLASSIFICATION_LABELS_AND_VALUES = { 'forward': [1, 0, 0, 0, 0], 'reverse': [0, 1, 0, 0, 0], 'left': [0, 0, 1, 0, 0], 'right': [0, 0, 0, 1, 0], 'idle': [0, 0, 0, 0, 1] } IMAGE_DIMENSIONS = (75, 75) LAMBDA = 0.0 HIDDEN_LAYER_SIZE = 50
"""Configurations for the RC car""" picamera_resolution_width = 640 picamera_resolution_height = 480 picamera_resolution = (PICAMERA_RESOLUTION_WIDTH, PICAMERA_RESOLUTION_HEIGHT) picamera_framerate = 60 picamera_warm_up_time = 2 back_motor_data_one = 17 back_motor_data_two = 27 back_motor_enable_pin = 22 front_motor_data_one = 19 front_motor_data_two = 26 pwm_frequency = 1000 initial_pwm_duty_cycle = 100 classification_labels = ['forward', 'reverse', 'left', 'right', 'idle'] classification_labels_and_values = {'forward': [1, 0, 0, 0, 0], 'reverse': [0, 1, 0, 0, 0], 'left': [0, 0, 1, 0, 0], 'right': [0, 0, 0, 1, 0], 'idle': [0, 0, 0, 0, 1]} image_dimensions = (75, 75) lambda = 0.0 hidden_layer_size = 50
def tune(scale, acc_rate): """ tune: bool Flag for tuning. Defaults to True. tune_interval: int The frequency of tuning. Defaults to 100 iterations. Module from pymc3 Tunes the scaling parameter for the proposal distribution according to the acceptance rate over the last tune_interval: Rate Variance adaptation ---- ------------------- <0.001 x 0.1 <0.05 x 0.5 <0.2 x 0.9 >0.5 x 1.1 >0.75 x 2 >0.95 x 10 """ if acc_rate < 0.001: # reduce by 90 percent return scale * 0.1 elif acc_rate < 0.05: # reduce by 50 percent return scale * 0.5 elif acc_rate < 0.2: # reduce by ten percent return scale * 0.9 elif acc_rate > 0.95: # increase by factor of ten return scale * 10.0 elif acc_rate > 0.75: # increase by double return scale * 2.0 elif acc_rate > 0.5: # increase by ten percent return scale * 1.1 return scale if not 0: print('h') print(not 0)
def tune(scale, acc_rate): """ tune: bool Flag for tuning. Defaults to True. tune_interval: int The frequency of tuning. Defaults to 100 iterations. Module from pymc3 Tunes the scaling parameter for the proposal distribution according to the acceptance rate over the last tune_interval: Rate Variance adaptation ---- ------------------- <0.001 x 0.1 <0.05 x 0.5 <0.2 x 0.9 >0.5 x 1.1 >0.75 x 2 >0.95 x 10 """ if acc_rate < 0.001: return scale * 0.1 elif acc_rate < 0.05: return scale * 0.5 elif acc_rate < 0.2: return scale * 0.9 elif acc_rate > 0.95: return scale * 10.0 elif acc_rate > 0.75: return scale * 2.0 elif acc_rate > 0.5: return scale * 1.1 return scale if not 0: print('h') print(not 0)
__author__ = "Dylan Hamel" __version__ = "0.1" __email__ = "dylan.hamel@protonmail.com" __status__ = "Prototype"
__author__ = 'Dylan Hamel' __version__ = '0.1' __email__ = 'dylan.hamel@protonmail.com' __status__ = 'Prototype'
budget = float(input()) season = input() budget_spent = 0 destination = "" place = "" if budget <= 100: if season == "summer": budget_spent = budget * 0.30 destination = "Bulgaria" place = "Camp" else: budget_spent = budget * 0.70 destination = "Bulgaria" place = "Hotel" elif budget <= 1000: if season == "summer": budget_spent = budget * 0.40 destination = "Balkans" place = "Camp" else: budget_spent = budget * 0.80 destination = "Balkans" place = "Hotel" else: budget_spent = budget * 0.90 destination = "Europe" place = "Hotel" print(f"Somewhere in {destination}") print(f"{place} - {budget_spent:.2f}")
budget = float(input()) season = input() budget_spent = 0 destination = '' place = '' if budget <= 100: if season == 'summer': budget_spent = budget * 0.3 destination = 'Bulgaria' place = 'Camp' else: budget_spent = budget * 0.7 destination = 'Bulgaria' place = 'Hotel' elif budget <= 1000: if season == 'summer': budget_spent = budget * 0.4 destination = 'Balkans' place = 'Camp' else: budget_spent = budget * 0.8 destination = 'Balkans' place = 'Hotel' else: budget_spent = budget * 0.9 destination = 'Europe' place = 'Hotel' print(f'Somewhere in {destination}') print(f'{place} - {budget_spent:.2f}')
def ma_methode(x = 0, y = 0): print(x,y) a = 1 b = 2 ma_methode() ma_methode(a) ma_methode(a,b) y = 10; ma_methode(y) ma_methode(y = 10)
def ma_methode(x=0, y=0): print(x, y) a = 1 b = 2 ma_methode() ma_methode(a) ma_methode(a, b) y = 10 ma_methode(y) ma_methode(y=10)
class TestSettings(object): ETCD_PREFIX = '/config/etcd_settings' ETCD_ENV = 'test' ETCD_HOST = 'etcd' ETCD_PORT = 2379 ETCD_USERNAME = 'test' ETCD_PASSWORD = 'test' ETCD_DETAILS = dict( host='etcd', port=2379, prefix='/config/etcd_settings', username='test', password='test' ) settings = TestSettings()
class Testsettings(object): etcd_prefix = '/config/etcd_settings' etcd_env = 'test' etcd_host = 'etcd' etcd_port = 2379 etcd_username = 'test' etcd_password = 'test' etcd_details = dict(host='etcd', port=2379, prefix='/config/etcd_settings', username='test', password='test') settings = test_settings()
def length_of_longest_substring(s): l, r, max_len = 0, 0, 0 while r < len(s): substring = s[l:r + 1] max_len = max(max_len, len(substring)) if r + 1 < len(s) and s[r + 1] in substring: l += 1 else: r += 1 return max_len def length_of_longest_substring_optimized(s): used = {} max_length = start = 0 for i, c in enumerate(s): if c in used and start <= used[c]: start = used[c] + 1 else: max_length = max(max_length, i - start + 1) used[c] = i return max_length # Test cases: print(length_of_longest_substring_optimized('abcabcbb') == 3) print(length_of_longest_substring('bbbbb') == 1) print(length_of_longest_substring('pwwkew') == 3)
def length_of_longest_substring(s): (l, r, max_len) = (0, 0, 0) while r < len(s): substring = s[l:r + 1] max_len = max(max_len, len(substring)) if r + 1 < len(s) and s[r + 1] in substring: l += 1 else: r += 1 return max_len def length_of_longest_substring_optimized(s): used = {} max_length = start = 0 for (i, c) in enumerate(s): if c in used and start <= used[c]: start = used[c] + 1 else: max_length = max(max_length, i - start + 1) used[c] = i return max_length print(length_of_longest_substring_optimized('abcabcbb') == 3) print(length_of_longest_substring('bbbbb') == 1) print(length_of_longest_substring('pwwkew') == 3)
def aoc(data): total = 0 min, max = data.split("-") for x in [str(x) for x in range(int(min), int(max))]: inc = True double = False for i, d in enumerate(x[1:]): if d < x[i]: inc = False break for i, d in enumerate(x): if d != (" " + x)[i] and d == (x + " ")[i + 1] and d != (x + " ")[i + 2]: double = True if double and inc: total += 1 return total
def aoc(data): total = 0 (min, max) = data.split('-') for x in [str(x) for x in range(int(min), int(max))]: inc = True double = False for (i, d) in enumerate(x[1:]): if d < x[i]: inc = False break for (i, d) in enumerate(x): if d != (' ' + x)[i] and d == (x + ' ')[i + 1] and (d != (x + ' ')[i + 2]): double = True if double and inc: total += 1 return total
def swap_case(s): a="" for i in range(len(s)): if s[i].islower(): a=a+s[i].upper() else: a=a+s[i].lower() return a
def swap_case(s): a = '' for i in range(len(s)): if s[i].islower(): a = a + s[i].upper() else: a = a + s[i].lower() return a
expected_output = { "backbone_fast": False, "bpdu_filter": False, "bpdu_guard": False, "bridge_assurance": True, "configured_pathcost": {"method": "short"}, "etherchannel_misconfig_guard": True, "extended_system_id": True, "loop_guard": False, "mode": { "rapid_pvst": { "VLAN0001": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN0115": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0116": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0118": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0119": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0121": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0180": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0501": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0502": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0503": { "blocking": 0, "forwarding": 3, "learning": 0, "listening": 0, "stp_active": 3, }, "VLAN0506": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0508": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0509": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0510": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0511": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0512": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0513": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0514": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0515": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0516": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0517": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0518": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0521": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0522": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0540": { "blocking": 0, "forwarding": 3, "learning": 0, "listening": 0, "stp_active": 3, }, "VLAN0601": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0602": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0603": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN0604": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0606": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN0701": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0801": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0802": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0803": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0804": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0805": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0806": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN0916": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1111": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1112": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1113": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1114": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1115": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1116": { "blocking": 0, "forwarding": 2, "learning": 0, "listening": 0, "stp_active": 2, }, "VLAN1125": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN1506": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN1509": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, "VLAN1601": { "blocking": 0, "forwarding": 1, "learning": 0, "listening": 0, "stp_active": 1, }, } }, "portfast_default": False, "pvst_simulation": True, "pvst_simulation_status": "inactive", "root_bridge_for": "VLAN0001, VLAN0115-VLAN0116, VLAN0118-VLAN0119, VLAN0121, VLAN0180, VLAN0501-VLAN0503, VLAN0506, VLAN0508-VLAN0518, VLAN0521-VLAN0522, VLAN0540, VLAN0601-VLAN0604, VLAN0606, VLAN0701, VLAN0801-VLAN0806, VLAN1111-VLAN1116, VLAN1506, VLAN1509, VLAN1601", "total_statistics": { "blockings": 0, "forwardings": 62, "learnings": 0, "listenings": 0, "num_of_vlans": 48, "stp_actives": 62, }, "uplink_fast": False, }
expected_output = {'backbone_fast': False, 'bpdu_filter': False, 'bpdu_guard': False, 'bridge_assurance': True, 'configured_pathcost': {'method': 'short'}, 'etherchannel_misconfig_guard': True, 'extended_system_id': True, 'loop_guard': False, 'mode': {'rapid_pvst': {'VLAN0001': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN0115': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0116': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0118': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0119': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0121': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0180': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0501': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0502': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0503': {'blocking': 0, 'forwarding': 3, 'learning': 0, 'listening': 0, 'stp_active': 3}, 'VLAN0506': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0508': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0509': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0510': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0511': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0512': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0513': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0514': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0515': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0516': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0517': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0518': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0521': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0522': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0540': {'blocking': 0, 'forwarding': 3, 'learning': 0, 'listening': 0, 'stp_active': 3}, 'VLAN0601': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0602': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0603': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN0604': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0606': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN0701': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0801': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0802': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0803': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0804': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0805': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0806': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN0916': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1111': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1112': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1113': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1114': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1115': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1116': {'blocking': 0, 'forwarding': 2, 'learning': 0, 'listening': 0, 'stp_active': 2}, 'VLAN1125': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN1506': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN1509': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}, 'VLAN1601': {'blocking': 0, 'forwarding': 1, 'learning': 0, 'listening': 0, 'stp_active': 1}}}, 'portfast_default': False, 'pvst_simulation': True, 'pvst_simulation_status': 'inactive', 'root_bridge_for': 'VLAN0001, VLAN0115-VLAN0116, VLAN0118-VLAN0119, VLAN0121, VLAN0180, VLAN0501-VLAN0503, VLAN0506, VLAN0508-VLAN0518, VLAN0521-VLAN0522, VLAN0540, VLAN0601-VLAN0604, VLAN0606, VLAN0701, VLAN0801-VLAN0806, VLAN1111-VLAN1116, VLAN1506, VLAN1509, VLAN1601', 'total_statistics': {'blockings': 0, 'forwardings': 62, 'learnings': 0, 'listenings': 0, 'num_of_vlans': 48, 'stp_actives': 62}, 'uplink_fast': False}
class ComboBoxData(RibbonItemData): """ This class contains information necessary to construct a combo box in the Ribbon. ComboBoxData(name: str) """ @staticmethod def __new__(self, name): """ __new__(cls: type,name: str) """ pass Image = property(lambda self: object(), lambda self, v: None, lambda self: None) """The image shown on the ComboBox. Get: Image(self: ComboBoxData) -> ImageSource Set: Image(self: ComboBoxData)=value """
class Comboboxdata(RibbonItemData): """ This class contains information necessary to construct a combo box in the Ribbon. ComboBoxData(name: str) """ @staticmethod def __new__(self, name): """ __new__(cls: type,name: str) """ pass image = property(lambda self: object(), lambda self, v: None, lambda self: None) 'The image shown on the ComboBox.\n\n\n\nGet: Image(self: ComboBoxData) -> ImageSource\n\n\n\nSet: Image(self: ComboBoxData)=value\n\n'
f = open('pierwsze.txt', 'w') for item in range(2,100+1): for number in range(2,item): if item % number == 0: break else: f.write(str(item)) f.write(" ") f.close()
f = open('pierwsze.txt', 'w') for item in range(2, 100 + 1): for number in range(2, item): if item % number == 0: break else: f.write(str(item)) f.write(' ') f.close()
def maximo (a, b, c): if a>b and a>c: return a elif b>a and b>c: return b elif c>b and c>a: return c else: return a x = int(input("primeiro numero")) y= int( input("Segundo numero")) z = int( input("terceiro numero")) w=maximo(x,y,z) print(w)
def maximo(a, b, c): if a > b and a > c: return a elif b > a and b > c: return b elif c > b and c > a: return c else: return a x = int(input('primeiro numero')) y = int(input('Segundo numero')) z = int(input('terceiro numero')) w = maximo(x, y, z) print(w)
#Grace Kelly 07/03/2018 #Exercise 5 #Read iris data set #Print out four numerical values #Decimal places aligned #Space between columns with open("data/iris.csv") as f: for line in f: print(line.split(',') [:4])
with open('data/iris.csv') as f: for line in f: print(line.split(',')[:4])
# # PySNMP MIB module CISCOSB-rlIP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-rlIP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:24:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint") switch001, = mibBuilder.importSymbols("CISCOSB-MIB", "switch001") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") InetAddressPrefixLength, InetAddressType, InetAddress, InetZoneIndex, InetVersion = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressPrefixLength", "InetAddressType", "InetAddress", "InetZoneIndex", "InetVersion") IpAddressStatusTC, IpAddressOriginTC = mibBuilder.importSymbols("IP-MIB", "IpAddressStatusTC", "IpAddressOriginTC") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") NotificationType, Counter32, IpAddress, mib_2, MibIdentifier, Counter64, Unsigned32, zeroDotZero, TimeTicks, ModuleIdentity, ObjectIdentity, iso, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Counter32", "IpAddress", "mib-2", "MibIdentifier", "Counter64", "Unsigned32", "zeroDotZero", "TimeTicks", "ModuleIdentity", "ObjectIdentity", "iso", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Integer32") TestAndIncr, TimeStamp, DisplayString, RowStatus, RowPointer, PhysAddress, TruthValue, TextualConvention, StorageType = mibBuilder.importSymbols("SNMPv2-TC", "TestAndIncr", "TimeStamp", "DisplayString", "RowStatus", "RowPointer", "PhysAddress", "TruthValue", "TextualConvention", "StorageType") rlIp = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250)) rlIp.setRevisions(('2013-06-16 12:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlIp.setRevisionsDescriptions(('Initial version of this MIB.',)) if mibBuilder.loadTexts: rlIp.setLastUpdated('201306161200Z') if mibBuilder.loadTexts: rlIp.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: rlIp.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>') if mibBuilder.loadTexts: rlIp.setDescription('The private MIB module definition for Auto Configured IPv6 Address representation.') class RlIpAddressOriginTC(TextualConvention, Integer32): description = 'The origin of the address. following are same as ipAddressOriginTC in standard MIB: manual(2) indicates that the address was manually configured to a specified address, e.g., by user configuration. dhcp(4) indicates an address that was assigned to this system by a DHCP server. linklayer(5) indicates an address created by IPv6 stateless auto-configuration. random(6) indicates an address chosen by the system at random, e.g., an IPv4 address within 169.254/16, or an RFC 3041 privacy address. following are additional to standard MIB: autoConfig(7) indicates that the address was auto configured configured to a specified address, e.g., not by user configuration. eui64(8) indicates that the address was partially configured configured to a specified address, e.g., address suffix is based on MAC address with EUI-64 representation. tunnelIsatap(9) indicates that the address an ISATATP tunnel representation. tunnelIsatap(10) indicates that the address an 6to4 tunnel representation. tunnelIsatap(11) indicates that the address was partially configured configured to a specified address, e.g., address prefix is preconfigured. ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 4, 5, 6, 7, 8, 9, 10, 11)) namedValues = NamedValues(("other", 1), ("manual", 2), ("dhcp", 4), ("linklayer", 5), ("random", 6), ("autoConfig", 7), ("eui64", 8), ("tunnelIsatap", 9), ("tunnel6to4", 10), ("generalPrefix", 11)) rlIpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1), ) if mibBuilder.loadTexts: rlIpAddressTable.setStatus('current') if mibBuilder.loadTexts: rlIpAddressTable.setDescription("This table contains addressing information relevant to the entity's interfaces. in addition to ipAddressTable defined in standard MIB a represenattion of IPv6 addresses based on additionl address origin such as EUI-64, general prefix etc. In this case the address information is partial address information. Together with the address origin and the general prefix (when needed) user can construct full address information. The index (key) for this table includes this information additionally to the address.") rlIpAddressEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1), ).setIndexNames((0, "CISCOSB-rlIP-MIB", "rlIpAddressAddrType"), (0, "CISCOSB-rlIP-MIB", "rlIpAddressAddr"), (0, "CISCOSB-rlIP-MIB", "rlIpAddressOrigin"), (0, "CISCOSB-rlIP-MIB", "rlIpAddressGeneralPrefixName")) if mibBuilder.loadTexts: rlIpAddressEntry.setStatus('current') if mibBuilder.loadTexts: rlIpAddressEntry.setDescription('An address mapping for a particular interface.') rlIpAddressAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 1), InetAddressType()) if mibBuilder.loadTexts: rlIpAddressAddrType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressAddrType.setDescription('The address type of rlIpAddressAddr.') rlIpAddressAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 2), InetAddress()) if mibBuilder.loadTexts: rlIpAddressAddr.setStatus('current') if mibBuilder.loadTexts: rlIpAddressAddr.setDescription("The IP address to which this entry's addressing information pertains. The address type of this object is specified in rlIpAddressAddrType. In case of auto-configure address such as eui-64, general-prefix and others it contains the partial address before appropriate manipulation. Implementors need to be aware that if the size of rlIpAddressAddr exceeds 116 octets, then OIDS of instances of columns in this row will have more than 128 sub-identifiers and cannot be accessed using SNMPv1, SNMPv2c, or SNMPv3.") rlIpAddressOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 3), RlIpAddressOriginTC()) if mibBuilder.loadTexts: rlIpAddressOrigin.setStatus('current') if mibBuilder.loadTexts: rlIpAddressOrigin.setDescription('The origin of the address.') rlIpAddressGeneralPrefixName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 4), DisplayString()) if mibBuilder.loadTexts: rlIpAddressGeneralPrefixName.setStatus('current') if mibBuilder.loadTexts: rlIpAddressGeneralPrefixName.setDescription('The name assigned to the prefix.') rlIpAddressIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 5), InterfaceIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressIfIndex.setStatus('current') if mibBuilder.loadTexts: rlIpAddressIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.") rlIpAddressExtdType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unicast", 1), ("anycast", 2), ("broadcast", 3), ("multicast", 4))).clone('unicast')).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressExtdType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressExtdType.setDescription('Extend standard field ipAddressType to multicast') rlIpAddressPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 7), RowPointer().clone((0, 0))).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpAddressPrefix.setStatus('current') if mibBuilder.loadTexts: rlIpAddressPrefix.setDescription('A pointer to the row in the prefix table to which this address belongs. May be { 0 0 } if there is no such row.') rlIpAddressStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 8), IpAddressStatusTC().clone('preferred')).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressStatus.setStatus('current') if mibBuilder.loadTexts: rlIpAddressStatus.setDescription('The status of the address, describing if the address can be used for communication. In the absence of other information, an IPv4 address is always preferred(1).') rlIpAddressCreated = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 9), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpAddressCreated.setStatus('current') if mibBuilder.loadTexts: rlIpAddressCreated.setDescription('The value of sysUpTime at the time this entry was created. If this entry was created prior to the last re- initialization of the local network management subsystem, then this object contains a zero value.') rlIpAddressLastChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 10), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpAddressLastChanged.setStatus('current') if mibBuilder.loadTexts: rlIpAddressLastChanged.setDescription('The value of sysUpTime at the time this entry was last updated. If this entry was updated prior to the last re- initialization of the local network management subsystem, then this object contains a zero value.') rlIpAddressRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressRowStatus.setStatus('current') if mibBuilder.loadTexts: rlIpAddressRowStatus.setDescription('The status of this conceptual row. The RowStatus TC requires that this DESCRIPTION clause states under which circumstances other objects in this row can be modified. The value of this object has no effect on whether other objects in this conceptual row can be modified. A conceptual row can not be made active until the rlIpAddressIfIndex has been set to a valid index.') rlIpAddressStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 12), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressStorageType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressStorageType.setDescription("The storage type for this conceptual row. If this object has a value of 'permanent', then no other objects are required to be able to be modified.") rlIpAddressExtdPrefixLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 13), InetAddressPrefixLength().clone(64)).setMaxAccess("readcreate") if mibBuilder.loadTexts: rlIpAddressExtdPrefixLength.setStatus('current') if mibBuilder.loadTexts: rlIpAddressExtdPrefixLength.setDescription('The prefix length of this address.') rlIpAddressCompleteAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 14), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: rlIpAddressCompleteAddr.setStatus('current') if mibBuilder.loadTexts: rlIpAddressCompleteAddr.setDescription("The Complete IP address to which this entry's addressing information pertains. In case of auto-configure address such as eui-64, general-prefix and others it contains the complete address after appropriate manipulation") mibBuilder.exportSymbols("CISCOSB-rlIP-MIB", rlIpAddressAddr=rlIpAddressAddr, rlIpAddressTable=rlIpAddressTable, RlIpAddressOriginTC=RlIpAddressOriginTC, rlIpAddressEntry=rlIpAddressEntry, rlIpAddressOrigin=rlIpAddressOrigin, rlIpAddressCompleteAddr=rlIpAddressCompleteAddr, rlIpAddressCreated=rlIpAddressCreated, rlIpAddressExtdType=rlIpAddressExtdType, PYSNMP_MODULE_ID=rlIp, rlIpAddressAddrType=rlIpAddressAddrType, rlIpAddressPrefix=rlIpAddressPrefix, rlIpAddressRowStatus=rlIpAddressRowStatus, rlIpAddressIfIndex=rlIpAddressIfIndex, rlIpAddressExtdPrefixLength=rlIpAddressExtdPrefixLength, rlIpAddressStatus=rlIpAddressStatus, rlIp=rlIp, rlIpAddressStorageType=rlIpAddressStorageType, rlIpAddressGeneralPrefixName=rlIpAddressGeneralPrefixName, rlIpAddressLastChanged=rlIpAddressLastChanged)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint') (switch001,) = mibBuilder.importSymbols('CISCOSB-MIB', 'switch001') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (inet_address_prefix_length, inet_address_type, inet_address, inet_zone_index, inet_version) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressPrefixLength', 'InetAddressType', 'InetAddress', 'InetZoneIndex', 'InetVersion') (ip_address_status_tc, ip_address_origin_tc) = mibBuilder.importSymbols('IP-MIB', 'IpAddressStatusTC', 'IpAddressOriginTC') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (notification_type, counter32, ip_address, mib_2, mib_identifier, counter64, unsigned32, zero_dot_zero, time_ticks, module_identity, object_identity, iso, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Counter32', 'IpAddress', 'mib-2', 'MibIdentifier', 'Counter64', 'Unsigned32', 'zeroDotZero', 'TimeTicks', 'ModuleIdentity', 'ObjectIdentity', 'iso', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Integer32') (test_and_incr, time_stamp, display_string, row_status, row_pointer, phys_address, truth_value, textual_convention, storage_type) = mibBuilder.importSymbols('SNMPv2-TC', 'TestAndIncr', 'TimeStamp', 'DisplayString', 'RowStatus', 'RowPointer', 'PhysAddress', 'TruthValue', 'TextualConvention', 'StorageType') rl_ip = module_identity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250)) rlIp.setRevisions(('2013-06-16 12:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: rlIp.setRevisionsDescriptions(('Initial version of this MIB.',)) if mibBuilder.loadTexts: rlIp.setLastUpdated('201306161200Z') if mibBuilder.loadTexts: rlIp.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: rlIp.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>') if mibBuilder.loadTexts: rlIp.setDescription('The private MIB module definition for Auto Configured IPv6 Address representation.') class Rlipaddressorigintc(TextualConvention, Integer32): description = 'The origin of the address. following are same as ipAddressOriginTC in standard MIB: manual(2) indicates that the address was manually configured to a specified address, e.g., by user configuration. dhcp(4) indicates an address that was assigned to this system by a DHCP server. linklayer(5) indicates an address created by IPv6 stateless auto-configuration. random(6) indicates an address chosen by the system at random, e.g., an IPv4 address within 169.254/16, or an RFC 3041 privacy address. following are additional to standard MIB: autoConfig(7) indicates that the address was auto configured configured to a specified address, e.g., not by user configuration. eui64(8) indicates that the address was partially configured configured to a specified address, e.g., address suffix is based on MAC address with EUI-64 representation. tunnelIsatap(9) indicates that the address an ISATATP tunnel representation. tunnelIsatap(10) indicates that the address an 6to4 tunnel representation. tunnelIsatap(11) indicates that the address was partially configured configured to a specified address, e.g., address prefix is preconfigured. ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 4, 5, 6, 7, 8, 9, 10, 11)) named_values = named_values(('other', 1), ('manual', 2), ('dhcp', 4), ('linklayer', 5), ('random', 6), ('autoConfig', 7), ('eui64', 8), ('tunnelIsatap', 9), ('tunnel6to4', 10), ('generalPrefix', 11)) rl_ip_address_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1)) if mibBuilder.loadTexts: rlIpAddressTable.setStatus('current') if mibBuilder.loadTexts: rlIpAddressTable.setDescription("This table contains addressing information relevant to the entity's interfaces. in addition to ipAddressTable defined in standard MIB a represenattion of IPv6 addresses based on additionl address origin such as EUI-64, general prefix etc. In this case the address information is partial address information. Together with the address origin and the general prefix (when needed) user can construct full address information. The index (key) for this table includes this information additionally to the address.") rl_ip_address_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1)).setIndexNames((0, 'CISCOSB-rlIP-MIB', 'rlIpAddressAddrType'), (0, 'CISCOSB-rlIP-MIB', 'rlIpAddressAddr'), (0, 'CISCOSB-rlIP-MIB', 'rlIpAddressOrigin'), (0, 'CISCOSB-rlIP-MIB', 'rlIpAddressGeneralPrefixName')) if mibBuilder.loadTexts: rlIpAddressEntry.setStatus('current') if mibBuilder.loadTexts: rlIpAddressEntry.setDescription('An address mapping for a particular interface.') rl_ip_address_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 1), inet_address_type()) if mibBuilder.loadTexts: rlIpAddressAddrType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressAddrType.setDescription('The address type of rlIpAddressAddr.') rl_ip_address_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 2), inet_address()) if mibBuilder.loadTexts: rlIpAddressAddr.setStatus('current') if mibBuilder.loadTexts: rlIpAddressAddr.setDescription("The IP address to which this entry's addressing information pertains. The address type of this object is specified in rlIpAddressAddrType. In case of auto-configure address such as eui-64, general-prefix and others it contains the partial address before appropriate manipulation. Implementors need to be aware that if the size of rlIpAddressAddr exceeds 116 octets, then OIDS of instances of columns in this row will have more than 128 sub-identifiers and cannot be accessed using SNMPv1, SNMPv2c, or SNMPv3.") rl_ip_address_origin = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 3), rl_ip_address_origin_tc()) if mibBuilder.loadTexts: rlIpAddressOrigin.setStatus('current') if mibBuilder.loadTexts: rlIpAddressOrigin.setDescription('The origin of the address.') rl_ip_address_general_prefix_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 4), display_string()) if mibBuilder.loadTexts: rlIpAddressGeneralPrefixName.setStatus('current') if mibBuilder.loadTexts: rlIpAddressGeneralPrefixName.setDescription('The name assigned to the prefix.') rl_ip_address_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 5), interface_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressIfIndex.setStatus('current') if mibBuilder.loadTexts: rlIpAddressIfIndex.setDescription("The index value that uniquely identifies the interface to which this entry is applicable. The interface identified by a particular value of this index is the same interface as identified by the same value of the IF-MIB's ifIndex.") rl_ip_address_extd_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unicast', 1), ('anycast', 2), ('broadcast', 3), ('multicast', 4))).clone('unicast')).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressExtdType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressExtdType.setDescription('Extend standard field ipAddressType to multicast') rl_ip_address_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 7), row_pointer().clone((0, 0))).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpAddressPrefix.setStatus('current') if mibBuilder.loadTexts: rlIpAddressPrefix.setDescription('A pointer to the row in the prefix table to which this address belongs. May be { 0 0 } if there is no such row.') rl_ip_address_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 8), ip_address_status_tc().clone('preferred')).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressStatus.setStatus('current') if mibBuilder.loadTexts: rlIpAddressStatus.setDescription('The status of the address, describing if the address can be used for communication. In the absence of other information, an IPv4 address is always preferred(1).') rl_ip_address_created = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 9), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpAddressCreated.setStatus('current') if mibBuilder.loadTexts: rlIpAddressCreated.setDescription('The value of sysUpTime at the time this entry was created. If this entry was created prior to the last re- initialization of the local network management subsystem, then this object contains a zero value.') rl_ip_address_last_changed = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 10), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpAddressLastChanged.setStatus('current') if mibBuilder.loadTexts: rlIpAddressLastChanged.setDescription('The value of sysUpTime at the time this entry was last updated. If this entry was updated prior to the last re- initialization of the local network management subsystem, then this object contains a zero value.') rl_ip_address_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressRowStatus.setStatus('current') if mibBuilder.loadTexts: rlIpAddressRowStatus.setDescription('The status of this conceptual row. The RowStatus TC requires that this DESCRIPTION clause states under which circumstances other objects in this row can be modified. The value of this object has no effect on whether other objects in this conceptual row can be modified. A conceptual row can not be made active until the rlIpAddressIfIndex has been set to a valid index.') rl_ip_address_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 12), storage_type().clone('volatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressStorageType.setStatus('current') if mibBuilder.loadTexts: rlIpAddressStorageType.setDescription("The storage type for this conceptual row. If this object has a value of 'permanent', then no other objects are required to be able to be modified.") rl_ip_address_extd_prefix_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 13), inet_address_prefix_length().clone(64)).setMaxAccess('readcreate') if mibBuilder.loadTexts: rlIpAddressExtdPrefixLength.setStatus('current') if mibBuilder.loadTexts: rlIpAddressExtdPrefixLength.setDescription('The prefix length of this address.') rl_ip_address_complete_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 250, 1, 1, 14), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: rlIpAddressCompleteAddr.setStatus('current') if mibBuilder.loadTexts: rlIpAddressCompleteAddr.setDescription("The Complete IP address to which this entry's addressing information pertains. In case of auto-configure address such as eui-64, general-prefix and others it contains the complete address after appropriate manipulation") mibBuilder.exportSymbols('CISCOSB-rlIP-MIB', rlIpAddressAddr=rlIpAddressAddr, rlIpAddressTable=rlIpAddressTable, RlIpAddressOriginTC=RlIpAddressOriginTC, rlIpAddressEntry=rlIpAddressEntry, rlIpAddressOrigin=rlIpAddressOrigin, rlIpAddressCompleteAddr=rlIpAddressCompleteAddr, rlIpAddressCreated=rlIpAddressCreated, rlIpAddressExtdType=rlIpAddressExtdType, PYSNMP_MODULE_ID=rlIp, rlIpAddressAddrType=rlIpAddressAddrType, rlIpAddressPrefix=rlIpAddressPrefix, rlIpAddressRowStatus=rlIpAddressRowStatus, rlIpAddressIfIndex=rlIpAddressIfIndex, rlIpAddressExtdPrefixLength=rlIpAddressExtdPrefixLength, rlIpAddressStatus=rlIpAddressStatus, rlIp=rlIp, rlIpAddressStorageType=rlIpAddressStorageType, rlIpAddressGeneralPrefixName=rlIpAddressGeneralPrefixName, rlIpAddressLastChanged=rlIpAddressLastChanged)
class Solution: def isPalindrome(self, x: int) -> bool: if x < 0: return False digits = [] while x: digits.append(x % 10) x = int(x / 10) return digits == list(reversed(digits))
class Solution: def is_palindrome(self, x: int) -> bool: if x < 0: return False digits = [] while x: digits.append(x % 10) x = int(x / 10) return digits == list(reversed(digits))
a = float(input()) b = float(input()) c = float(input()) d = float(input()) e = float(input()) f = float(input()) if a == 0 and b == 0 and c == 0 and d == 0 and e == 0 and f == 0: print(5) elif a * d == b * c and a * f != c * e: print(0) elif a == 0 and b == 0 and e != 0: print(0) elif c == 0 and d == 0 and f != 0: print(0) elif a == 0 and c == 0 and b * f != d * e: print(0) elif b == 0 and d == 0 and a * f != c * e: print(0) elif a * d == b * c and a * f == c * e: if b == 0 and d == 0: if a != 0 and c != 0: print(3, e / a) elif a == 0: if e == 0: print(3, f / c) elif c == 0: if f == 0: print(3, e / a) elif a == 0 and c == 0: if b != 0: print(4, e / b) elif d != 0: print(4, f / d) elif b != 0: print(1, -a / b, e / b) elif d != 0: print(1, -c / d, f / d) else: x = (e * d - b * f) / (a * d - b * c) y = (a * f - e * c) / (a * d - b * c) print(2, x, y)
a = float(input()) b = float(input()) c = float(input()) d = float(input()) e = float(input()) f = float(input()) if a == 0 and b == 0 and (c == 0) and (d == 0) and (e == 0) and (f == 0): print(5) elif a * d == b * c and a * f != c * e: print(0) elif a == 0 and b == 0 and (e != 0): print(0) elif c == 0 and d == 0 and (f != 0): print(0) elif a == 0 and c == 0 and (b * f != d * e): print(0) elif b == 0 and d == 0 and (a * f != c * e): print(0) elif a * d == b * c and a * f == c * e: if b == 0 and d == 0: if a != 0 and c != 0: print(3, e / a) elif a == 0: if e == 0: print(3, f / c) elif c == 0: if f == 0: print(3, e / a) elif a == 0 and c == 0: if b != 0: print(4, e / b) elif d != 0: print(4, f / d) elif b != 0: print(1, -a / b, e / b) elif d != 0: print(1, -c / d, f / d) else: x = (e * d - b * f) / (a * d - b * c) y = (a * f - e * c) / (a * d - b * c) print(2, x, y)
""" Copyright (c) 2021 Anshul Patel This code is licensed under MIT license (see LICENSE.MD for details) @author: cheapBuy """
""" Copyright (c) 2021 Anshul Patel This code is licensed under MIT license (see LICENSE.MD for details) @author: cheapBuy """
class Solution: def sumOfDistancesInTree(self, n: int, edges: List[List[int]]) -> List[int]: graph = collections.defaultdict(set) for u, v in edges: graph[u].add(v) graph[v].add(u) count = [1 for _ in range(n)] ans = [0 for _ in range(n)] def postorder(node = 0, parent = None): for child in graph[node]: if child == parent: continue postorder(child, node) count[node] += count[child] ans[node] += ans[child] + count[child] def inorder(node = 0, parent = None): for child in graph[node]: if child == parent: continue ans[child] = ans[node] - count[child] + n - count[child] inorder(child, node) postorder() inorder() return ans
class Solution: def sum_of_distances_in_tree(self, n: int, edges: List[List[int]]) -> List[int]: graph = collections.defaultdict(set) for (u, v) in edges: graph[u].add(v) graph[v].add(u) count = [1 for _ in range(n)] ans = [0 for _ in range(n)] def postorder(node=0, parent=None): for child in graph[node]: if child == parent: continue postorder(child, node) count[node] += count[child] ans[node] += ans[child] + count[child] def inorder(node=0, parent=None): for child in graph[node]: if child == parent: continue ans[child] = ans[node] - count[child] + n - count[child] inorder(child, node) postorder() inorder() return ans
# # PySNMP MIB module RFC1215-MIB (http://pysnmp.sf.net) # ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") ( ifIndex, ) = mibBuilder.importSymbols("IF-MIB", "ifIndex") ( egpNeighAddr, ) = mibBuilder.importSymbols("RFC1213-MIB", "egpNeighAddr") ( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, mib_2, IpAddress, TimeTicks, Counter64, Unsigned32, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "mib-2", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32") ( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") snmp = MibIdentifier((1, 3, 6, 1, 2, 1, 11)) coldStart = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,0)).setObjects(*()) warmStart = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,1)).setObjects(*()) linkDown = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,2)).setObjects(*(("RFC1215-MIB", "ifIndex"),)) linkUp = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,3)).setObjects(*(("RFC1215-MIB", "ifIndex"),)) authenticationFailure = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,4)).setObjects(*()) egpNeighborLoss = NotificationType((1, 3, 6, 1, 2, 1, 11) + (0,5)).setObjects(*(("RFC1215-MIB", "egpNeighAddr"),)) mibBuilder.exportSymbols("RFC1215-MIB", linkDown=linkDown, authenticationFailure=authenticationFailure, warmStart=warmStart, egpNeighborLoss=egpNeighborLoss, snmp=snmp, linkUp=linkUp, coldStart=coldStart)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (egp_neigh_addr,) = mibBuilder.importSymbols('RFC1213-MIB', 'egpNeighAddr') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, mib_identifier, mib_2, ip_address, time_ticks, counter64, unsigned32, iso, gauge32, module_identity, object_identity, bits, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'MibIdentifier', 'mib-2', 'IpAddress', 'TimeTicks', 'Counter64', 'Unsigned32', 'iso', 'Gauge32', 'ModuleIdentity', 'ObjectIdentity', 'Bits', 'Counter32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') snmp = mib_identifier((1, 3, 6, 1, 2, 1, 11)) cold_start = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 0)).setObjects(*()) warm_start = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 1)).setObjects(*()) link_down = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 2)).setObjects(*(('RFC1215-MIB', 'ifIndex'),)) link_up = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 3)).setObjects(*(('RFC1215-MIB', 'ifIndex'),)) authentication_failure = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 4)).setObjects(*()) egp_neighbor_loss = notification_type((1, 3, 6, 1, 2, 1, 11) + (0, 5)).setObjects(*(('RFC1215-MIB', 'egpNeighAddr'),)) mibBuilder.exportSymbols('RFC1215-MIB', linkDown=linkDown, authenticationFailure=authenticationFailure, warmStart=warmStart, egpNeighborLoss=egpNeighborLoss, snmp=snmp, linkUp=linkUp, coldStart=coldStart)
# Deleting tuples my_tuple = ('p', 'r', 'o', 'g', 'r', 'a', 'm', 'i', 'z') # can't delete items # TypeError: 'tuple' object doesn't support item deletion # del my_tuple[3] # Must delete an entire tuple del my_tuple # NameError: name 'my_tuple' is not defined print(my_tuple)
my_tuple = ('p', 'r', 'o', 'g', 'r', 'a', 'm', 'i', 'z') del my_tuple print(my_tuple)
class Solution: def largestSumAfterKNegations(self, A: List[int], K: int) -> int: heapq.heapify(A) for _ in range(K): val = heapq.heappop(A) heapq.heappush(A, -val) return sum(A)
class Solution: def largest_sum_after_k_negations(self, A: List[int], K: int) -> int: heapq.heapify(A) for _ in range(K): val = heapq.heappop(A) heapq.heappush(A, -val) return sum(A)
# Category description for the widget registry NAME = "SRW ESRF Extension" DESCRIPTION = "Widgets for SRW" BACKGROUND = "#969fde" ICON = "icons/esrf2.png" PRIORITY = 204
name = 'SRW ESRF Extension' description = 'Widgets for SRW' background = '#969fde' icon = 'icons/esrf2.png' priority = 204
San_Francisco_polygon = [[37.837174338616975,-122.48725891113281],[37.83364941345965,-122.48485565185547],[37.83093781796035,-122.4814224243164],[37.82415839321614,-122.48004913330078],[37.8203616433087,-122.47970581054688],[37.81059767530207,-122.47798919677734],[37.806122091729485,-122.47627258300781],[37.79215110146845,-122.48039245605469],[37.78726741375342,-122.48519897460938],[37.78618210598413,-122.49927520751953],[37.78645343442073,-122.50614166259766],[37.779127216982424,-122.51232147216797],[37.772614414082014,-122.51163482666016],[37.76121562849642,-122.51197814941406],[37.75171529845649,-122.51060485839844],[37.74329970164702,-122.50957489013672],[37.735969208590504,-122.50717163085938],[37.73081027834234,-122.50717163085938],[37.72293542866175,-122.50682830810547],[37.715331331027045,-122.50442504882812],[37.714244967649265,-122.49893188476562],[37.71940505182832,-122.50030517578125],[37.724564776604836,-122.5030517578125],[37.729724141962045,-122.50167846679688],[37.7324394530424,-122.49549865722656],[37.72918106779786,-122.49378204345703],[37.729724141962045,-122.48828887939453],[37.72782336496339,-122.4807357788086],[37.73271097867418,-122.37945556640625],[37.74520008134973,-122.37533569335938],[37.74655746554895,-122.39112854003906],[37.75008654795525,-122.3873519897461],[37.754972691904946,-122.38391876220703],[37.76148704857093,-122.38597869873047],[37.769629187677005,-122.3876953125],[37.78265474565738,-122.38872528076172],[37.78781006166096,-122.3880386352539],[37.79594930209237,-122.37911224365234],[37.804358908571395,-122.36984252929688],[37.812767557570204,-122.3605728149414],[37.817649559511125,-122.35130310058594],[37.82009043941308,-122.332763671875],[37.823344820392535,-122.30632781982422],[37.8271414168374,-122.30701446533203],[37.824700770115996,-122.31765747070312],[37.82253123860035,-122.33139038085938],[37.8203616433087,-122.34615325927734],[37.81792077237497,-122.35576629638672],[37.81168262440736,-122.3653793334961],[37.803002585189645,-122.37396240234375],[37.790523241426946,-122.3880386352539],[37.79594930209237,-122.39490509033203],[37.80273131752431,-122.39936828613281],[37.80815648152641,-122.40726470947266],[37.80734273233311,-122.42305755615234],[37.807071480609274,-122.43267059326172],[37.80571520704469,-122.44194030761719],[37.80463017025873,-122.45189666748047],[37.80463017025873,-122.464599609375],[37.807071480609274,-122.47421264648438],[37.815208598896255,-122.47695922851562],[37.82768377181359,-122.47798919677734],[37.835276322922695,-122.48004913330078],[37.837174338616975,-122.48725891113281]] Boston_polygon = [[42.32453946380133,-71.13029479980469],[42.32758538845383,-71.0489273071289],[42.330631165629846,-71.03588104248047],[42.33316920061984,-71.02180480957031],[42.339513840022754,-71.02455139160156],[42.3397676122846,-71.04412078857422],[42.34611158596906,-71.02558135986328],[42.356514317057886,-71.02317810058594],[42.348648996207956,-71.00669860839844],[42.35829022102701,-71.00360870361328],[42.353469793490646,-70.99090576171875],[42.36057345238455,-70.98918914794922],[42.363110278811256,-71.00223541259766],[42.37883631647602,-70.99983215332031],[42.37756823359386,-71.00738525390625],[42.37224200585402,-71.01631164550781],[42.37680737157286,-71.02008819580078],[42.381879610913195,-71.015625],[42.38999434161929,-71.00704193115234],[42.40444610741266,-71.00395202636719],[42.40444610741266,-71.13029479980469],[42.32453946380133,-71.13029479980469]] Pittsburgh_polygon = [[40.603526799885884,-80.09445190429688],[40.564937785967224,-80.13427734375],[40.50126945841646,-80.14801025390625],[40.42290582797254,-80.12054443359375],[40.3549167507906,-80.1287841796875],[40.330842639095756,-80.14389038085938],[40.31199603742692,-80.16311645507812],[40.319325896602095,-79.9310302734375],[40.365381076021734,-79.80056762695312],[40.57119697629581,-79.7991943359375],[40.603526799885884,-80.09445190429688]] Greenville_polygon = [[34.96531080784271,-82.44483947753906],[34.946176590087454,-82.44140625],[34.92422301690582,-82.45994567871094],[34.89888467073924,-82.46818542480469],[34.871285134570016,-82.47367858886719],[34.837477162415986,-82.452392578125],[34.83015027082022,-82.54096984863281],[34.820004267650454,-82.53822326660156],[34.829022998858306,-82.45101928710938],[34.8047829195724,-82.44071960449219],[34.79068657192738,-82.44552612304688],[34.770383597610255,-82.47573852539062],[34.76192255039478,-82.47024536132812],[34.784483415461345,-82.44415283203125],[34.7483830709853,-82.31849670410156],[34.71847552413778,-82.25944519042969],[34.72073307506407,-82.24845886230469],[34.75740963726007,-82.28141784667969],[34.77263973038464,-82.26699829101562],[34.83184114982865,-82.28965759277344],[34.86058077988933,-82.24845886230469],[34.86790496256872,-82.25601196289062],[34.839167890957015,-82.30133056640625],[34.86903170200862,-82.34458923339844],[34.96531080784271,-82.44483947753906]] Norfolk_polygon = [[37.00693943418586,-76.32339477539062],[36.98884240936997,-76.31034851074219],[36.982260605282676,-76.30348205566406],[36.96799807635307,-76.30210876464844],[36.95976847846004,-76.27738952636719],[36.953732874654285,-76.2725830078125],[36.94769679250732,-76.28700256347656],[36.95098926024786,-76.29661560058594],[36.95757376878687,-76.30348205566406],[36.95976847846004,-76.31584167480469],[36.9669008480318,-76.32820129394531],[36.90323455156814,-76.32888793945312],[36.91366629380721,-76.31721496582031],[36.90927415514871,-76.28631591796875],[36.89499795802219,-76.28974914550781],[36.901587303978474,-76.30348205566406],[36.90323455156814,-76.31515502929688],[36.874127942666334,-76.32888793945312],[36.8631414329529,-76.30828857421875],[36.849955535919875,-76.32682800292969],[36.856548768788954,-76.34056091308594],[36.82852360193767,-76.33094787597656],[36.820278951308744,-76.34536743164062],[36.81203341240741,-76.34124755859375],[36.83017242546416,-76.28974914550781],[36.79993834872292,-76.2835693359375],[36.80323719192363,-76.19155883789062],[36.84116367417466,-76.19499206542969],[36.82137828938333,-76.1407470703125],[36.82577548376294,-76.04873657226562],[36.84281222525469,-76.04736328125],[36.85160389745116,-76.14280700683594],[36.92739009701458,-76.16065979003906],[36.93726970584893,-76.22039794921875],[36.96799807635307,-76.27670288085938],[36.96854668458301,-76.29592895507812],[36.98390610968992,-76.29936218261719],[37.00693943418586,-76.32339477539062]]
san__francisco_polygon = [[37.837174338616975, -122.48725891113281], [37.83364941345965, -122.48485565185547], [37.83093781796035, -122.4814224243164], [37.82415839321614, -122.48004913330078], [37.8203616433087, -122.47970581054688], [37.81059767530207, -122.47798919677734], [37.806122091729485, -122.47627258300781], [37.79215110146845, -122.48039245605469], [37.78726741375342, -122.48519897460938], [37.78618210598413, -122.49927520751953], [37.78645343442073, -122.50614166259766], [37.779127216982424, -122.51232147216797], [37.772614414082014, -122.51163482666016], [37.76121562849642, -122.51197814941406], [37.75171529845649, -122.51060485839844], [37.74329970164702, -122.50957489013672], [37.735969208590504, -122.50717163085938], [37.73081027834234, -122.50717163085938], [37.72293542866175, -122.50682830810547], [37.715331331027045, -122.50442504882812], [37.714244967649265, -122.49893188476562], [37.71940505182832, -122.50030517578125], [37.724564776604836, -122.5030517578125], [37.729724141962045, -122.50167846679688], [37.7324394530424, -122.49549865722656], [37.72918106779786, -122.49378204345703], [37.729724141962045, -122.48828887939453], [37.72782336496339, -122.4807357788086], [37.73271097867418, -122.37945556640625], [37.74520008134973, -122.37533569335938], [37.74655746554895, -122.39112854003906], [37.75008654795525, -122.3873519897461], [37.754972691904946, -122.38391876220703], [37.76148704857093, -122.38597869873047], [37.769629187677005, -122.3876953125], [37.78265474565738, -122.38872528076172], [37.78781006166096, -122.3880386352539], [37.79594930209237, -122.37911224365234], [37.804358908571395, -122.36984252929688], [37.812767557570204, -122.3605728149414], [37.817649559511125, -122.35130310058594], [37.82009043941308, -122.332763671875], [37.823344820392535, -122.30632781982422], [37.8271414168374, -122.30701446533203], [37.824700770115996, -122.31765747070312], [37.82253123860035, -122.33139038085938], [37.8203616433087, -122.34615325927734], [37.81792077237497, -122.35576629638672], [37.81168262440736, -122.3653793334961], [37.803002585189645, -122.37396240234375], [37.790523241426946, -122.3880386352539], [37.79594930209237, -122.39490509033203], [37.80273131752431, -122.39936828613281], [37.80815648152641, -122.40726470947266], [37.80734273233311, -122.42305755615234], [37.807071480609274, -122.43267059326172], [37.80571520704469, -122.44194030761719], [37.80463017025873, -122.45189666748047], [37.80463017025873, -122.464599609375], [37.807071480609274, -122.47421264648438], [37.815208598896255, -122.47695922851562], [37.82768377181359, -122.47798919677734], [37.835276322922695, -122.48004913330078], [37.837174338616975, -122.48725891113281]] boston_polygon = [[42.32453946380133, -71.13029479980469], [42.32758538845383, -71.0489273071289], [42.330631165629846, -71.03588104248047], [42.33316920061984, -71.02180480957031], [42.339513840022754, -71.02455139160156], [42.3397676122846, -71.04412078857422], [42.34611158596906, -71.02558135986328], [42.356514317057886, -71.02317810058594], [42.348648996207956, -71.00669860839844], [42.35829022102701, -71.00360870361328], [42.353469793490646, -70.99090576171875], [42.36057345238455, -70.98918914794922], [42.363110278811256, -71.00223541259766], [42.37883631647602, -70.99983215332031], [42.37756823359386, -71.00738525390625], [42.37224200585402, -71.01631164550781], [42.37680737157286, -71.02008819580078], [42.381879610913195, -71.015625], [42.38999434161929, -71.00704193115234], [42.40444610741266, -71.00395202636719], [42.40444610741266, -71.13029479980469], [42.32453946380133, -71.13029479980469]] pittsburgh_polygon = [[40.603526799885884, -80.09445190429688], [40.564937785967224, -80.13427734375], [40.50126945841646, -80.14801025390625], [40.42290582797254, -80.12054443359375], [40.3549167507906, -80.1287841796875], [40.330842639095756, -80.14389038085938], [40.31199603742692, -80.16311645507812], [40.319325896602095, -79.9310302734375], [40.365381076021734, -79.80056762695312], [40.57119697629581, -79.7991943359375], [40.603526799885884, -80.09445190429688]] greenville_polygon = [[34.96531080784271, -82.44483947753906], [34.946176590087454, -82.44140625], [34.92422301690582, -82.45994567871094], [34.89888467073924, -82.46818542480469], [34.871285134570016, -82.47367858886719], [34.837477162415986, -82.452392578125], [34.83015027082022, -82.54096984863281], [34.820004267650454, -82.53822326660156], [34.829022998858306, -82.45101928710938], [34.8047829195724, -82.44071960449219], [34.79068657192738, -82.44552612304688], [34.770383597610255, -82.47573852539062], [34.76192255039478, -82.47024536132812], [34.784483415461345, -82.44415283203125], [34.7483830709853, -82.31849670410156], [34.71847552413778, -82.25944519042969], [34.72073307506407, -82.24845886230469], [34.75740963726007, -82.28141784667969], [34.77263973038464, -82.26699829101562], [34.83184114982865, -82.28965759277344], [34.86058077988933, -82.24845886230469], [34.86790496256872, -82.25601196289062], [34.839167890957015, -82.30133056640625], [34.86903170200862, -82.34458923339844], [34.96531080784271, -82.44483947753906]] norfolk_polygon = [[37.00693943418586, -76.32339477539062], [36.98884240936997, -76.31034851074219], [36.982260605282676, -76.30348205566406], [36.96799807635307, -76.30210876464844], [36.95976847846004, -76.27738952636719], [36.953732874654285, -76.2725830078125], [36.94769679250732, -76.28700256347656], [36.95098926024786, -76.29661560058594], [36.95757376878687, -76.30348205566406], [36.95976847846004, -76.31584167480469], [36.9669008480318, -76.32820129394531], [36.90323455156814, -76.32888793945312], [36.91366629380721, -76.31721496582031], [36.90927415514871, -76.28631591796875], [36.89499795802219, -76.28974914550781], [36.901587303978474, -76.30348205566406], [36.90323455156814, -76.31515502929688], [36.874127942666334, -76.32888793945312], [36.8631414329529, -76.30828857421875], [36.849955535919875, -76.32682800292969], [36.856548768788954, -76.34056091308594], [36.82852360193767, -76.33094787597656], [36.820278951308744, -76.34536743164062], [36.81203341240741, -76.34124755859375], [36.83017242546416, -76.28974914550781], [36.79993834872292, -76.2835693359375], [36.80323719192363, -76.19155883789062], [36.84116367417466, -76.19499206542969], [36.82137828938333, -76.1407470703125], [36.82577548376294, -76.04873657226562], [36.84281222525469, -76.04736328125], [36.85160389745116, -76.14280700683594], [36.92739009701458, -76.16065979003906], [36.93726970584893, -76.22039794921875], [36.96799807635307, -76.27670288085938], [36.96854668458301, -76.29592895507812], [36.98390610968992, -76.29936218261719], [37.00693943418586, -76.32339477539062]]
class EmptyQueueError(Exception): pass class DualStructureError(Exception): pass class ConservativeVolumeError(Exception): pass class PmsFluxFacesError(Exception): pass
class Emptyqueueerror(Exception): pass class Dualstructureerror(Exception): pass class Conservativevolumeerror(Exception): pass class Pmsfluxfaceserror(Exception): pass
dias = int(input('Digite os dias: ')) * 60 * 60 * 24 horas = int(input('Digite as horas: ')) * 60 * 60 minutos = int(input('Digite os minutos: ')) * 60 segundos = int(input('Digite os segundos: ')) print ('O total dias em segundos: %d' % dias) print ('O total de horas em segundos: %d' % horas) print ('O total de minutos em segundos: %d' % minutos) print ('O total de segundos: %d' % segundos)
dias = int(input('Digite os dias: ')) * 60 * 60 * 24 horas = int(input('Digite as horas: ')) * 60 * 60 minutos = int(input('Digite os minutos: ')) * 60 segundos = int(input('Digite os segundos: ')) print('O total dias em segundos: %d' % dias) print('O total de horas em segundos: %d' % horas) print('O total de minutos em segundos: %d' % minutos) print('O total de segundos: %d' % segundos)
def apply_formatting_options(func): def wrapper(self, *args, **kwargs): type_config_dict = getattr(self, 'type_config_dict') supplied_key = args[0] supplied_value = args[1] anonymized_value = func(self, supplied_key, supplied_value) if type_config_dict.get('upper'): anonymized_value = anonymized_value.upper() if type_config_dict.get('lower'): anonymized_value = anonymized_value.lower() return anonymized_value return wrapper
def apply_formatting_options(func): def wrapper(self, *args, **kwargs): type_config_dict = getattr(self, 'type_config_dict') supplied_key = args[0] supplied_value = args[1] anonymized_value = func(self, supplied_key, supplied_value) if type_config_dict.get('upper'): anonymized_value = anonymized_value.upper() if type_config_dict.get('lower'): anonymized_value = anonymized_value.lower() return anonymized_value return wrapper
# nlantau, 2021-02-01 a1 = [-1,5,10,20,28,3] a2 = [26,134,135,15,17] sample_output = [28,26] def smallestDifference_passed7outof10(a, b): a.sort() b.sort() res = list() for i in a: t = max(a) + max(b) for j in b: if abs(j-i) < t: t = abs(j-i) res.clear() res.append(i) res.append(j) return res def smallestDifference(a,b): a.sort() b.sort() idx_one = 0 idx_two = 0 smallest = float("inf") curr = float("inf") res = list() while idx_one < len(a) and idx_two < len(b): first = a[idx_one] second = b[idx_two] if first < second: curr = second - first idx_one += 1 elif second < first: curr = first - second idx_two += 1 else: return [first, second] if smallest > curr: smallest = curr res = [first, second] return res print(smallestDifference(a1,a2))
a1 = [-1, 5, 10, 20, 28, 3] a2 = [26, 134, 135, 15, 17] sample_output = [28, 26] def smallest_difference_passed7outof10(a, b): a.sort() b.sort() res = list() for i in a: t = max(a) + max(b) for j in b: if abs(j - i) < t: t = abs(j - i) res.clear() res.append(i) res.append(j) return res def smallest_difference(a, b): a.sort() b.sort() idx_one = 0 idx_two = 0 smallest = float('inf') curr = float('inf') res = list() while idx_one < len(a) and idx_two < len(b): first = a[idx_one] second = b[idx_two] if first < second: curr = second - first idx_one += 1 elif second < first: curr = first - second idx_two += 1 else: return [first, second] if smallest > curr: smallest = curr res = [first, second] return res print(smallest_difference(a1, a2))
# coding: utf-8 """ av-website ~~~~~~~~ App deployable on GAE, configured and customised with Bootstrap, Flask. Copyright (c) 2015 by Tiberiu CORBU. License MIT, see LICENSE for more details. """ __version__ = '3.3.4'
""" av-website ~~~~~~~~ App deployable on GAE, configured and customised with Bootstrap, Flask. Copyright (c) 2015 by Tiberiu CORBU. License MIT, see LICENSE for more details. """ __version__ = '3.3.4'
if __name__ == "__main__": result = 1 for i in range(100): result *= i + 1 result = str(result) res = 0 for i in result: res += int(i) print("100! = ", res, "\n")
if __name__ == '__main__': result = 1 for i in range(100): result *= i + 1 result = str(result) res = 0 for i in result: res += int(i) print('100! = ', res, '\n')
name = 'therm_PRF.dat' fin = open(name,'r') fout = open(name+'_upper','w') for line in fin: fout.write(line.upper())
name = 'therm_PRF.dat' fin = open(name, 'r') fout = open(name + '_upper', 'w') for line in fin: fout.write(line.upper())
mozilla = [ 'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:2.0b4) Gecko/20100818', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.3) Gecko/20100401 Lightningquail/3.6.3', 'Mozilla/5.0 (X11; ; Linux i686; rv:1.9.2.20) Gecko/20110805', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101203 iPhone', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13; ) Gecko/20101203', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3) Gecko/20090305', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.0.9) Gecko/2009040821', 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.8) Gecko/2009032711', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009032803', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.7) Gecko/2009021910 MEGAUPLOAD 1.0', 'Mozilla/5.0 (Windows; U; BeOS; en-US; rv:1.9.0.7) Gecko/2009021910', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.6) Gecko/2009020911', 'Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.0.6) Gecko/20080528', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020409', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 (Debian-3.0.1-1)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092816', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008090713', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko Fedora/1.9.0.2-1.fc9', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072610', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Ubuntu/8.04 (hardy) (Linux Mint)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-au; rv:1.9.0.1) Gecko/2008070206', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9) Gecko/2008052906', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050702', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a6) Gecko/20050111', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a5) Gecko/20041122', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a4) Gecko/20040927', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040817', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a1) Gecko/20040520', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a2) Gecko/20060512', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071022', 'Mozilla/5.001 (X11; U; Linux i686; rv:1.8.1.6; de-ch) Gecko/25250101 (ubuntu-feisty)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070531', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 (Debian-1.8.1.4-2ubuntu5)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Mozilla/5.0 (Linux Mint)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 MEGAUPLOAD 1.0 (Ubuntu-feisty)', 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070310', 'Mozilla/5.0 (X11; ; Linux i686; en-US; rv:1.8.1.3) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070321', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Mozilla/4.8 [en] (Windows NT 5.1; U)', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; nl-NL; rv:1.8.1.3) Gecko/20080722', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.2pre) Gecko/20070223', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070208', 'Mozilla/5.0 (compatible; Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081029', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8.1.15) Gecko/20080620 Mozilla/4.0', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.8.1.11) Gecko/20071127 Mozilla', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071213', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071206', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Mozilla/5.0 (Debian-2.0.0.1+dfsg-2)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 KHTML/3.5.5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060912 pango-text', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.14eol) Gecko/20070505 (Debian-1.8.0.15~pre080614d-0etch1)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060126', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040429', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7b) Gecko/20040316', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7b) Gecko/20040421', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711', 'Mozilla/5.0 (X11; U; Linux x86_64; de-AT; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20060904 Debian/1.7.8-1sarge7.2.2', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050921', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050610', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Red Hat/1.7.8-1.1.3.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.8) Gecko/20050511 (No IDN)', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.7) Gecko/20050421', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050427 Red Hat/1.7.7-1.1.3.4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.7) Gecko/20050415', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041013', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows NT 5.1; U; pt-br; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; es-es; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; de; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (OS/2; U; Warp 4.5; de-DE; rv:1.7.5) Gecko/20050523', 'Mozilla/5.0 (Macintosh; Intel Mac OS X; U; nb; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (X11; U; Linux i686; hu; rv:1.7.3) Gecko/20050130', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.3) Gecko/20040913', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; es-ES; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040906', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040810 Debian/1.7.2-2', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; FreeBSD i386; ja-JP; rv:1.7.2) Gecko/20050330', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.2) Gecko/20040709', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; de-AT; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; ; Windows NT 5.1; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.13) Gecko/20060509', 'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.7.13) Gecko/20060901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060717 Debian/1.7.13-0.2ubuntu1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060427 Debian/1.7.13-0ubuntu05.04', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417', 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.13) Gecko/20060417', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061230', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/4.0 (compatible; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414; Windows NT 5.1)', 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20050929', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060216 Debian/1.7.12-1.1ubuntu2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060202 Fedora/1.7.12-1.5.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051013 Debian/1.7.12-1ubuntu1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Debian/1.7.12-0ubuntu2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050926', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 Red Hat/1.7.12-1.1.3.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1', 'Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.7.12) Gecko/20050929', 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.7.12) Gecko/20051010 Debian/1.7.12-0ubuntu2', 'Mozilla/5.0 (X11; U; AIX 5.3; en-US; rv:1.7.12) Gecko/20051025', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.12) Gecko/20050915', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.11) Gecko/20050802', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.11) Gecko/20050728 (No IDN)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Win95; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr-FR; rv:1.7.11) Gecko/20050727', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050811 Fedora/1.7.10-1.2.1.legacy', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.10) Gecko/20050727', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.10) Gecko/20050722', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.7.0.13) Gecko/20060901', 'Mozilla/5.0 (X11; U; SunOS sun4v; en-US; rv:1.7) Gecko/20060120', 'Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.7) Gecko/20040621', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20060629', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20060120', 'Mozilla/5.0 (X11; U; SunOS sun4u; de-DE; rv:1.7) Gecko/20070606', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20060627', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20051122', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20051027', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20050502', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514', 'Mozilla/5.0 (X11; U; FreeBSD; i386; it-IT; rv:1.7) Gecko', 'Mozilla/5.0 (X11; U; FreeBSD; i386; en-US; rv:1.7) Gecko', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7) Gecko/20040803 Firefox/0.9.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031030', 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.6) Gecko/20040115', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040115', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040114', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Photon; U; QNX x86pc; en-US; rv:1.6) Gecko/20040429', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030827', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120', 'Mozilla/5.0 (X11; U; SunOS5.10 sun4u; ja-JP; rv:1.5) Gecko/20031022', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030916', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; WinNT4.0; it-IT; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030427', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4a) Gecko/20030318', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (X11; U; IRIX64 IP35; en-US; rv:1.4.3) Gecko/20040909', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040220', 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20031114', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040406', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20041224', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030828', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030818', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030723', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030812', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (X11; U; Linux i586; de-AT; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030125', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20021213', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3.1) Gecko/20030509', 'Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.3.1) Gecko', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3) Gecko/20030318', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030523', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030413', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030401', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030327 Debian/1.3-4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030326', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030320', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030430 Debian/1.3-5', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030327 Debian/1.3-4', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.3) Gecko/20030321', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20030711', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021217', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021212', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021205', 'Mozilla/5.0 (X11; U; Linux i686;en-US; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030427', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030409 Debian/1.2.1-9woody2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030113', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021208 Debian/1.2.1-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20050223', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.2) Gecko/20021203', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.1b) Gecko/20020721', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020610', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1a) Gecko/20020610', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020925', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020909', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020927', 'Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020829', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020828', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020913 Debian/1.1-1', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021223', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020529 Debian/1.0rc3-1', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0rc3) Gecko/20020523', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (X11; U; AIX 005A471A4C00; en-US; rv:1.0rc2) Gecko/20020514', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1) Gecko/20020417', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.2) Gecko/20030208', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021216', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.0.2) Gecko/20021216', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021122 Debian/1.0.1-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021110', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020919', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020912', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020815', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.0) Gecko/20020611', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20021004', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020612', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.0.0) Gecko/20020605', 'Mozilla/5.0 (Windows; U; WinNT4.0; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020509', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020423', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.9) Gecko/20020513', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7) Gecko/20011221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011202', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5) Gecko/20011011', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010923', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.3) Gecko/20010802', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010809', 'Mozilla/5.001 (Macintosh; N; PPC; ja) Gecko/25250101' ]
mozilla = ['Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:2.0b4) Gecko/20100818', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.3) Gecko/20100401 Lightningquail/3.6.3', 'Mozilla/5.0 (X11; ; Linux i686; rv:1.9.2.20) Gecko/20110805', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101203 iPhone', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13; ) Gecko/20101203', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3) Gecko/20090305', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.0.9) Gecko/2009040821', 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.8) Gecko/2009032711', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009032803', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.7) Gecko/2009021910 MEGAUPLOAD 1.0', 'Mozilla/5.0 (Windows; U; BeOS; en-US; rv:1.9.0.7) Gecko/2009021910', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.6) Gecko/2009020911', 'Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.0.6) Gecko/20080528', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020409', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 (Debian-3.0.1-1)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092816', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008090713', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko Fedora/1.9.0.2-1.fc9', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072610', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Ubuntu/8.04 (hardy) (Linux Mint)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-au; rv:1.9.0.1) Gecko/2008070206', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9) Gecko/2008052906', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050702', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050217', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a6) Gecko/20050111', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a5) Gecko/20041122', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a4) Gecko/20040927', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040817', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8a1) Gecko/20040520', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a2) Gecko/20060512', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071022', 'Mozilla/5.001 (X11; U; Linux i686; rv:1.8.1.6; de-ch) Gecko/25250101 (ubuntu-feisty)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070531', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 (Debian-1.8.1.4-2ubuntu5)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Mozilla/5.0 (Linux Mint)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 MEGAUPLOAD 1.0 (Ubuntu-feisty)', 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070310', 'Mozilla/5.0 (X11; ; Linux i686; en-US; rv:1.8.1.3) Gecko', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070321', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Mozilla/4.8 [en] (Windows NT 5.1; U)', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; nl-NL; rv:1.8.1.3) Gecko/20080722', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.2pre) Gecko/20070223', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070208', 'Mozilla/5.0 (compatible; Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081029', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8.1.15) Gecko/20080620 Mozilla/4.0', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.8.1.11) Gecko/20071127 Mozilla', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071213', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071206', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Mozilla/5.0 (Debian-2.0.0.1+dfsg-2)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 KHTML/3.5.5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060912 pango-text', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.14eol) Gecko/20070505 (Debian-1.8.0.15~pre080614d-0etch1)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060126', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040429', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7b) Gecko/20040316', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7b) Gecko/20040421', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711', 'Mozilla/5.0 (X11; U; Linux x86_64; de-AT; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20060904 Debian/1.7.8-1sarge7.2.2', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3', 'Mozilla/5.0 (X11; U; Linux i686; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050921', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050610', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Red Hat/1.7.8-1.1.3.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.8) Gecko/20050511 (No IDN)', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.8) Gecko/20050511', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.7) Gecko/20050421', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050427 Red Hat/1.7.7-1.1.3.4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.7) Gecko/20050415', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.7) Gecko/20050414', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050328 Fedora/1.7.6-1.2.5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050319', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041013', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.6) Gecko/2009011913 Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.5) Gecko/20041221', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.7.5) Gecko/20041217', 'Mozilla/5.0 (Windows NT 5.1; U; pt-br; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; es-es; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; en; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (Windows NT 5.1; U; de; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (OS/2; U; Warp 4.5; de-DE; rv:1.7.5) Gecko/20050523', 'Mozilla/5.0 (Macintosh; Intel Mac OS X; U; nb; rv:1.7.5) Gecko/20041110', 'Mozilla/5.0 (X11; U; Linux i686; hu; rv:1.7.3) Gecko/20050130', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.3) Gecko/20040913', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; es-ES; rv:1.7.3) Gecko/20040910', 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040906', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040810 Debian/1.7.2-2', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (X11; U; FreeBSD i386; ja-JP; rv:1.7.2) Gecko/20050330', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.2) Gecko/20040709', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; de-AT; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (Windows; ; Windows NT 5.1; rv:1.7.2) Gecko/20040804', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.13) Gecko/20060509', 'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.7.13) Gecko/20060901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060717 Debian/1.7.13-0.2ubuntu1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060427 Debian/1.7.13-0ubuntu05.04', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417', 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.13) Gecko/20060417', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061230', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.13) Gecko/20060414', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414', 'Mozilla/4.0 (compatible; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414; Windows NT 5.1)', 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.12) Gecko/20050929', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060216 Debian/1.7.12-1.1ubuntu2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060202 Fedora/1.7.12-1.5.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051013 Debian/1.7.12-1ubuntu1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Debian/1.7.12-0ubuntu2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050926', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 Red Hat/1.7.12-1.1.3.2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1', 'Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.7.12) Gecko/20050929', 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.7.12) Gecko/20051010 Debian/1.7.12-0ubuntu2', 'Mozilla/5.0 (X11; U; AIX 5.3; en-US; rv:1.7.12) Gecko/20051025', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.12) Gecko/20050915', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.11) Gecko/20050802', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.11) Gecko/20050728 (No IDN)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Win95; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; de-AT; rv:1.7.11) Gecko/20050728', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr-FR; rv:1.7.11) Gecko/20050727', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050811 Fedora/1.7.10-1.2.1.legacy', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.10) Gecko/20050727', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.10) Gecko/20050722', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716', 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.1) Gecko/20040707', 'Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.7.0.13) Gecko/20060901', 'Mozilla/5.0 (X11; U; SunOS sun4v; en-US; rv:1.7) Gecko/20060120', 'Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.7) Gecko/20040621', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20060629', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20060120', 'Mozilla/5.0 (X11; U; SunOS sun4u; de-DE; rv:1.7) Gecko/20070606', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20060627', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20051122', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20051027', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20050502', 'Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20041221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514', 'Mozilla/5.0 (X11; U; FreeBSD; i386; it-IT; rv:1.7) Gecko', 'Mozilla/5.0 (X11; U; FreeBSD; i386; en-US; rv:1.7) Gecko', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7) Gecko/20040803 Firefox/0.9.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7) Gecko/20040616', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031030', 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.6) Gecko/20040115', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040115', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040114', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Photon; U; QNX x86pc; en-US; rv:1.6) Gecko/20040429', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030827', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5.1) Gecko/20031120', 'Mozilla/5.0 (X11; U; SunOS5.10 sun4u; ja-JP; rv:1.5) Gecko/20031022', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030916', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.5) Gecko/20031007', 'Mozilla/5.0 (Windows; U; WinNT4.0; it-IT; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030427', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4a) Gecko/20030318', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a) Gecko/20030401', 'Mozilla/5.0 (X11; U; IRIX64 IP35; en-US; rv:1.4.3) Gecko/20040909', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040220', 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20031114', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20040406', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20041224', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030828', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030818', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030723', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030812', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (X11; U; Linux i586; de-AT; rv:1.4) Gecko/20030908 Debian/1.4-4', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030125', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20021213', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3b) Gecko/20030210', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021212', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3.1) Gecko/20030509', 'Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.3.1) Gecko', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3) Gecko/20030318', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030523', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030413', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030401', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030327 Debian/1.3-4', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030326', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030320', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030430 Debian/1.3-5', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030327 Debian/1.3-4', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.3) Gecko/20030321', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.2a) Gecko/20020910', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20030711', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021217', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021212', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021205', 'Mozilla/5.0 (X11; U; Linux i686;en-US; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030427', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030409 Debian/1.2.1-9woody2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030113', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021208 Debian/1.2.1-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021130', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1) Gecko/20021204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20050223', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.2) Gecko/20021203', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2) Gecko/20021126', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.1b) Gecko/20020721', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020610', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1a) Gecko/20020610', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020925', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020909', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020927', 'Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020829', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020828', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020913 Debian/1.1-1', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021223', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020529 Debian/1.0rc3-1', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0rc3) Gecko/20020523', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (X11; U; AIX 005A471A4C00; en-US; rv:1.0rc2) Gecko/20020514', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0rc2) Gecko/20020510', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1) Gecko/20020417', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.2) Gecko/20030208', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021216', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.0.2) Gecko/20021216', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021203', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021122 Debian/1.0.1-2', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021110', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020919', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020912', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020815', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826', 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.0) Gecko/20020611', 'Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20021004', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020612', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1', 'Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.0.0) Gecko/20020605', 'Mozilla/5.0 (Windows; U; WinNT4.0; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020509', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0.0) Gecko/20020530', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020423', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313', 'Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.9) Gecko/20020513', 'Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7) Gecko/20011221', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011202', 'Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5) Gecko/20011011', 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010923', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801', 'Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.3) Gecko/20010802', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010809', 'Mozilla/5.001 (Macintosh; N; PPC; ja) Gecko/25250101']
class TicTacToe: def __init__(self, n: int): """ Initialize your data structure here. """ self.col = [0] * n self.row = [0] * n self.n = n self.diag, self.anti = 0, 0 def move(self, row: int, col: int, player: int) -> int: """ Player {player} makes a move at ({row}, {col}). @param row The row of the board. @param col The column of the board. @param player The player, can be either 1 or 2. @return The current winning condition, can be either: 0: No one wins. 1: Player 1 wins. 2: Player 2 wins. """ if player == 1: c = 1 else: c = -1 self.col[col] += c self.row[row] += c if row == col: self.diag += c if row + col == self.n - 1: self.anti += c target = c * self.n if self.col[col] == target or self.row[row] == target or self.anti == target or self.diag == target: return player return 0 # Your TicTacToe object will be instantiated and called as such: # obj = TicTacToe(n) # param_1 = obj.move(row,col,player)
class Tictactoe: def __init__(self, n: int): """ Initialize your data structure here. """ self.col = [0] * n self.row = [0] * n self.n = n (self.diag, self.anti) = (0, 0) def move(self, row: int, col: int, player: int) -> int: """ Player {player} makes a move at ({row}, {col}). @param row The row of the board. @param col The column of the board. @param player The player, can be either 1 or 2. @return The current winning condition, can be either: 0: No one wins. 1: Player 1 wins. 2: Player 2 wins. """ if player == 1: c = 1 else: c = -1 self.col[col] += c self.row[row] += c if row == col: self.diag += c if row + col == self.n - 1: self.anti += c target = c * self.n if self.col[col] == target or self.row[row] == target or self.anti == target or (self.diag == target): return player return 0
""" Downloads clang and configures the crosstool using bazel's autoconf.""" load("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_autoconf_impl") load(":download_clang.bzl", "download_clang") _TF_DOWNLOAD_CLANG = "TF_DOWNLOAD_CLANG" _TF_NEED_CUDA = "TF_NEED_CUDA" def _cc_clang_autoconf(repo_ctx): if repo_ctx.os.environ.get(_TF_DOWNLOAD_CLANG) != "1": return if repo_ctx.os.environ.get(_TF_NEED_CUDA) == "1": # Clang is handled separately for CUDA configs. # See cuda_configure.bzl for more details. return download_clang(repo_ctx, out_folder = "extra_tools") overriden_tools = {"gcc": "extra_tools/bin/clang"} cc_autoconf_impl(repo_ctx, overriden_tools) cc_download_clang_toolchain = repository_rule( environ = [ _TF_DOWNLOAD_CLANG, _TF_NEED_CUDA, ], implementation = _cc_clang_autoconf, )
""" Downloads clang and configures the crosstool using bazel's autoconf.""" load('@bazel_tools//tools/cpp:cc_configure.bzl', 'cc_autoconf_impl') load(':download_clang.bzl', 'download_clang') _tf_download_clang = 'TF_DOWNLOAD_CLANG' _tf_need_cuda = 'TF_NEED_CUDA' def _cc_clang_autoconf(repo_ctx): if repo_ctx.os.environ.get(_TF_DOWNLOAD_CLANG) != '1': return if repo_ctx.os.environ.get(_TF_NEED_CUDA) == '1': return download_clang(repo_ctx, out_folder='extra_tools') overriden_tools = {'gcc': 'extra_tools/bin/clang'} cc_autoconf_impl(repo_ctx, overriden_tools) cc_download_clang_toolchain = repository_rule(environ=[_TF_DOWNLOAD_CLANG, _TF_NEED_CUDA], implementation=_cc_clang_autoconf)
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Exceptions module ============================= """ class GPyPiException(Exception): """Core exception class, all exception inherit from this class.""" class GPyPiInvalidAtom(GPyPiException): """Raised when determining Portage Atom did not succeed.""" class GPyPiNoSetupFile(GPyPiException): """Raised if no setup.py was found.""" class GPyPiNoDistribution(GPyPiException): """Raised if unpacked directory could not be found.""" class GPyPiCouldNotUnpackEbuild(GPyPiException): """Raised if unpacking failed.""" class GPyPiInvalidParameter(GPyPiException): """Raised CLI parameter is not valid.""" class GPyPiCouldNotCreateEbuildPath(GPyPiException): """Raised when directory for an ebuild could not be created.""" class GPyPiOverlayDoesNotExist(GPyPiException): """""" class GPyPiConfigurationError(GPyPiException): """""" class GPyPiValidationError(GPyPiException): """"""
""" Exceptions module ============================= """ class Gpypiexception(Exception): """Core exception class, all exception inherit from this class.""" class Gpypiinvalidatom(GPyPiException): """Raised when determining Portage Atom did not succeed.""" class Gpypinosetupfile(GPyPiException): """Raised if no setup.py was found.""" class Gpypinodistribution(GPyPiException): """Raised if unpacked directory could not be found.""" class Gpypicouldnotunpackebuild(GPyPiException): """Raised if unpacking failed.""" class Gpypiinvalidparameter(GPyPiException): """Raised CLI parameter is not valid.""" class Gpypicouldnotcreateebuildpath(GPyPiException): """Raised when directory for an ebuild could not be created.""" class Gpypioverlaydoesnotexist(GPyPiException): """""" class Gpypiconfigurationerror(GPyPiException): """""" class Gpypivalidationerror(GPyPiException): """"""
A, B = map(int, input().split()) if 6*A < B or A > B: print('No') else: print('Yes')
(a, b) = map(int, input().split()) if 6 * A < B or A > B: print('No') else: print('Yes')
# # PySNMP MIB module RAD-SONET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RAD-SONET-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:36:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") PerfIntervalCount, PerfCurrentCount = mibBuilder.importSymbols("PerfHist-TC-MIB", "PerfIntervalCount", "PerfCurrentCount") diverseIfWanGen, = mibBuilder.importSymbols("RAD-MIB", "diverseIfWanGen") SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ModuleIdentity, Integer32, Gauge32, Counter32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, TimeTicks, Unsigned32, IpAddress, iso, Bits, Counter64, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "Integer32", "Gauge32", "Counter32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "TimeTicks", "Unsigned32", "IpAddress", "iso", "Bits", "Counter64", "ObjectIdentity") TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString") sonetInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2)) prtSonetPerfHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1)) prtSonetMediumTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1), ) if mibBuilder.loadTexts: prtSonetMediumTable.setStatus('current') prtSonetMediumEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: prtSonetMediumEntry.setStatus('current') prtSonetMediumTimeElapsed = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 899))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetMediumTimeElapsed.setStatus('current') prtSonetMediumValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetMediumValidIntervals.setStatus('current') prtSonetSectionLineCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2), ) if mibBuilder.loadTexts: prtSonetSectionLineCurrentTable.setStatus('current') prtSectionLineCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: prtSectionLineCurrentEntry.setStatus('current') prtSonetCurrentLOS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLOS.setStatus('current') prtSonetCurrentLOF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLOF.setStatus('current') prtSonetCurrentLineAIS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLineAIS.setStatus('current') prtSonetCurrentLineFERF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLineFERF.setStatus('current') prtSonetCurrentSectionBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentSectionBIP.setStatus('current') prtSonetCurrentLineBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLineBIP.setStatus('current') prtSonetCurrentLineFEBE = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLineFEBE.setStatus('current') prtSonetCurrentUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentUAS.setStatus('current') prtSonetCurrentSES = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentSES.setStatus('current') prtSonetCurrentES = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentES.setStatus('current') prtSonetCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentStatus.setStatus('current') prtSonetCurrentLSV = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 12), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLSV.setStatus('current') prtSonetSectionLineIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3), ) if mibBuilder.loadTexts: prtSonetSectionLineIntervalTable.setStatus('current') prtSectionLineIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "prtSonetLineIntervalNumber")) if mibBuilder.loadTexts: prtSectionLineIntervalEntry.setStatus('current') prtSonetLineIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetLineIntervalNumber.setStatus('current') prtSonetIntervalLOS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLOS.setStatus('current') prtSonetIntervalLOF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLOF.setStatus('current') prtSonetIntervalLineAIS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLineAIS.setStatus('current') prtSonetIntervalLineFERF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLineFERF.setStatus('current') prtSonetIntervalSectionBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalSectionBIP.setStatus('current') prtSonetIntervalLineBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLineBIP.setStatus('current') prtSonetIntervalLineFEBE = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLineFEBE.setStatus('current') prtSonetIntervalUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalUAS.setStatus('current') prtSonetIntervalSES = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalSES.setStatus('current') prtSonetIntervalES = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalES.setStatus('current') prtSonetIntervalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalStatus.setStatus('current') prtSonetIntervalLSV = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 13), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLSV.setStatus('current') prtSonetPathCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4), ) if mibBuilder.loadTexts: prtSonetPathCurrentTable.setStatus('current') prtPathCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: prtPathCurrentEntry.setStatus('current') prtSonetCurrentPathAIS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentPathAIS.setStatus('current') prtSonetCurrentPathFERF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentPathFERF.setStatus('current') prtSonetCurrentLOP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLOP.setStatus('current') prtSonetCurrentSLM = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentSLM.setStatus('current') prtSonetCurrentLOC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentLOC.setStatus('current') prtSonetCurrentPathBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentPathBIP.setStatus('current') prtSonetCurrentPathFEBE = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetCurrentPathFEBE.setStatus('current') prtSonetPathIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5), ) if mibBuilder.loadTexts: prtSonetPathIntervalTable.setStatus('current') prtPathIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "prtSonetPathIntervalNumber")) if mibBuilder.loadTexts: prtPathIntervalEntry.setStatus('current') prtSonetPathIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetPathIntervalNumber.setStatus('current') prtSonetIntervalPathAIS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalPathAIS.setStatus('current') prtSonetIntervalPathFERF = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalPathFERF.setStatus('current') prtSonetIntervalLOP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLOP.setStatus('current') prtSonetIntervalSLM = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalSLM.setStatus('current') prtSonetIntervalLOC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalLOC.setStatus('current') prtSonetIntervalPathBIP = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalPathBIP.setStatus('current') prtSonetIntervalPathFEBE = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetIntervalPathFEBE.setStatus('current') virtualIfStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6)) virtualIfCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1), ) if mibBuilder.loadTexts: virtualIfCurrentTable.setStatus('current') virtualIfCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: virtualIfCurrentEntry.setStatus('current') virtualIfCurrentMinActiveVC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentMinActiveVC.setStatus('current') virtualIfCurrentMaxActiveVC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentMaxActiveVC.setStatus('current') virtualIfCurrentRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentRxFrames.setStatus('current') virtualIfCurrentTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentTxFrames.setStatus('current') virtualIfCurrentRxAbortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 5), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentRxAbortFrames.setStatus('current') virtualIfCurrentTxAbortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 6), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentTxAbortFrames.setStatus('current') virtualIfCurrentMinLengthViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 7), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentMinLengthViolation.setStatus('current') virtualIfCurrentMaxLengthViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 8), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentMaxLengthViolation.setStatus('current') virtualIfCurrentFcsError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 9), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentFcsError.setStatus('current') virtualIfCurrentByteDestuffingViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 10), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentByteDestuffingViolation.setStatus('current') virtualIfCurrentAdressMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 11), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentAdressMismatch.setStatus('current') virtualIfCurrentControlMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 12), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentControlMismatch.setStatus('current') virtualIfCurrentActiveVC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfCurrentActiveVC.setStatus('current') virtualIfIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2), ) if mibBuilder.loadTexts: virtualIfIntervalTable.setStatus('current') virtualIfIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "virtualIfIntervalNumber")) if mibBuilder.loadTexts: virtualIfIntervalEntry.setStatus('current') virtualIfIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: virtualIfIntervalNumber.setStatus('current') virtualIfIntervalMinActiveVC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalMinActiveVC.setStatus('current') virtualIfIntervalMaxActiveVC = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalMaxActiveVC.setStatus('current') virtualIfIntervalRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalRxFrames.setStatus('current') virtualIfIntervalTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalTxFrames.setStatus('current') virtualIfIntervalRxAbortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 6), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalRxAbortFrames.setStatus('current') virtualIfIntervalTxAbortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalTxAbortFrames.setStatus('current') virtualIfIntervalMinLengthViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalMinLengthViolation.setStatus('current') virtualIfIntervalMaxLengthViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalMaxLengthViolation.setStatus('current') virtualIfIntervalFcsError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalFcsError.setStatus('current') virtualIfIntervalByteDestuffingViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 11), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalByteDestuffingViolation.setStatus('current') virtualIfIntervalAdressMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 12), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalAdressMismatch.setStatus('current') virtualIfIntervalControlMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 13), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalControlMismatch.setStatus('current') virtualIfIntervalBelowMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 14), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfIntervalBelowMinThreshold.setStatus('current') virtualIfLAPSCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3), ) if mibBuilder.loadTexts: virtualIfLAPSCurrentTable.setStatus('current') virtualIfLAPSCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: virtualIfLAPSCurrentEntry.setStatus('current') virtualIfLAPSCurrentSapiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3, 1, 1), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPSCurrentSapiMismatch.setStatus('current') virtualIfLAPSIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4), ) if mibBuilder.loadTexts: virtualIfLAPSIntervalTable.setStatus('current') virtualIfLAPSIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "virtualIfIntervalNumber")) if mibBuilder.loadTexts: virtualIfLAPSIntervalEntry.setStatus('current') virtualIfLAPSIntervalSapiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4, 1, 1), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPSIntervalSapiMismatch.setStatus('current') virtualIfLAPFCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5), ) if mibBuilder.loadTexts: virtualIfLAPFCurrentTable.setStatus('current') virtualIfLAPFCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: virtualIfLAPFCurrentEntry.setStatus('current') virtualIfLAPFCurrentNlpidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 1), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentNlpidMismatch.setStatus('current') virtualIfLAPFCurrentOuiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 2), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentOuiMismatch.setStatus('current') virtualIfLAPFCurrentPidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 3), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentPidMismatch.setStatus('current') virtualIfLAPFCurrentDlciMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 4), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentDlciMismatch.setStatus('current') virtualIfLAPFCurrentMacRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 5), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentMacRxFrames.setStatus('current') virtualIfLAPFCurrentMacTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 6), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFCurrentMacTxFrames.setStatus('current') virtualIfLAPFIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6), ) if mibBuilder.loadTexts: virtualIfLAPFIntervalTable.setStatus('current') virtualIfLAPFIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "virtualIfIntervalNumber")) if mibBuilder.loadTexts: virtualIfLAPFIntervalEntry.setStatus('current') virtualIfLAPFIntervalNlpidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 1), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalNlpidMismatch.setStatus('current') virtualIfLAPFIntervalOuiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 2), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalOuiMismatch.setStatus('current') virtualIfLAPFIntervalPidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 3), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalPidMismatch.setStatus('current') virtualIfLAPFIntervalDlciMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 4), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalDlciMismatch.setStatus('current') virtualIfLAPFIntervalMacRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 5), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalMacRxFrames.setStatus('current') virtualIfLAPFIntervalMacTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 6), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfLAPFIntervalMacTxFrames.setStatus('current') virtualIfGFPCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7), ) if mibBuilder.loadTexts: virtualIfGFPCurrentTable.setStatus('current') virtualIfGFPCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex")) if mibBuilder.loadTexts: virtualIfGFPCurrentEntry.setStatus('current') virtualIfGFPCurrentIdleFrameError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 1), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentIdleFrameError.setStatus('current') virtualIfGFPCurrentCHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 2), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentCHecSbError.setStatus('current') virtualIfGFPCurrentPtiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 3), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentPtiMismatch.setStatus('current') virtualIfGFPCurrentExiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 4), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentExiMismatch.setStatus('current') virtualIfGFPCurrentUpiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 5), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentUpiMismatch.setStatus('current') virtualIfGFPCurrentTHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 6), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentTHecSbError.setStatus('current') virtualIfGFPCurrentTHecMbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 7), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentTHecMbError.setStatus('current') virtualIfGFPCurrentCidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 8), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentCidMismatch.setStatus('current') virtualIfGFPCurrentEHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 9), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentEHecSbError.setStatus('current') virtualIfGFPCurrentEHecMbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 10), PerfCurrentCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPCurrentEHecMbError.setStatus('current') virtualIfGFPIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8), ) if mibBuilder.loadTexts: virtualIfGFPIntervalTable.setStatus('current') virtualIfGFPIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1), ).setIndexNames((0, "RAD-SONET-MIB", "ifIndex"), (0, "RAD-SONET-MIB", "virtualIfIntervalNumber")) if mibBuilder.loadTexts: virtualIfGFPIntervalEntry.setStatus('current') virtualIfGFPIntervalIdleFrameError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 1), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalIdleFrameError.setStatus('current') virtualIfGFPIntervalCHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 2), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalCHecSbError.setStatus('current') virtualIfGFPIntervalPtiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 3), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalPtiMismatch.setStatus('current') virtualIfGFPIntervalExiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 4), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalExiMismatch.setStatus('current') virtualIfGFPIntervalUpiMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 5), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalUpiMismatch.setStatus('current') virtualIfGFPIntervalTHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 6), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalTHecSbError.setStatus('current') virtualIfGFPIntervalTHecMbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 7), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalTHecMbError.setStatus('current') virtualIfGFPIntervalCidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 8), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalCidMismatch.setStatus('current') virtualIfGFPIntervalEHecSbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 9), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalEHecSbError.setStatus('current') virtualIfGFPIntervalEHecMbError = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 10), PerfIntervalCount()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGFPIntervalEHecMbError.setStatus('current') prtSonetConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2)) prtSonetGen = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1)) prtSonetGenTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1), ) if mibBuilder.loadTexts: prtSonetGenTable.setStatus('current') prtSonetGenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetGenCnfgIdx"), (0, "RAD-SONET-MIB", "prtSonetGenIdx")) if mibBuilder.loadTexts: prtSonetGenEntry.setStatus('current') prtSonetGenCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetGenCnfgIdx.setStatus('current') prtSonetGenIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetGenIdx.setStatus('current') prtSonetGenSdThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("notApplicable", 1), ("n3", 3), ("n4", 4), ("n5", 5), ("n6", 6), ("n7", 7), ("n8", 8), ("n9", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetGenSdThreshold.setStatus('current') prtSonetGenEedThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("notApplicable", 1), ("n3", 3), ("n4", 4), ("n5", 5), ("n6", 6), ("n7", 7), ("n8", 8), ("n9", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetGenEedThreshold.setStatus('current') prtSonetGenBerEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetGenBerEnable.setStatus('current') prtSonetStm1 = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2)) prtSonetStm1Table = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1), ) if mibBuilder.loadTexts: prtSonetStm1Table.setStatus('current') prtSonetStm1Entry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetStm1CnfgIdx"), (0, "RAD-SONET-MIB", "prtSonetStm1Idx")) if mibBuilder.loadTexts: prtSonetStm1Entry.setStatus('current') prtSonetStm1CnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetStm1CnfgIdx.setStatus('current') prtSonetStm1Idx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetStm1Idx.setStatus('current') prtSonetStm1ClockSrc = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("internal", 2), ("lbt", 3), ("systemClk", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1ClockSrc.setStatus('current') prtSonetStm1DccMode = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("notApplicable", 1), ("none", 2), ("d1ToD3", 3), ("d4ToD12", 4), ("d1", 5), ("d2", 6), ("d3", 7), ("d4", 8), ("d5", 9), ("d6", 10), ("d7", 11), ("d8", 12), ("d9", 13), ("d10", 14), ("d11", 15), ("d12", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1DccMode.setStatus('current') prtSonetStm1RoutingProt = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("none", 2), ("proprietary", 3), ("rip2", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1RoutingProt.setStatus('current') prtSonetStm1MngProt = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 5, 6, 7, 8))).clone(namedValues=NamedValues(("notApplicable", 1), ("proprietary", 3), ("ppp", 5), ("frameRelay", 6), ("hdlc", 7), ("lapdOverHdlc", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1MngProt.setStatus('current') prtSonetStm1OperationalMode = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("terminal", 2), ("linear", 3), ("linearProtection", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1OperationalMode.setStatus('current') prtSonetStm1VoiceChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("none", 2), ("e1Byte", 3), ("e2Byte", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1VoiceChannel.setStatus('current') prtSonetStm1OutputRate = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1OutputRate.setStatus('current') prtSonetStm1S1ProtocolClock = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("disable", 2), ("enable", 3), ("transparent", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1S1ProtocolClock.setStatus('current') prtSonetStm1GatewayRingSubnetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 11), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1GatewayRingSubnetAddress.setStatus('current') prtSonetStm1GatewayRingSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 12), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1GatewayRingSubnetMask.setStatus('current') prtSonetStm1MngProtDeviationType = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("standard", 2), ("type1", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetStm1MngProtDeviationType.setStatus('current') prtSonetVc = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3)) prtSonetVcTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1), ) if mibBuilder.loadTexts: prtSonetVcTable.setStatus('current') prtSonetVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetVcCnfgIdx"), (0, "RAD-SONET-MIB", "prtSonetVcIdx")) if mibBuilder.loadTexts: prtSonetVcEntry.setStatus('current') prtSonetVcCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcCnfgIdx.setStatus('current') prtSonetVcIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcIdx.setStatus('current') prtSonetVcJTxPathTraceEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetVcJTxPathTraceEnable.setStatus('current') prtSonetVcJRxPathTraceEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetVcJRxPathTraceEnable.setStatus('current') prtSonetVcJPathTrace = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetVcJPathTrace.setStatus('current') prtSonetVcConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetVcConnect.setStatus('current') prtSonetVcSignalLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: prtSonetVcSignalLabel.setStatus('current') prtSonetTuTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2), ) if mibBuilder.loadTexts: prtSonetTuTable.setStatus('current') prtSonetTuEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetTuCnfgIdx"), (0, "RAD-SONET-MIB", "prtSonetTuPrtIdx"), (0, "RAD-SONET-MIB", "prtSonetTuIdx"), (0, "RAD-SONET-MIB", "prtSonetTuConPrtIdx")) if mibBuilder.loadTexts: prtSonetTuEntry.setStatus('current') prtSonetTuCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetTuCnfgIdx.setStatus('current') prtSonetTuPrtIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetTuPrtIdx.setStatus('current') prtSonetTuIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetTuIdx.setStatus('current') prtSonetTuConPrtIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetTuConPrtIdx.setStatus('current') prtSonetTuType = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("connect", 2), ("bypass", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetTuType.setStatus('current') prtSonetTuMode = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("addAndDrop", 2), ("add", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetTuMode.setStatus('current') prtSonetTuRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetTuRowStatus.setStatus('current') prtSonetXConnect = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3)) prtSonetXConnectTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1), ) if mibBuilder.loadTexts: prtSonetXConnectTable.setStatus('current') prtSonetXConnectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetXConnectCnfgIdx"), (0, "RAD-SONET-MIB", "prtSonetXConnectPrtIdx"), (0, "RAD-SONET-MIB", "prtSonetXConnectConPrtIdx"), (0, "RAD-SONET-MIB", "prtSonetXConnectAUGIdx"), (0, "RAD-SONET-MIB", "prtSonetXConnectTUG3Idx"), (0, "RAD-SONET-MIB", "prtSonetXConnectTUG2Idx"), (0, "RAD-SONET-MIB", "prtSonetXConnectTUnIdx")) if mibBuilder.loadTexts: prtSonetXConnectEntry.setStatus('current') prtSonetXConnectCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectCnfgIdx.setStatus('current') prtSonetXConnectPrtIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectPrtIdx.setStatus('current') prtSonetXConnectConPrtIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectConPrtIdx.setStatus('current') prtSonetXConnectAUGIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectAUGIdx.setStatus('current') prtSonetXConnectTUG3Idx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectTUG3Idx.setStatus('current') prtSonetXConnectTUG2Idx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectTUG2Idx.setStatus('current') prtSonetXConnectTUnIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetXConnectTUnIdx.setStatus('current') prtSonetXConnectRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetXConnectRowStatus.setStatus('current') prtSonetXConnectDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("rx", 2), ("tx", 3), ("both", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetXConnectDirection.setStatus('current') prtSonetXConnectTuNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notApplicable", 1), ("tu2", 2), ("tu3", 3), ("tu11", 4), ("tu12", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prtSonetXConnectTuNumber.setStatus('current') prtSonetStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4)) prtSonetVcStatTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1), ) if mibBuilder.loadTexts: prtSonetVcStatTable.setStatus('current') prtSonetVcStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "prtSonetVcIdx")) if mibBuilder.loadTexts: prtSonetVcStatEntry.setStatus('current') prtSonetVcRxJPathTrace = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 62))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcRxJPathTrace.setStatus('current') prtSonetVcRxSignalLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcRxSignalLabel.setStatus('current') prtSonetVcLcasSourceState = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notApplicable", 1), ("fixed", 2), ("add", 3), ("norm", 4), ("eos", 5), ("idle", 6), ("dnu", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcLcasSourceState.setStatus('current') prtSonetVcLcasSinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("notApplicable", 1), ("fixed", 2), ("add", 3), ("norm", 4), ("eos", 5), ("idle", 6), ("dnu", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: prtSonetVcLcasSinkState.setStatus('current') prtVcGroupCnfg = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4)) vcGroupCnfgTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1), ) if mibBuilder.loadTexts: vcGroupCnfgTable.setStatus('current') vcGroupCnfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "vcGroupCnfgIdx"), (0, "RAD-SONET-MIB", "vcGroupCnfgNumber")) if mibBuilder.loadTexts: vcGroupCnfgEntry.setStatus('current') vcGroupCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: vcGroupCnfgIdx.setStatus('current') vcGroupCnfgNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 2), Integer32()) if mibBuilder.loadTexts: vcGroupCnfgNumber.setStatus('current') vcGroupCnfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgRowStatus.setStatus('current') vcGroupCnfgVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notApplicable", 1), ("vc12", 2), ("vc3", 3), ("vc4", 4), ("vt1dot5", 5), ("sts1", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgVcType.setStatus('current') vcGroupCnfgNoOfVCs = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 84))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgNoOfVCs.setStatus('current') vcGroupCnfgLCAS = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("lcasNotActive", 2), ("lcasActive", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgLCAS.setStatus('current') vcGroupCnfgEncapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("laps", 2), ("lapf", 3), ("gfp", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgEncapsulation.setStatus('current') vcGroupCnfgGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 8), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: vcGroupCnfgGroupIfIndex.setStatus('current') vcGroupCnfgRip2 = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgRip2.setStatus('current') vcGroupCnfgGfpChId = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgGfpChId.setStatus('current') vcGroupCnfgK4 = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgK4.setStatus('current') vcGroupCnfgExSignalLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgExSignalLabel.setStatus('current') vcGroupCnfgLcasMinNoOfVCs = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 83))).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcGroupCnfgLcasMinNoOfVCs.setStatus('current') vcGroupCnfgLcasStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notApplicable", 1), ("belowMinNoOfVCs", 2), ("withinRange", 3), ("allNorm", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vcGroupCnfgLcasStatus.setStatus('current') vcgGfpMuxCnfgTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2), ) if mibBuilder.loadTexts: vcgGfpMuxCnfgTable.setStatus('current') vcgGfpMuxCnfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1), ).setIndexNames((0, "RAD-SONET-MIB", "vcgGfpMuxCnfgIdx"), (0, "RAD-SONET-MIB", "vcgGfpMuxCnfgMuxNumber")) if mibBuilder.loadTexts: vcgGfpMuxCnfgEntry.setStatus('current') vcgGfpMuxCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: vcgGfpMuxCnfgIdx.setStatus('current') vcgGfpMuxCnfgMuxNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 2), Integer32()) if mibBuilder.loadTexts: vcgGfpMuxCnfgMuxNumber.setStatus('current') vcgGfpMuxCnfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcgGfpMuxCnfgRowStatus.setStatus('current') vcgGfpMuxCnfgMuxName = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 4), SnmpAdminString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcgGfpMuxCnfgMuxName.setStatus('current') vcgGfpMuxCnfgPrimeGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 5), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcgGfpMuxCnfgPrimeGroup.setStatus('current') vcgGfpMuxCnfgGrpBwAlloc = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 6), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: vcgGfpMuxCnfgGrpBwAlloc.setStatus('current') virtualIfConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5)) virtualIfGenTable = MibTable((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1), ) if mibBuilder.loadTexts: virtualIfGenTable.setStatus('current') virtualIfGenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1), ).setIndexNames((0, "RAD-SONET-MIB", "virtualIfGenCnfgIdx"), (0, "RAD-SONET-MIB", "virtualIfGenIdx")) if mibBuilder.loadTexts: virtualIfGenEntry.setStatus('current') virtualIfGenCnfgIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGenCnfgIdx.setStatus('current') virtualIfGenIdx = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: virtualIfGenIdx.setStatus('current') virtualIfGenFrameFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notApplicable", 1), ("fcsEnable", 2), ("fcsDisable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: virtualIfGenFrameFormat.setStatus('current') mibBuilder.exportSymbols("RAD-SONET-MIB", virtualIfIntervalByteDestuffingViolation=virtualIfIntervalByteDestuffingViolation, virtualIfGFPCurrentPtiMismatch=virtualIfGFPCurrentPtiMismatch, prtPathIntervalEntry=prtPathIntervalEntry, virtualIfLAPFCurrentEntry=virtualIfLAPFCurrentEntry, virtualIfGFPCurrentEHecSbError=virtualIfGFPCurrentEHecSbError, vcgGfpMuxCnfgPrimeGroup=vcgGfpMuxCnfgPrimeGroup, prtSonetTuRowStatus=prtSonetTuRowStatus, vcgGfpMuxCnfgMuxName=vcgGfpMuxCnfgMuxName, virtualIfGFPIntervalCHecSbError=virtualIfGFPIntervalCHecSbError, prtSonetXConnectTable=prtSonetXConnectTable, sonetInterface=sonetInterface, virtualIfCurrentTxAbortFrames=virtualIfCurrentTxAbortFrames, prtSonetCurrentLineBIP=prtSonetCurrentLineBIP, virtualIfIntervalAdressMismatch=virtualIfIntervalAdressMismatch, virtualIfGFPCurrentEHecMbError=virtualIfGFPCurrentEHecMbError, prtSonetPathIntervalNumber=prtSonetPathIntervalNumber, prtSonetCurrentLineAIS=prtSonetCurrentLineAIS, virtualIfGFPCurrentTable=virtualIfGFPCurrentTable, prtPathCurrentEntry=prtPathCurrentEntry, prtSonetCurrentPathFERF=prtSonetCurrentPathFERF, virtualIfGenCnfgIdx=virtualIfGenCnfgIdx, prtSonetCurrentUAS=prtSonetCurrentUAS, prtSonetIntervalPathAIS=prtSonetIntervalPathAIS, virtualIfGFPIntervalTable=virtualIfGFPIntervalTable, vcGroupCnfgLCAS=vcGroupCnfgLCAS, vcgGfpMuxCnfgIdx=vcgGfpMuxCnfgIdx, prtSonetIntervalLineAIS=prtSonetIntervalLineAIS, virtualIfIntervalNumber=virtualIfIntervalNumber, virtualIfStatistics=virtualIfStatistics, virtualIfLAPFIntervalMacRxFrames=virtualIfLAPFIntervalMacRxFrames, virtualIfIntervalTxFrames=virtualIfIntervalTxFrames, prtSonetCurrentPathAIS=prtSonetCurrentPathAIS, virtualIfGFPCurrentCHecSbError=virtualIfGFPCurrentCHecSbError, virtualIfLAPFCurrentMacTxFrames=virtualIfLAPFCurrentMacTxFrames, prtSonetStm1ClockSrc=prtSonetStm1ClockSrc, prtSonetXConnectDirection=prtSonetXConnectDirection, vcGroupCnfgGroupIfIndex=vcGroupCnfgGroupIfIndex, prtSonetVcLcasSourceState=prtSonetVcLcasSourceState, prtSonetCurrentPathFEBE=prtSonetCurrentPathFEBE, prtSonetIntervalLSV=prtSonetIntervalLSV, virtualIfGFPIntervalExiMismatch=virtualIfGFPIntervalExiMismatch, vcgGfpMuxCnfgMuxNumber=vcgGfpMuxCnfgMuxNumber, virtualIfCurrentActiveVC=virtualIfCurrentActiveVC, prtSonetCurrentLOS=prtSonetCurrentLOS, virtualIfIntervalMinLengthViolation=virtualIfIntervalMinLengthViolation, prtSonetStm1MngProt=prtSonetStm1MngProt, prtSonetVcCnfgIdx=prtSonetVcCnfgIdx, prtSonetStm1GatewayRingSubnetMask=prtSonetStm1GatewayRingSubnetMask, prtSonetCurrentLOF=prtSonetCurrentLOF, prtSonetIntervalLineFERF=prtSonetIntervalLineFERF, prtSonetCurrentLOP=prtSonetCurrentLOP, prtSonetVcJPathTrace=prtSonetVcJPathTrace, virtualIfGFPCurrentUpiMismatch=virtualIfGFPCurrentUpiMismatch, prtSonetVcIdx=prtSonetVcIdx, virtualIfCurrentRxAbortFrames=virtualIfCurrentRxAbortFrames, prtSonetCurrentLSV=prtSonetCurrentLSV, virtualIfLAPFCurrentDlciMismatch=virtualIfLAPFCurrentDlciMismatch, virtualIfLAPSCurrentSapiMismatch=virtualIfLAPSCurrentSapiMismatch, prtSonetIntervalSLM=prtSonetIntervalSLM, prtSonetIntervalLOC=prtSonetIntervalLOC, virtualIfCurrentAdressMismatch=virtualIfCurrentAdressMismatch, prtSectionLineIntervalEntry=prtSectionLineIntervalEntry, virtualIfGFPCurrentCidMismatch=virtualIfGFPCurrentCidMismatch, virtualIfIntervalMinActiveVC=virtualIfIntervalMinActiveVC, prtSonetCurrentStatus=prtSonetCurrentStatus, virtualIfLAPSCurrentTable=virtualIfLAPSCurrentTable, virtualIfLAPFCurrentPidMismatch=virtualIfLAPFCurrentPidMismatch, virtualIfCurrentMaxActiveVC=virtualIfCurrentMaxActiveVC, virtualIfGFPIntervalUpiMismatch=virtualIfGFPIntervalUpiMismatch, prtSonetTuTable=prtSonetTuTable, virtualIfCurrentMinActiveVC=virtualIfCurrentMinActiveVC, prtSonetXConnectConPrtIdx=prtSonetXConnectConPrtIdx, vcgGfpMuxCnfgGrpBwAlloc=vcgGfpMuxCnfgGrpBwAlloc, prtSonetPathIntervalTable=prtSonetPathIntervalTable, virtualIfLAPFCurrentOuiMismatch=virtualIfLAPFCurrentOuiMismatch, prtSonetStm1Entry=prtSonetStm1Entry, vcgGfpMuxCnfgTable=vcgGfpMuxCnfgTable, virtualIfIntervalTable=virtualIfIntervalTable, prtSonetXConnectTUG2Idx=prtSonetXConnectTUG2Idx, prtSonetStm1Idx=prtSonetStm1Idx, prtSonetIntervalLineBIP=prtSonetIntervalLineBIP, prtSonetCurrentSES=prtSonetCurrentSES, prtSonetCurrentPathBIP=prtSonetCurrentPathBIP, virtualIfIntervalRxAbortFrames=virtualIfIntervalRxAbortFrames, vcGroupCnfgEncapsulation=vcGroupCnfgEncapsulation, prtSonetXConnectTuNumber=prtSonetXConnectTuNumber, prtSonetVcRxSignalLabel=prtSonetVcRxSignalLabel, virtualIfLAPSCurrentEntry=virtualIfLAPSCurrentEntry, virtualIfConfiguration=virtualIfConfiguration, virtualIfGFPIntervalEHecMbError=virtualIfGFPIntervalEHecMbError, prtSonetIntervalSectionBIP=prtSonetIntervalSectionBIP, prtSonetCurrentLOC=prtSonetCurrentLOC, prtSonetGenEntry=prtSonetGenEntry, prtSonetPathCurrentTable=prtSonetPathCurrentTable, virtualIfLAPSIntervalSapiMismatch=virtualIfLAPSIntervalSapiMismatch, virtualIfLAPSIntervalEntry=virtualIfLAPSIntervalEntry, virtualIfLAPFIntervalEntry=virtualIfLAPFIntervalEntry, prtSonetVcEntry=prtSonetVcEntry, prtSonetStm1OutputRate=prtSonetStm1OutputRate, prtSonetTuPrtIdx=prtSonetTuPrtIdx, prtSonetVcStatTable=prtSonetVcStatTable, prtSonetSectionLineCurrentTable=prtSonetSectionLineCurrentTable, vcGroupCnfgLcasMinNoOfVCs=vcGroupCnfgLcasMinNoOfVCs, virtualIfLAPFIntervalNlpidMismatch=virtualIfLAPFIntervalNlpidMismatch, virtualIfCurrentEntry=virtualIfCurrentEntry, prtSonetVcTable=prtSonetVcTable, prtSonetTuEntry=prtSonetTuEntry, prtSonetXConnectPrtIdx=prtSonetXConnectPrtIdx, prtSonetXConnectEntry=prtSonetXConnectEntry, virtualIfGenTable=virtualIfGenTable, prtSonetGenBerEnable=prtSonetGenBerEnable, virtualIfIntervalMaxActiveVC=virtualIfIntervalMaxActiveVC, virtualIfLAPFCurrentTable=virtualIfLAPFCurrentTable, vcGroupCnfgLcasStatus=vcGroupCnfgLcasStatus, virtualIfGenFrameFormat=virtualIfGenFrameFormat, prtSonetIntervalLOS=prtSonetIntervalLOS, vcGroupCnfgNoOfVCs=vcGroupCnfgNoOfVCs, vcGroupCnfgK4=vcGroupCnfgK4, prtSonetIntervalLOF=prtSonetIntervalLOF, prtSonetVcConnect=prtSonetVcConnect, prtSonetStatus=prtSonetStatus, prtSonetStm1VoiceChannel=prtSonetStm1VoiceChannel, prtSonetCurrentSLM=prtSonetCurrentSLM, prtSonetStm1OperationalMode=prtSonetStm1OperationalMode, vcgGfpMuxCnfgEntry=vcgGfpMuxCnfgEntry, virtualIfGFPCurrentEntry=virtualIfGFPCurrentEntry, prtSonetXConnectTUnIdx=prtSonetXConnectTUnIdx, prtSonetMediumEntry=prtSonetMediumEntry, prtSonetStm1RoutingProt=prtSonetStm1RoutingProt, prtSonetSectionLineIntervalTable=prtSonetSectionLineIntervalTable, prtSonetTuType=prtSonetTuType, virtualIfGFPIntervalIdleFrameError=virtualIfGFPIntervalIdleFrameError, prtSonetIntervalLOP=prtSonetIntervalLOP, prtSonetStm1Table=prtSonetStm1Table, prtSonetVc=prtSonetVc, virtualIfCurrentRxFrames=virtualIfCurrentRxFrames, prtSonetVcLcasSinkState=prtSonetVcLcasSinkState, virtualIfGFPCurrentIdleFrameError=virtualIfGFPCurrentIdleFrameError, prtSonetIntervalPathFEBE=prtSonetIntervalPathFEBE, prtSonetCurrentLineFERF=prtSonetCurrentLineFERF, prtSonetVcSignalLabel=prtSonetVcSignalLabel, prtSonetVcJRxPathTraceEnable=prtSonetVcJRxPathTraceEnable, prtSonetLineIntervalNumber=prtSonetLineIntervalNumber, prtSonetIntervalPathBIP=prtSonetIntervalPathBIP, virtualIfGFPCurrentTHecSbError=virtualIfGFPCurrentTHecSbError, prtSonetStm1CnfgIdx=prtSonetStm1CnfgIdx, prtSonetStm1DccMode=prtSonetStm1DccMode, prtSonetStm1S1ProtocolClock=prtSonetStm1S1ProtocolClock, prtSonetTuConPrtIdx=prtSonetTuConPrtIdx, vcGroupCnfgVcType=vcGroupCnfgVcType, virtualIfLAPFIntervalMacTxFrames=virtualIfLAPFIntervalMacTxFrames, virtualIfCurrentTable=virtualIfCurrentTable, vcGroupCnfgEntry=vcGroupCnfgEntry, prtSonetGenSdThreshold=prtSonetGenSdThreshold, prtSonetIntervalUAS=prtSonetIntervalUAS, virtualIfGFPCurrentTHecMbError=virtualIfGFPCurrentTHecMbError, virtualIfCurrentTxFrames=virtualIfCurrentTxFrames, prtSonetIntervalSES=prtSonetIntervalSES, virtualIfLAPFIntervalTable=virtualIfLAPFIntervalTable, prtSonetXConnectCnfgIdx=prtSonetXConnectCnfgIdx, prtSonetCurrentLineFEBE=prtSonetCurrentLineFEBE, prtSonetVcStatEntry=prtSonetVcStatEntry, virtualIfIntervalBelowMinThreshold=virtualIfIntervalBelowMinThreshold, virtualIfCurrentFcsError=virtualIfCurrentFcsError, virtualIfLAPFCurrentMacRxFrames=virtualIfLAPFCurrentMacRxFrames, virtualIfGFPIntervalPtiMismatch=virtualIfGFPIntervalPtiMismatch, virtualIfIntervalRxFrames=virtualIfIntervalRxFrames, prtSonetGenTable=prtSonetGenTable, virtualIfGFPIntervalCidMismatch=virtualIfGFPIntervalCidMismatch, prtSonetXConnectTUG3Idx=prtSonetXConnectTUG3Idx, prtSonetStm1=prtSonetStm1, virtualIfIntervalControlMismatch=virtualIfIntervalControlMismatch, prtSonetIntervalES=prtSonetIntervalES, prtSonetConfig=prtSonetConfig, prtSonetXConnect=prtSonetXConnect, virtualIfGFPIntervalEHecSbError=virtualIfGFPIntervalEHecSbError, vcGroupCnfgIdx=vcGroupCnfgIdx, vcGroupCnfgExSignalLabel=vcGroupCnfgExSignalLabel, vcGroupCnfgNumber=vcGroupCnfgNumber, virtualIfIntervalMaxLengthViolation=virtualIfIntervalMaxLengthViolation, prtSonetMediumValidIntervals=prtSonetMediumValidIntervals, prtSonetTuMode=prtSonetTuMode, prtSonetCurrentSectionBIP=prtSonetCurrentSectionBIP, virtualIfIntervalFcsError=virtualIfIntervalFcsError, virtualIfCurrentMinLengthViolation=virtualIfCurrentMinLengthViolation, virtualIfCurrentControlMismatch=virtualIfCurrentControlMismatch, virtualIfGFPIntervalTHecSbError=virtualIfGFPIntervalTHecSbError, prtSonetXConnectAUGIdx=prtSonetXConnectAUGIdx, vcGroupCnfgGfpChId=vcGroupCnfgGfpChId, virtualIfGenEntry=virtualIfGenEntry, virtualIfLAPFCurrentNlpidMismatch=virtualIfLAPFCurrentNlpidMismatch, prtSonetStm1GatewayRingSubnetAddress=prtSonetStm1GatewayRingSubnetAddress, prtSonetIntervalPathFERF=prtSonetIntervalPathFERF, virtualIfCurrentByteDestuffingViolation=virtualIfCurrentByteDestuffingViolation, prtSonetGenCnfgIdx=prtSonetGenCnfgIdx, prtSonetPerfHistory=prtSonetPerfHistory, prtSonetMediumTimeElapsed=prtSonetMediumTimeElapsed, prtSonetVcJTxPathTraceEnable=prtSonetVcJTxPathTraceEnable, prtSonetIntervalLineFEBE=prtSonetIntervalLineFEBE, virtualIfGFPIntervalEntry=virtualIfGFPIntervalEntry, prtSonetVcRxJPathTrace=prtSonetVcRxJPathTrace, prtSonetCurrentES=prtSonetCurrentES, prtSonetStm1MngProtDeviationType=prtSonetStm1MngProtDeviationType, vcGroupCnfgRowStatus=vcGroupCnfgRowStatus, virtualIfLAPFIntervalDlciMismatch=virtualIfLAPFIntervalDlciMismatch, prtSonetGenIdx=prtSonetGenIdx, vcgGfpMuxCnfgRowStatus=vcgGfpMuxCnfgRowStatus, virtualIfLAPSIntervalTable=virtualIfLAPSIntervalTable, virtualIfGFPIntervalTHecMbError=virtualIfGFPIntervalTHecMbError, prtSonetGen=prtSonetGen, prtSectionLineCurrentEntry=prtSectionLineCurrentEntry, prtSonetIntervalStatus=prtSonetIntervalStatus, prtSonetMediumTable=prtSonetMediumTable, vcGroupCnfgRip2=vcGroupCnfgRip2, virtualIfLAPFIntervalPidMismatch=virtualIfLAPFIntervalPidMismatch, vcGroupCnfgTable=vcGroupCnfgTable, virtualIfLAPFIntervalOuiMismatch=virtualIfLAPFIntervalOuiMismatch, virtualIfCurrentMaxLengthViolation=virtualIfCurrentMaxLengthViolation, virtualIfGFPCurrentExiMismatch=virtualIfGFPCurrentExiMismatch, prtVcGroupCnfg=prtVcGroupCnfg, virtualIfIntervalEntry=virtualIfIntervalEntry, prtSonetTuCnfgIdx=prtSonetTuCnfgIdx, prtSonetXConnectRowStatus=prtSonetXConnectRowStatus, prtSonetGenEedThreshold=prtSonetGenEedThreshold, virtualIfIntervalTxAbortFrames=virtualIfIntervalTxAbortFrames, virtualIfGenIdx=virtualIfGenIdx, prtSonetTuIdx=prtSonetTuIdx)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, value_range_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (perf_interval_count, perf_current_count) = mibBuilder.importSymbols('PerfHist-TC-MIB', 'PerfIntervalCount', 'PerfCurrentCount') (diverse_if_wan_gen,) = mibBuilder.importSymbols('RAD-MIB', 'diverseIfWanGen') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (module_identity, integer32, gauge32, counter32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, time_ticks, unsigned32, ip_address, iso, bits, counter64, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'Integer32', 'Gauge32', 'Counter32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'TimeTicks', 'Unsigned32', 'IpAddress', 'iso', 'Bits', 'Counter64', 'ObjectIdentity') (textual_convention, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString') sonet_interface = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2)) prt_sonet_perf_history = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1)) prt_sonet_medium_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1)) if mibBuilder.loadTexts: prtSonetMediumTable.setStatus('current') prt_sonet_medium_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: prtSonetMediumEntry.setStatus('current') prt_sonet_medium_time_elapsed = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 899))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetMediumTimeElapsed.setStatus('current') prt_sonet_medium_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetMediumValidIntervals.setStatus('current') prt_sonet_section_line_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2)) if mibBuilder.loadTexts: prtSonetSectionLineCurrentTable.setStatus('current') prt_section_line_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: prtSectionLineCurrentEntry.setStatus('current') prt_sonet_current_los = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLOS.setStatus('current') prt_sonet_current_lof = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLOF.setStatus('current') prt_sonet_current_line_ais = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLineAIS.setStatus('current') prt_sonet_current_line_ferf = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLineFERF.setStatus('current') prt_sonet_current_section_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentSectionBIP.setStatus('current') prt_sonet_current_line_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLineBIP.setStatus('current') prt_sonet_current_line_febe = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLineFEBE.setStatus('current') prt_sonet_current_uas = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentUAS.setStatus('current') prt_sonet_current_ses = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentSES.setStatus('current') prt_sonet_current_es = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentES.setStatus('current') prt_sonet_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentStatus.setStatus('current') prt_sonet_current_lsv = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 2, 1, 12), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLSV.setStatus('current') prt_sonet_section_line_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3)) if mibBuilder.loadTexts: prtSonetSectionLineIntervalTable.setStatus('current') prt_section_line_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'prtSonetLineIntervalNumber')) if mibBuilder.loadTexts: prtSectionLineIntervalEntry.setStatus('current') prt_sonet_line_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetLineIntervalNumber.setStatus('current') prt_sonet_interval_los = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLOS.setStatus('current') prt_sonet_interval_lof = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLOF.setStatus('current') prt_sonet_interval_line_ais = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLineAIS.setStatus('current') prt_sonet_interval_line_ferf = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLineFERF.setStatus('current') prt_sonet_interval_section_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalSectionBIP.setStatus('current') prt_sonet_interval_line_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLineBIP.setStatus('current') prt_sonet_interval_line_febe = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLineFEBE.setStatus('current') prt_sonet_interval_uas = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 9), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalUAS.setStatus('current') prt_sonet_interval_ses = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 10), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalSES.setStatus('current') prt_sonet_interval_es = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalES.setStatus('current') prt_sonet_interval_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalStatus.setStatus('current') prt_sonet_interval_lsv = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 3, 1, 13), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLSV.setStatus('current') prt_sonet_path_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4)) if mibBuilder.loadTexts: prtSonetPathCurrentTable.setStatus('current') prt_path_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: prtPathCurrentEntry.setStatus('current') prt_sonet_current_path_ais = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentPathAIS.setStatus('current') prt_sonet_current_path_ferf = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentPathFERF.setStatus('current') prt_sonet_current_lop = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLOP.setStatus('current') prt_sonet_current_slm = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentSLM.setStatus('current') prt_sonet_current_loc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentLOC.setStatus('current') prt_sonet_current_path_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentPathBIP.setStatus('current') prt_sonet_current_path_febe = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 4, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetCurrentPathFEBE.setStatus('current') prt_sonet_path_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5)) if mibBuilder.loadTexts: prtSonetPathIntervalTable.setStatus('current') prt_path_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'prtSonetPathIntervalNumber')) if mibBuilder.loadTexts: prtPathIntervalEntry.setStatus('current') prt_sonet_path_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetPathIntervalNumber.setStatus('current') prt_sonet_interval_path_ais = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalPathAIS.setStatus('current') prt_sonet_interval_path_ferf = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalPathFERF.setStatus('current') prt_sonet_interval_lop = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLOP.setStatus('current') prt_sonet_interval_slm = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalSLM.setStatus('current') prt_sonet_interval_loc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalLOC.setStatus('current') prt_sonet_interval_path_bip = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalPathBIP.setStatus('current') prt_sonet_interval_path_febe = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 5, 1, 8), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetIntervalPathFEBE.setStatus('current') virtual_if_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6)) virtual_if_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1)) if mibBuilder.loadTexts: virtualIfCurrentTable.setStatus('current') virtual_if_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: virtualIfCurrentEntry.setStatus('current') virtual_if_current_min_active_vc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentMinActiveVC.setStatus('current') virtual_if_current_max_active_vc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentMaxActiveVC.setStatus('current') virtual_if_current_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentRxFrames.setStatus('current') virtual_if_current_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentTxFrames.setStatus('current') virtual_if_current_rx_abort_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 5), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentRxAbortFrames.setStatus('current') virtual_if_current_tx_abort_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 6), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentTxAbortFrames.setStatus('current') virtual_if_current_min_length_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 7), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentMinLengthViolation.setStatus('current') virtual_if_current_max_length_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 8), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentMaxLengthViolation.setStatus('current') virtual_if_current_fcs_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 9), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentFcsError.setStatus('current') virtual_if_current_byte_destuffing_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 10), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentByteDestuffingViolation.setStatus('current') virtual_if_current_adress_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 11), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentAdressMismatch.setStatus('current') virtual_if_current_control_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 12), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentControlMismatch.setStatus('current') virtual_if_current_active_vc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfCurrentActiveVC.setStatus('current') virtual_if_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2)) if mibBuilder.loadTexts: virtualIfIntervalTable.setStatus('current') virtual_if_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'virtualIfIntervalNumber')) if mibBuilder.loadTexts: virtualIfIntervalEntry.setStatus('current') virtual_if_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))) if mibBuilder.loadTexts: virtualIfIntervalNumber.setStatus('current') virtual_if_interval_min_active_vc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalMinActiveVC.setStatus('current') virtual_if_interval_max_active_vc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalMaxActiveVC.setStatus('current') virtual_if_interval_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalRxFrames.setStatus('current') virtual_if_interval_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalTxFrames.setStatus('current') virtual_if_interval_rx_abort_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 6), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalRxAbortFrames.setStatus('current') virtual_if_interval_tx_abort_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 7), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalTxAbortFrames.setStatus('current') virtual_if_interval_min_length_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalMinLengthViolation.setStatus('current') virtual_if_interval_max_length_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalMaxLengthViolation.setStatus('current') virtual_if_interval_fcs_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalFcsError.setStatus('current') virtual_if_interval_byte_destuffing_violation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 11), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalByteDestuffingViolation.setStatus('current') virtual_if_interval_adress_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 12), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalAdressMismatch.setStatus('current') virtual_if_interval_control_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 13), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalControlMismatch.setStatus('current') virtual_if_interval_below_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 2, 1, 14), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfIntervalBelowMinThreshold.setStatus('current') virtual_if_laps_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3)) if mibBuilder.loadTexts: virtualIfLAPSCurrentTable.setStatus('current') virtual_if_laps_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: virtualIfLAPSCurrentEntry.setStatus('current') virtual_if_laps_current_sapi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 3, 1, 1), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPSCurrentSapiMismatch.setStatus('current') virtual_if_laps_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4)) if mibBuilder.loadTexts: virtualIfLAPSIntervalTable.setStatus('current') virtual_if_laps_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'virtualIfIntervalNumber')) if mibBuilder.loadTexts: virtualIfLAPSIntervalEntry.setStatus('current') virtual_if_laps_interval_sapi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 4, 1, 1), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPSIntervalSapiMismatch.setStatus('current') virtual_if_lapf_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5)) if mibBuilder.loadTexts: virtualIfLAPFCurrentTable.setStatus('current') virtual_if_lapf_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: virtualIfLAPFCurrentEntry.setStatus('current') virtual_if_lapf_current_nlpid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 1), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentNlpidMismatch.setStatus('current') virtual_if_lapf_current_oui_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 2), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentOuiMismatch.setStatus('current') virtual_if_lapf_current_pid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 3), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentPidMismatch.setStatus('current') virtual_if_lapf_current_dlci_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 4), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentDlciMismatch.setStatus('current') virtual_if_lapf_current_mac_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 5), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentMacRxFrames.setStatus('current') virtual_if_lapf_current_mac_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 5, 1, 6), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFCurrentMacTxFrames.setStatus('current') virtual_if_lapf_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6)) if mibBuilder.loadTexts: virtualIfLAPFIntervalTable.setStatus('current') virtual_if_lapf_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'virtualIfIntervalNumber')) if mibBuilder.loadTexts: virtualIfLAPFIntervalEntry.setStatus('current') virtual_if_lapf_interval_nlpid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 1), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalNlpidMismatch.setStatus('current') virtual_if_lapf_interval_oui_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 2), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalOuiMismatch.setStatus('current') virtual_if_lapf_interval_pid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 3), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalPidMismatch.setStatus('current') virtual_if_lapf_interval_dlci_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 4), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalDlciMismatch.setStatus('current') virtual_if_lapf_interval_mac_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 5), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalMacRxFrames.setStatus('current') virtual_if_lapf_interval_mac_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 6, 1, 6), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfLAPFIntervalMacTxFrames.setStatus('current') virtual_if_gfp_current_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7)) if mibBuilder.loadTexts: virtualIfGFPCurrentTable.setStatus('current') virtual_if_gfp_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex')) if mibBuilder.loadTexts: virtualIfGFPCurrentEntry.setStatus('current') virtual_if_gfp_current_idle_frame_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 1), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentIdleFrameError.setStatus('current') virtual_if_gfp_current_c_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 2), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentCHecSbError.setStatus('current') virtual_if_gfp_current_pti_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 3), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentPtiMismatch.setStatus('current') virtual_if_gfp_current_exi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 4), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentExiMismatch.setStatus('current') virtual_if_gfp_current_upi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 5), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentUpiMismatch.setStatus('current') virtual_if_gfp_current_t_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 6), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentTHecSbError.setStatus('current') virtual_if_gfp_current_t_hec_mb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 7), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentTHecMbError.setStatus('current') virtual_if_gfp_current_cid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 8), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentCidMismatch.setStatus('current') virtual_if_gfp_current_e_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 9), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentEHecSbError.setStatus('current') virtual_if_gfp_current_e_hec_mb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 7, 1, 10), perf_current_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPCurrentEHecMbError.setStatus('current') virtual_if_gfp_interval_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8)) if mibBuilder.loadTexts: virtualIfGFPIntervalTable.setStatus('current') virtual_if_gfp_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'ifIndex'), (0, 'RAD-SONET-MIB', 'virtualIfIntervalNumber')) if mibBuilder.loadTexts: virtualIfGFPIntervalEntry.setStatus('current') virtual_if_gfp_interval_idle_frame_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 1), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalIdleFrameError.setStatus('current') virtual_if_gfp_interval_c_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 2), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalCHecSbError.setStatus('current') virtual_if_gfp_interval_pti_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 3), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalPtiMismatch.setStatus('current') virtual_if_gfp_interval_exi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 4), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalExiMismatch.setStatus('current') virtual_if_gfp_interval_upi_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 5), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalUpiMismatch.setStatus('current') virtual_if_gfp_interval_t_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 6), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalTHecSbError.setStatus('current') virtual_if_gfp_interval_t_hec_mb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 7), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalTHecMbError.setStatus('current') virtual_if_gfp_interval_cid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 8), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalCidMismatch.setStatus('current') virtual_if_gfp_interval_e_hec_sb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 9), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalEHecSbError.setStatus('current') virtual_if_gfp_interval_e_hec_mb_error = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 1, 6, 8, 1, 10), perf_interval_count()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGFPIntervalEHecMbError.setStatus('current') prt_sonet_config = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2)) prt_sonet_gen = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1)) prt_sonet_gen_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1)) if mibBuilder.loadTexts: prtSonetGenTable.setStatus('current') prt_sonet_gen_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetGenCnfgIdx'), (0, 'RAD-SONET-MIB', 'prtSonetGenIdx')) if mibBuilder.loadTexts: prtSonetGenEntry.setStatus('current') prt_sonet_gen_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetGenCnfgIdx.setStatus('current') prt_sonet_gen_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetGenIdx.setStatus('current') prt_sonet_gen_sd_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('notApplicable', 1), ('n3', 3), ('n4', 4), ('n5', 5), ('n6', 6), ('n7', 7), ('n8', 8), ('n9', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetGenSdThreshold.setStatus('current') prt_sonet_gen_eed_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('notApplicable', 1), ('n3', 3), ('n4', 4), ('n5', 5), ('n6', 6), ('n7', 7), ('n8', 8), ('n9', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetGenEedThreshold.setStatus('current') prt_sonet_gen_ber_enable = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetGenBerEnable.setStatus('current') prt_sonet_stm1 = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2)) prt_sonet_stm1_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1)) if mibBuilder.loadTexts: prtSonetStm1Table.setStatus('current') prt_sonet_stm1_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetStm1CnfgIdx'), (0, 'RAD-SONET-MIB', 'prtSonetStm1Idx')) if mibBuilder.loadTexts: prtSonetStm1Entry.setStatus('current') prt_sonet_stm1_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetStm1CnfgIdx.setStatus('current') prt_sonet_stm1_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetStm1Idx.setStatus('current') prt_sonet_stm1_clock_src = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('internal', 2), ('lbt', 3), ('systemClk', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1ClockSrc.setStatus('current') prt_sonet_stm1_dcc_mode = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('notApplicable', 1), ('none', 2), ('d1ToD3', 3), ('d4ToD12', 4), ('d1', 5), ('d2', 6), ('d3', 7), ('d4', 8), ('d5', 9), ('d6', 10), ('d7', 11), ('d8', 12), ('d9', 13), ('d10', 14), ('d11', 15), ('d12', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1DccMode.setStatus('current') prt_sonet_stm1_routing_prot = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('none', 2), ('proprietary', 3), ('rip2', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1RoutingProt.setStatus('current') prt_sonet_stm1_mng_prot = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 5, 6, 7, 8))).clone(namedValues=named_values(('notApplicable', 1), ('proprietary', 3), ('ppp', 5), ('frameRelay', 6), ('hdlc', 7), ('lapdOverHdlc', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1MngProt.setStatus('current') prt_sonet_stm1_operational_mode = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('terminal', 2), ('linear', 3), ('linearProtection', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1OperationalMode.setStatus('current') prt_sonet_stm1_voice_channel = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('none', 2), ('e1Byte', 3), ('e2Byte', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1VoiceChannel.setStatus('current') prt_sonet_stm1_output_rate = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1OutputRate.setStatus('current') prt_sonet_stm1_s1_protocol_clock = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('disable', 2), ('enable', 3), ('transparent', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1S1ProtocolClock.setStatus('current') prt_sonet_stm1_gateway_ring_subnet_address = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 11), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1GatewayRingSubnetAddress.setStatus('current') prt_sonet_stm1_gateway_ring_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 12), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1GatewayRingSubnetMask.setStatus('current') prt_sonet_stm1_mng_prot_deviation_type = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('standard', 2), ('type1', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetStm1MngProtDeviationType.setStatus('current') prt_sonet_vc = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3)) prt_sonet_vc_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1)) if mibBuilder.loadTexts: prtSonetVcTable.setStatus('current') prt_sonet_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetVcCnfgIdx'), (0, 'RAD-SONET-MIB', 'prtSonetVcIdx')) if mibBuilder.loadTexts: prtSonetVcEntry.setStatus('current') prt_sonet_vc_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcCnfgIdx.setStatus('current') prt_sonet_vc_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcIdx.setStatus('current') prt_sonet_vc_j_tx_path_trace_enable = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetVcJTxPathTraceEnable.setStatus('current') prt_sonet_vc_j_rx_path_trace_enable = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetVcJRxPathTraceEnable.setStatus('current') prt_sonet_vc_j_path_trace = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetVcJPathTrace.setStatus('current') prt_sonet_vc_connect = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetVcConnect.setStatus('current') prt_sonet_vc_signal_label = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: prtSonetVcSignalLabel.setStatus('current') prt_sonet_tu_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2)) if mibBuilder.loadTexts: prtSonetTuTable.setStatus('current') prt_sonet_tu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetTuCnfgIdx'), (0, 'RAD-SONET-MIB', 'prtSonetTuPrtIdx'), (0, 'RAD-SONET-MIB', 'prtSonetTuIdx'), (0, 'RAD-SONET-MIB', 'prtSonetTuConPrtIdx')) if mibBuilder.loadTexts: prtSonetTuEntry.setStatus('current') prt_sonet_tu_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetTuCnfgIdx.setStatus('current') prt_sonet_tu_prt_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetTuPrtIdx.setStatus('current') prt_sonet_tu_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetTuIdx.setStatus('current') prt_sonet_tu_con_prt_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetTuConPrtIdx.setStatus('current') prt_sonet_tu_type = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3))).clone(namedValues=named_values(('connect', 2), ('bypass', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetTuType.setStatus('current') prt_sonet_tu_mode = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('addAndDrop', 2), ('add', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetTuMode.setStatus('current') prt_sonet_tu_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 3, 2, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetTuRowStatus.setStatus('current') prt_sonet_x_connect = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3)) prt_sonet_x_connect_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1)) if mibBuilder.loadTexts: prtSonetXConnectTable.setStatus('current') prt_sonet_x_connect_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetXConnectCnfgIdx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectPrtIdx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectConPrtIdx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectAUGIdx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectTUG3Idx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectTUG2Idx'), (0, 'RAD-SONET-MIB', 'prtSonetXConnectTUnIdx')) if mibBuilder.loadTexts: prtSonetXConnectEntry.setStatus('current') prt_sonet_x_connect_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectCnfgIdx.setStatus('current') prt_sonet_x_connect_prt_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectPrtIdx.setStatus('current') prt_sonet_x_connect_con_prt_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectConPrtIdx.setStatus('current') prt_sonet_x_connect_aug_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectAUGIdx.setStatus('current') prt_sonet_x_connect_tug3_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectTUG3Idx.setStatus('current') prt_sonet_x_connect_tug2_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectTUG2Idx.setStatus('current') prt_sonet_x_connect_t_un_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetXConnectTUnIdx.setStatus('current') prt_sonet_x_connect_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetXConnectRowStatus.setStatus('current') prt_sonet_x_connect_direction = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('rx', 2), ('tx', 3), ('both', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetXConnectDirection.setStatus('current') prt_sonet_x_connect_tu_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notApplicable', 1), ('tu2', 2), ('tu3', 3), ('tu11', 4), ('tu12', 5)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prtSonetXConnectTuNumber.setStatus('current') prt_sonet_status = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4)) prt_sonet_vc_stat_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1)) if mibBuilder.loadTexts: prtSonetVcStatTable.setStatus('current') prt_sonet_vc_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'prtSonetVcIdx')) if mibBuilder.loadTexts: prtSonetVcStatEntry.setStatus('current') prt_sonet_vc_rx_j_path_trace = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 62))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcRxJPathTrace.setStatus('current') prt_sonet_vc_rx_signal_label = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcRxSignalLabel.setStatus('current') prt_sonet_vc_lcas_source_state = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('notApplicable', 1), ('fixed', 2), ('add', 3), ('norm', 4), ('eos', 5), ('idle', 6), ('dnu', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcLcasSourceState.setStatus('current') prt_sonet_vc_lcas_sink_state = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('notApplicable', 1), ('fixed', 2), ('add', 3), ('norm', 4), ('eos', 5), ('idle', 6), ('dnu', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: prtSonetVcLcasSinkState.setStatus('current') prt_vc_group_cnfg = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4)) vc_group_cnfg_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1)) if mibBuilder.loadTexts: vcGroupCnfgTable.setStatus('current') vc_group_cnfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'vcGroupCnfgIdx'), (0, 'RAD-SONET-MIB', 'vcGroupCnfgNumber')) if mibBuilder.loadTexts: vcGroupCnfgEntry.setStatus('current') vc_group_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))) if mibBuilder.loadTexts: vcGroupCnfgIdx.setStatus('current') vc_group_cnfg_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 2), integer32()) if mibBuilder.loadTexts: vcGroupCnfgNumber.setStatus('current') vc_group_cnfg_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgRowStatus.setStatus('current') vc_group_cnfg_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notApplicable', 1), ('vc12', 2), ('vc3', 3), ('vc4', 4), ('vt1dot5', 5), ('sts1', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgVcType.setStatus('current') vc_group_cnfg_no_of_v_cs = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 84))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgNoOfVCs.setStatus('current') vc_group_cnfg_lcas = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('lcasNotActive', 2), ('lcasActive', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgLCAS.setStatus('current') vc_group_cnfg_encapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('laps', 2), ('lapf', 3), ('gfp', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgEncapsulation.setStatus('current') vc_group_cnfg_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 8), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: vcGroupCnfgGroupIfIndex.setStatus('current') vc_group_cnfg_rip2 = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgRip2.setStatus('current') vc_group_cnfg_gfp_ch_id = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgGfpChId.setStatus('current') vc_group_cnfg_k4 = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgK4.setStatus('current') vc_group_cnfg_ex_signal_label = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgExSignalLabel.setStatus('current') vc_group_cnfg_lcas_min_no_of_v_cs = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 83))).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcGroupCnfgLcasMinNoOfVCs.setStatus('current') vc_group_cnfg_lcas_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notApplicable', 1), ('belowMinNoOfVCs', 2), ('withinRange', 3), ('allNorm', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vcGroupCnfgLcasStatus.setStatus('current') vcg_gfp_mux_cnfg_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2)) if mibBuilder.loadTexts: vcgGfpMuxCnfgTable.setStatus('current') vcg_gfp_mux_cnfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'vcgGfpMuxCnfgIdx'), (0, 'RAD-SONET-MIB', 'vcgGfpMuxCnfgMuxNumber')) if mibBuilder.loadTexts: vcgGfpMuxCnfgEntry.setStatus('current') vcg_gfp_mux_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))) if mibBuilder.loadTexts: vcgGfpMuxCnfgIdx.setStatus('current') vcg_gfp_mux_cnfg_mux_number = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 2), integer32()) if mibBuilder.loadTexts: vcgGfpMuxCnfgMuxNumber.setStatus('current') vcg_gfp_mux_cnfg_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcgGfpMuxCnfgRowStatus.setStatus('current') vcg_gfp_mux_cnfg_mux_name = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 4), snmp_admin_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcgGfpMuxCnfgMuxName.setStatus('current') vcg_gfp_mux_cnfg_prime_group = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 5), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcgGfpMuxCnfgPrimeGroup.setStatus('current') vcg_gfp_mux_cnfg_grp_bw_alloc = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 4, 2, 1, 6), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: vcgGfpMuxCnfgGrpBwAlloc.setStatus('current') virtual_if_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5)) virtual_if_gen_table = mib_table((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1)) if mibBuilder.loadTexts: virtualIfGenTable.setStatus('current') virtual_if_gen_entry = mib_table_row((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1)).setIndexNames((0, 'RAD-SONET-MIB', 'virtualIfGenCnfgIdx'), (0, 'RAD-SONET-MIB', 'virtualIfGenIdx')) if mibBuilder.loadTexts: virtualIfGenEntry.setStatus('current') virtual_if_gen_cnfg_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGenCnfgIdx.setStatus('current') virtual_if_gen_idx = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: virtualIfGenIdx.setStatus('current') virtual_if_gen_frame_format = mib_table_column((1, 3, 6, 1, 4, 1, 164, 3, 1, 6, 2, 2, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notApplicable', 1), ('fcsEnable', 2), ('fcsDisable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: virtualIfGenFrameFormat.setStatus('current') mibBuilder.exportSymbols('RAD-SONET-MIB', virtualIfIntervalByteDestuffingViolation=virtualIfIntervalByteDestuffingViolation, virtualIfGFPCurrentPtiMismatch=virtualIfGFPCurrentPtiMismatch, prtPathIntervalEntry=prtPathIntervalEntry, virtualIfLAPFCurrentEntry=virtualIfLAPFCurrentEntry, virtualIfGFPCurrentEHecSbError=virtualIfGFPCurrentEHecSbError, vcgGfpMuxCnfgPrimeGroup=vcgGfpMuxCnfgPrimeGroup, prtSonetTuRowStatus=prtSonetTuRowStatus, vcgGfpMuxCnfgMuxName=vcgGfpMuxCnfgMuxName, virtualIfGFPIntervalCHecSbError=virtualIfGFPIntervalCHecSbError, prtSonetXConnectTable=prtSonetXConnectTable, sonetInterface=sonetInterface, virtualIfCurrentTxAbortFrames=virtualIfCurrentTxAbortFrames, prtSonetCurrentLineBIP=prtSonetCurrentLineBIP, virtualIfIntervalAdressMismatch=virtualIfIntervalAdressMismatch, virtualIfGFPCurrentEHecMbError=virtualIfGFPCurrentEHecMbError, prtSonetPathIntervalNumber=prtSonetPathIntervalNumber, prtSonetCurrentLineAIS=prtSonetCurrentLineAIS, virtualIfGFPCurrentTable=virtualIfGFPCurrentTable, prtPathCurrentEntry=prtPathCurrentEntry, prtSonetCurrentPathFERF=prtSonetCurrentPathFERF, virtualIfGenCnfgIdx=virtualIfGenCnfgIdx, prtSonetCurrentUAS=prtSonetCurrentUAS, prtSonetIntervalPathAIS=prtSonetIntervalPathAIS, virtualIfGFPIntervalTable=virtualIfGFPIntervalTable, vcGroupCnfgLCAS=vcGroupCnfgLCAS, vcgGfpMuxCnfgIdx=vcgGfpMuxCnfgIdx, prtSonetIntervalLineAIS=prtSonetIntervalLineAIS, virtualIfIntervalNumber=virtualIfIntervalNumber, virtualIfStatistics=virtualIfStatistics, virtualIfLAPFIntervalMacRxFrames=virtualIfLAPFIntervalMacRxFrames, virtualIfIntervalTxFrames=virtualIfIntervalTxFrames, prtSonetCurrentPathAIS=prtSonetCurrentPathAIS, virtualIfGFPCurrentCHecSbError=virtualIfGFPCurrentCHecSbError, virtualIfLAPFCurrentMacTxFrames=virtualIfLAPFCurrentMacTxFrames, prtSonetStm1ClockSrc=prtSonetStm1ClockSrc, prtSonetXConnectDirection=prtSonetXConnectDirection, vcGroupCnfgGroupIfIndex=vcGroupCnfgGroupIfIndex, prtSonetVcLcasSourceState=prtSonetVcLcasSourceState, prtSonetCurrentPathFEBE=prtSonetCurrentPathFEBE, prtSonetIntervalLSV=prtSonetIntervalLSV, virtualIfGFPIntervalExiMismatch=virtualIfGFPIntervalExiMismatch, vcgGfpMuxCnfgMuxNumber=vcgGfpMuxCnfgMuxNumber, virtualIfCurrentActiveVC=virtualIfCurrentActiveVC, prtSonetCurrentLOS=prtSonetCurrentLOS, virtualIfIntervalMinLengthViolation=virtualIfIntervalMinLengthViolation, prtSonetStm1MngProt=prtSonetStm1MngProt, prtSonetVcCnfgIdx=prtSonetVcCnfgIdx, prtSonetStm1GatewayRingSubnetMask=prtSonetStm1GatewayRingSubnetMask, prtSonetCurrentLOF=prtSonetCurrentLOF, prtSonetIntervalLineFERF=prtSonetIntervalLineFERF, prtSonetCurrentLOP=prtSonetCurrentLOP, prtSonetVcJPathTrace=prtSonetVcJPathTrace, virtualIfGFPCurrentUpiMismatch=virtualIfGFPCurrentUpiMismatch, prtSonetVcIdx=prtSonetVcIdx, virtualIfCurrentRxAbortFrames=virtualIfCurrentRxAbortFrames, prtSonetCurrentLSV=prtSonetCurrentLSV, virtualIfLAPFCurrentDlciMismatch=virtualIfLAPFCurrentDlciMismatch, virtualIfLAPSCurrentSapiMismatch=virtualIfLAPSCurrentSapiMismatch, prtSonetIntervalSLM=prtSonetIntervalSLM, prtSonetIntervalLOC=prtSonetIntervalLOC, virtualIfCurrentAdressMismatch=virtualIfCurrentAdressMismatch, prtSectionLineIntervalEntry=prtSectionLineIntervalEntry, virtualIfGFPCurrentCidMismatch=virtualIfGFPCurrentCidMismatch, virtualIfIntervalMinActiveVC=virtualIfIntervalMinActiveVC, prtSonetCurrentStatus=prtSonetCurrentStatus, virtualIfLAPSCurrentTable=virtualIfLAPSCurrentTable, virtualIfLAPFCurrentPidMismatch=virtualIfLAPFCurrentPidMismatch, virtualIfCurrentMaxActiveVC=virtualIfCurrentMaxActiveVC, virtualIfGFPIntervalUpiMismatch=virtualIfGFPIntervalUpiMismatch, prtSonetTuTable=prtSonetTuTable, virtualIfCurrentMinActiveVC=virtualIfCurrentMinActiveVC, prtSonetXConnectConPrtIdx=prtSonetXConnectConPrtIdx, vcgGfpMuxCnfgGrpBwAlloc=vcgGfpMuxCnfgGrpBwAlloc, prtSonetPathIntervalTable=prtSonetPathIntervalTable, virtualIfLAPFCurrentOuiMismatch=virtualIfLAPFCurrentOuiMismatch, prtSonetStm1Entry=prtSonetStm1Entry, vcgGfpMuxCnfgTable=vcgGfpMuxCnfgTable, virtualIfIntervalTable=virtualIfIntervalTable, prtSonetXConnectTUG2Idx=prtSonetXConnectTUG2Idx, prtSonetStm1Idx=prtSonetStm1Idx, prtSonetIntervalLineBIP=prtSonetIntervalLineBIP, prtSonetCurrentSES=prtSonetCurrentSES, prtSonetCurrentPathBIP=prtSonetCurrentPathBIP, virtualIfIntervalRxAbortFrames=virtualIfIntervalRxAbortFrames, vcGroupCnfgEncapsulation=vcGroupCnfgEncapsulation, prtSonetXConnectTuNumber=prtSonetXConnectTuNumber, prtSonetVcRxSignalLabel=prtSonetVcRxSignalLabel, virtualIfLAPSCurrentEntry=virtualIfLAPSCurrentEntry, virtualIfConfiguration=virtualIfConfiguration, virtualIfGFPIntervalEHecMbError=virtualIfGFPIntervalEHecMbError, prtSonetIntervalSectionBIP=prtSonetIntervalSectionBIP, prtSonetCurrentLOC=prtSonetCurrentLOC, prtSonetGenEntry=prtSonetGenEntry, prtSonetPathCurrentTable=prtSonetPathCurrentTable, virtualIfLAPSIntervalSapiMismatch=virtualIfLAPSIntervalSapiMismatch, virtualIfLAPSIntervalEntry=virtualIfLAPSIntervalEntry, virtualIfLAPFIntervalEntry=virtualIfLAPFIntervalEntry, prtSonetVcEntry=prtSonetVcEntry, prtSonetStm1OutputRate=prtSonetStm1OutputRate, prtSonetTuPrtIdx=prtSonetTuPrtIdx, prtSonetVcStatTable=prtSonetVcStatTable, prtSonetSectionLineCurrentTable=prtSonetSectionLineCurrentTable, vcGroupCnfgLcasMinNoOfVCs=vcGroupCnfgLcasMinNoOfVCs, virtualIfLAPFIntervalNlpidMismatch=virtualIfLAPFIntervalNlpidMismatch, virtualIfCurrentEntry=virtualIfCurrentEntry, prtSonetVcTable=prtSonetVcTable, prtSonetTuEntry=prtSonetTuEntry, prtSonetXConnectPrtIdx=prtSonetXConnectPrtIdx, prtSonetXConnectEntry=prtSonetXConnectEntry, virtualIfGenTable=virtualIfGenTable, prtSonetGenBerEnable=prtSonetGenBerEnable, virtualIfIntervalMaxActiveVC=virtualIfIntervalMaxActiveVC, virtualIfLAPFCurrentTable=virtualIfLAPFCurrentTable, vcGroupCnfgLcasStatus=vcGroupCnfgLcasStatus, virtualIfGenFrameFormat=virtualIfGenFrameFormat, prtSonetIntervalLOS=prtSonetIntervalLOS, vcGroupCnfgNoOfVCs=vcGroupCnfgNoOfVCs, vcGroupCnfgK4=vcGroupCnfgK4, prtSonetIntervalLOF=prtSonetIntervalLOF, prtSonetVcConnect=prtSonetVcConnect, prtSonetStatus=prtSonetStatus, prtSonetStm1VoiceChannel=prtSonetStm1VoiceChannel, prtSonetCurrentSLM=prtSonetCurrentSLM, prtSonetStm1OperationalMode=prtSonetStm1OperationalMode, vcgGfpMuxCnfgEntry=vcgGfpMuxCnfgEntry, virtualIfGFPCurrentEntry=virtualIfGFPCurrentEntry, prtSonetXConnectTUnIdx=prtSonetXConnectTUnIdx, prtSonetMediumEntry=prtSonetMediumEntry, prtSonetStm1RoutingProt=prtSonetStm1RoutingProt, prtSonetSectionLineIntervalTable=prtSonetSectionLineIntervalTable, prtSonetTuType=prtSonetTuType, virtualIfGFPIntervalIdleFrameError=virtualIfGFPIntervalIdleFrameError, prtSonetIntervalLOP=prtSonetIntervalLOP, prtSonetStm1Table=prtSonetStm1Table, prtSonetVc=prtSonetVc, virtualIfCurrentRxFrames=virtualIfCurrentRxFrames, prtSonetVcLcasSinkState=prtSonetVcLcasSinkState, virtualIfGFPCurrentIdleFrameError=virtualIfGFPCurrentIdleFrameError, prtSonetIntervalPathFEBE=prtSonetIntervalPathFEBE, prtSonetCurrentLineFERF=prtSonetCurrentLineFERF, prtSonetVcSignalLabel=prtSonetVcSignalLabel, prtSonetVcJRxPathTraceEnable=prtSonetVcJRxPathTraceEnable, prtSonetLineIntervalNumber=prtSonetLineIntervalNumber, prtSonetIntervalPathBIP=prtSonetIntervalPathBIP, virtualIfGFPCurrentTHecSbError=virtualIfGFPCurrentTHecSbError, prtSonetStm1CnfgIdx=prtSonetStm1CnfgIdx, prtSonetStm1DccMode=prtSonetStm1DccMode, prtSonetStm1S1ProtocolClock=prtSonetStm1S1ProtocolClock, prtSonetTuConPrtIdx=prtSonetTuConPrtIdx, vcGroupCnfgVcType=vcGroupCnfgVcType, virtualIfLAPFIntervalMacTxFrames=virtualIfLAPFIntervalMacTxFrames, virtualIfCurrentTable=virtualIfCurrentTable, vcGroupCnfgEntry=vcGroupCnfgEntry, prtSonetGenSdThreshold=prtSonetGenSdThreshold, prtSonetIntervalUAS=prtSonetIntervalUAS, virtualIfGFPCurrentTHecMbError=virtualIfGFPCurrentTHecMbError, virtualIfCurrentTxFrames=virtualIfCurrentTxFrames, prtSonetIntervalSES=prtSonetIntervalSES, virtualIfLAPFIntervalTable=virtualIfLAPFIntervalTable, prtSonetXConnectCnfgIdx=prtSonetXConnectCnfgIdx, prtSonetCurrentLineFEBE=prtSonetCurrentLineFEBE, prtSonetVcStatEntry=prtSonetVcStatEntry, virtualIfIntervalBelowMinThreshold=virtualIfIntervalBelowMinThreshold, virtualIfCurrentFcsError=virtualIfCurrentFcsError, virtualIfLAPFCurrentMacRxFrames=virtualIfLAPFCurrentMacRxFrames, virtualIfGFPIntervalPtiMismatch=virtualIfGFPIntervalPtiMismatch, virtualIfIntervalRxFrames=virtualIfIntervalRxFrames, prtSonetGenTable=prtSonetGenTable, virtualIfGFPIntervalCidMismatch=virtualIfGFPIntervalCidMismatch, prtSonetXConnectTUG3Idx=prtSonetXConnectTUG3Idx, prtSonetStm1=prtSonetStm1, virtualIfIntervalControlMismatch=virtualIfIntervalControlMismatch, prtSonetIntervalES=prtSonetIntervalES, prtSonetConfig=prtSonetConfig, prtSonetXConnect=prtSonetXConnect, virtualIfGFPIntervalEHecSbError=virtualIfGFPIntervalEHecSbError, vcGroupCnfgIdx=vcGroupCnfgIdx, vcGroupCnfgExSignalLabel=vcGroupCnfgExSignalLabel, vcGroupCnfgNumber=vcGroupCnfgNumber, virtualIfIntervalMaxLengthViolation=virtualIfIntervalMaxLengthViolation, prtSonetMediumValidIntervals=prtSonetMediumValidIntervals, prtSonetTuMode=prtSonetTuMode, prtSonetCurrentSectionBIP=prtSonetCurrentSectionBIP, virtualIfIntervalFcsError=virtualIfIntervalFcsError, virtualIfCurrentMinLengthViolation=virtualIfCurrentMinLengthViolation, virtualIfCurrentControlMismatch=virtualIfCurrentControlMismatch, virtualIfGFPIntervalTHecSbError=virtualIfGFPIntervalTHecSbError, prtSonetXConnectAUGIdx=prtSonetXConnectAUGIdx, vcGroupCnfgGfpChId=vcGroupCnfgGfpChId, virtualIfGenEntry=virtualIfGenEntry, virtualIfLAPFCurrentNlpidMismatch=virtualIfLAPFCurrentNlpidMismatch, prtSonetStm1GatewayRingSubnetAddress=prtSonetStm1GatewayRingSubnetAddress, prtSonetIntervalPathFERF=prtSonetIntervalPathFERF, virtualIfCurrentByteDestuffingViolation=virtualIfCurrentByteDestuffingViolation, prtSonetGenCnfgIdx=prtSonetGenCnfgIdx, prtSonetPerfHistory=prtSonetPerfHistory, prtSonetMediumTimeElapsed=prtSonetMediumTimeElapsed, prtSonetVcJTxPathTraceEnable=prtSonetVcJTxPathTraceEnable, prtSonetIntervalLineFEBE=prtSonetIntervalLineFEBE, virtualIfGFPIntervalEntry=virtualIfGFPIntervalEntry, prtSonetVcRxJPathTrace=prtSonetVcRxJPathTrace, prtSonetCurrentES=prtSonetCurrentES, prtSonetStm1MngProtDeviationType=prtSonetStm1MngProtDeviationType, vcGroupCnfgRowStatus=vcGroupCnfgRowStatus, virtualIfLAPFIntervalDlciMismatch=virtualIfLAPFIntervalDlciMismatch, prtSonetGenIdx=prtSonetGenIdx, vcgGfpMuxCnfgRowStatus=vcgGfpMuxCnfgRowStatus, virtualIfLAPSIntervalTable=virtualIfLAPSIntervalTable, virtualIfGFPIntervalTHecMbError=virtualIfGFPIntervalTHecMbError, prtSonetGen=prtSonetGen, prtSectionLineCurrentEntry=prtSectionLineCurrentEntry, prtSonetIntervalStatus=prtSonetIntervalStatus, prtSonetMediumTable=prtSonetMediumTable, vcGroupCnfgRip2=vcGroupCnfgRip2, virtualIfLAPFIntervalPidMismatch=virtualIfLAPFIntervalPidMismatch, vcGroupCnfgTable=vcGroupCnfgTable, virtualIfLAPFIntervalOuiMismatch=virtualIfLAPFIntervalOuiMismatch, virtualIfCurrentMaxLengthViolation=virtualIfCurrentMaxLengthViolation, virtualIfGFPCurrentExiMismatch=virtualIfGFPCurrentExiMismatch, prtVcGroupCnfg=prtVcGroupCnfg, virtualIfIntervalEntry=virtualIfIntervalEntry, prtSonetTuCnfgIdx=prtSonetTuCnfgIdx, prtSonetXConnectRowStatus=prtSonetXConnectRowStatus, prtSonetGenEedThreshold=prtSonetGenEedThreshold, virtualIfIntervalTxAbortFrames=virtualIfIntervalTxAbortFrames, virtualIfGenIdx=virtualIfGenIdx, prtSonetTuIdx=prtSonetTuIdx)
# -*- coding: utf-8 -*- """ Created on Sun Aug 30 14:28:10 2020 @author: Abhishek Mukherjee """ class Solution: def groupAnagrams(self, strs: List[str]) -> List[List[str]]: tempLst=[] tempDict=dict() tempDict=[dict() for i in range(len(strs))] for i in range(len(strs)): for j in strs[i]: if j in tempDict[i].keys(): tempDict[i][j]+=1 else: tempDict[i].update({j:1}) temp=[] for i in range(len(tempDict)): tempDict[i]=sorted(tempDict[i].items(),key=lambda i:i[0]) temp1=[] temp2=[] temp3=[] for i in range(len(tempDict)-1): temp1=[] for j in range(i+1,len(tempDict)): if tempDict[i]==tempDict[j]: if strs[j] not in temp3: temp1.append(strs[j]) if strs[i] not in temp3: temp1.append(strs[i]) temp2.append(temp1) temp3.extend(temp1) for i in strs: if i not in temp3: temp2.append([i]) return temp2
""" Created on Sun Aug 30 14:28:10 2020 @author: Abhishek Mukherjee """ class Solution: def group_anagrams(self, strs: List[str]) -> List[List[str]]: temp_lst = [] temp_dict = dict() temp_dict = [dict() for i in range(len(strs))] for i in range(len(strs)): for j in strs[i]: if j in tempDict[i].keys(): tempDict[i][j] += 1 else: tempDict[i].update({j: 1}) temp = [] for i in range(len(tempDict)): tempDict[i] = sorted(tempDict[i].items(), key=lambda i: i[0]) temp1 = [] temp2 = [] temp3 = [] for i in range(len(tempDict) - 1): temp1 = [] for j in range(i + 1, len(tempDict)): if tempDict[i] == tempDict[j]: if strs[j] not in temp3: temp1.append(strs[j]) if strs[i] not in temp3: temp1.append(strs[i]) temp2.append(temp1) temp3.extend(temp1) for i in strs: if i not in temp3: temp2.append([i]) return temp2
# -*- coding: utf-8 -*- """Top-level package for src.""" __author__ = """krishna bhogaonker""" __email__ = 'cyclotomiq@gmail.com' __version__ = '0.1.0'
"""Top-level package for src.""" __author__ = 'krishna bhogaonker' __email__ = 'cyclotomiq@gmail.com' __version__ = '0.1.0'
class General(): ''' this class runs the experiments with given number of users of each category ''' def __init__(self, p_manager, c_manager, environment): self.person_manager = p_manager self.context_manager = c_manager self.environment = environment self.rewards_log = [] self.candidates_values = self.environment.arms_candidates self.expected_values = [[c * 0.5 for c in self.candidates_values] for cat in range(3)] def play_experiment(self, num_persons): ''' runs a pricing experiment with a given number of users ''' for t in range(num_persons): # nuova persona category_person = self.person_manager.new_person() features_person = self.person_manager.categories[category_person] # print("persona {}, category {}".format(t, features_person)) # candidates candidates_values = self.environment.arms_candidates # scelgo arm pulled_arm = self.context_manager.select_arm(features_person, t, candidates_values) # returns the expected value of this arm from the assigned context. valore_atteso_arm = self.context_manager.val_att_arm(features_person, pulled_arm, candidates_values) # receive positive or null reward reward_person = self.environment.round(category_person, pulled_arm) # update context_manager with reward self.context_manager.update_context(features_person, pulled_arm, reward_person) # update ethe experiment's rewads log, self.rewards_log.append([category_person, pulled_arm, reward_person, valore_atteso_arm]) # for i, c in self.context_manager.contexts_set.items(): # print("\ncontext {}".format(i)) # print("len(context.rewards_log) = {}".format(len(c.rewards_log))) # print("context.subspace = {}".format(c.subspace)) # print("context.learner.beta_parameters = \n{}".format(c.learner.beta_parameters.astype(int))) return self.rewards_log def run_pricing_experiment(self, n_categories_clicks): ''' runs a pricing experiment with a given number of users. this is called as a method inside the advertising modules ''' for index, clicks in enumerate(n_categories_clicks): features_person = self.person_manager.categories[index] for n in range(int(round(clicks))): pulled_arm = self.context_manager.select_arm(features_person, n, self.candidates_values) reward_person = self.environment.round(index, pulled_arm) self.context_manager.update_context(features_person, pulled_arm, reward_person) self.rewards_log.append([index, pulled_arm, reward_person]) idx = self.context_manager.features_context[features_person] for c in range(len(self.candidates_values)): self.expected_values[idx][c] = self.context_manager.contexts_set[idx].learner.expected_value(c, self.candidates_values[ c])
class General: """ this class runs the experiments with given number of users of each category """ def __init__(self, p_manager, c_manager, environment): self.person_manager = p_manager self.context_manager = c_manager self.environment = environment self.rewards_log = [] self.candidates_values = self.environment.arms_candidates self.expected_values = [[c * 0.5 for c in self.candidates_values] for cat in range(3)] def play_experiment(self, num_persons): """ runs a pricing experiment with a given number of users """ for t in range(num_persons): category_person = self.person_manager.new_person() features_person = self.person_manager.categories[category_person] candidates_values = self.environment.arms_candidates pulled_arm = self.context_manager.select_arm(features_person, t, candidates_values) valore_atteso_arm = self.context_manager.val_att_arm(features_person, pulled_arm, candidates_values) reward_person = self.environment.round(category_person, pulled_arm) self.context_manager.update_context(features_person, pulled_arm, reward_person) self.rewards_log.append([category_person, pulled_arm, reward_person, valore_atteso_arm]) return self.rewards_log def run_pricing_experiment(self, n_categories_clicks): """ runs a pricing experiment with a given number of users. this is called as a method inside the advertising modules """ for (index, clicks) in enumerate(n_categories_clicks): features_person = self.person_manager.categories[index] for n in range(int(round(clicks))): pulled_arm = self.context_manager.select_arm(features_person, n, self.candidates_values) reward_person = self.environment.round(index, pulled_arm) self.context_manager.update_context(features_person, pulled_arm, reward_person) self.rewards_log.append([index, pulled_arm, reward_person]) idx = self.context_manager.features_context[features_person] for c in range(len(self.candidates_values)): self.expected_values[idx][c] = self.context_manager.contexts_set[idx].learner.expected_value(c, self.candidates_values[c])
# usando generator, ele comsome menos memoria generator = (i ** 2 for i in range(10) if i % 2 == 0) #o next serve para extrair o valor do generator, importante o generator nbao e uma tupla print(next(generator)) print(next(generator)) print(next(generator)) print(next(generator)) print(next(generator)) # print(next(generator)) aqui vai dar um ERRO apartir do 64
generator = (i ** 2 for i in range(10) if i % 2 == 0) print(next(generator)) print(next(generator)) print(next(generator)) print(next(generator)) print(next(generator))
def reverse_string(string): reversed_list = [] string_as_list = list(string) while string_as_list: reversed_list.append(string_as_list.pop()) print(''.join(reversed_list)) reverse_string(input())
def reverse_string(string): reversed_list = [] string_as_list = list(string) while string_as_list: reversed_list.append(string_as_list.pop()) print(''.join(reversed_list)) reverse_string(input())
n, m = map(int, input().split()) for _ in range(n): k, v = input().split()
(n, m) = map(int, input().split()) for _ in range(n): (k, v) = input().split()
#entrada e, f, c = str(input()).split() e = int(e) f = int(f) c = int(c) #processamento totalGarrafasVazias = e + f totalRefri = 0 while totalGarrafasVazias >= c: aux = totalGarrafasVazias // c totalRefri += aux totalGarrafasVazias = aux + (totalGarrafasVazias % c) #saida print(totalRefri)
(e, f, c) = str(input()).split() e = int(e) f = int(f) c = int(c) total_garrafas_vazias = e + f total_refri = 0 while totalGarrafasVazias >= c: aux = totalGarrafasVazias // c total_refri += aux total_garrafas_vazias = aux + totalGarrafasVazias % c print(totalRefri)
f1 = 10 print(f1) if f1: a1 = 1 a2 = 2 a3 = 3 a4 = 4 a5 = 5 a6 = 6 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 a4 = 4 a5 = 5 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 a4 = 4 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 else: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1)
f1 = 10 print(f1) if f1: a1 = 1 a2 = 2 a3 = 3 a4 = 4 a5 = 5 a6 = 6 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 a4 = 4 a5 = 5 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 a4 = 4 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 a3 = 3 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 a2 = 2 elif f1: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) a1 = 1 else: print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1) print(f1)
def error_response(status:str, message:str): """ This function returns a dictionary of status and message :param status: The status code of the response :type status: str :param message: The message you want to display to the end user :type message: str :return: A dictionary of status and message """ payload = { "status": status, "message": message } return payload def success_response(status:str, message:str, data:dict): """ Custom success response :param status: The status code of the response :type status: str :param message: The message you want to show to the end user :type message: str :param data: dict :type data: dict :return: A dictionary of status, message, data of whatever object that was serialized """ payload = { "status": status, "message": message, "data": data } return payload
def error_response(status: str, message: str): """ This function returns a dictionary of status and message :param status: The status code of the response :type status: str :param message: The message you want to display to the end user :type message: str :return: A dictionary of status and message """ payload = {'status': status, 'message': message} return payload def success_response(status: str, message: str, data: dict): """ Custom success response :param status: The status code of the response :type status: str :param message: The message you want to show to the end user :type message: str :param data: dict :type data: dict :return: A dictionary of status, message, data of whatever object that was serialized """ payload = {'status': status, 'message': message, 'data': data} return payload
class ZException(Exception): ''' Exception when z0 is suboptimal. ''' def __init__(self, text, z, *args): super(ZException, self).__init__(text, z, *args) self.text = text self.z = z
class Zexception(Exception): """ Exception when z0 is suboptimal. """ def __init__(self, text, z, *args): super(ZException, self).__init__(text, z, *args) self.text = text self.z = z
# # PySNMP MIB module TUBS-PROC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TUBS-PROC-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:27:58 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, NotificationType, MibIdentifier, ModuleIdentity, Counter64, ObjectIdentity, IpAddress, TimeTicks, Integer32, Counter32, Gauge32, iso, Unsigned32, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "NotificationType", "MibIdentifier", "ModuleIdentity", "Counter64", "ObjectIdentity", "IpAddress", "TimeTicks", "Integer32", "Counter32", "Gauge32", "iso", "Unsigned32", "enterprises") DisplayString, TAddress, TextualConvention, TimeStamp, DateAndTime, RowStatus, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TAddress", "TextualConvention", "TimeStamp", "DateAndTime", "RowStatus", "TruthValue") procMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 1575, 1, 3)) if mibBuilder.loadTexts: procMIB.setLastUpdated('9411152024Z') if mibBuilder.loadTexts: procMIB.setOrganization('TU Braunschweig') if mibBuilder.loadTexts: procMIB.setContactInfo(' Juergen Schoenwaelder Postal: TU Braunschweig Bueltenweg 74/75 D-38108 Braunschweig GERMANY Tel: +49 531 391 3249 Fax: +49 531 391 5936 E-mail: schoenw@ibr.cs.tu-bs.de') if mibBuilder.loadTexts: procMIB.setDescription('Experimental MIB modules for process listings.') procReload = MibScalar((1, 3, 6, 1, 4, 1, 1575, 1, 3, 1), DateAndTime()).setMaxAccess("readwrite") if mibBuilder.loadTexts: procReload.setStatus('current') if mibBuilder.loadTexts: procReload.setDescription('Any set operation will reload the process table. It contains a time stamp when the proc table was reloaded the last time.') procTable = MibTable((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2), ) if mibBuilder.loadTexts: procTable.setStatus('current') if mibBuilder.loadTexts: procTable.setDescription('The process table.') procEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1), ).setIndexNames((0, "TUBS-PROC-MIB", "procID")) if mibBuilder.loadTexts: procEntry.setStatus('current') if mibBuilder.loadTexts: procEntry.setDescription('An entry for a process in the processes table.') procID = MibTableColumn((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: procID.setStatus('current') if mibBuilder.loadTexts: procID.setDescription('The unique process ID.') procCmd = MibTableColumn((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: procCmd.setStatus('current') if mibBuilder.loadTexts: procCmd.setDescription('The command name used to start this process.') mibBuilder.exportSymbols("TUBS-PROC-MIB", procCmd=procCmd, procTable=procTable, procID=procID, procReload=procReload, procEntry=procEntry, procMIB=procMIB, PYSNMP_MODULE_ID=procMIB)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, bits, notification_type, mib_identifier, module_identity, counter64, object_identity, ip_address, time_ticks, integer32, counter32, gauge32, iso, unsigned32, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'NotificationType', 'MibIdentifier', 'ModuleIdentity', 'Counter64', 'ObjectIdentity', 'IpAddress', 'TimeTicks', 'Integer32', 'Counter32', 'Gauge32', 'iso', 'Unsigned32', 'enterprises') (display_string, t_address, textual_convention, time_stamp, date_and_time, row_status, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TAddress', 'TextualConvention', 'TimeStamp', 'DateAndTime', 'RowStatus', 'TruthValue') proc_mib = module_identity((1, 3, 6, 1, 4, 1, 1575, 1, 3)) if mibBuilder.loadTexts: procMIB.setLastUpdated('9411152024Z') if mibBuilder.loadTexts: procMIB.setOrganization('TU Braunschweig') if mibBuilder.loadTexts: procMIB.setContactInfo(' Juergen Schoenwaelder Postal: TU Braunschweig Bueltenweg 74/75 D-38108 Braunschweig GERMANY Tel: +49 531 391 3249 Fax: +49 531 391 5936 E-mail: schoenw@ibr.cs.tu-bs.de') if mibBuilder.loadTexts: procMIB.setDescription('Experimental MIB modules for process listings.') proc_reload = mib_scalar((1, 3, 6, 1, 4, 1, 1575, 1, 3, 1), date_and_time()).setMaxAccess('readwrite') if mibBuilder.loadTexts: procReload.setStatus('current') if mibBuilder.loadTexts: procReload.setDescription('Any set operation will reload the process table. It contains a time stamp when the proc table was reloaded the last time.') proc_table = mib_table((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2)) if mibBuilder.loadTexts: procTable.setStatus('current') if mibBuilder.loadTexts: procTable.setDescription('The process table.') proc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1)).setIndexNames((0, 'TUBS-PROC-MIB', 'procID')) if mibBuilder.loadTexts: procEntry.setStatus('current') if mibBuilder.loadTexts: procEntry.setDescription('An entry for a process in the processes table.') proc_id = mib_table_column((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: procID.setStatus('current') if mibBuilder.loadTexts: procID.setDescription('The unique process ID.') proc_cmd = mib_table_column((1, 3, 6, 1, 4, 1, 1575, 1, 3, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: procCmd.setStatus('current') if mibBuilder.loadTexts: procCmd.setDescription('The command name used to start this process.') mibBuilder.exportSymbols('TUBS-PROC-MIB', procCmd=procCmd, procTable=procTable, procID=procID, procReload=procReload, procEntry=procEntry, procMIB=procMIB, PYSNMP_MODULE_ID=procMIB)
def operate(opcode, arg1, arg2): if (opcode==1): return arg1+arg2 elif (opcode==2): return arg1*arg2 elif (opcode==3): return arg1 elif (opcode==4): return arg1
def operate(opcode, arg1, arg2): if opcode == 1: return arg1 + arg2 elif opcode == 2: return arg1 * arg2 elif opcode == 3: return arg1 elif opcode == 4: return arg1
class event(object): def __init__(self): self.__funcs = set() def invoke(self, *args): for f in self.__funcs: f.__call__(*args) def reg(self, func): self.__funcs.add(func)
class Event(object): def __init__(self): self.__funcs = set() def invoke(self, *args): for f in self.__funcs: f.__call__(*args) def reg(self, func): self.__funcs.add(func)
cycle_info={} # populate some example cycle info cycle_info['cycle']=1 cycle_info['time']=1.0 print(cycle_info)
cycle_info = {} cycle_info['cycle'] = 1 cycle_info['time'] = 1.0 print(cycle_info)
""" You are given a pointer to the root of a binary search tree and values to be inserted into the tree. Insert the values into their appropriate position in the binary search tree and return the root of the updated binary tree. You just have to complete the function Input: The value to be inserted is 6 on the tree below 4 / \ 2 7 / \ 1 3 Output: Return the root of the binary search tree after inserting the value into the tree 4 / \ 2 7 / \ / 1 3 6 """ class Node: def __init__(self, info): self.info = info self.left = None self.right = None self.level = None def __str__(self): return str(self.info) def preOrder(root): if root == None: return print(root.info, end=" ") preOrder(root.left) preOrder(root.right) class BinarySearchTree: def __init__(self): self.root = None # Node is defined as # self.left (the left child of the node) # self.right (the right child of the node) # self.info (the value of the node) def insert(self, val): if self.root is None: self.root = Node(val) return current = self.root while True: if current.info > val: if current.left: current = current.left else: current.left = Node(val) break else: if current.right: current = current.right else: current.right = Node(val) break tree = BinarySearchTree() t = int(input()) arr = list(map(int, input().split())) for i in range(t): tree.insert(arr[i]) preOrder(tree.root)
""" You are given a pointer to the root of a binary search tree and values to be inserted into the tree. Insert the values into their appropriate position in the binary search tree and return the root of the updated binary tree. You just have to complete the function Input: The value to be inserted is 6 on the tree below 4 / 2 7 / 1 3 Output: Return the root of the binary search tree after inserting the value into the tree 4 / 2 7 / \\ / 1 3 6 """ class Node: def __init__(self, info): self.info = info self.left = None self.right = None self.level = None def __str__(self): return str(self.info) def pre_order(root): if root == None: return print(root.info, end=' ') pre_order(root.left) pre_order(root.right) class Binarysearchtree: def __init__(self): self.root = None def insert(self, val): if self.root is None: self.root = node(val) return current = self.root while True: if current.info > val: if current.left: current = current.left else: current.left = node(val) break elif current.right: current = current.right else: current.right = node(val) break tree = binary_search_tree() t = int(input()) arr = list(map(int, input().split())) for i in range(t): tree.insert(arr[i]) pre_order(tree.root)
#!/usr/bin/env python3 def minimumBribes(q): bribes = 0 for i in range(len(q) - 1, -1, -1): if q[i] - (i + 1) > 2: print("Too chaotic") return for j in range(max(0, q[i] - 2), i): if q[j] > q[i]: bribes += 1 print(bribes) if __name__ == '__main__': t = int(input()) for t_itr in range(t): n = int(input()) q = list(map(int, input().rstrip().split())) minimumBribes(q)
def minimum_bribes(q): bribes = 0 for i in range(len(q) - 1, -1, -1): if q[i] - (i + 1) > 2: print('Too chaotic') return for j in range(max(0, q[i] - 2), i): if q[j] > q[i]: bribes += 1 print(bribes) if __name__ == '__main__': t = int(input()) for t_itr in range(t): n = int(input()) q = list(map(int, input().rstrip().split())) minimum_bribes(q)
file = open('./input.txt', 'r') string = file.read() lines = string.split() int_lines = list(map(lambda x: int(x), lines)) result = 0 last_value = 10000 for value in int_lines: if last_value < value: result += 1 last_value = value print(result)
file = open('./input.txt', 'r') string = file.read() lines = string.split() int_lines = list(map(lambda x: int(x), lines)) result = 0 last_value = 10000 for value in int_lines: if last_value < value: result += 1 last_value = value print(result)
words_splitted = input("Give me some words: ") words = words_splitted.split(",") counter = 0 for i in range(len(words)): if words[i-1].isalpha() == True: counter += 1 print(counter)
words_splitted = input('Give me some words: ') words = words_splitted.split(',') counter = 0 for i in range(len(words)): if words[i - 1].isalpha() == True: counter += 1 print(counter)
def test_vcf(filename): with open(filename, encoding='utf-8') as handle: for index, line in enumerate(handle): line = line.replace('\n', '') # Already read meta and header in self.__init__ if line.startswith('#'): continue list_line = line.split("\t") ref = list_line[3] alt = list_line[4] if len(ref) == 1 or len(alt) == 1: continue else: print(ref, alt) print("ERROR", line) # if len(ref) > 50 or len(alt) > 50: # print(ref, alt) # print("SV", line)
def test_vcf(filename): with open(filename, encoding='utf-8') as handle: for (index, line) in enumerate(handle): line = line.replace('\n', '') if line.startswith('#'): continue list_line = line.split('\t') ref = list_line[3] alt = list_line[4] if len(ref) == 1 or len(alt) == 1: continue else: print(ref, alt) print('ERROR', line)
def gra(up, rundy, limit): boczne = { 1 : [3,4,2,5], 2 : [6,1,3,4], 3 : [6,1,2,5], 4 : [6,1,2,5], 5 : [6,1,3,4], 6 : [3,4,2,5] } punkty = [0 for k in range(len(rundy[0]))] wynik = punkty[:] for i in range(len(rundy)): runda = rundy[i] for j in range(len(runda)): if runda[j] == 'o': up = max(boczne[up]) elif runda[j] == 'r': up = min(boczne[up]) punkty[j] += up if punkty[j] >= limit and wynik[j] == 0: wynik[j] = i + 1 return wynik #gra(3, [['o', 'r'],['r', 'r'],['r', 'o']], 7) #gra(4, [['o'],['r'],['r']], 7) #gra(4, [['o', 'r', 'r'],['r', 'o', 'r']], 5)
def gra(up, rundy, limit): boczne = {1: [3, 4, 2, 5], 2: [6, 1, 3, 4], 3: [6, 1, 2, 5], 4: [6, 1, 2, 5], 5: [6, 1, 3, 4], 6: [3, 4, 2, 5]} punkty = [0 for k in range(len(rundy[0]))] wynik = punkty[:] for i in range(len(rundy)): runda = rundy[i] for j in range(len(runda)): if runda[j] == 'o': up = max(boczne[up]) elif runda[j] == 'r': up = min(boczne[up]) punkty[j] += up if punkty[j] >= limit and wynik[j] == 0: wynik[j] = i + 1 return wynik
def getRoadsPoints(sf, shapeval, show=False): fields = sf.fields if show: print("Fields -> {0}".format(fields)) itype=None iint=None if shapeval.startswith("Airport"): for i,val in enumerate(fields): if val[0] == "FAA_AIRPOR": itype = i-1 break if shapeval.startswith("RailFeature"): for i,val in enumerate(fields): if val[0] == "LENGTHKM": itype = i-1 break if shapeval.startswith("TrailSegment"): for i,val in enumerate(fields): if val[0] == "SOURCE_D00": itype = i-1 break if shapeval.startswith("RoadSegment"): for i,val in enumerate(fields): if val[0] == "PERMANENT_": itype = i-1 break iint=None for i,val in enumerate(fields): if val[0] == "INTERSTATE": iint = i-1 break return itype,iint def getRoadsData(shapeval, record, itype, iint, cntr): if shapeval.startswith("AirportPoint"): geoid = record[itype] name = record[itype+1] test = record[itype+2] try: int(test) except: return None return [geoid, name] elif shapeval.startswith("AirportRunway"): geoid = record[itype] name = record[itype+1] return [geoid, name] elif shapeval.startswith("RailFeature"): length = record[itype] name = record[itype+3] geoid = name return [geoid, name] elif shapeval.startswith("TrailSegment"): length = record[itype] name = record[itype+3] geoid = name return [geoid, name] elif shapeval.startswith("RoadSegment"): geoid = record[itype] name = record[itype+21] inter = "-".join(record[iint:iint+4]) usrte = "-".join(record[iint+4:iint+8]) strte = "-".join(record[iint+8:iint+12]) ctrte = record[iint+12] street = record[iint+15] cntr[street] += 1 extra = [inter, usrte, strte, ctrte, street] ## Interstate isInterstate = False if inter != '---': isInterstate = True ## USRte isUSRte = False if usrte != '---': isUSRte = True ## StateRte isStateRte = False if strte != '---': isStateRte = True ## Highway isHighway = False try: if any([street.find(" {0}".format(x)) != -1 for x in ['Hw ', 'Hwy', 'Pkwy', 'Hwy', 'Fwy', 'Tollway', 'Expy']]): isHighway = True except: pass ## Major Road isMajorRd = False try: if any([street.find(" {0}".format(x)) != -1 for x in ['Ave', 'Blvd']]): isMajorRd = True except: pass ## Connections isConnection = False try: if any([street.find(" {0}".format(x)) != -1 for x in ['Bridge ', ' Bdg']]): isConnection = True except: pass return [geoid, name, cntr, isInterstate, isUSRte, isStateRte, isHighway, isMajorRd, isConnection] else: print(record) 1/0 print("No data is returned!!!") return None
def get_roads_points(sf, shapeval, show=False): fields = sf.fields if show: print('Fields -> {0}'.format(fields)) itype = None iint = None if shapeval.startswith('Airport'): for (i, val) in enumerate(fields): if val[0] == 'FAA_AIRPOR': itype = i - 1 break if shapeval.startswith('RailFeature'): for (i, val) in enumerate(fields): if val[0] == 'LENGTHKM': itype = i - 1 break if shapeval.startswith('TrailSegment'): for (i, val) in enumerate(fields): if val[0] == 'SOURCE_D00': itype = i - 1 break if shapeval.startswith('RoadSegment'): for (i, val) in enumerate(fields): if val[0] == 'PERMANENT_': itype = i - 1 break iint = None for (i, val) in enumerate(fields): if val[0] == 'INTERSTATE': iint = i - 1 break return (itype, iint) def get_roads_data(shapeval, record, itype, iint, cntr): if shapeval.startswith('AirportPoint'): geoid = record[itype] name = record[itype + 1] test = record[itype + 2] try: int(test) except: return None return [geoid, name] elif shapeval.startswith('AirportRunway'): geoid = record[itype] name = record[itype + 1] return [geoid, name] elif shapeval.startswith('RailFeature'): length = record[itype] name = record[itype + 3] geoid = name return [geoid, name] elif shapeval.startswith('TrailSegment'): length = record[itype] name = record[itype + 3] geoid = name return [geoid, name] elif shapeval.startswith('RoadSegment'): geoid = record[itype] name = record[itype + 21] inter = '-'.join(record[iint:iint + 4]) usrte = '-'.join(record[iint + 4:iint + 8]) strte = '-'.join(record[iint + 8:iint + 12]) ctrte = record[iint + 12] street = record[iint + 15] cntr[street] += 1 extra = [inter, usrte, strte, ctrte, street] is_interstate = False if inter != '---': is_interstate = True is_us_rte = False if usrte != '---': is_us_rte = True is_state_rte = False if strte != '---': is_state_rte = True is_highway = False try: if any([street.find(' {0}'.format(x)) != -1 for x in ['Hw ', 'Hwy', 'Pkwy', 'Hwy', 'Fwy', 'Tollway', 'Expy']]): is_highway = True except: pass is_major_rd = False try: if any([street.find(' {0}'.format(x)) != -1 for x in ['Ave', 'Blvd']]): is_major_rd = True except: pass is_connection = False try: if any([street.find(' {0}'.format(x)) != -1 for x in ['Bridge ', ' Bdg']]): is_connection = True except: pass return [geoid, name, cntr, isInterstate, isUSRte, isStateRte, isHighway, isMajorRd, isConnection] else: print(record) 1 / 0 print('No data is returned!!!') return None
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg/HectorDebugInfo.msg;/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg/HectorIterData.msg" services_str = "" pkg_name = "hector_mapping" dependencies_str = "" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "hector_mapping;/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg" PYTHON_EXECUTABLE = "/usr/bin/python2" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
messages_str = '/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg/HectorDebugInfo.msg;/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg/HectorIterData.msg' services_str = '' pkg_name = 'hector_mapping' dependencies_str = '' langs = 'gencpp;geneus;genlisp;gennodejs;genpy' dep_include_paths_str = 'hector_mapping;/home/liudiyang1998/Git/ROS-Robotics-By-Example/Chapter_7_code/src/hector_slam/hector_mapping/msg' python_executable = '/usr/bin/python2' package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = '/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py'
''' URL: https://leetcode.com/problems/powx-n Time complexity: O(logn) Space complexity: O(logn) ''' class Solution: def myPow(self, x, n): """ :type x: float :type n: int :rtype: float """ res = self._aux_pow(x, abs(n)) if n < 0: return 1 / res return res def _aux_pow(self, x, n): if n == 0: return 1 if n == 1: return x half_res = self._aux_pow(x, n//2) res = half_res * half_res if n % 2 == 1: return res * x return res
""" URL: https://leetcode.com/problems/powx-n Time complexity: O(logn) Space complexity: O(logn) """ class Solution: def my_pow(self, x, n): """ :type x: float :type n: int :rtype: float """ res = self._aux_pow(x, abs(n)) if n < 0: return 1 / res return res def _aux_pow(self, x, n): if n == 0: return 1 if n == 1: return x half_res = self._aux_pow(x, n // 2) res = half_res * half_res if n % 2 == 1: return res * x return res
class GenericsException(Exception): """Base class for exceptions in generics package.""" class GenericsInterfaceFailed(GenericsException, TypeError): """When subject fails the interface of a generic function, and that generic has no callable 'default' to fall back to.""" class GenericsNoDispatch(GenericsException): """When no dispatch found.""" def get_name(obj): if hasattr(obj, '__name__'): name = obj.__name__ else: name = type(obj).__name__ + " instance" def get_abstracts(obj): return getattr(obj, '__abstractmethods__', [])
class Genericsexception(Exception): """Base class for exceptions in generics package.""" class Genericsinterfacefailed(GenericsException, TypeError): """When subject fails the interface of a generic function, and that generic has no callable 'default' to fall back to.""" class Genericsnodispatch(GenericsException): """When no dispatch found.""" def get_name(obj): if hasattr(obj, '__name__'): name = obj.__name__ else: name = type(obj).__name__ + ' instance' def get_abstracts(obj): return getattr(obj, '__abstractmethods__', [])
""" __init__.py Author: Rob Cakebread <cakebread at gmail> License : BSD """ __docformat__ = 'restructuredtext' __version__ = '0.4.3'
""" __init__.py Author: Rob Cakebread <cakebread at gmail> License : BSD """ __docformat__ = 'restructuredtext' __version__ = '0.4.3'
""" Test that linear solver convergence with correct rate of convergence when applied to the problem with stable detonation. """ # class TestLinearStableConvergence: # def test_linear_stable_convergence(self): # pass
""" Test that linear solver convergence with correct rate of convergence when applied to the problem with stable detonation. """
"""stack.""" class Stack(object): def __init__(self, item): self._data = [item] def push(self, item): self._data.append(item) def pop(self): if len(self._data) == 0: raise ValueError('Your stack is empty') return self._data.pop() def getMin(self): if len(self._data) == 0: raise ValueError('Your stack is empty') return min(self._data)
"""stack.""" class Stack(object): def __init__(self, item): self._data = [item] def push(self, item): self._data.append(item) def pop(self): if len(self._data) == 0: raise value_error('Your stack is empty') return self._data.pop() def get_min(self): if len(self._data) == 0: raise value_error('Your stack is empty') return min(self._data)
# List of API keys ALPACA_API_KEY = "PKV6PG76ZRMOXUSLQMC6" ALPACA_SECRET_KEY = "YD22E2jiKZRfer69McRcQIJX0kxGpXy13I0oTIzN" ALPACA_BASE_URL = "https://paper-api.alpaca.markets" AMERITRADE_TOKEN = 'https://api.tdameritrade.com/v1/oauth2/token' AMERITRADE_KEY = '6JWAH9JYWA5CSCOG5WC6PAPLYIASBTTV'
alpaca_api_key = 'PKV6PG76ZRMOXUSLQMC6' alpaca_secret_key = 'YD22E2jiKZRfer69McRcQIJX0kxGpXy13I0oTIzN' alpaca_base_url = 'https://paper-api.alpaca.markets' ameritrade_token = 'https://api.tdameritrade.com/v1/oauth2/token' ameritrade_key = '6JWAH9JYWA5CSCOG5WC6PAPLYIASBTTV'
REGION = "your_region_name" BUCKET = "your_bucket_name" DATABASE = "your_database_name" TABLE = "your_table_name" INDEX_COLUMN_NAME = "date"
region = 'your_region_name' bucket = 'your_bucket_name' database = 'your_database_name' table = 'your_table_name' index_column_name = 'date'
class StatusLifecycle(): """ This class represents a lifecycle of statuses. """ class InvalidLifecycleException(Exception): """ raised if a lifecycle is invalid """ pass def __init__(self, *lifecycle_statuses): """ :param lifecycle_statuses: a set of unique statuses, in the correct order, in which they should reside in this lifecycle :raises StatusLifecycle.InvalidLifecycleException: if the provided statuses aren't unique """ if len(lifecycle_statuses) < 1: raise StatusLifecycle.InvalidLifecycleException('at least one status must be provided') if len(lifecycle_statuses) != len(set(lifecycle_statuses)): raise StatusLifecycle.InvalidLifecycleException('Lifecycle statuses need to be unique!') self.statuses = lifecycle_statuses self.index_lookup = {status: index for index, status in enumerate(self.statuses)} class ObjectStatusLifecycleManager(): """ This class manages the StatusLifecycle belonging to a specific object, to be able to provide additional functionality, like getting a next of previous status. """ class InvalidStatusException(Exception): """ raise if a status is invalid """ pass def __init__(self, status_lifecycle, object_with_status, status_attribute): """ :param status_lifecycle: the StatusLifecycle which should be managed :type status_lifecycle: StatusLifecycle :param object_with_status: the Object to manage the Lifecycle for :type object_with_status: Any :param status_attribute: the attribute of the status which contains the current status :type status_attribute: str """ self.status_lifecycle = status_lifecycle self._object_with_status = object_with_status self._status_attribute = status_attribute def get_status_by_offset(self, offset, raise_exception=True): """ gets a status by a given offset :param offset: the offset :type offset: int :param raise_exception: if False None will be returned in case the offset points to an invalid status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the status relative to the provided status, by the given offset """ return self._execute_method_and_handle_index_exceptions( raise_exception, self._get_status_by_offset, offset ) def get_next_status(self, raise_exception=True): """ gets the next status, relative to the given status :param raise_exception: if False None will be returned in case there is no next status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the next status, relative to the given status """ return self._execute_method_and_handle_index_exceptions( raise_exception, self._get_next_status ) def get_previous_status(self, raise_exception=True): """ gets the previous status, relative to the given status :param raise_exception: if False None will be returned in case there is no previous status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the previous status, relative to the given status """ return self._execute_method_and_handle_index_exceptions( raise_exception, self._get_previous_status ) def is_status_valid(self, status, raise_exception=False): """ evaluates whether a status is valid or not :param status: the status to check :type status: str :param raise_exception: if True an ObjectStatusLifecycleManager.InvalidStatusException will be raised in case the status is invalid :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and invalid :return: is the status valid :rtype: bool """ valid = status in self.status_lifecycle.statuses if not valid and raise_exception: raise ObjectStatusLifecycleManager.InvalidStatusException() else: return valid def compare_status_to(self, status_to_compare_to): """ compares the position of current status to another one, to evaluate whether a status is before or after another one in the lifecycle. :param status_to_compare_to: the status which the current one is compared to :type status: str :return: returns 1 -> status > status_to_compare_to -1 -> status < status_to_compare_to 0 -> status == status_to_compare_to :rtype int in (-1, 0, 1) """ status_index = self._get_position_of_current_status() status_to_compare_to_index = self._get_position_of_status(status_to_compare_to) if status_index > status_to_compare_to_index: return 1 if status_index < status_to_compare_to_index: return -1 return 0 def _get_current_status(self): return getattr(self._object_with_status, self._status_attribute) def _get_status_by_offset(self, offset): index = self._get_position_of_current_status() + offset if index < 0: raise ObjectStatusLifecycleManager.InvalidStatusException() return self.status_lifecycle.statuses[index] def _get_next_status(self): return self._get_status_by_offset(1) def _get_previous_status(self): return self._get_status_by_offset(-1) def _get_position_of_status(self, status): return self.status_lifecycle.index_lookup[status] def _get_position_of_current_status(self): return self._get_position_of_status(self._get_current_status()) def _execute_method_and_handle_index_exceptions(self, raise_exception, method, *args): try: return method(*args) except Exception as e: if raise_exception: raise ObjectStatusLifecycleManager.InvalidStatusException(str(e)) else: return None
class Statuslifecycle: """ This class represents a lifecycle of statuses. """ class Invalidlifecycleexception(Exception): """ raised if a lifecycle is invalid """ pass def __init__(self, *lifecycle_statuses): """ :param lifecycle_statuses: a set of unique statuses, in the correct order, in which they should reside in this lifecycle :raises StatusLifecycle.InvalidLifecycleException: if the provided statuses aren't unique """ if len(lifecycle_statuses) < 1: raise StatusLifecycle.InvalidLifecycleException('at least one status must be provided') if len(lifecycle_statuses) != len(set(lifecycle_statuses)): raise StatusLifecycle.InvalidLifecycleException('Lifecycle statuses need to be unique!') self.statuses = lifecycle_statuses self.index_lookup = {status: index for (index, status) in enumerate(self.statuses)} class Objectstatuslifecyclemanager: """ This class manages the StatusLifecycle belonging to a specific object, to be able to provide additional functionality, like getting a next of previous status. """ class Invalidstatusexception(Exception): """ raise if a status is invalid """ pass def __init__(self, status_lifecycle, object_with_status, status_attribute): """ :param status_lifecycle: the StatusLifecycle which should be managed :type status_lifecycle: StatusLifecycle :param object_with_status: the Object to manage the Lifecycle for :type object_with_status: Any :param status_attribute: the attribute of the status which contains the current status :type status_attribute: str """ self.status_lifecycle = status_lifecycle self._object_with_status = object_with_status self._status_attribute = status_attribute def get_status_by_offset(self, offset, raise_exception=True): """ gets a status by a given offset :param offset: the offset :type offset: int :param raise_exception: if False None will be returned in case the offset points to an invalid status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the status relative to the provided status, by the given offset """ return self._execute_method_and_handle_index_exceptions(raise_exception, self._get_status_by_offset, offset) def get_next_status(self, raise_exception=True): """ gets the next status, relative to the given status :param raise_exception: if False None will be returned in case there is no next status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the next status, relative to the given status """ return self._execute_method_and_handle_index_exceptions(raise_exception, self._get_next_status) def get_previous_status(self, raise_exception=True): """ gets the previous status, relative to the given status :param raise_exception: if False None will be returned in case there is no previous status, if True an InvalidStatusException will be thrown :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and offset is invalid :return: the previous status, relative to the given status """ return self._execute_method_and_handle_index_exceptions(raise_exception, self._get_previous_status) def is_status_valid(self, status, raise_exception=False): """ evaluates whether a status is valid or not :param status: the status to check :type status: str :param raise_exception: if True an ObjectStatusLifecycleManager.InvalidStatusException will be raised in case the status is invalid :type raise_exception: bool :raises ObjectStatusLifecycleManager.InvalidStatusException: in case raise_exception == True and invalid :return: is the status valid :rtype: bool """ valid = status in self.status_lifecycle.statuses if not valid and raise_exception: raise ObjectStatusLifecycleManager.InvalidStatusException() else: return valid def compare_status_to(self, status_to_compare_to): """ compares the position of current status to another one, to evaluate whether a status is before or after another one in the lifecycle. :param status_to_compare_to: the status which the current one is compared to :type status: str :return: returns 1 -> status > status_to_compare_to -1 -> status < status_to_compare_to 0 -> status == status_to_compare_to :rtype int in (-1, 0, 1) """ status_index = self._get_position_of_current_status() status_to_compare_to_index = self._get_position_of_status(status_to_compare_to) if status_index > status_to_compare_to_index: return 1 if status_index < status_to_compare_to_index: return -1 return 0 def _get_current_status(self): return getattr(self._object_with_status, self._status_attribute) def _get_status_by_offset(self, offset): index = self._get_position_of_current_status() + offset if index < 0: raise ObjectStatusLifecycleManager.InvalidStatusException() return self.status_lifecycle.statuses[index] def _get_next_status(self): return self._get_status_by_offset(1) def _get_previous_status(self): return self._get_status_by_offset(-1) def _get_position_of_status(self, status): return self.status_lifecycle.index_lookup[status] def _get_position_of_current_status(self): return self._get_position_of_status(self._get_current_status()) def _execute_method_and_handle_index_exceptions(self, raise_exception, method, *args): try: return method(*args) except Exception as e: if raise_exception: raise ObjectStatusLifecycleManager.InvalidStatusException(str(e)) else: return None
class Math(object): """ Provides constants and static methods for trigonometric,logarithmic,and other common mathematical functions. """ @staticmethod def Abs(value): """ Abs(value: Single) -> Single Returns the absolute value of a single-precision floating-point number. value: A number that is greater than or equal to System.Single.MinValue,but less than or equal to System.Single.MaxValue. Abs(value: float) -> float Returns the absolute value of a double-precision floating-point number. value: A number that is greater than or equal to System.Double.MinValue,but less than or equal to System.Double.MaxValue. Abs(value: Decimal) -> Decimal Returns the absolute value of a System.Decimal number. value: A number that is greater than or equal to System.Decimal.MinValue,but less than or equal to System.Decimal.MaxValue. Abs(value: Int64) -> Int64 Returns the absolute value of a 64-bit signed integer. value: A number that is greater than System.Int64.MinValue,but less than or equal to System.Int64.MaxValue. Abs(value: SByte) -> SByte Returns the absolute value of an 8-bit signed integer. value: A number that is greater than System.SByte.MinValue,but less than or equal to System.SByte.MaxValue. Abs(value: Int16) -> Int16 Returns the absolute value of a 16-bit signed integer. value: A number that is greater than System.Int16.MinValue,but less than or equal to System.Int16.MaxValue. Abs(value: int) -> int Returns the absolute value of a 32-bit signed integer. value: A number that is greater than System.Int32.MinValue,but less than or equal to System.Int32.MaxValue. """ pass @staticmethod def Acos(d): """ Acos(d: float) -> float Returns the angle whose cosine is the specified number. d: A number representing a cosine,where d must be greater than or equal to -1, but less than or equal to 1. -1 or d > 1 or d equals System.Double.NaN. """ pass @staticmethod def Asin(d): """ Asin(d: float) -> float Returns the angle whose sine is the specified number. d: A number representing a sine,where d must be greater than or equal to -1,but less than or equal to 1. if d < -1 or d > 1 or d equals System.Double.NaN. """ pass @staticmethod def Atan(d): """ Atan(d: float) -> float Returns the angle whose tangent is the specified number. d: A number representing a tangent. to double precision (1.5707963267949) if d equals System.Double.PositiveInfinity. """ pass @staticmethod def Atan2(y,x): """ Atan2(y: float,x: float) -> float Returns the angle whose tangent is the quotient of two specified numbers. y: The y coordinate of a point. x: The x coordinate of a point. (x,y) is a point in the Cartesian plane. Observe the following: For (x,y) in the boundaries of the quadrants,the return value is the following:If y is 0 System.Double.NaN,or if x and y are either System.Double.PositiveInfinity or System.Double.NegativeInfinity,the method returns System.Double.NaN. """ pass @staticmethod def BigMul(a,b): """ BigMul(a: int,b: int) -> Int64 Produces the full product of two 32-bit numbers. a: The first number to multiply. b: The second number to multiply. Returns: The number containing the product of the specified numbers. """ pass @staticmethod def Ceiling(*__args): """ Ceiling(a: float) -> float Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number. a: A double-precision floating-point number. Returns: The smallest integral value that is greater than or equal to a. If a is equal to System.Double.NaN,System.Double.NegativeInfinity,or System.Double.PositiveInfinity,that value is returned. Note that this method returns a System.Double instead of an integral type. Ceiling(d: Decimal) -> Decimal Returns the smallest integral value that is greater than or equal to the specified decimal number. d: A decimal number. Returns: The smallest integral value that is greater than or equal to d. Note that this method returns a System.Decimal instead of an integral type. """ pass @staticmethod def Cos(d): """ Cos(d: float) -> float Returns the cosine of the specified angle. d: An angle,measured in radians. Returns: The cosine of d. If d is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def Cosh(value): """ Cosh(value: float) -> float Returns the hyperbolic cosine of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic cosine of value. If value is equal to System.Double.NegativeInfinity or System.Double.PositiveInfinity, System.Double.PositiveInfinity is returned. If value is equal to System.Double.NaN,System.Double.NaN is returned. """ pass @staticmethod def DivRem(a,b,result): """ DivRem(a: Int64,b: Int64) -> (Int64,Int64) Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter. a: The dividend. b: The divisor. Returns: The quotient of the specified numbers. DivRem(a: int,b: int) -> (int,int) Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter. a: The dividend. b: The divisor. Returns: The quotient of the specified numbers. """ pass @staticmethod def Exp(d): """ Exp(d: float) -> float Returns e raised to the specified power. d: A number specifying a power. Returns: The number e raised to the power d. If d equals System.Double.NaN or System.Double.PositiveInfinity,that value is returned. If d equals System.Double.NegativeInfinity,0 is returned. """ pass @staticmethod def Floor(d): """ Floor(d: float) -> float Returns the largest integer less than or equal to the specified double-precision floating-point number. d: A double-precision floating-point number. Returns: The largest integer less than or equal to d. If d is equal to System.Double.NaN,System.Double.NegativeInfinity,or System.Double.PositiveInfinity,that value is returned. Floor(d: Decimal) -> Decimal Returns the largest integer less than or equal to the specified decimal number. d: A decimal number. Returns: The largest integer less than or equal to d. """ pass @staticmethod def IEEERemainder(x,y): """ IEEERemainder(x: float,y: float) -> float Returns the remainder resulting from the division of a specified number by another specified number. x: A dividend. y: A divisor. Returns: A number equal to x - (y Q),where Q is the quotient of x / y rounded to the nearest integer (if x / y falls halfway between two integers,the even integer is returned).If x - (y Q) is zero,the value +0 is returned if x is positive, or -0 if x is negative.If y=0,System.Double.NaN is returned. """ pass @staticmethod def Log(*__args): """ Log(a: float,newBase: float) -> float Returns the logarithm of a specified number in a specified base. a: A number whose logarithm is to be found. newBase: The base of the logarithm. Returns: One of the values in the following table. (+Infinity denotes System.Double.PositiveInfinity,-Infinity denotes System.Double.NegativeInfinity,and NaN denotes System.Double.NaN.)anewBaseReturn valuea> 0(0 <newBase< 1) -or-(newBase> 1)lognewBase(a)a< 0(any value)NaN(any value)newBase< 0NaNa != 1newBase=0NaNa != 1newBase=+InfinityNaNa=NaN(any value)NaN(any value)newBase=NaNNaN(any value)newBase=1NaNa=00 <newBase< 1 +Infinitya=0newBase> 1-Infinitya= +Infinity0 <newBase< 1-Infinitya= +InfinitynewBase> 1+Infinitya=1newBase= 00a=1newBase=+Infinity0 Log(d: float) -> float Returns the natural (base e) logarithm of a specified number. d: A number whose logarithm is to be found. Returns: One of the values in the following table. d parameterReturn value Positive The natural logarithm of d; that is,ln d,or log edZero System.Double.NegativeInfinityNegative System.Double.NaNEqual to System.Double.NaNSystem.Double.NaNEqual to System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def Log10(d): """ Log10(d: float) -> float Returns the base 10 logarithm of a specified number. d: A number whose logarithm is to be found. Returns: One of the values in the following table. d parameter Return value Positive The base 10 log of d; that is,log 10d. Zero System.Double.NegativeInfinityNegative System.Double.NaNEqual to System.Double.NaNSystem.Double.NaNEqual to System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def Max(val1,val2): """ Max(val1: UInt64,val2: UInt64) -> UInt64 Returns the larger of two 64-bit unsigned integers. val1: The first of two 64-bit unsigned integers to compare. val2: The second of two 64-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Int64,val2: Int64) -> Int64 Returns the larger of two 64-bit signed integers. val1: The first of two 64-bit signed integers to compare. val2: The second of two 64-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Single,val2: Single) -> Single Returns the larger of two single-precision floating-point numbers. val1: The first of two single-precision floating-point numbers to compare. val2: The second of two single-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is larger. If val1,or val2,or both val1 and val2 are equal to System.Single.NaN,System.Single.NaN is returned. Max(val1: Decimal,val2: Decimal) -> Decimal Returns the larger of two decimal numbers. val1: The first of two decimal numbers to compare. val2: The second of two decimal numbers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: float,val2: float) -> float Returns the larger of two double-precision floating-point numbers. val1: The first of two double-precision floating-point numbers to compare. val2: The second of two double-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is larger. If val1,val2,or both val1 and val2 are equal to System.Double.NaN,System.Double.NaN is returned. Max(val1: UInt32,val2: UInt32) -> UInt32 Returns the larger of two 32-bit unsigned integers. val1: The first of two 32-bit unsigned integers to compare. val2: The second of two 32-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Byte,val2: Byte) -> Byte Returns the larger of two 8-bit unsigned integers. val1: The first of two 8-bit unsigned integers to compare. val2: The second of two 8-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: SByte,val2: SByte) -> SByte Returns the larger of two 8-bit signed integers. val1: The first of two 8-bit signed integers to compare. val2: The second of two 8-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Int16,val2: Int16) -> Int16 Returns the larger of two 16-bit signed integers. val1: The first of two 16-bit signed integers to compare. val2: The second of two 16-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: int,val2: int) -> int Returns the larger of two 32-bit signed integers. val1: The first of two 32-bit signed integers to compare. val2: The second of two 32-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: UInt16,val2: UInt16) -> UInt16 Returns the larger of two 16-bit unsigned integers. val1: The first of two 16-bit unsigned integers to compare. val2: The second of two 16-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. """ pass @staticmethod def Min(val1,val2): """ Min(val1: UInt64,val2: UInt64) -> UInt64 Returns the smaller of two 64-bit unsigned integers. val1: The first of two 64-bit unsigned integers to compare. val2: The second of two 64-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Int64,val2: Int64) -> Int64 Returns the smaller of two 64-bit signed integers. val1: The first of two 64-bit signed integers to compare. val2: The second of two 64-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Single,val2: Single) -> Single Returns the smaller of two single-precision floating-point numbers. val1: The first of two single-precision floating-point numbers to compare. val2: The second of two single-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. If val1,val2,or both val1 and val2 are equal to System.Single.NaN,System.Single.NaN is returned. Min(val1: Decimal,val2: Decimal) -> Decimal Returns the smaller of two decimal numbers. val1: The first of two decimal numbers to compare. val2: The second of two decimal numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: float,val2: float) -> float Returns the smaller of two double-precision floating-point numbers. val1: The first of two double-precision floating-point numbers to compare. val2: The second of two double-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. If val1,val2,or both val1 and val2 are equal to System.Double.NaN,System.Double.NaN is returned. Min(val1: UInt32,val2: UInt32) -> UInt32 Returns the smaller of two 32-bit unsigned integers. val1: The first of two 32-bit unsigned integers to compare. val2: The second of two 32-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Byte,val2: Byte) -> Byte Returns the smaller of two 8-bit unsigned integers. val1: The first of two 8-bit unsigned integers to compare. val2: The second of two 8-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: SByte,val2: SByte) -> SByte Returns the smaller of two 8-bit signed integers. val1: The first of two 8-bit signed integers to compare. val2: The second of two 8-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Int16,val2: Int16) -> Int16 Returns the smaller of two 16-bit signed integers. val1: The first of two 16-bit signed integers to compare. val2: The second of two 16-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: int,val2: int) -> int Returns the smaller of two 32-bit signed integers. val1: The first of two 32-bit signed integers to compare. val2: The second of two 32-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: UInt16,val2: UInt16) -> UInt16 Returns the smaller of two 16-bit unsigned integers. val1: The first of two 16-bit unsigned integers to compare. val2: The second of two 16-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. """ pass @staticmethod def Pow(x,y): """ Pow(x: float,y: float) -> float Returns a specified number raised to the specified power. x: A double-precision floating-point number to be raised to a power. y: A double-precision floating-point number that specifies a power. Returns: The number x raised to the power y. """ pass @staticmethod def Round(*__args): """ Round(d: Decimal,decimals: int) -> Decimal Rounds a decimal value to a specified number of fractional digits. d: A decimal number to be rounded. decimals: The number of decimal places in the return value. Returns: The number nearest to d that contains a number of fractional digits equal to decimals. Round(d: Decimal) -> Decimal Rounds a decimal value to the nearest integral value. d: A decimal number to be rounded. Returns: The integer nearest parameter d. If the fractional component of d is halfway between two integers,one of which is even and the other odd,the even number is returned. Note that this method returns a System.Decimal instead of an integral type. Round(d: Decimal,decimals: int,mode: MidpointRounding) -> Decimal Rounds a decimal value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. d: A decimal number to be rounded. decimals: The number of decimal places in the return value. mode: Specification for how to round d if it is midway between two other numbers. Returns: The number nearest to d that contains a number of fractional digits equal to decimals. If d has fewer fractional digits than decimals,d is returned unchanged. Round(d: Decimal,mode: MidpointRounding) -> Decimal Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. d: A decimal number to be rounded. mode: Specification for how to round d if it is midway between two other numbers. Returns: The integer nearest d. If d is halfway between two numbers,one of which is even and the other odd,then mode determines which of the two is returned. Round(value: float,digits: int) -> float Rounds a double-precision floating-point value to a specified number of fractional digits. value: A double-precision floating-point number to be rounded. digits: The number of fractional digits in the return value. Returns: The number nearest to value that contains a number of fractional digits equal to digits. Round(a: float) -> float Rounds a double-precision floating-point value to the nearest integral value. a: A double-precision floating-point number to be rounded. Returns: The integer nearest a. If the fractional component of a is halfway between two integers,one of which is even and the other odd,then the even number is returned. Note that this method returns a System.Double instead of an integral type. Round(value: float,digits: int,mode: MidpointRounding) -> float Rounds a double-precision floating-point value to the specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. value: A double-precision floating-point number to be rounded. digits: The number of fractional digits in the return value. mode: Specification for how to round value if it is midway between two other numbers. Returns: The number nearest to value that has a number of fractional digits equal to digits. If value has fewer fractional digits than digits,value is returned unchanged. Round(value: float,mode: MidpointRounding) -> float Rounds a double-precision floating-point value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. value: A double-precision floating-point number to be rounded. mode: Specification for how to round value if it is midway between two other numbers. Returns: The integer nearest value. If value is halfway between two integers,one of which is even and the other odd,then mode determines which of the two is returned. """ pass @staticmethod def Sign(value): """ Sign(value: Single) -> int Returns a value indicating the sign of a single-precision floating-point number. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: float) -> int Returns a value indicating the sign of a double-precision floating-point number. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Decimal) -> int Returns a value indicating the sign of a decimal number. value: A signed decimal number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Int64) -> int Returns a value indicating the sign of a 64-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: SByte) -> int Returns a value indicating the sign of an 8-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Int16) -> int Returns a value indicating the sign of a 16-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: int) -> int Returns a value indicating the sign of a 32-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. """ pass @staticmethod def Sin(a): """ Sin(a: float) -> float Returns the sine of the specified angle. a: An angle,measured in radians. Returns: The sine of a. If a is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def Sinh(value): """ Sinh(value: float) -> float Returns the hyperbolic sine of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic sine of value. If value is equal to System.Double.NegativeInfinity,System.Double.PositiveInfinity,or System.Double.NaN,this method returns a System.Double equal to value. """ pass @staticmethod def Sqrt(d): """ Sqrt(d: float) -> float Returns the square root of a specified number. d: A number. Returns: One of the values in the following table. d parameter Return value Zero,or positive The positive square root of d. Negative System.Double.NaNEquals System.Double.NaNSystem.Double.NaNEquals System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def Tan(a): """ Tan(a: float) -> float Returns the tangent of the specified angle. a: An angle,measured in radians. Returns: The tangent of a. If a is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def Tanh(value): """ Tanh(value: float) -> float Returns the hyperbolic tangent of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic tangent of value. If value is equal to System.Double.NegativeInfinity,this method returns -1. If value is equal to System.Double.PositiveInfinity,this method returns 1. If value is equal to System.Double.NaN,this method returns System.Double.NaN. """ pass @staticmethod def Truncate(d): """ Truncate(d: float) -> float Calculates the integral part of a specified double-precision floating-point number. d: A number to truncate. Returns: The integral part of d; that is,the number that remains after any fractional digits have been discarded,or one of the values listed in the following table. dReturn valueSystem.Double.NaNSystem.Double.NaNSystem.Double.NegativeInfinitySystem.Doub le.NegativeInfinitySystem.Double.PositiveInfinitySystem.Double.PositiveInfinity Truncate(d: Decimal) -> Decimal Calculates the integral part of a specified decimal number. d: A number to truncate. Returns: The integral part of d; that is,the number that remains after any fractional digits have been discarded. """ pass E=2.7182818284590451 PI=3.1415926535897931 __all__=[ 'Abs', 'Acos', 'Asin', 'Atan', 'Atan2', 'BigMul', 'Ceiling', 'Cos', 'Cosh', 'DivRem', 'E', 'Exp', 'Floor', 'IEEERemainder', 'Log', 'Log10', 'Max', 'Min', 'PI', 'Pow', 'Round', 'Sign', 'Sin', 'Sinh', 'Sqrt', 'Tan', 'Tanh', 'Truncate', ]
class Math(object): """ Provides constants and static methods for trigonometric,logarithmic,and other common mathematical functions. """ @staticmethod def abs(value): """ Abs(value: Single) -> Single Returns the absolute value of a single-precision floating-point number. value: A number that is greater than or equal to System.Single.MinValue,but less than or equal to System.Single.MaxValue. Abs(value: float) -> float Returns the absolute value of a double-precision floating-point number. value: A number that is greater than or equal to System.Double.MinValue,but less than or equal to System.Double.MaxValue. Abs(value: Decimal) -> Decimal Returns the absolute value of a System.Decimal number. value: A number that is greater than or equal to System.Decimal.MinValue,but less than or equal to System.Decimal.MaxValue. Abs(value: Int64) -> Int64 Returns the absolute value of a 64-bit signed integer. value: A number that is greater than System.Int64.MinValue,but less than or equal to System.Int64.MaxValue. Abs(value: SByte) -> SByte Returns the absolute value of an 8-bit signed integer. value: A number that is greater than System.SByte.MinValue,but less than or equal to System.SByte.MaxValue. Abs(value: Int16) -> Int16 Returns the absolute value of a 16-bit signed integer. value: A number that is greater than System.Int16.MinValue,but less than or equal to System.Int16.MaxValue. Abs(value: int) -> int Returns the absolute value of a 32-bit signed integer. value: A number that is greater than System.Int32.MinValue,but less than or equal to System.Int32.MaxValue. """ pass @staticmethod def acos(d): """ Acos(d: float) -> float Returns the angle whose cosine is the specified number. d: A number representing a cosine,where d must be greater than or equal to -1, but less than or equal to 1. -1 or d > 1 or d equals System.Double.NaN. """ pass @staticmethod def asin(d): """ Asin(d: float) -> float Returns the angle whose sine is the specified number. d: A number representing a sine,where d must be greater than or equal to -1,but less than or equal to 1. if d < -1 or d > 1 or d equals System.Double.NaN. """ pass @staticmethod def atan(d): """ Atan(d: float) -> float Returns the angle whose tangent is the specified number. d: A number representing a tangent. to double precision (1.5707963267949) if d equals System.Double.PositiveInfinity. """ pass @staticmethod def atan2(y, x): """ Atan2(y: float,x: float) -> float Returns the angle whose tangent is the quotient of two specified numbers. y: The y coordinate of a point. x: The x coordinate of a point. (x,y) is a point in the Cartesian plane. Observe the following: For (x,y) in the boundaries of the quadrants,the return value is the following:If y is 0 System.Double.NaN,or if x and y are either System.Double.PositiveInfinity or System.Double.NegativeInfinity,the method returns System.Double.NaN. """ pass @staticmethod def big_mul(a, b): """ BigMul(a: int,b: int) -> Int64 Produces the full product of two 32-bit numbers. a: The first number to multiply. b: The second number to multiply. Returns: The number containing the product of the specified numbers. """ pass @staticmethod def ceiling(*__args): """ Ceiling(a: float) -> float Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number. a: A double-precision floating-point number. Returns: The smallest integral value that is greater than or equal to a. If a is equal to System.Double.NaN,System.Double.NegativeInfinity,or System.Double.PositiveInfinity,that value is returned. Note that this method returns a System.Double instead of an integral type. Ceiling(d: Decimal) -> Decimal Returns the smallest integral value that is greater than or equal to the specified decimal number. d: A decimal number. Returns: The smallest integral value that is greater than or equal to d. Note that this method returns a System.Decimal instead of an integral type. """ pass @staticmethod def cos(d): """ Cos(d: float) -> float Returns the cosine of the specified angle. d: An angle,measured in radians. Returns: The cosine of d. If d is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def cosh(value): """ Cosh(value: float) -> float Returns the hyperbolic cosine of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic cosine of value. If value is equal to System.Double.NegativeInfinity or System.Double.PositiveInfinity, System.Double.PositiveInfinity is returned. If value is equal to System.Double.NaN,System.Double.NaN is returned. """ pass @staticmethod def div_rem(a, b, result): """ DivRem(a: Int64,b: Int64) -> (Int64,Int64) Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter. a: The dividend. b: The divisor. Returns: The quotient of the specified numbers. DivRem(a: int,b: int) -> (int,int) Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter. a: The dividend. b: The divisor. Returns: The quotient of the specified numbers. """ pass @staticmethod def exp(d): """ Exp(d: float) -> float Returns e raised to the specified power. d: A number specifying a power. Returns: The number e raised to the power d. If d equals System.Double.NaN or System.Double.PositiveInfinity,that value is returned. If d equals System.Double.NegativeInfinity,0 is returned. """ pass @staticmethod def floor(d): """ Floor(d: float) -> float Returns the largest integer less than or equal to the specified double-precision floating-point number. d: A double-precision floating-point number. Returns: The largest integer less than or equal to d. If d is equal to System.Double.NaN,System.Double.NegativeInfinity,or System.Double.PositiveInfinity,that value is returned. Floor(d: Decimal) -> Decimal Returns the largest integer less than or equal to the specified decimal number. d: A decimal number. Returns: The largest integer less than or equal to d. """ pass @staticmethod def ieee_remainder(x, y): """ IEEERemainder(x: float,y: float) -> float Returns the remainder resulting from the division of a specified number by another specified number. x: A dividend. y: A divisor. Returns: A number equal to x - (y Q),where Q is the quotient of x / y rounded to the nearest integer (if x / y falls halfway between two integers,the even integer is returned).If x - (y Q) is zero,the value +0 is returned if x is positive, or -0 if x is negative.If y=0,System.Double.NaN is returned. """ pass @staticmethod def log(*__args): """ Log(a: float,newBase: float) -> float Returns the logarithm of a specified number in a specified base. a: A number whose logarithm is to be found. newBase: The base of the logarithm. Returns: One of the values in the following table. (+Infinity denotes System.Double.PositiveInfinity,-Infinity denotes System.Double.NegativeInfinity,and NaN denotes System.Double.NaN.)anewBaseReturn valuea> 0(0 <newBase< 1) -or-(newBase> 1)lognewBase(a)a< 0(any value)NaN(any value)newBase< 0NaNa != 1newBase=0NaNa != 1newBase=+InfinityNaNa=NaN(any value)NaN(any value)newBase=NaNNaN(any value)newBase=1NaNa=00 <newBase< 1 +Infinitya=0newBase> 1-Infinitya= +Infinity0 <newBase< 1-Infinitya= +InfinitynewBase> 1+Infinitya=1newBase= 00a=1newBase=+Infinity0 Log(d: float) -> float Returns the natural (base e) logarithm of a specified number. d: A number whose logarithm is to be found. Returns: One of the values in the following table. d parameterReturn value Positive The natural logarithm of d; that is,ln d,or log edZero System.Double.NegativeInfinityNegative System.Double.NaNEqual to System.Double.NaNSystem.Double.NaNEqual to System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def log10(d): """ Log10(d: float) -> float Returns the base 10 logarithm of a specified number. d: A number whose logarithm is to be found. Returns: One of the values in the following table. d parameter Return value Positive The base 10 log of d; that is,log 10d. Zero System.Double.NegativeInfinityNegative System.Double.NaNEqual to System.Double.NaNSystem.Double.NaNEqual to System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def max(val1, val2): """ Max(val1: UInt64,val2: UInt64) -> UInt64 Returns the larger of two 64-bit unsigned integers. val1: The first of two 64-bit unsigned integers to compare. val2: The second of two 64-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Int64,val2: Int64) -> Int64 Returns the larger of two 64-bit signed integers. val1: The first of two 64-bit signed integers to compare. val2: The second of two 64-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Single,val2: Single) -> Single Returns the larger of two single-precision floating-point numbers. val1: The first of two single-precision floating-point numbers to compare. val2: The second of two single-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is larger. If val1,or val2,or both val1 and val2 are equal to System.Single.NaN,System.Single.NaN is returned. Max(val1: Decimal,val2: Decimal) -> Decimal Returns the larger of two decimal numbers. val1: The first of two decimal numbers to compare. val2: The second of two decimal numbers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: float,val2: float) -> float Returns the larger of two double-precision floating-point numbers. val1: The first of two double-precision floating-point numbers to compare. val2: The second of two double-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is larger. If val1,val2,or both val1 and val2 are equal to System.Double.NaN,System.Double.NaN is returned. Max(val1: UInt32,val2: UInt32) -> UInt32 Returns the larger of two 32-bit unsigned integers. val1: The first of two 32-bit unsigned integers to compare. val2: The second of two 32-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Byte,val2: Byte) -> Byte Returns the larger of two 8-bit unsigned integers. val1: The first of two 8-bit unsigned integers to compare. val2: The second of two 8-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: SByte,val2: SByte) -> SByte Returns the larger of two 8-bit signed integers. val1: The first of two 8-bit signed integers to compare. val2: The second of two 8-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: Int16,val2: Int16) -> Int16 Returns the larger of two 16-bit signed integers. val1: The first of two 16-bit signed integers to compare. val2: The second of two 16-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: int,val2: int) -> int Returns the larger of two 32-bit signed integers. val1: The first of two 32-bit signed integers to compare. val2: The second of two 32-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is larger. Max(val1: UInt16,val2: UInt16) -> UInt16 Returns the larger of two 16-bit unsigned integers. val1: The first of two 16-bit unsigned integers to compare. val2: The second of two 16-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is larger. """ pass @staticmethod def min(val1, val2): """ Min(val1: UInt64,val2: UInt64) -> UInt64 Returns the smaller of two 64-bit unsigned integers. val1: The first of two 64-bit unsigned integers to compare. val2: The second of two 64-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Int64,val2: Int64) -> Int64 Returns the smaller of two 64-bit signed integers. val1: The first of two 64-bit signed integers to compare. val2: The second of two 64-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Single,val2: Single) -> Single Returns the smaller of two single-precision floating-point numbers. val1: The first of two single-precision floating-point numbers to compare. val2: The second of two single-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. If val1,val2,or both val1 and val2 are equal to System.Single.NaN,System.Single.NaN is returned. Min(val1: Decimal,val2: Decimal) -> Decimal Returns the smaller of two decimal numbers. val1: The first of two decimal numbers to compare. val2: The second of two decimal numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: float,val2: float) -> float Returns the smaller of two double-precision floating-point numbers. val1: The first of two double-precision floating-point numbers to compare. val2: The second of two double-precision floating-point numbers to compare. Returns: Parameter val1 or val2,whichever is smaller. If val1,val2,or both val1 and val2 are equal to System.Double.NaN,System.Double.NaN is returned. Min(val1: UInt32,val2: UInt32) -> UInt32 Returns the smaller of two 32-bit unsigned integers. val1: The first of two 32-bit unsigned integers to compare. val2: The second of two 32-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Byte,val2: Byte) -> Byte Returns the smaller of two 8-bit unsigned integers. val1: The first of two 8-bit unsigned integers to compare. val2: The second of two 8-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: SByte,val2: SByte) -> SByte Returns the smaller of two 8-bit signed integers. val1: The first of two 8-bit signed integers to compare. val2: The second of two 8-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: Int16,val2: Int16) -> Int16 Returns the smaller of two 16-bit signed integers. val1: The first of two 16-bit signed integers to compare. val2: The second of two 16-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: int,val2: int) -> int Returns the smaller of two 32-bit signed integers. val1: The first of two 32-bit signed integers to compare. val2: The second of two 32-bit signed integers to compare. Returns: Parameter val1 or val2,whichever is smaller. Min(val1: UInt16,val2: UInt16) -> UInt16 Returns the smaller of two 16-bit unsigned integers. val1: The first of two 16-bit unsigned integers to compare. val2: The second of two 16-bit unsigned integers to compare. Returns: Parameter val1 or val2,whichever is smaller. """ pass @staticmethod def pow(x, y): """ Pow(x: float,y: float) -> float Returns a specified number raised to the specified power. x: A double-precision floating-point number to be raised to a power. y: A double-precision floating-point number that specifies a power. Returns: The number x raised to the power y. """ pass @staticmethod def round(*__args): """ Round(d: Decimal,decimals: int) -> Decimal Rounds a decimal value to a specified number of fractional digits. d: A decimal number to be rounded. decimals: The number of decimal places in the return value. Returns: The number nearest to d that contains a number of fractional digits equal to decimals. Round(d: Decimal) -> Decimal Rounds a decimal value to the nearest integral value. d: A decimal number to be rounded. Returns: The integer nearest parameter d. If the fractional component of d is halfway between two integers,one of which is even and the other odd,the even number is returned. Note that this method returns a System.Decimal instead of an integral type. Round(d: Decimal,decimals: int,mode: MidpointRounding) -> Decimal Rounds a decimal value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. d: A decimal number to be rounded. decimals: The number of decimal places in the return value. mode: Specification for how to round d if it is midway between two other numbers. Returns: The number nearest to d that contains a number of fractional digits equal to decimals. If d has fewer fractional digits than decimals,d is returned unchanged. Round(d: Decimal,mode: MidpointRounding) -> Decimal Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. d: A decimal number to be rounded. mode: Specification for how to round d if it is midway between two other numbers. Returns: The integer nearest d. If d is halfway between two numbers,one of which is even and the other odd,then mode determines which of the two is returned. Round(value: float,digits: int) -> float Rounds a double-precision floating-point value to a specified number of fractional digits. value: A double-precision floating-point number to be rounded. digits: The number of fractional digits in the return value. Returns: The number nearest to value that contains a number of fractional digits equal to digits. Round(a: float) -> float Rounds a double-precision floating-point value to the nearest integral value. a: A double-precision floating-point number to be rounded. Returns: The integer nearest a. If the fractional component of a is halfway between two integers,one of which is even and the other odd,then the even number is returned. Note that this method returns a System.Double instead of an integral type. Round(value: float,digits: int,mode: MidpointRounding) -> float Rounds a double-precision floating-point value to the specified number of fractional digits. A parameter specifies how to round the value if it is midway between two other numbers. value: A double-precision floating-point number to be rounded. digits: The number of fractional digits in the return value. mode: Specification for how to round value if it is midway between two other numbers. Returns: The number nearest to value that has a number of fractional digits equal to digits. If value has fewer fractional digits than digits,value is returned unchanged. Round(value: float,mode: MidpointRounding) -> float Rounds a double-precision floating-point value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers. value: A double-precision floating-point number to be rounded. mode: Specification for how to round value if it is midway between two other numbers. Returns: The integer nearest value. If value is halfway between two integers,one of which is even and the other odd,then mode determines which of the two is returned. """ pass @staticmethod def sign(value): """ Sign(value: Single) -> int Returns a value indicating the sign of a single-precision floating-point number. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: float) -> int Returns a value indicating the sign of a double-precision floating-point number. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Decimal) -> int Returns a value indicating the sign of a decimal number. value: A signed decimal number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Int64) -> int Returns a value indicating the sign of a 64-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: SByte) -> int Returns a value indicating the sign of an 8-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: Int16) -> int Returns a value indicating the sign of a 16-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. Sign(value: int) -> int Returns a value indicating the sign of a 32-bit signed integer. value: A signed number. Returns: A number that indicates the sign of value,as shown in the following table.Return value Meaning -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. """ pass @staticmethod def sin(a): """ Sin(a: float) -> float Returns the sine of the specified angle. a: An angle,measured in radians. Returns: The sine of a. If a is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def sinh(value): """ Sinh(value: float) -> float Returns the hyperbolic sine of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic sine of value. If value is equal to System.Double.NegativeInfinity,System.Double.PositiveInfinity,or System.Double.NaN,this method returns a System.Double equal to value. """ pass @staticmethod def sqrt(d): """ Sqrt(d: float) -> float Returns the square root of a specified number. d: A number. Returns: One of the values in the following table. d parameter Return value Zero,or positive The positive square root of d. Negative System.Double.NaNEquals System.Double.NaNSystem.Double.NaNEquals System.Double.PositiveInfinitySystem.Double.PositiveInfinity """ pass @staticmethod def tan(a): """ Tan(a: float) -> float Returns the tangent of the specified angle. a: An angle,measured in radians. Returns: The tangent of a. If a is equal to System.Double.NaN, System.Double.NegativeInfinity,or System.Double.PositiveInfinity,this method returns System.Double.NaN. """ pass @staticmethod def tanh(value): """ Tanh(value: float) -> float Returns the hyperbolic tangent of the specified angle. value: An angle,measured in radians. Returns: The hyperbolic tangent of value. If value is equal to System.Double.NegativeInfinity,this method returns -1. If value is equal to System.Double.PositiveInfinity,this method returns 1. If value is equal to System.Double.NaN,this method returns System.Double.NaN. """ pass @staticmethod def truncate(d): """ Truncate(d: float) -> float Calculates the integral part of a specified double-precision floating-point number. d: A number to truncate. Returns: The integral part of d; that is,the number that remains after any fractional digits have been discarded,or one of the values listed in the following table. dReturn valueSystem.Double.NaNSystem.Double.NaNSystem.Double.NegativeInfinitySystem.Doub le.NegativeInfinitySystem.Double.PositiveInfinitySystem.Double.PositiveInfinity Truncate(d: Decimal) -> Decimal Calculates the integral part of a specified decimal number. d: A number to truncate. Returns: The integral part of d; that is,the number that remains after any fractional digits have been discarded. """ pass e = 2.718281828459045 pi = 3.141592653589793 __all__ = ['Abs', 'Acos', 'Asin', 'Atan', 'Atan2', 'BigMul', 'Ceiling', 'Cos', 'Cosh', 'DivRem', 'E', 'Exp', 'Floor', 'IEEERemainder', 'Log', 'Log10', 'Max', 'Min', 'PI', 'Pow', 'Round', 'Sign', 'Sin', 'Sinh', 'Sqrt', 'Tan', 'Tanh', 'Truncate']
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Partial implementation for placing the messages support stub file in the archive.""" load( "@build_bazel_rules_apple//apple/internal:file_support.bzl", "file_support", ) load( "@build_bazel_rules_apple//apple/internal:intermediates.bzl", "intermediates", ) load( "@build_bazel_rules_apple//apple/internal:processor.bzl", "processor", ) load( "@bazel_skylib//lib:partial.bzl", "partial", ) _AppleMessagesStubInfo = provider( doc = """ Private provider to propagate the messages stub that needs to be package in the iOS archive. """, fields = { "binary": """ File artifact that contains a reference to the stub binary that needs to be packaged in the iOS archive. """, }, ) def _messages_stub_partial_impl(ctx, binary_artifact, package_messages_support): """Implementation for the messages support stub processing partial.""" bundle_files = [] providers = [] if package_messages_support: # TODO(kaipi): Make extensions a parameter of the partial, not a hardcoded lookup in the # partial. if hasattr(ctx.attr, "extensions"): extension_binaries = [ x[_AppleMessagesStubInfo].binary for x in ctx.attr.extensions if _AppleMessagesStubInfo in x ] elif hasattr(ctx.attr, "extension") and _AppleMessagesStubInfo in ctx.attr.extension: extension_binaries = [ctx.attr.extension[_AppleMessagesStubInfo].binary] else: extension_binaries = [] if extension_binaries: bundle_files.append( ( processor.location.archive, "MessagesApplicationExtensionSupport", depset([extension_binaries[0]]), ), ) if binary_artifact: intermediate_file = intermediates.file( ctx.actions, ctx.label.name, "MessagesApplicationSupportStub", ) file_support.symlink(ctx, binary_artifact, intermediate_file) bundle_files.append( ( processor.location.archive, "MessagesApplicationSupport", depset([intermediate_file]), ), ) elif binary_artifact: intermediate_file = intermediates.file( ctx.actions, ctx.label.name, "MessagesApplicationExtensionSupportStub", ) file_support.symlink(ctx, binary_artifact, intermediate_file) providers.append(_AppleMessagesStubInfo(binary = intermediate_file)) return struct( bundle_files = bundle_files, providers = providers, ) def messages_stub_partial(binary_artifact = None, package_messages_support = False): """Constructor for the messages support stub processing partial. This partial copies the messages support stubs into the expected location for iOS archives. Args: binary_artifact: The stub binary to copy. package_messages_support: Whether to package the messages stub binary in the archive root. Returns: A partial that returns the bundle location of the stub binaries. """ return partial.make( _messages_stub_partial_impl, binary_artifact = binary_artifact, package_messages_support = package_messages_support, )
"""Partial implementation for placing the messages support stub file in the archive.""" load('@build_bazel_rules_apple//apple/internal:file_support.bzl', 'file_support') load('@build_bazel_rules_apple//apple/internal:intermediates.bzl', 'intermediates') load('@build_bazel_rules_apple//apple/internal:processor.bzl', 'processor') load('@bazel_skylib//lib:partial.bzl', 'partial') __apple_messages_stub_info = provider(doc='\nPrivate provider to propagate the messages stub that needs to be package in the iOS archive.\n', fields={'binary': '\nFile artifact that contains a reference to the stub binary that needs to be packaged in the iOS\narchive.\n'}) def _messages_stub_partial_impl(ctx, binary_artifact, package_messages_support): """Implementation for the messages support stub processing partial.""" bundle_files = [] providers = [] if package_messages_support: if hasattr(ctx.attr, 'extensions'): extension_binaries = [x[_AppleMessagesStubInfo].binary for x in ctx.attr.extensions if _AppleMessagesStubInfo in x] elif hasattr(ctx.attr, 'extension') and _AppleMessagesStubInfo in ctx.attr.extension: extension_binaries = [ctx.attr.extension[_AppleMessagesStubInfo].binary] else: extension_binaries = [] if extension_binaries: bundle_files.append((processor.location.archive, 'MessagesApplicationExtensionSupport', depset([extension_binaries[0]]))) if binary_artifact: intermediate_file = intermediates.file(ctx.actions, ctx.label.name, 'MessagesApplicationSupportStub') file_support.symlink(ctx, binary_artifact, intermediate_file) bundle_files.append((processor.location.archive, 'MessagesApplicationSupport', depset([intermediate_file]))) elif binary_artifact: intermediate_file = intermediates.file(ctx.actions, ctx.label.name, 'MessagesApplicationExtensionSupportStub') file_support.symlink(ctx, binary_artifact, intermediate_file) providers.append(__apple_messages_stub_info(binary=intermediate_file)) return struct(bundle_files=bundle_files, providers=providers) def messages_stub_partial(binary_artifact=None, package_messages_support=False): """Constructor for the messages support stub processing partial. This partial copies the messages support stubs into the expected location for iOS archives. Args: binary_artifact: The stub binary to copy. package_messages_support: Whether to package the messages stub binary in the archive root. Returns: A partial that returns the bundle location of the stub binaries. """ return partial.make(_messages_stub_partial_impl, binary_artifact=binary_artifact, package_messages_support=package_messages_support)
## Error to exception # The intention is to return an error # from def withdraw(self, amount): if amount > self.balance: return -1 else: self.balance -= amount return 0 # to def withdraw(self, amount): if amount > self.balance: raise BalanceException() # or Exception self.balance -= amount # now wrap the caller with try/Except ## Exception to test # The intention is to test # from def getValueForPeriod(periodNumber): try: return values[periodNumber] except IndexError: return 0 # to def getValueForPeriod(self, periodNumber): if periodNumber >= len(self.values): return 0 return self.values[periodNumber]
def withdraw(self, amount): if amount > self.balance: return -1 else: self.balance -= amount return 0 def withdraw(self, amount): if amount > self.balance: raise balance_exception() self.balance -= amount def get_value_for_period(periodNumber): try: return values[periodNumber] except IndexError: return 0 def get_value_for_period(self, periodNumber): if periodNumber >= len(self.values): return 0 return self.values[periodNumber]
# -*- coding: utf-8 -*- __version_info__ = '0.6.3' __version__ = '0.6.3' version = '0.6.3'
__version_info__ = '0.6.3' __version__ = '0.6.3' version = '0.6.3'
''' Building your own digit recognition model You've reached the final exercise of the course - you now know everything you need to build an accurate model to recognize handwritten digits! We've already done the basic manipulation of the MNIST dataset shown in the video, so you have X and y loaded and ready to model with. Sequential and Dense from keras are also pre-imported. To add an extra challenge, we've loaded only 2500 images, rather than 60000 which you will see in some published results. Deep learning models perform better with more data, however, they also take longer to train, especially when they start becoming more complex. If you have a computer with a CUDA compatible GPU, you can take advantage of it to improve computation time. If you don't have a GPU, no problem! You can set up a deep learning environment in the cloud that can run your models on a GPU. Here is a blog post by Dan that explains how to do this - check it out after completing this exercise! It is a great next step as you continue your deep learning journey. INSTRUCTIONS 100XP Create a Sequential object to start your model. Call this model. Add the first Dense hidden layer of 50 units to your model with 'relu' activation. For this data, the input_shape is (784,). Add a second Dense hidden layer with 50 units and a 'relu' activation function. Add the output layer. Your activation function should be 'softmax', and the number of nodes in this layer should be the same as the number of possible outputs in this case: 10. Compile model as you have done with previous models: Using 'adam' as the optimizer, 'categorical_crossentropy' for the loss, and metrics=['accuracy']. Fit the model using X and y using a validation_split of 0.3. ''' # Create the model: model model = Sequential() # Add the first hidden layer model.add(Dense(50, activation='relu', input_shape=(784,))) # Add the second hidden layer model.add(Dense(50, activation='relu', input_shape=(784,))) # Add the output layer model.add(Dense(10, activation='softmax')) # Compile the model model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']) # Fit the model model.fit(X, y, validation_split=0.3)
""" Building your own digit recognition model You've reached the final exercise of the course - you now know everything you need to build an accurate model to recognize handwritten digits! We've already done the basic manipulation of the MNIST dataset shown in the video, so you have X and y loaded and ready to model with. Sequential and Dense from keras are also pre-imported. To add an extra challenge, we've loaded only 2500 images, rather than 60000 which you will see in some published results. Deep learning models perform better with more data, however, they also take longer to train, especially when they start becoming more complex. If you have a computer with a CUDA compatible GPU, you can take advantage of it to improve computation time. If you don't have a GPU, no problem! You can set up a deep learning environment in the cloud that can run your models on a GPU. Here is a blog post by Dan that explains how to do this - check it out after completing this exercise! It is a great next step as you continue your deep learning journey. INSTRUCTIONS 100XP Create a Sequential object to start your model. Call this model. Add the first Dense hidden layer of 50 units to your model with 'relu' activation. For this data, the input_shape is (784,). Add a second Dense hidden layer with 50 units and a 'relu' activation function. Add the output layer. Your activation function should be 'softmax', and the number of nodes in this layer should be the same as the number of possible outputs in this case: 10. Compile model as you have done with previous models: Using 'adam' as the optimizer, 'categorical_crossentropy' for the loss, and metrics=['accuracy']. Fit the model using X and y using a validation_split of 0.3. """ model = sequential() model.add(dense(50, activation='relu', input_shape=(784,))) model.add(dense(50, activation='relu', input_shape=(784,))) model.add(dense(10, activation='softmax')) model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']) model.fit(X, y, validation_split=0.3)
''' Given a day of the week encoded as 0=Sun, 1=Mon, 2=Tue, ...6=Sat, and a boolean indicating if we are on vacation, return a string of the form "7:00" indicating when the alarm clock should ring. Weekdays, the alarm should be "7:00" and on the weekend it should be "10:00". Unless we are on vacation -- then on weekdays it should be "10:00" and weekends it should be "off". ''' def alarm_clock(day, vacation): if vacation: if day < 6 and day != 0: return "10:00" return "off" else: if day < 6 and day != 0: return "7:00" return "10:00"
""" Given a day of the week encoded as 0=Sun, 1=Mon, 2=Tue, ...6=Sat, and a boolean indicating if we are on vacation, return a string of the form "7:00" indicating when the alarm clock should ring. Weekdays, the alarm should be "7:00" and on the weekend it should be "10:00". Unless we are on vacation -- then on weekdays it should be "10:00" and weekends it should be "off". """ def alarm_clock(day, vacation): if vacation: if day < 6 and day != 0: return '10:00' return 'off' else: if day < 6 and day != 0: return '7:00' return '10:00'
""" Created on Jan 28 16:58 2020 @author: nishit """
""" Created on Jan 28 16:58 2020 @author: nishit """
test = { 'name': 'remove', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> (remove 3 nil) () """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (remove 2 '(1 3 2)) (1 3) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (remove 1 '(1 3 2)) (3 2) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (remove 42 '(1 3 2)) (1 3 2) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (remove 3 '(1 3 3 7)) (1 7) """, 'hidden': False, 'locked': False } ], 'scored': True, 'setup': r""" scm> (load-all ".") """, 'teardown': '', 'type': 'scheme' } ] }
test = {'name': 'remove', 'points': 1, 'suites': [{'cases': [{'code': '\n scm> (remove 3 nil)\n ()\n ', 'hidden': False, 'locked': False}, {'code': "\n scm> (remove 2 '(1 3 2))\n (1 3)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (remove 1 '(1 3 2))\n (3 2)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (remove 42 '(1 3 2))\n (1 3 2)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (remove 3 '(1 3 3 7))\n (1 7)\n ", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '\n scm> (load-all ".")\n ', 'teardown': '', 'type': 'scheme'}]}
# # PySNMP MIB module ARISTA-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ARISTA-QOS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:09:19 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) # aristaMibs, = mibBuilder.importSymbols("ARISTA-SMI-MIB", "aristaMibs") Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion") PhysicalIndexOrZero, = mibBuilder.importSymbols("ENTITY-MIB", "PhysicalIndexOrZero") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") iso, NotificationType, ObjectIdentity, Bits, MibIdentifier, ModuleIdentity, IpAddress, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, TimeTicks, Counter64, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "ObjectIdentity", "Bits", "MibIdentifier", "ModuleIdentity", "IpAddress", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "TimeTicks", "Counter64", "Integer32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") aristaQosMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 30065, 3, 13)) aristaQosMib.setRevisions(('2016-07-22 00:00', '2016-03-21 00:00', '2014-08-15 00:00', '2014-05-22 00:00', '2013-06-01 00:00',)) if mibBuilder.loadTexts: aristaQosMib.setLastUpdated('201607220000Z') if mibBuilder.loadTexts: aristaQosMib.setOrganization('Arista Networks, Inc.') class AristaQosMapType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("controlPlane", 1), ("dataPlane", 2)) class AristaQosShortId(TextualConvention, OctetString): status = 'current' displayHint = '255a' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 40) aristaQosMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1)) aristaQosMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2)) aristaClassMapTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1), ) if mibBuilder.loadTexts: aristaClassMapTable.setStatus('current') aristaClassMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaClassMapId"), (0, "ARISTA-QOS-MIB", "aristaClassMapType")) if mibBuilder.loadTexts: aristaClassMapEntry.setStatus('current') aristaClassMapId = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 1), AristaQosShortId()) if mibBuilder.loadTexts: aristaClassMapId.setStatus('current') aristaClassMapType = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 2), AristaQosMapType()) if mibBuilder.loadTexts: aristaClassMapType.setStatus('current') aristaClassMapName = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaClassMapName.setStatus('current') aristaClassMapMatchCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("matchConditionAny", 1), ("matchConditionAll", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaClassMapMatchCondition.setStatus('current') aristaClassMapMatchTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2), ) if mibBuilder.loadTexts: aristaClassMapMatchTable.setStatus('current') aristaClassMapMatchEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaClassMapId"), (0, "ARISTA-QOS-MIB", "aristaClassMapType"), (0, "ARISTA-QOS-MIB", "aristaClassMapMatchIndex")) if mibBuilder.loadTexts: aristaClassMapMatchEntry.setStatus('current') aristaClassMapMatchIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))) if mibBuilder.loadTexts: aristaClassMapMatchIndex.setStatus('current') aristaClassMapMatchType = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipv4AccessGroup", 1), ("ipv6AccessGroup", 2), ("vlan", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaClassMapMatchType.setStatus('current') aristaClassMapMatchName = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaClassMapMatchName.setStatus('current') aristaPolicyMapTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3), ) if mibBuilder.loadTexts: aristaPolicyMapTable.setStatus('current') aristaPolicyMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaPolicyMapId"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapType")) if mibBuilder.loadTexts: aristaPolicyMapEntry.setStatus('current') aristaPolicyMapId = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 1), AristaQosShortId()) if mibBuilder.loadTexts: aristaPolicyMapId.setStatus('current') aristaPolicyMapType = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 2), AristaQosMapType()) if mibBuilder.loadTexts: aristaPolicyMapType.setStatus('current') aristaPolicyMapName = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaPolicyMapName.setStatus('current') aristaPolicyMapClassTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4), ) if mibBuilder.loadTexts: aristaPolicyMapClassTable.setStatus('current') aristaPolicyMapClassEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaPolicyMapId"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapType"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapClassIndex")) if mibBuilder.loadTexts: aristaPolicyMapClassEntry.setStatus('current') aristaPolicyMapClassIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: aristaPolicyMapClassIndex.setStatus('current') aristaPolicyMapClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1, 2), AristaQosShortId()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaPolicyMapClassId.setStatus('current') aristaPolicyMapActionTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5), ) if mibBuilder.loadTexts: aristaPolicyMapActionTable.setStatus('current') aristaPolicyMapActionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaPolicyMapId"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapType"), (0, "ARISTA-QOS-MIB", "aristaClassMapId"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapActionType")) if mibBuilder.loadTexts: aristaPolicyMapActionEntry.setStatus('current') aristaPolicyMapActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("actionSetShape", 1), ("actionSetBandwidth", 2), ("actionSetCos", 3), ("actionSetDscp", 4), ("actionSetTc", 5)))) if mibBuilder.loadTexts: aristaPolicyMapActionType.setStatus('current') aristaPolicyMapActionRateUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("rateUnitNone", 0), ("rateUnitPps", 1), ("rateUnitKbps", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaPolicyMapActionRateUnit.setStatus('current') aristaPolicyMapActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaPolicyMapActionValue.setStatus('current') aristaServicePolicyTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6), ) if mibBuilder.loadTexts: aristaServicePolicyTable.setStatus('current') aristaServicePolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaServicePolicyIfIndex"), (0, "ARISTA-QOS-MIB", "aristaServicePolicyDirection")) if mibBuilder.loadTexts: aristaServicePolicyEntry.setStatus('current') aristaServicePolicyIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: aristaServicePolicyIfIndex.setStatus('current') aristaServicePolicyDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("input", 1), ("output", 2)))) if mibBuilder.loadTexts: aristaServicePolicyDirection.setStatus('current') aristaServicePolicyMapId = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 3), AristaQosShortId()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaServicePolicyMapId.setStatus('current') aristaServicePolicyMapType = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 4), AristaQosMapType()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaServicePolicyMapType.setStatus('current') aristaQosStatsTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7), ) if mibBuilder.loadTexts: aristaQosStatsTable.setStatus('current') aristaQosStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaPolicyMapId"), (0, "ARISTA-QOS-MIB", "aristaPolicyMapType"), (0, "ARISTA-QOS-MIB", "aristaClassMapId"), (0, "ARISTA-QOS-MIB", "aristaServicePolicyDirection")) if mibBuilder.loadTexts: aristaQosStatsEntry.setStatus('current') aristaQosPktsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaQosPktsDropped.setStatus('current') aristaQosPktsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaQosPktsSent.setStatus('current') aristaQosPktsMatched = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaQosPktsMatched.setStatus('current') aristaEcnCounterTable = MibTable((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8), ) if mibBuilder.loadTexts: aristaEcnCounterTable.setStatus('current') aristaEcnCounterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1), ).setIndexNames((0, "ARISTA-QOS-MIB", "aristaEcnCounterDescriptor")) if mibBuilder.loadTexts: aristaEcnCounterEntry.setStatus('current') aristaEcnCounterDescriptor = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))) if mibBuilder.loadTexts: aristaEcnCounterDescriptor.setStatus('current') aristaEcnCounterValue = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaEcnCounterValue.setStatus('current') aristaEcnCounterEntity = MibTableColumn((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 3), PhysicalIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: aristaEcnCounterEntity.setStatus('current') aristaQosMibCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 1)) aristaQosMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2)) aristaQosMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 1, 1)).setObjects(("ARISTA-QOS-MIB", "aristaClassMapGroup"), ("ARISTA-QOS-MIB", "aristaPolicyMapGroup"), ("ARISTA-QOS-MIB", "aristaPolicyMapActionGroup"), ("ARISTA-QOS-MIB", "aristaServicePolicyGroup"), ("ARISTA-QOS-MIB", "aristaEcnCounterGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaQosMibCompliance = aristaQosMibCompliance.setStatus('current') aristaClassMapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 1)).setObjects(("ARISTA-QOS-MIB", "aristaClassMapName"), ("ARISTA-QOS-MIB", "aristaClassMapMatchCondition"), ("ARISTA-QOS-MIB", "aristaClassMapMatchType"), ("ARISTA-QOS-MIB", "aristaClassMapMatchName"), ("ARISTA-QOS-MIB", "aristaPolicyMapClassId"), ("ARISTA-QOS-MIB", "aristaQosPktsDropped"), ("ARISTA-QOS-MIB", "aristaQosPktsMatched"), ("ARISTA-QOS-MIB", "aristaQosPktsSent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaClassMapGroup = aristaClassMapGroup.setStatus('current') aristaPolicyMapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 2)).setObjects(("ARISTA-QOS-MIB", "aristaPolicyMapName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaPolicyMapGroup = aristaPolicyMapGroup.setStatus('current') aristaPolicyMapActionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 3)).setObjects(("ARISTA-QOS-MIB", "aristaPolicyMapActionRateUnit"), ("ARISTA-QOS-MIB", "aristaPolicyMapActionValue")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaPolicyMapActionGroup = aristaPolicyMapActionGroup.setStatus('current') aristaServicePolicyGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 4)).setObjects(("ARISTA-QOS-MIB", "aristaServicePolicyMapId"), ("ARISTA-QOS-MIB", "aristaServicePolicyMapType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaServicePolicyGroup = aristaServicePolicyGroup.setStatus('current') aristaEcnCounterGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 5)).setObjects(("ARISTA-QOS-MIB", "aristaEcnCounterValue"), ("ARISTA-QOS-MIB", "aristaEcnCounterEntity")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): aristaEcnCounterGroup = aristaEcnCounterGroup.setStatus('current') mibBuilder.exportSymbols("ARISTA-QOS-MIB", aristaQosStatsTable=aristaQosStatsTable, aristaQosMibConformance=aristaQosMibConformance, aristaClassMapTable=aristaClassMapTable, aristaEcnCounterValue=aristaEcnCounterValue, AristaQosMapType=AristaQosMapType, aristaEcnCounterEntity=aristaEcnCounterEntity, aristaClassMapMatchEntry=aristaClassMapMatchEntry, aristaClassMapName=aristaClassMapName, aristaClassMapId=aristaClassMapId, aristaPolicyMapClassEntry=aristaPolicyMapClassEntry, aristaServicePolicyIfIndex=aristaServicePolicyIfIndex, aristaServicePolicyMapId=aristaServicePolicyMapId, aristaClassMapType=aristaClassMapType, aristaEcnCounterGroup=aristaEcnCounterGroup, aristaClassMapMatchName=aristaClassMapMatchName, aristaPolicyMapClassIndex=aristaPolicyMapClassIndex, aristaPolicyMapActionTable=aristaPolicyMapActionTable, aristaQosStatsEntry=aristaQosStatsEntry, aristaQosPktsSent=aristaQosPktsSent, aristaClassMapMatchCondition=aristaClassMapMatchCondition, aristaPolicyMapTable=aristaPolicyMapTable, aristaClassMapMatchIndex=aristaClassMapMatchIndex, aristaPolicyMapName=aristaPolicyMapName, aristaPolicyMapGroup=aristaPolicyMapGroup, aristaEcnCounterEntry=aristaEcnCounterEntry, aristaPolicyMapId=aristaPolicyMapId, aristaPolicyMapClassTable=aristaPolicyMapClassTable, aristaQosMibObjects=aristaQosMibObjects, aristaClassMapEntry=aristaClassMapEntry, aristaPolicyMapActionRateUnit=aristaPolicyMapActionRateUnit, aristaPolicyMapActionGroup=aristaPolicyMapActionGroup, aristaEcnCounterTable=aristaEcnCounterTable, aristaQosMibCompliance=aristaQosMibCompliance, aristaServicePolicyGroup=aristaServicePolicyGroup, aristaPolicyMapActionEntry=aristaPolicyMapActionEntry, aristaServicePolicyMapType=aristaServicePolicyMapType, aristaServicePolicyDirection=aristaServicePolicyDirection, aristaQosPktsDropped=aristaQosPktsDropped, aristaQosPktsMatched=aristaQosPktsMatched, aristaPolicyMapEntry=aristaPolicyMapEntry, aristaPolicyMapType=aristaPolicyMapType, aristaServicePolicyTable=aristaServicePolicyTable, PYSNMP_MODULE_ID=aristaQosMib, aristaClassMapMatchType=aristaClassMapMatchType, aristaEcnCounterDescriptor=aristaEcnCounterDescriptor, aristaPolicyMapActionValue=aristaPolicyMapActionValue, AristaQosShortId=AristaQosShortId, aristaClassMapMatchTable=aristaClassMapMatchTable, aristaQosMibCompliances=aristaQosMibCompliances, aristaQosMibGroups=aristaQosMibGroups, aristaClassMapGroup=aristaClassMapGroup, aristaPolicyMapActionType=aristaPolicyMapActionType, aristaQosMib=aristaQosMib, aristaPolicyMapClassId=aristaPolicyMapClassId, aristaServicePolicyEntry=aristaServicePolicyEntry)
(arista_mibs,) = mibBuilder.importSymbols('ARISTA-SMI-MIB', 'aristaMibs') (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (physical_index_or_zero,) = mibBuilder.importSymbols('ENTITY-MIB', 'PhysicalIndexOrZero') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (iso, notification_type, object_identity, bits, mib_identifier, module_identity, ip_address, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, time_ticks, counter64, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'NotificationType', 'ObjectIdentity', 'Bits', 'MibIdentifier', 'ModuleIdentity', 'IpAddress', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'TimeTicks', 'Counter64', 'Integer32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') arista_qos_mib = module_identity((1, 3, 6, 1, 4, 1, 30065, 3, 13)) aristaQosMib.setRevisions(('2016-07-22 00:00', '2016-03-21 00:00', '2014-08-15 00:00', '2014-05-22 00:00', '2013-06-01 00:00')) if mibBuilder.loadTexts: aristaQosMib.setLastUpdated('201607220000Z') if mibBuilder.loadTexts: aristaQosMib.setOrganization('Arista Networks, Inc.') class Aristaqosmaptype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('controlPlane', 1), ('dataPlane', 2)) class Aristaqosshortid(TextualConvention, OctetString): status = 'current' display_hint = '255a' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 40) arista_qos_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1)) arista_qos_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2)) arista_class_map_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1)) if mibBuilder.loadTexts: aristaClassMapTable.setStatus('current') arista_class_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaClassMapId'), (0, 'ARISTA-QOS-MIB', 'aristaClassMapType')) if mibBuilder.loadTexts: aristaClassMapEntry.setStatus('current') arista_class_map_id = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 1), arista_qos_short_id()) if mibBuilder.loadTexts: aristaClassMapId.setStatus('current') arista_class_map_type = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 2), arista_qos_map_type()) if mibBuilder.loadTexts: aristaClassMapType.setStatus('current') arista_class_map_name = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaClassMapName.setStatus('current') arista_class_map_match_condition = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('matchConditionAny', 1), ('matchConditionAll', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaClassMapMatchCondition.setStatus('current') arista_class_map_match_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2)) if mibBuilder.loadTexts: aristaClassMapMatchTable.setStatus('current') arista_class_map_match_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaClassMapId'), (0, 'ARISTA-QOS-MIB', 'aristaClassMapType'), (0, 'ARISTA-QOS-MIB', 'aristaClassMapMatchIndex')) if mibBuilder.loadTexts: aristaClassMapMatchEntry.setStatus('current') arista_class_map_match_index = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))) if mibBuilder.loadTexts: aristaClassMapMatchIndex.setStatus('current') arista_class_map_match_type = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipv4AccessGroup', 1), ('ipv6AccessGroup', 2), ('vlan', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaClassMapMatchType.setStatus('current') arista_class_map_match_name = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaClassMapMatchName.setStatus('current') arista_policy_map_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3)) if mibBuilder.loadTexts: aristaPolicyMapTable.setStatus('current') arista_policy_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaPolicyMapId'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapType')) if mibBuilder.loadTexts: aristaPolicyMapEntry.setStatus('current') arista_policy_map_id = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 1), arista_qos_short_id()) if mibBuilder.loadTexts: aristaPolicyMapId.setStatus('current') arista_policy_map_type = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 2), arista_qos_map_type()) if mibBuilder.loadTexts: aristaPolicyMapType.setStatus('current') arista_policy_map_name = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaPolicyMapName.setStatus('current') arista_policy_map_class_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4)) if mibBuilder.loadTexts: aristaPolicyMapClassTable.setStatus('current') arista_policy_map_class_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaPolicyMapId'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapType'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapClassIndex')) if mibBuilder.loadTexts: aristaPolicyMapClassEntry.setStatus('current') arista_policy_map_class_index = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: aristaPolicyMapClassIndex.setStatus('current') arista_policy_map_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 4, 1, 2), arista_qos_short_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaPolicyMapClassId.setStatus('current') arista_policy_map_action_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5)) if mibBuilder.loadTexts: aristaPolicyMapActionTable.setStatus('current') arista_policy_map_action_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaPolicyMapId'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapType'), (0, 'ARISTA-QOS-MIB', 'aristaClassMapId'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapActionType')) if mibBuilder.loadTexts: aristaPolicyMapActionEntry.setStatus('current') arista_policy_map_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('actionSetShape', 1), ('actionSetBandwidth', 2), ('actionSetCos', 3), ('actionSetDscp', 4), ('actionSetTc', 5)))) if mibBuilder.loadTexts: aristaPolicyMapActionType.setStatus('current') arista_policy_map_action_rate_unit = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('rateUnitNone', 0), ('rateUnitPps', 1), ('rateUnitKbps', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaPolicyMapActionRateUnit.setStatus('current') arista_policy_map_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 5, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaPolicyMapActionValue.setStatus('current') arista_service_policy_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6)) if mibBuilder.loadTexts: aristaServicePolicyTable.setStatus('current') arista_service_policy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaServicePolicyIfIndex'), (0, 'ARISTA-QOS-MIB', 'aristaServicePolicyDirection')) if mibBuilder.loadTexts: aristaServicePolicyEntry.setStatus('current') arista_service_policy_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 1), interface_index()) if mibBuilder.loadTexts: aristaServicePolicyIfIndex.setStatus('current') arista_service_policy_direction = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('input', 1), ('output', 2)))) if mibBuilder.loadTexts: aristaServicePolicyDirection.setStatus('current') arista_service_policy_map_id = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 3), arista_qos_short_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaServicePolicyMapId.setStatus('current') arista_service_policy_map_type = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 6, 1, 4), arista_qos_map_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaServicePolicyMapType.setStatus('current') arista_qos_stats_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7)) if mibBuilder.loadTexts: aristaQosStatsTable.setStatus('current') arista_qos_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaPolicyMapId'), (0, 'ARISTA-QOS-MIB', 'aristaPolicyMapType'), (0, 'ARISTA-QOS-MIB', 'aristaClassMapId'), (0, 'ARISTA-QOS-MIB', 'aristaServicePolicyDirection')) if mibBuilder.loadTexts: aristaQosStatsEntry.setStatus('current') arista_qos_pkts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaQosPktsDropped.setStatus('current') arista_qos_pkts_sent = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaQosPktsSent.setStatus('current') arista_qos_pkts_matched = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 7, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaQosPktsMatched.setStatus('current') arista_ecn_counter_table = mib_table((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8)) if mibBuilder.loadTexts: aristaEcnCounterTable.setStatus('current') arista_ecn_counter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1)).setIndexNames((0, 'ARISTA-QOS-MIB', 'aristaEcnCounterDescriptor')) if mibBuilder.loadTexts: aristaEcnCounterEntry.setStatus('current') arista_ecn_counter_descriptor = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: aristaEcnCounterDescriptor.setStatus('current') arista_ecn_counter_value = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaEcnCounterValue.setStatus('current') arista_ecn_counter_entity = mib_table_column((1, 3, 6, 1, 4, 1, 30065, 3, 13, 1, 8, 1, 3), physical_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: aristaEcnCounterEntity.setStatus('current') arista_qos_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 1)) arista_qos_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2)) arista_qos_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 1, 1)).setObjects(('ARISTA-QOS-MIB', 'aristaClassMapGroup'), ('ARISTA-QOS-MIB', 'aristaPolicyMapGroup'), ('ARISTA-QOS-MIB', 'aristaPolicyMapActionGroup'), ('ARISTA-QOS-MIB', 'aristaServicePolicyGroup'), ('ARISTA-QOS-MIB', 'aristaEcnCounterGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_qos_mib_compliance = aristaQosMibCompliance.setStatus('current') arista_class_map_group = object_group((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 1)).setObjects(('ARISTA-QOS-MIB', 'aristaClassMapName'), ('ARISTA-QOS-MIB', 'aristaClassMapMatchCondition'), ('ARISTA-QOS-MIB', 'aristaClassMapMatchType'), ('ARISTA-QOS-MIB', 'aristaClassMapMatchName'), ('ARISTA-QOS-MIB', 'aristaPolicyMapClassId'), ('ARISTA-QOS-MIB', 'aristaQosPktsDropped'), ('ARISTA-QOS-MIB', 'aristaQosPktsMatched'), ('ARISTA-QOS-MIB', 'aristaQosPktsSent')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_class_map_group = aristaClassMapGroup.setStatus('current') arista_policy_map_group = object_group((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 2)).setObjects(('ARISTA-QOS-MIB', 'aristaPolicyMapName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_policy_map_group = aristaPolicyMapGroup.setStatus('current') arista_policy_map_action_group = object_group((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 3)).setObjects(('ARISTA-QOS-MIB', 'aristaPolicyMapActionRateUnit'), ('ARISTA-QOS-MIB', 'aristaPolicyMapActionValue')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_policy_map_action_group = aristaPolicyMapActionGroup.setStatus('current') arista_service_policy_group = object_group((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 4)).setObjects(('ARISTA-QOS-MIB', 'aristaServicePolicyMapId'), ('ARISTA-QOS-MIB', 'aristaServicePolicyMapType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_service_policy_group = aristaServicePolicyGroup.setStatus('current') arista_ecn_counter_group = object_group((1, 3, 6, 1, 4, 1, 30065, 3, 13, 2, 2, 5)).setObjects(('ARISTA-QOS-MIB', 'aristaEcnCounterValue'), ('ARISTA-QOS-MIB', 'aristaEcnCounterEntity')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): arista_ecn_counter_group = aristaEcnCounterGroup.setStatus('current') mibBuilder.exportSymbols('ARISTA-QOS-MIB', aristaQosStatsTable=aristaQosStatsTable, aristaQosMibConformance=aristaQosMibConformance, aristaClassMapTable=aristaClassMapTable, aristaEcnCounterValue=aristaEcnCounterValue, AristaQosMapType=AristaQosMapType, aristaEcnCounterEntity=aristaEcnCounterEntity, aristaClassMapMatchEntry=aristaClassMapMatchEntry, aristaClassMapName=aristaClassMapName, aristaClassMapId=aristaClassMapId, aristaPolicyMapClassEntry=aristaPolicyMapClassEntry, aristaServicePolicyIfIndex=aristaServicePolicyIfIndex, aristaServicePolicyMapId=aristaServicePolicyMapId, aristaClassMapType=aristaClassMapType, aristaEcnCounterGroup=aristaEcnCounterGroup, aristaClassMapMatchName=aristaClassMapMatchName, aristaPolicyMapClassIndex=aristaPolicyMapClassIndex, aristaPolicyMapActionTable=aristaPolicyMapActionTable, aristaQosStatsEntry=aristaQosStatsEntry, aristaQosPktsSent=aristaQosPktsSent, aristaClassMapMatchCondition=aristaClassMapMatchCondition, aristaPolicyMapTable=aristaPolicyMapTable, aristaClassMapMatchIndex=aristaClassMapMatchIndex, aristaPolicyMapName=aristaPolicyMapName, aristaPolicyMapGroup=aristaPolicyMapGroup, aristaEcnCounterEntry=aristaEcnCounterEntry, aristaPolicyMapId=aristaPolicyMapId, aristaPolicyMapClassTable=aristaPolicyMapClassTable, aristaQosMibObjects=aristaQosMibObjects, aristaClassMapEntry=aristaClassMapEntry, aristaPolicyMapActionRateUnit=aristaPolicyMapActionRateUnit, aristaPolicyMapActionGroup=aristaPolicyMapActionGroup, aristaEcnCounterTable=aristaEcnCounterTable, aristaQosMibCompliance=aristaQosMibCompliance, aristaServicePolicyGroup=aristaServicePolicyGroup, aristaPolicyMapActionEntry=aristaPolicyMapActionEntry, aristaServicePolicyMapType=aristaServicePolicyMapType, aristaServicePolicyDirection=aristaServicePolicyDirection, aristaQosPktsDropped=aristaQosPktsDropped, aristaQosPktsMatched=aristaQosPktsMatched, aristaPolicyMapEntry=aristaPolicyMapEntry, aristaPolicyMapType=aristaPolicyMapType, aristaServicePolicyTable=aristaServicePolicyTable, PYSNMP_MODULE_ID=aristaQosMib, aristaClassMapMatchType=aristaClassMapMatchType, aristaEcnCounterDescriptor=aristaEcnCounterDescriptor, aristaPolicyMapActionValue=aristaPolicyMapActionValue, AristaQosShortId=AristaQosShortId, aristaClassMapMatchTable=aristaClassMapMatchTable, aristaQosMibCompliances=aristaQosMibCompliances, aristaQosMibGroups=aristaQosMibGroups, aristaClassMapGroup=aristaClassMapGroup, aristaPolicyMapActionType=aristaPolicyMapActionType, aristaQosMib=aristaQosMib, aristaPolicyMapClassId=aristaPolicyMapClassId, aristaServicePolicyEntry=aristaServicePolicyEntry)
class Solution(object): def findErrorNums(self, nums): """ :type nums: List[int] :rtype: List[int] """ for i in range(len(nums)): if nums[i] != i + 1: cur = nums[i] while True: replace = nums[cur - 1] if replace == cur: break else: nums[cur - 1] = cur nums[i] = replace cur = replace for i in range(len(nums)): if nums[i] != i + 1: return (nums[i], i + 1)
class Solution(object): def find_error_nums(self, nums): """ :type nums: List[int] :rtype: List[int] """ for i in range(len(nums)): if nums[i] != i + 1: cur = nums[i] while True: replace = nums[cur - 1] if replace == cur: break else: nums[cur - 1] = cur nums[i] = replace cur = replace for i in range(len(nums)): if nums[i] != i + 1: return (nums[i], i + 1)
# twonums_sum returns the index of the nums inside the list that can become n def twonums_sum(n, lst): d = {} for i in range(len(lst)): d[lst[i]] = i # create number-subscript pair for i in range(len(lst)): if n - lst[i] in d: return i, d[n-lst[i]] return -1 lst = [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 18, 19, 20, 21, 29, 34, 54, 65] n = int(input()) result = twonums_sum(n, lst) if result == -1: print("not found") else: print(result)
def twonums_sum(n, lst): d = {} for i in range(len(lst)): d[lst[i]] = i for i in range(len(lst)): if n - lst[i] in d: return (i, d[n - lst[i]]) return -1 lst = [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 18, 19, 20, 21, 29, 34, 54, 65] n = int(input()) result = twonums_sum(n, lst) if result == -1: print('not found') else: print(result)
class Solution: def longestPalindrome(self, s: str) -> str: if not s or len(s) <= 1: return s result = '' max_len = 0 n = len(s) dp = [[False] * n for _ in range(n)] for i in range(n): dp[i][i] = True if 1 > max_len: max_len = 1 result = s[i] for i in range(n-1): if s[i] == s[i+1]: dp[i][i+1] = True if 2 > max_len: max_len = 2 result = s[i:i+2] for j in range(2, n): for i in range(j-1): # detect s[i]..s[j] if s[i] == s[j] and dp[i+1][j-1]: dp[i][j] = True if j-i+1 > max_len: max_len = j-i+1 result = s[i:j+1] return result if __name__== '__main__': solution = Solution() result = solution.longestPalindrome('ababababababa') print(result == 'ababababababa') result = solution.longestPalindrome('bananas') print(result == 'anana')
class Solution: def longest_palindrome(self, s: str) -> str: if not s or len(s) <= 1: return s result = '' max_len = 0 n = len(s) dp = [[False] * n for _ in range(n)] for i in range(n): dp[i][i] = True if 1 > max_len: max_len = 1 result = s[i] for i in range(n - 1): if s[i] == s[i + 1]: dp[i][i + 1] = True if 2 > max_len: max_len = 2 result = s[i:i + 2] for j in range(2, n): for i in range(j - 1): if s[i] == s[j] and dp[i + 1][j - 1]: dp[i][j] = True if j - i + 1 > max_len: max_len = j - i + 1 result = s[i:j + 1] return result if __name__ == '__main__': solution = solution() result = solution.longestPalindrome('ababababababa') print(result == 'ababababababa') result = solution.longestPalindrome('bananas') print(result == 'anana')
# coding=utf-8 """ Track your life like a pro on Google Calendar via your terminal. """ __version__ = '0.2.2' __author__ = 'adamchainz' __license__ = 'MIT'
""" Track your life like a pro on Google Calendar via your terminal. """ __version__ = '0.2.2' __author__ = 'adamchainz' __license__ = 'MIT'
class Computer: def __init__(self,prog): if type(prog)==str: prog = [int(x.strip()) for x in prog.split(",") if x.strip()] self.memory = prog def evaluate(self): pc = 0 while pc<len(self.memory) and self.memory[pc]!=99: if self.memory[pc]==1: from_, to_, store = self.memory[pc+1:pc+4] self.memory[store] = self.memory[from_]+self.memory[to_] pc+=4 elif self.memory[pc]==2: from_, to_, store = self.memory[pc+1:pc+4] self.memory[store] = self.memory[from_]*self.memory[to_] pc+=4 else: raise Exception("Unknown opcode {:02d} at {:02d}".format(self.memory[pc],pc))
class Computer: def __init__(self, prog): if type(prog) == str: prog = [int(x.strip()) for x in prog.split(',') if x.strip()] self.memory = prog def evaluate(self): pc = 0 while pc < len(self.memory) and self.memory[pc] != 99: if self.memory[pc] == 1: (from_, to_, store) = self.memory[pc + 1:pc + 4] self.memory[store] = self.memory[from_] + self.memory[to_] pc += 4 elif self.memory[pc] == 2: (from_, to_, store) = self.memory[pc + 1:pc + 4] self.memory[store] = self.memory[from_] * self.memory[to_] pc += 4 else: raise exception('Unknown opcode {:02d} at {:02d}'.format(self.memory[pc], pc))
# # PySNMP MIB module INTEL-ES480-VLAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INTEL-ES480-VLAN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:42:49 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") es480tAgent, = mibBuilder.importSymbols("INTEL-ES480-MIB", "es480tAgent") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, ObjectIdentity, Bits, iso, NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Integer32, MibIdentifier, Gauge32, Counter32, IpAddress, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "Bits", "iso", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Integer32", "MibIdentifier", "Gauge32", "Counter32", "IpAddress", "Counter64") DisplayString, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus") es480tVlan = ModuleIdentity((1, 3, 6, 1, 4, 1, 343, 6, 60, 2)) if mibBuilder.loadTexts: es480tVlan.setLastUpdated('0003170000Z') if mibBuilder.loadTexts: es480tVlan.setOrganization('Intel Corp.') es480tVlanGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1)) es480tVirtualGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 2)) es480tEncapsulationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3)) es480tProtocolGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5)) class Es480tSwitchVlanType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1)) namedValues = NamedValues(("vlanLayer2", 1)) es480tVlanIfTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2), ) if mibBuilder.loadTexts: es480tVlanIfTable.setStatus('mandatory') es480tVlanIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1), ).setIndexNames((0, "INTEL-ES480-VLAN-MIB", "es480tVlanIfIndex")) if mibBuilder.loadTexts: es480tVlanIfEntry.setStatus('mandatory') es480tVlanIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanIfIndex.setStatus('mandatory') es480tVlanIfDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanIfDescr.setStatus('mandatory') es480tVlanIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 3), Es480tSwitchVlanType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanIfType.setStatus('mandatory') es480tVlanIfGlobalIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanIfGlobalIdentifier.setStatus('mandatory') es480tVlanIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 6), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanIfStatus.setStatus('mandatory') class Es480tSwitchVlanEncapsType(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(2)) namedValues = NamedValues(("vlanEncaps8021q", 2)) es480tVlanEncapsIfTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1), ) if mibBuilder.loadTexts: es480tVlanEncapsIfTable.setStatus('mandatory') es480tVlanEncapsIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1), ).setIndexNames((0, "INTEL-ES480-VLAN-MIB", "es480tVlanEncapsIfIndex")) if mibBuilder.loadTexts: es480tVlanEncapsIfEntry.setStatus('mandatory') es480tVlanEncapsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanEncapsIfIndex.setStatus('mandatory') es480tVlanEncapsIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 2), Es480tSwitchVlanEncapsType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanEncapsIfType.setStatus('mandatory') es480tVlanEncapsIfTag = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanEncapsIfTag.setStatus('mandatory') es480tVlanEncapsIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 4), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanEncapsIfStatus.setStatus('mandatory') es480tNextAvailableVirtIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: es480tNextAvailableVirtIfIndex.setStatus('mandatory') es480tVlanProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1), ) if mibBuilder.loadTexts: es480tVlanProtocolTable.setStatus('mandatory') es480tVlanProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1), ).setIndexNames((0, "INTEL-ES480-VLAN-MIB", "es480tVlanProtocolIndex"), (0, "INTEL-ES480-VLAN-MIB", "es480tVlanProtocolIdIndex")) if mibBuilder.loadTexts: es480tVlanProtocolEntry.setStatus('mandatory') es480tVlanProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolIndex.setStatus('mandatory') es480tVlanProtocolIdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolIdIndex.setStatus('mandatory') es480tVlanProtocolName = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolName.setStatus('mandatory') es480tVlanProtocolDllEncapsType = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("any", 1), ("ethertype", 2), ("llc", 3), ("llcSnapEthertype", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolDllEncapsType.setStatus('mandatory') es480tVlanProtocolId = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolId.setStatus('mandatory') es480tVlanProtocolStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 6), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolStatus.setStatus('mandatory') es480tVlanProtocolVlanTable = MibTable((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2), ) if mibBuilder.loadTexts: es480tVlanProtocolVlanTable.setStatus('mandatory') es480tVlanProtocolVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1), ).setIndexNames((0, "INTEL-ES480-VLAN-MIB", "es480tVlanProtocolVlanIfIndex"), (0, "INTEL-ES480-VLAN-MIB", "es480tVlanProtocolVlanProtocolIndex")) if mibBuilder.loadTexts: es480tVlanProtocolVlanEntry.setStatus('mandatory') es480tVlanProtocolVlanIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolVlanIfIndex.setStatus('mandatory') es480tVlanProtocolVlanProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolVlanProtocolIndex.setStatus('mandatory') es480tVlanProtocolVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 3), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: es480tVlanProtocolVlanStatus.setStatus('mandatory') mibBuilder.exportSymbols("INTEL-ES480-VLAN-MIB", es480tVlanIfStatus=es480tVlanIfStatus, es480tVlanProtocolTable=es480tVlanProtocolTable, es480tVlanIfIndex=es480tVlanIfIndex, es480tVlanEncapsIfStatus=es480tVlanEncapsIfStatus, Es480tSwitchVlanEncapsType=Es480tSwitchVlanEncapsType, es480tVlanIfEntry=es480tVlanIfEntry, es480tNextAvailableVirtIfIndex=es480tNextAvailableVirtIfIndex, es480tVlanEncapsIfTable=es480tVlanEncapsIfTable, es480tVlanProtocolName=es480tVlanProtocolName, PYSNMP_MODULE_ID=es480tVlan, es480tVlanProtocolVlanEntry=es480tVlanProtocolVlanEntry, Es480tSwitchVlanType=Es480tSwitchVlanType, es480tVlanIfDescr=es480tVlanIfDescr, es480tEncapsulationGroup=es480tEncapsulationGroup, es480tVlanProtocolVlanProtocolIndex=es480tVlanProtocolVlanProtocolIndex, es480tVlanProtocolVlanStatus=es480tVlanProtocolVlanStatus, es480tVlanGroup=es480tVlanGroup, es480tVlanIfTable=es480tVlanIfTable, es480tVlanProtocolVlanTable=es480tVlanProtocolVlanTable, es480tVlan=es480tVlan, es480tVlanProtocolDllEncapsType=es480tVlanProtocolDllEncapsType, es480tVlanEncapsIfTag=es480tVlanEncapsIfTag, es480tVlanProtocolIdIndex=es480tVlanProtocolIdIndex, es480tVlanProtocolIndex=es480tVlanProtocolIndex, es480tVlanIfGlobalIdentifier=es480tVlanIfGlobalIdentifier, es480tVlanProtocolEntry=es480tVlanProtocolEntry, es480tVlanProtocolVlanIfIndex=es480tVlanProtocolVlanIfIndex, es480tVlanProtocolStatus=es480tVlanProtocolStatus, es480tVlanEncapsIfIndex=es480tVlanEncapsIfIndex, es480tVlanEncapsIfEntry=es480tVlanEncapsIfEntry, es480tVlanIfType=es480tVlanIfType, es480tProtocolGroup=es480tProtocolGroup, es480tVlanEncapsIfType=es480tVlanEncapsIfType, es480tVlanProtocolId=es480tVlanProtocolId, es480tVirtualGroup=es480tVirtualGroup)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (es480t_agent,) = mibBuilder.importSymbols('INTEL-ES480-MIB', 'es480tAgent') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, object_identity, bits, iso, notification_type, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, integer32, mib_identifier, gauge32, counter32, ip_address, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'Bits', 'iso', 'NotificationType', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Integer32', 'MibIdentifier', 'Gauge32', 'Counter32', 'IpAddress', 'Counter64') (display_string, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus') es480t_vlan = module_identity((1, 3, 6, 1, 4, 1, 343, 6, 60, 2)) if mibBuilder.loadTexts: es480tVlan.setLastUpdated('0003170000Z') if mibBuilder.loadTexts: es480tVlan.setOrganization('Intel Corp.') es480t_vlan_group = mib_identifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1)) es480t_virtual_group = mib_identifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 2)) es480t_encapsulation_group = mib_identifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3)) es480t_protocol_group = mib_identifier((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5)) class Es480Tswitchvlantype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1)) named_values = named_values(('vlanLayer2', 1)) es480t_vlan_if_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2)) if mibBuilder.loadTexts: es480tVlanIfTable.setStatus('mandatory') es480t_vlan_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1)).setIndexNames((0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanIfIndex')) if mibBuilder.loadTexts: es480tVlanIfEntry.setStatus('mandatory') es480t_vlan_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanIfIndex.setStatus('mandatory') es480t_vlan_if_descr = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanIfDescr.setStatus('mandatory') es480t_vlan_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 3), es480t_switch_vlan_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanIfType.setStatus('mandatory') es480t_vlan_if_global_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanIfGlobalIdentifier.setStatus('mandatory') es480t_vlan_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 1, 2, 1, 6), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanIfStatus.setStatus('mandatory') class Es480Tswitchvlanencapstype(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(2)) named_values = named_values(('vlanEncaps8021q', 2)) es480t_vlan_encaps_if_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1)) if mibBuilder.loadTexts: es480tVlanEncapsIfTable.setStatus('mandatory') es480t_vlan_encaps_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1)).setIndexNames((0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanEncapsIfIndex')) if mibBuilder.loadTexts: es480tVlanEncapsIfEntry.setStatus('mandatory') es480t_vlan_encaps_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanEncapsIfIndex.setStatus('mandatory') es480t_vlan_encaps_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 2), es480t_switch_vlan_encaps_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanEncapsIfType.setStatus('mandatory') es480t_vlan_encaps_if_tag = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanEncapsIfTag.setStatus('mandatory') es480t_vlan_encaps_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 3, 1, 1, 4), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanEncapsIfStatus.setStatus('mandatory') es480t_next_available_virt_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: es480tNextAvailableVirtIfIndex.setStatus('mandatory') es480t_vlan_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1)) if mibBuilder.loadTexts: es480tVlanProtocolTable.setStatus('mandatory') es480t_vlan_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1)).setIndexNames((0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanProtocolIndex'), (0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanProtocolIdIndex')) if mibBuilder.loadTexts: es480tVlanProtocolEntry.setStatus('mandatory') es480t_vlan_protocol_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolIndex.setStatus('mandatory') es480t_vlan_protocol_id_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolIdIndex.setStatus('mandatory') es480t_vlan_protocol_name = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolName.setStatus('mandatory') es480t_vlan_protocol_dll_encaps_type = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('any', 1), ('ethertype', 2), ('llc', 3), ('llcSnapEthertype', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolDllEncapsType.setStatus('mandatory') es480t_vlan_protocol_id = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolId.setStatus('mandatory') es480t_vlan_protocol_status = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 1, 1, 6), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolStatus.setStatus('mandatory') es480t_vlan_protocol_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2)) if mibBuilder.loadTexts: es480tVlanProtocolVlanTable.setStatus('mandatory') es480t_vlan_protocol_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1)).setIndexNames((0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanProtocolVlanIfIndex'), (0, 'INTEL-ES480-VLAN-MIB', 'es480tVlanProtocolVlanProtocolIndex')) if mibBuilder.loadTexts: es480tVlanProtocolVlanEntry.setStatus('mandatory') es480t_vlan_protocol_vlan_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolVlanIfIndex.setStatus('mandatory') es480t_vlan_protocol_vlan_protocol_index = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolVlanProtocolIndex.setStatus('mandatory') es480t_vlan_protocol_vlan_status = mib_table_column((1, 3, 6, 1, 4, 1, 343, 6, 60, 2, 5, 2, 1, 3), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: es480tVlanProtocolVlanStatus.setStatus('mandatory') mibBuilder.exportSymbols('INTEL-ES480-VLAN-MIB', es480tVlanIfStatus=es480tVlanIfStatus, es480tVlanProtocolTable=es480tVlanProtocolTable, es480tVlanIfIndex=es480tVlanIfIndex, es480tVlanEncapsIfStatus=es480tVlanEncapsIfStatus, Es480tSwitchVlanEncapsType=Es480tSwitchVlanEncapsType, es480tVlanIfEntry=es480tVlanIfEntry, es480tNextAvailableVirtIfIndex=es480tNextAvailableVirtIfIndex, es480tVlanEncapsIfTable=es480tVlanEncapsIfTable, es480tVlanProtocolName=es480tVlanProtocolName, PYSNMP_MODULE_ID=es480tVlan, es480tVlanProtocolVlanEntry=es480tVlanProtocolVlanEntry, Es480tSwitchVlanType=Es480tSwitchVlanType, es480tVlanIfDescr=es480tVlanIfDescr, es480tEncapsulationGroup=es480tEncapsulationGroup, es480tVlanProtocolVlanProtocolIndex=es480tVlanProtocolVlanProtocolIndex, es480tVlanProtocolVlanStatus=es480tVlanProtocolVlanStatus, es480tVlanGroup=es480tVlanGroup, es480tVlanIfTable=es480tVlanIfTable, es480tVlanProtocolVlanTable=es480tVlanProtocolVlanTable, es480tVlan=es480tVlan, es480tVlanProtocolDllEncapsType=es480tVlanProtocolDllEncapsType, es480tVlanEncapsIfTag=es480tVlanEncapsIfTag, es480tVlanProtocolIdIndex=es480tVlanProtocolIdIndex, es480tVlanProtocolIndex=es480tVlanProtocolIndex, es480tVlanIfGlobalIdentifier=es480tVlanIfGlobalIdentifier, es480tVlanProtocolEntry=es480tVlanProtocolEntry, es480tVlanProtocolVlanIfIndex=es480tVlanProtocolVlanIfIndex, es480tVlanProtocolStatus=es480tVlanProtocolStatus, es480tVlanEncapsIfIndex=es480tVlanEncapsIfIndex, es480tVlanEncapsIfEntry=es480tVlanEncapsIfEntry, es480tVlanIfType=es480tVlanIfType, es480tProtocolGroup=es480tProtocolGroup, es480tVlanEncapsIfType=es480tVlanEncapsIfType, es480tVlanProtocolId=es480tVlanProtocolId, es480tVirtualGroup=es480tVirtualGroup)