content
stringlengths
7
1.05M
""" Solver functions for Sudoku """ def print_sudoku(sudoku): for i in range(len(sudoku)): line = "" if i == 3 or i == 6: print("---------------------") for j in range(len(sudoku[i])): if j == 3 or j == 6: line += "| " line += str(sudoku[i][j])+" " print(line) def get_next_empty_cell(sudoku): for x in range(9): for y in range(9): if sudoku[x][y] == 0: return x, y return -1, -1 def is_possible(sudoku, i, j, e): check_row = all([e != sudoku[i][x] for x in range(9)]) if check_row: check_col = all([e != sudoku[x][j] for x in range(9)]) if check_col: sq_x, sq_y = 3*(i//3), 3*(j//3) for x in range(sq_x, sq_x+3): for y in range(sq_y, sq_y+3): if sudoku[x][y] == e: return False return True return False def solve(sudoku, i=0, j=0): i, j = get_next_empty_cell(sudoku) if i == -1: return True for n in range(1, 10): if is_possible(sudoku, i, j, n): sudoku[i][j] = n if solve(sudoku, i, j): return True sudoku[i][j] = 0 return False
def sum(matriz): sumValue = 0; if len(matriz) > 0 and matriz[-1] <= 1000: for item in matriz: sumValue += item return sumValue print(sum([1, 2, 3]));
# https://www.acmicpc.net/problem/11091 input = __import__('sys').stdin.readline N = int(input()) for _ in range(N): chars = [0 for _ in range(26)] line = input().rstrip() for char in line: if 97 <= ord(char) < 123: chars[ord(char) - 97] += 1 elif 65 <= ord(char) < 91: chars[ord(char) - 65] += 1 missing = "".join(chr(index + 97) for index, cnt in enumerate(chars) if cnt == 0) if 0 in chars: print('missing {}'.format(missing)) else: print('pangram')
def http(request): """Responds to any HTTP request. Args: request (flask.Request): HTTP request object. Returns: The response text or any set of values that can be turned into a Response object using `make_response <http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make_response>`. """ return f'Hello World!'
attendees = ["Ken", "Alena", "Treasure"] attendees.append("Ashley") attendees.extend(["James", "Guil"]) optional_attendees = ["Ben J.", "Dave"] potential_attendees = attendees + optional_attendees print("There are", len(potential_attendees), "attendees currently")
## https://leetcode.com/problems/dota2-senate/ ## go through the rounds of voting, where a vote is to ban another ## senator or, if all senators of the other party are banned, delcare ## victory. ## the optimal play for each senator is to ban the first member of ## the opposition party after them. fastest way to handle that is to ## basically keep track of the number of bans that we have remaining ## to give out, noting that we'll always have bans from just one party. ## after all, the Ds will ban any Rs before they can vote if they have ## the chance to (and vice versa). that means we can keep track of the ## bans to give out using a single counter that can go positive for one ## party and negative for the other. ## this solution is quite good, coming in at almost the 78th percentile ## for runtime and about the 50th percentile for memory. class Solution: def predictPartyVictory(self, senate: str) -> str: ## Ds add to this, Rs subtract ## so if > 0 and encouter an R, eliminate that R ## if > 0 and encounter another D, add another ## if < 0 and encounter a D, eliminate that D ## if < 0 and encounter another R, subtract another bans_to_proc = 0 values = {'D': 1, 'R': - 1} ## go through rounds of voting until we have all one party while len(set(senate)) > 1: next_senate = '' for ii, char in enumerate(senate): if bans_to_proc == 0: ## no bans from either party in the stack, so this character gets to ## ban the next of the opposition party and survives to the next round next_senate += char bans_to_proc += values[char] elif bans_to_proc > 0 and char == 'D': ## no R bans to proc, so this character will ban the next R and survive bans_to_proc += 1 next_senate += char elif bans_to_proc > 0 and char == 'R': ## have an R ban to proc, so this character gets banned (but uses up a ban) bans_to_proc -= 1 ## don't add this character to the next senate because it got banned elif bans_to_proc < 0 and char == 'R': ## no R bans to proc, so this character will ban the next D and survive bans_to_proc -= 1 next_senate += char elif bans_to_proc < 0 and char == 'D': ## have a D ban to proc, so proc it and ban this character bans_to_proc += 1 ## again, got banned, so skip this character in the next senate senate = next_senate ## now we know we have all one party, so just return the party of the first senator if senate[0] == 'D': return 'Dire' else: return 'Radiant'
# init exercise 2 solution # Using an approach similar to what was used in the Iris example # we can identify appropriate boundaries for our meshgrid by # referencing the actual wine data x_1_wine = X_wine_train[predictors[0]] x_2_wine = X_wine_train[predictors[1]] x_1_min_wine, x_1_max_wine = x_1_wine.min() - 0.2, x_1_wine.max() + 0.2 x_2_min_wine, x_2_max_wine = x_2_wine.min() - 0.2, x_2_wine.max() + 0.2 # Then we use np.arange to generate our interval arrays # and np.meshgrid to generate our actual grids xx_1_wine, xx_2_wine = np.meshgrid( np.arange(x_1_min_wine, x_1_max_wine, 0.003), np.arange(x_2_min_wine, x_2_max_wine, 0.003) ) # Now we have everything we need to generate our plot plot_wine_2d_boundaries( X_wine_train, y_wine_train, predictors, model1_wine, xx_1_wine, xx_2_wine, )
# addinterest1.py def addInterest(balance, rate): newBalance = balance * (1+rate) balance = newBalance def test(): amount = 1000 rate = 0.05 addInterest(amount, rate) print(amount) test()
print ("How many students' test scores do you want to arrange?") a = input() if a == "2": print ("Enter first student's name") name1 = input() print ("Enter his/her score") score1 = input() print ("Enter second student's name") name2 = input() print ("Enter his/her score") score2 = input() score = {score1:name1,score2:name2} for s in sorted(score): print (s,":",score[s]) if a == "3": print ("Enter first student's name") name1 = input() print ("Enter his/her score") score1 = input() print ("Enter second student's name") name2 = input() print ("Enter his/her score") score2 = input() print ("Enter third student's name") name3 = input() print ("Enter his/her score") score3 = input() score = {score1:name1,score2:name2,score3:name3} for s in sorted(score): print (s,":",score[s]) if a == "4": print ("Enter first student's name") name1 = input() print ("Enter his/her score") score1 = input() print ("Enter second student's name") name2 = input() print ("Enter his/her score") score2 = input() print ("Enter third student's name") name3 = input() print ("Enter his/her score") score3 = input() print ("Enter fourth student's name") name4 = input() print ("Enter his/her score") score4 = input() score = {score1:name1,score2:name2,score3:name3,score4:name4} for s in sorted(score): print (s,":",score[s])
def murmur3_32(data, seed=0): """MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.""" c1 = 0xCC9E2D51 c2 = 0x1B873593 length = len(data) h1 = seed roundedEnd = length & 0xFFFFFFFC # round down to 4 byte block for i in range(0, roundedEnd, 4): # little endian load order k1 = ( (ord(data[i]) & 0xFF) | ((ord(data[i + 1]) & 0xFF) << 8) | ((ord(data[i + 2]) & 0xFF) << 16) | (ord(data[i + 3]) << 24) ) k1 *= c1 k1 = (k1 << 15) | ((k1 & 0xFFFFFFFF) >> 17) # ROTL32(k1,15) k1 *= c2 h1 ^= k1 h1 = (h1 << 13) | ((h1 & 0xFFFFFFFF) >> 19) # ROTL32(h1,13) h1 = h1 * 5 + 0xE6546B64 # tail k1 = 0 val = length & 0x03 if val == 3: k1 = (ord(data[roundedEnd + 2]) & 0xFF) << 16 # fallthrough if val in [2, 3]: k1 |= (ord(data[roundedEnd + 1]) & 0xFF) << 8 # fallthrough if val in [1, 2, 3]: k1 |= ord(data[roundedEnd]) & 0xFF k1 *= c1 k1 = (k1 << 15) | ((k1 & 0xFFFFFFFF) >> 17) # ROTL32(k1,15) k1 *= c2 h1 ^= k1 # finalization h1 ^= length # fmix(h1) h1 ^= (h1 & 0xFFFFFFFF) >> 16 h1 *= 0x85EBCA6B h1 ^= (h1 & 0xFFFFFFFF) >> 13 h1 *= 0xC2B2AE35 h1 ^= (h1 & 0xFFFFFFFF) >> 16 return h1 & 0xFFFFFFFF
# .-. . .-. .-. . . .-. .-. # `-. | | | | | | `-. | # `-' `--`-' `-' `-' `-' ' __title__ = 'slocust' __version__ = '0.18.5.17.1' __description__ = 'Generate serveral Locust nodes on single server.' __license__ = 'MIT' __url__ = 'http://ityoung.gitee.io' __author__ = 'Shin Yeung' __author_email__ = 'ityoung@foxmail.com' __copyright__ = 'Copyright 2018 Shin Yeung'
def add(x, y): return x+y def product(z, y): return z*y
class Base: def __secret(self): print("秘密です") def public(self): self.__secret() class Derived(Base): def __secret(self): print("参照されません") if __name__ == "__main__": print("Baseクラスの属性:", dir(Base)) print("Derivedクラスの属性:", dir(Derived)) print("Base.public() の結果:") Base().public() print("Derived.public() の結果:") Derived().public()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 18 12:00:00 2020 @author: divyanshvinayak """ for _ in range(int(input())): N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) A.sort() B.sort() S = 0 for I in range(N): S += min(A[I], B[I]) print(S)
# Project Euler Problem 21 # Created on: 2012-06-18 # Created by: William McDonald # Returns a list of all primes under n using a sieve technique def primes(n): # 0 prime, 1 not. primeSieve = ['0'] * (n / 2 - 1) primeList = [2] for i in range(3, n, 2): if primeSieve[(i - 3) / 2] == '0': primeList.append(i) for j in range((i - 3) / 2 + i, len(primeSieve), i): primeSieve[j] = '1' return primeList # Returns a list of prime factors of n and their multiplicities def primeD(n): plst = [] for p in primeList: count = 0 while n % p == 0: count += 1 n /= p if count != 0: plst.append([p, count]) if n == 1: return plst # Returns the sum of all proper divisors of n def sumD(n, primeList): lop = primeD(n, primeList) sum = 1 for i in range(len(lop)): sum *= (lop[i][0] ** (lop[i][1] + 1)) - 1 sum /= (lop[i][0] - 1) return (sum - n) def getAns(): primeList = primes(10000) total = 0 for i in range(2, 10001): s1 = sumD(i, primeList) if s1 > i and s1 <= 10000: s2 = sumD(s1, primeList) if s2 == i: total += (s2 + s1) print(total) getAns()
maior = 0 menor = 0 for i in range(1, 6): # Verifica qual o peso mais pesada e qual o mais leve, em um grupo de 5 pesos peso = float(input(f'Digite o {i}° peso: ')) if i == 1: # Se for a primeira vez no loop, o menor e o maior recebem o mesmo peso menor = peso maior = peso else: if peso > maior: maior = peso if peso < menor: menor = peso print(f'O maior peso é \033[7;1m{maior}kg\033[m ' f'\nE o menor peso é \033[47;1m{menor}kg\033[m')
# # PySNMP MIB module ALTEON-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALTEON-TRAP-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:21:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ipCurCfgGwIndex, altswitchTraps, slbCurCfgVirtServiceRealPort, fltCurCfgPortIndx, slbCurCfgRealServerIpAddr, slbCurCfgRealServerIndex, fltCurCfgIndx, ipCurCfgGwAddr, slbCurCfgRealServerName = mibBuilder.importSymbols("ALTEON-PRIVATE-MIBS", "ipCurCfgGwIndex", "altswitchTraps", "slbCurCfgVirtServiceRealPort", "fltCurCfgPortIndx", "slbCurCfgRealServerIpAddr", "slbCurCfgRealServerIndex", "fltCurCfgIndx", "ipCurCfgGwAddr", "slbCurCfgRealServerName") OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") sysName, sysContact, sysLocation = mibBuilder.importSymbols("SNMPv2-MIB", "sysName", "sysContact", "sysLocation") Counter64, Integer32, NotificationType, Bits, Counter32, Unsigned32, IpAddress, NotificationType, ObjectIdentity, MibIdentifier, ModuleIdentity, TimeTicks, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Integer32", "NotificationType", "Bits", "Counter32", "Unsigned32", "IpAddress", "NotificationType", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "TimeTicks", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") altSwPrimaryPowerSuppylFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,1)) if mibBuilder.loadTexts: altSwPrimaryPowerSuppylFailure.setDescription('A altSwPrimaryPowerSuppylFailure trap signifies that the primary power supply failed.') altSwRedunPowerSuppylFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,2)) if mibBuilder.loadTexts: altSwRedunPowerSuppylFailure.setDescription('A altSwRedunPowerSuppylFailure trap signifies that the redundant power supply failed.') altSwDefGwUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,3)).setObjects(("ALTEON-PRIVATE-MIBS", "ipCurCfgGwIndex"), ("ALTEON-PRIVATE-MIBS", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwUp.setDescription('A altSwDefGwUp trap signifies that the default gateway is alive.') altSwDefGwDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,4)).setObjects(("ALTEON-PRIVATE-MIBS", "ipCurCfgGwIndex"), ("ALTEON-PRIVATE-MIBS", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwDown.setDescription('A altSwDefGwDown trap signifies that the default gateway is down.') altSwDefGwInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,5)).setObjects(("ALTEON-PRIVATE-MIBS", "ipCurCfgGwIndex"), ("ALTEON-PRIVATE-MIBS", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwInService.setDescription('A altSwDefGwEnabled trap signifies that the default gateway is up and in service.') altSwDefGwNotInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,6)).setObjects(("ALTEON-PRIVATE-MIBS", "ipCurCfgGwIndex"), ("ALTEON-PRIVATE-MIBS", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwNotInService.setDescription('A altSwDefGwDisabled trap signifies that the default gateway is alive but not in service.') altSwSlbRealServerUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,7)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerUp.setDescription('A altSwSlbRealServerUp trap signifies that the real server is up and operational.') altSwSlbRealServerDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,8)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerDown.setDescription('A altSwSlbRealServerDown trap signifies that the real server is down and out of service.') altSwSlbRealServerMaxConnReached = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,9)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerMaxConnReached.setDescription('A altSwSlbRealServerMaxConnReached trap signifies that the real server has reached maximum connections.') altSwSlbBkupRealServerAct = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,10)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerAct.setDescription('A altSwSlbBkupRealServerAct trap signifies that the backup real server is activated due to availablity of the primary real server.') altSwSlbBkupRealServerDeact = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,11)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeact.setDescription('A altSwSlbBkupRealServerDeact trap signifies that the backup real server is deactivated due to the primary real server is available.') altSwSlbBkupRealServerActOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,12)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerActOverflow.setDescription('A altSwSlbBkupRealServerActOverflow trap signifies that the backup real server is deactivated due to the primary real server is overflowed.') altSwSlbBkupRealServerDeactOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,13)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeactOverflow.setDescription('A altSwSlbBkupRealServerDeactOverflow trap signifies that the backup real server is deactivated due to the primary real server is out from overflow situation.') altSwSlbFailoverStandby = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,14)) if mibBuilder.loadTexts: altSwSlbFailoverStandby.setDescription('A altSwSlbFailoverStandby trap signifies that the switch is now a standby switch.') altSwSlbFailoverActive = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,15)) if mibBuilder.loadTexts: altSwSlbFailoverActive.setDescription('A altSwSlbFailoverActive trap signifies that the switch is now an active switch.') altSwSlbFailoverSwitchUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,16)) if mibBuilder.loadTexts: altSwSlbFailoverSwitchUp.setDescription('A altSwSlbFailoverSwitchUp trap signifies that the failover switch is alive.') altSwSlbFailoverSwitchDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,17)) if mibBuilder.loadTexts: altSwSlbFailoverSwitchDown.setDescription('A altSwSlbFailoverSwitchDown trap signifies that the failover switch is down.') altSwfltFilterFired = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,18)).setObjects(("ALTEON-PRIVATE-MIBS", "fltCurCfgIndx"), ("ALTEON-PRIVATE-MIBS", "fltCurCfgPortIndx"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwfltFilterFired.setDescription('A altSwfltFilterFired trap signifies that the packet received on a switch port matches the filter rule.') altSwSlbRealServerServiceUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,19)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceUp.setDescription('A altSwSlbRealServerServiceUp trap signifies that the service port of the real server is up and operational.') altSwSlbRealServerServiceDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 1, 13) + (0,20)).setObjects(("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIndex"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerIpAddr"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgRealServerName"), ("ALTEON-PRIVATE-MIBS", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceDown.setDescription('A altSwSlbRealServerServiceDown trap signifies that the service port of the real server is down and out of service.') mibBuilder.exportSymbols("ALTEON-TRAP-MIB", altSwDefGwUp=altSwDefGwUp, altSwSlbBkupRealServerActOverflow=altSwSlbBkupRealServerActOverflow, altSwSlbFailoverSwitchDown=altSwSlbFailoverSwitchDown, altSwSlbRealServerServiceDown=altSwSlbRealServerServiceDown, altSwSlbFailoverActive=altSwSlbFailoverActive, altSwDefGwInService=altSwDefGwInService, altSwDefGwNotInService=altSwDefGwNotInService, altSwSlbRealServerMaxConnReached=altSwSlbRealServerMaxConnReached, altSwSlbBkupRealServerDeact=altSwSlbBkupRealServerDeact, altSwSlbRealServerUp=altSwSlbRealServerUp, altSwSlbBkupRealServerDeactOverflow=altSwSlbBkupRealServerDeactOverflow, altSwSlbRealServerServiceUp=altSwSlbRealServerServiceUp, altSwRedunPowerSuppylFailure=altSwRedunPowerSuppylFailure, altSwSlbFailoverStandby=altSwSlbFailoverStandby, altSwPrimaryPowerSuppylFailure=altSwPrimaryPowerSuppylFailure, altSwSlbRealServerDown=altSwSlbRealServerDown, altSwDefGwDown=altSwDefGwDown, altSwSlbBkupRealServerAct=altSwSlbBkupRealServerAct, altSwfltFilterFired=altSwfltFilterFired, altSwSlbFailoverSwitchUp=altSwSlbFailoverSwitchUp)
#!/usr/bin/env python -*- coding: utf-8 -*- def per_section(it): """ Read a file and yield sections using empty line as delimiter """ section = [] for line in it: if line.strip(): section.append(line) else: yield ''.join(section) section = [] # yield any remaining lines as a section too if section: yield ''.join(section)
class InfluxDBClientError(Exception): """Raised when an error occurs in the request.""" def __init__(self, content, code=None): """Initialize the InfluxDBClientError handler.""" if isinstance(content, type(b'')): content = content.decode('UTF-8', 'replace') if code is not None: message = "%s: %s" % (code, content) else: message = content super(InfluxDBClientError, self).__init__( message ) self.content = content self.code = code class InfluxDBServerError(Exception): """Raised when a server error occurs.""" def __init__(self, content): """Initialize the InfluxDBServerError handler.""" super(InfluxDBServerError, self).__init__(content)
class Solution: def pyramidTransition(self, bottom: str, allowed: List[str]) -> bool: d = defaultdict(set) for a in allowed: d[a[:2]].add(a[2]) return self._dfs(bottom, d, 0, "") def _dfs(self, bottom, d, p, nxt): if len(bottom) == 1: return True if p == len(bottom) - 1: return self._dfs(nxt, d, 0, "") for i in d[bottom[p:p+2]]: if self._dfs(bottom, d, p+1, nxt+i): return True return False
for i in range(10): print(i) print("YY")
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def add_tags_to_on_premises_instances(tags=None, instanceNames=None): """ Adds tags to on-premises instances. See also: AWS API Documentation :example: response = client.add_tags_to_on_premises_instances( tags=[ { 'Key': 'string', 'Value': 'string' }, ], instanceNames=[ 'string', ] ) :type tags: list :param tags: [REQUIRED] The tag key-value pairs to add to the on-premises instances. Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed. (dict) --Information about a tag. Key (string) --The tag's key. Value (string) --The tag's value. :type instanceNames: list :param instanceNames: [REQUIRED] The names of the on-premises instances to which to add tags. (string) -- """ pass def batch_get_application_revisions(applicationName=None, revisions=None): """ Gets information about one or more application revisions. See also: AWS API Documentation :example: response = client.batch_get_application_revisions( applicationName='string', revisions=[ { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, ] ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application about which to get revision information. :type revisions: list :param revisions: [REQUIRED] Information to get about the application revisions, including type and location. (dict) --Information about the location of an application revision. revisionType (string) --The type of application revision: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. s3Location (dict) --Information about the location of application artifacts stored in Amazon S3. bucket (string) --The name of the Amazon S3 bucket where the application revision is stored. key (string) --The name of the Amazon S3 object that represents the bundled artifacts for the application revision. bundleType (string) --The file type of the application revision. Must be one of the following: tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file. version (string) --A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. If the version is not specified, the system will use the most recent version by default. eTag (string) --The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. If the ETag is not specified as an input parameter, ETag validation of the object will be skipped. gitHubLocation (dict) --Information about the location of application artifacts stored in GitHub. repository (string) --The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. Specified as account/repository. commitId (string) --The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. :rtype: dict :return: { 'applicationName': 'string', 'errorMessage': 'string', 'revisions': [ { 'revisionLocation': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'genericRevisionInfo': { 'description': 'string', 'deploymentGroups': [ 'string', ], 'firstUsedTime': datetime(2015, 1, 1), 'lastUsedTime': datetime(2015, 1, 1), 'registerTime': datetime(2015, 1, 1) } }, ] } :returns: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. """ pass def batch_get_applications(applicationNames=None): """ Gets information about one or more applications. See also: AWS API Documentation :example: response = client.batch_get_applications( applicationNames=[ 'string', ] ) :type applicationNames: list :param applicationNames: A list of application names separated by spaces. (string) -- :rtype: dict :return: { 'applicationsInfo': [ { 'applicationId': 'string', 'applicationName': 'string', 'createTime': datetime(2015, 1, 1), 'linkedToGitHub': True|False, 'gitHubAccountName': 'string' }, ] } """ pass def batch_get_deployment_groups(applicationName=None, deploymentGroupNames=None): """ Gets information about one or more deployment groups. See also: AWS API Documentation :example: response = client.batch_get_deployment_groups( applicationName='string', deploymentGroupNames=[ 'string', ] ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupNames: list :param deploymentGroupNames: [REQUIRED] The deployment groups' names. (string) -- :rtype: dict :return: { 'deploymentGroupsInfo': [ { 'applicationName': 'string', 'deploymentGroupId': 'string', 'deploymentGroupName': 'string', 'deploymentConfigName': 'string', 'ec2TagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'onPremisesInstanceTagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'autoScalingGroups': [ { 'name': 'string', 'hook': 'string' }, ], 'serviceRoleArn': 'string', 'targetRevision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'triggerConfigurations': [ { 'triggerName': 'string', 'triggerTargetArn': 'string', 'triggerEvents': [ 'DeploymentStart'|'DeploymentSuccess'|'DeploymentFailure'|'DeploymentStop'|'DeploymentRollback'|'DeploymentReady'|'InstanceStart'|'InstanceSuccess'|'InstanceFailure'|'InstanceReady', ] }, ], 'alarmConfiguration': { 'enabled': True|False, 'ignorePollAlarmFailure': True|False, 'alarms': [ { 'name': 'string' }, ] }, 'autoRollbackConfiguration': { 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, 'deploymentStyle': { 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, 'blueGreenDeploymentConfiguration': { 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, 'loadBalancerInfo': { 'elbInfoList': [ { 'name': 'string' }, ] }, 'lastSuccessfulDeployment': { 'deploymentId': 'string', 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'endTime': datetime(2015, 1, 1), 'createTime': datetime(2015, 1, 1) }, 'lastAttemptedDeployment': { 'deploymentId': 'string', 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'endTime': datetime(2015, 1, 1), 'createTime': datetime(2015, 1, 1) } }, ], 'errorMessage': 'string' } :returns: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. """ pass def batch_get_deployment_instances(deploymentId=None, instanceIds=None): """ Gets information about one or more instance that are part of a deployment group. See also: AWS API Documentation :example: response = client.batch_get_deployment_instances( deploymentId='string', instanceIds=[ 'string', ] ) :type deploymentId: string :param deploymentId: [REQUIRED] The unique ID of a deployment. :type instanceIds: list :param instanceIds: [REQUIRED] The unique IDs of instances in the deployment group. (string) -- :rtype: dict :return: { 'instancesSummary': [ { 'deploymentId': 'string', 'instanceId': 'string', 'status': 'Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown'|'Ready', 'lastUpdatedAt': datetime(2015, 1, 1), 'lifecycleEvents': [ { 'lifecycleEventName': 'string', 'diagnostics': { 'errorCode': 'Success'|'ScriptMissing'|'ScriptNotExecutable'|'ScriptTimedOut'|'ScriptFailed'|'UnknownError', 'scriptName': 'string', 'message': 'string', 'logTail': 'string' }, 'startTime': datetime(2015, 1, 1), 'endTime': datetime(2015, 1, 1), 'status': 'Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown' }, ], 'instanceType': 'Blue'|'Green' }, ], 'errorMessage': 'string' } :returns: Pending: The deployment is pending for this instance. In Progress: The deployment is in progress for this instance. Succeeded: The deployment has succeeded for this instance. Failed: The deployment has failed for this instance. Skipped: The deployment has been skipped for this instance. Unknown: The deployment status is unknown for this instance. """ pass def batch_get_deployments(deploymentIds=None): """ Gets information about one or more deployments. See also: AWS API Documentation :example: response = client.batch_get_deployments( deploymentIds=[ 'string', ] ) :type deploymentIds: list :param deploymentIds: A list of deployment IDs, separated by spaces. (string) -- :rtype: dict :return: { 'deploymentsInfo': [ { 'applicationName': 'string', 'deploymentGroupName': 'string', 'deploymentConfigName': 'string', 'deploymentId': 'string', 'previousRevision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'revision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'errorInformation': { 'code': 'DEPLOYMENT_GROUP_MISSING'|'APPLICATION_MISSING'|'REVISION_MISSING'|'IAM_ROLE_MISSING'|'IAM_ROLE_PERMISSIONS'|'NO_EC2_SUBSCRIPTION'|'OVER_MAX_INSTANCES'|'NO_INSTANCES'|'TIMEOUT'|'HEALTH_CONSTRAINTS_INVALID'|'HEALTH_CONSTRAINTS'|'INTERNAL_ERROR'|'THROTTLED'|'ALARM_ACTIVE'|'AGENT_ISSUE'|'AUTO_SCALING_IAM_ROLE_PERMISSIONS'|'AUTO_SCALING_CONFIGURATION'|'MANUAL_STOP', 'message': 'string' }, 'createTime': datetime(2015, 1, 1), 'startTime': datetime(2015, 1, 1), 'completeTime': datetime(2015, 1, 1), 'deploymentOverview': { 'Pending': 123, 'InProgress': 123, 'Succeeded': 123, 'Failed': 123, 'Skipped': 123, 'Ready': 123 }, 'description': 'string', 'creator': 'user'|'autoscaling'|'codeDeployRollback', 'ignoreApplicationStopFailures': True|False, 'autoRollbackConfiguration': { 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, 'updateOutdatedInstancesOnly': True|False, 'rollbackInfo': { 'rollbackDeploymentId': 'string', 'rollbackTriggeringDeploymentId': 'string', 'rollbackMessage': 'string' }, 'deploymentStyle': { 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, 'targetInstances': { 'tagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'autoScalingGroups': [ 'string', ] }, 'instanceTerminationWaitTimeStarted': True|False, 'blueGreenDeploymentConfiguration': { 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, 'loadBalancerInfo': { 'elbInfoList': [ { 'name': 'string' }, ] }, 'additionalDeploymentStatusInfo': 'string', 'fileExistsBehavior': 'DISALLOW'|'OVERWRITE'|'RETAIN' }, ] } :returns: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. """ pass def batch_get_on_premises_instances(instanceNames=None): """ Gets information about one or more on-premises instances. See also: AWS API Documentation :example: response = client.batch_get_on_premises_instances( instanceNames=[ 'string', ] ) :type instanceNames: list :param instanceNames: The names of the on-premises instances about which to get information. (string) -- :rtype: dict :return: { 'instanceInfos': [ { 'instanceName': 'string', 'iamSessionArn': 'string', 'iamUserArn': 'string', 'instanceArn': 'string', 'registerTime': datetime(2015, 1, 1), 'deregisterTime': datetime(2015, 1, 1), 'tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ] } """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def continue_deployment(deploymentId=None): """ For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.) See also: AWS API Documentation :example: response = client.continue_deployment( deploymentId='string' ) :type deploymentId: string :param deploymentId: The deployment ID of the blue/green deployment for which you want to start rerouting traffic to the replacement environment. """ pass def create_application(applicationName=None): """ Creates an application. See also: AWS API Documentation :example: response = client.create_application( applicationName='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of the application. This name must be unique with the applicable IAM user or AWS account. :rtype: dict :return: { 'applicationId': 'string' } """ pass def create_deployment(applicationName=None, deploymentGroupName=None, revision=None, deploymentConfigName=None, description=None, ignoreApplicationStopFailures=None, targetInstances=None, autoRollbackConfiguration=None, updateOutdatedInstancesOnly=None, fileExistsBehavior=None): """ Deploys an application revision through the specified deployment group. See also: AWS API Documentation :example: response = client.create_deployment( applicationName='string', deploymentGroupName='string', revision={ 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, deploymentConfigName='string', description='string', ignoreApplicationStopFailures=True|False, targetInstances={ 'tagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'autoScalingGroups': [ 'string', ] }, autoRollbackConfiguration={ 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, updateOutdatedInstancesOnly=True|False, fileExistsBehavior='DISALLOW'|'OVERWRITE'|'RETAIN' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupName: string :param deploymentGroupName: The name of the deployment group. :type revision: dict :param revision: The type and location of the revision to deploy. revisionType (string) --The type of application revision: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. s3Location (dict) --Information about the location of application artifacts stored in Amazon S3. bucket (string) --The name of the Amazon S3 bucket where the application revision is stored. key (string) --The name of the Amazon S3 object that represents the bundled artifacts for the application revision. bundleType (string) --The file type of the application revision. Must be one of the following: tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file. version (string) --A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. If the version is not specified, the system will use the most recent version by default. eTag (string) --The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. If the ETag is not specified as an input parameter, ETag validation of the object will be skipped. gitHubLocation (dict) --Information about the location of application artifacts stored in GitHub. repository (string) --The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. Specified as account/repository. commitId (string) --The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. :type deploymentConfigName: string :param deploymentConfigName: The name of a deployment configuration associated with the applicable IAM user or AWS account. If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default. :type description: string :param description: A comment about the deployment. :type ignoreApplicationStopFailures: boolean :param ignoreApplicationStopFailures: If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event. If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to an instance, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed. :type targetInstances: dict :param targetInstances: Information about the instances that will belong to the replacement environment in a blue/green deployment. tagFilters (list) --The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. (dict) --Information about an EC2 tag filter. Key (string) --The tag filter key. Value (string) --The tag filter value. Type (string) --The tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. autoScalingGroups (list) --The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment. (string) -- :type autoRollbackConfiguration: dict :param autoRollbackConfiguration: Configuration information for an automatic rollback that is added when a deployment is created. enabled (boolean) --Indicates whether a defined automatic rollback configuration is currently enabled. events (list) --The event type or types that trigger a rollback. (string) -- :type updateOutdatedInstancesOnly: boolean :param updateOutdatedInstancesOnly: Indicates whether to deploy to all instances or only to instances that are not running the latest application revision. :type fileExistsBehavior: string :param fileExistsBehavior: Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment. The fileExistsBehavior parameter takes any of the following values: DISALLOW: The deployment fails. This is also the default behavior if no option is specified. OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance. RETAIN: The version of the file already on the instance is kept and used as part of the new deployment. :rtype: dict :return: { 'deploymentId': 'string' } """ pass def create_deployment_config(deploymentConfigName=None, minimumHealthyHosts=None): """ Creates a deployment configuration. See also: AWS API Documentation :example: response = client.create_deployment_config( deploymentConfigName='string', minimumHealthyHosts={ 'value': 123, 'type': 'HOST_COUNT'|'FLEET_PERCENT' } ) :type deploymentConfigName: string :param deploymentConfigName: [REQUIRED] The name of the deployment configuration to create. :type minimumHealthyHosts: dict :param minimumHealthyHosts: The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. The type parameter takes either of the following values: HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. The value parameter takes an integer. For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95. value (integer) --The minimum healthy instance value. type (string) --The minimum healthy instance type: HOST_COUNT: The minimum number of healthy instance as an absolute value. FLEET_PERCENT: The minimum number of healthy instance as a percentage of the total number of instance in the deployment. In an example of nine instance, if a HOST_COUNT of six is specified, deploy to up to three instances at a time. The deployment will be successful if six or more instances are deployed to successfully; otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance at a time. The deployment will be successful if four or more instance are deployed to successfully; otherwise, the deployment fails. Note In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime will return a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one instance at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure that all instances but one are kept in a healthy state during the deployment. Although this allows one instance at a time to be taken offline for a new deployment, it also means that if the deployment to the last instance fails, the overall deployment still succeeds. For more information, see AWS CodeDeploy Instance Health in the AWS CodeDeploy User Guide . :rtype: dict :return: { 'deploymentConfigId': 'string' } """ pass def create_deployment_group(applicationName=None, deploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=None, deploymentStyle=None, blueGreenDeploymentConfiguration=None, loadBalancerInfo=None): """ Creates a deployment group to which application revisions will be deployed. See also: AWS API Documentation :example: response = client.create_deployment_group( applicationName='string', deploymentGroupName='string', deploymentConfigName='string', ec2TagFilters=[ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], onPremisesInstanceTagFilters=[ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], autoScalingGroups=[ 'string', ], serviceRoleArn='string', triggerConfigurations=[ { 'triggerName': 'string', 'triggerTargetArn': 'string', 'triggerEvents': [ 'DeploymentStart'|'DeploymentSuccess'|'DeploymentFailure'|'DeploymentStop'|'DeploymentRollback'|'DeploymentReady'|'InstanceStart'|'InstanceSuccess'|'InstanceFailure'|'InstanceReady', ] }, ], alarmConfiguration={ 'enabled': True|False, 'ignorePollAlarmFailure': True|False, 'alarms': [ { 'name': 'string' }, ] }, autoRollbackConfiguration={ 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, deploymentStyle={ 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, blueGreenDeploymentConfiguration={ 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, loadBalancerInfo={ 'elbInfoList': [ { 'name': 'string' }, ] } ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupName: string :param deploymentGroupName: [REQUIRED] The name of a new deployment group for the specified application. :type deploymentConfigName: string :param deploymentConfigName: If specified, the deployment configuration name can be either one of the predefined configurations provided with AWS CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation. CodeDeployDefault.OneAtATime is the default deployment configuration. It is used if a configuration isn't specified for the deployment or the deployment group. For more information about the predefined deployment configurations in AWS CodeDeploy, see Working with Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide. :type ec2TagFilters: list :param ec2TagFilters: The Amazon EC2 tags on which to filter. The deployment group will include EC2 instances with any of the specified tags. (dict) --Information about an EC2 tag filter. Key (string) --The tag filter key. Value (string) --The tag filter value. Type (string) --The tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. :type onPremisesInstanceTagFilters: list :param onPremisesInstanceTagFilters: The on-premises instance tags on which to filter. The deployment group will include on-premises instances with any of the specified tags. (dict) --Information about an on-premises instance tag filter. Key (string) --The on-premises instance tag filter key. Value (string) --The on-premises instance tag filter value. Type (string) --The on-premises instance tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. :type autoScalingGroups: list :param autoScalingGroups: A list of associated Auto Scaling groups. (string) -- :type serviceRoleArn: string :param serviceRoleArn: [REQUIRED] A service role ARN that allows AWS CodeDeploy to act on the user's behalf when interacting with AWS services. :type triggerConfigurations: list :param triggerConfigurations: Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an AWS CodeDeploy Event in the AWS CodeDeploy User Guide. (dict) --Information about notification triggers for the deployment group. triggerName (string) --The name of the notification trigger. triggerTargetArn (string) --The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent. triggerEvents (list) --The event type or types for which notifications are triggered. (string) -- :type alarmConfiguration: dict :param alarmConfiguration: Information to add about Amazon CloudWatch alarms when the deployment group is created. enabled (boolean) --Indicates whether the alarm configuration is enabled. ignorePollAlarmFailure (boolean) --Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false. true: The deployment will proceed even if alarm status information can't be retrieved from Amazon CloudWatch. false: The deployment will stop if alarm status information can't be retrieved from Amazon CloudWatch. alarms (list) --A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group. (dict) --Information about an alarm. name (string) --The name of the alarm. Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms. :type autoRollbackConfiguration: dict :param autoRollbackConfiguration: Configuration information for an automatic rollback that is added when a deployment group is created. enabled (boolean) --Indicates whether a defined automatic rollback configuration is currently enabled. events (list) --The event type or types that trigger a rollback. (string) -- :type deploymentStyle: dict :param deploymentStyle: Information about the type of deployment, in-place or blue/green, that you want to run and whether to route deployment traffic behind a load balancer. deploymentType (string) --Indicates whether to run an in-place deployment or a blue/green deployment. deploymentOption (string) --Indicates whether to route deployment traffic behind a load balancer. :type blueGreenDeploymentConfiguration: dict :param blueGreenDeploymentConfiguration: Information about blue/green deployment options for a deployment group. terminateBlueInstancesOnDeploymentSuccess (dict) --Information about whether to terminate instances in the original fleet during a blue/green deployment. action (string) --The action to take on instances in the original environment after a successful blue/green deployment. TERMINATE: Instances are terminated after a specified wait time. KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group. terminationWaitTimeInMinutes (integer) --The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. deploymentReadyOption (dict) --Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment. actionOnTimeout (string) --Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment. CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment. STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped. waitTimeInMinutes (integer) --The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for actionOnTimeout greenFleetProvisioningOption (dict) --Information about how instances are provisioned for a replacement environment in a blue/green deployment. action (string) --The method used to add instances to a replacement environment. DISCOVER_EXISTING: Use instances that already exist or will be created manually. COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. :type loadBalancerInfo: dict :param loadBalancerInfo: Information about the load balancer used in a deployment. elbInfoList (list) --An array containing information about the load balancer in Elastic Load Balancing to use in a deployment. (dict) --Information about a load balancer in Elastic Load Balancing to use in a deployment. name (string) --For blue/green deployments, the name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. :rtype: dict :return: { 'deploymentGroupId': 'string' } """ pass def delete_application(applicationName=None): """ Deletes an application. See also: AWS API Documentation :example: response = client.delete_application( applicationName='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. """ pass def delete_deployment_config(deploymentConfigName=None): """ Deletes a deployment configuration. See also: AWS API Documentation :example: response = client.delete_deployment_config( deploymentConfigName='string' ) :type deploymentConfigName: string :param deploymentConfigName: [REQUIRED] The name of a deployment configuration associated with the applicable IAM user or AWS account. """ pass def delete_deployment_group(applicationName=None, deploymentGroupName=None): """ Deletes a deployment group. See also: AWS API Documentation :example: response = client.delete_deployment_group( applicationName='string', deploymentGroupName='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupName: string :param deploymentGroupName: [REQUIRED] The name of an existing deployment group for the specified application. :rtype: dict :return: { 'hooksNotCleanedUp': [ { 'name': 'string', 'hook': 'string' }, ] } """ pass def deregister_on_premises_instance(instanceName=None): """ Deregisters an on-premises instance. See also: AWS API Documentation :example: response = client.deregister_on_premises_instance( instanceName='string' ) :type instanceName: string :param instanceName: [REQUIRED] The name of the on-premises instance to deregister. """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_application(applicationName=None): """ Gets information about an application. See also: AWS API Documentation :example: response = client.get_application( applicationName='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :rtype: dict :return: { 'application': { 'applicationId': 'string', 'applicationName': 'string', 'createTime': datetime(2015, 1, 1), 'linkedToGitHub': True|False, 'gitHubAccountName': 'string' } } """ pass def get_application_revision(applicationName=None, revision=None): """ Gets information about an application revision. See also: AWS API Documentation :example: response = client.get_application_revision( applicationName='string', revision={ 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } } ) :type applicationName: string :param applicationName: [REQUIRED] The name of the application that corresponds to the revision. :type revision: dict :param revision: [REQUIRED] Information about the application revision to get, including type and location. revisionType (string) --The type of application revision: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. s3Location (dict) --Information about the location of application artifacts stored in Amazon S3. bucket (string) --The name of the Amazon S3 bucket where the application revision is stored. key (string) --The name of the Amazon S3 object that represents the bundled artifacts for the application revision. bundleType (string) --The file type of the application revision. Must be one of the following: tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file. version (string) --A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. If the version is not specified, the system will use the most recent version by default. eTag (string) --The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. If the ETag is not specified as an input parameter, ETag validation of the object will be skipped. gitHubLocation (dict) --Information about the location of application artifacts stored in GitHub. repository (string) --The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. Specified as account/repository. commitId (string) --The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. :rtype: dict :return: { 'applicationName': 'string', 'revision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'revisionInfo': { 'description': 'string', 'deploymentGroups': [ 'string', ], 'firstUsedTime': datetime(2015, 1, 1), 'lastUsedTime': datetime(2015, 1, 1), 'registerTime': datetime(2015, 1, 1) } } :returns: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. """ pass def get_deployment(deploymentId=None): """ Gets information about a deployment. See also: AWS API Documentation :example: response = client.get_deployment( deploymentId='string' ) :type deploymentId: string :param deploymentId: [REQUIRED] A deployment ID associated with the applicable IAM user or AWS account. :rtype: dict :return: { 'deploymentInfo': { 'applicationName': 'string', 'deploymentGroupName': 'string', 'deploymentConfigName': 'string', 'deploymentId': 'string', 'previousRevision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'revision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'errorInformation': { 'code': 'DEPLOYMENT_GROUP_MISSING'|'APPLICATION_MISSING'|'REVISION_MISSING'|'IAM_ROLE_MISSING'|'IAM_ROLE_PERMISSIONS'|'NO_EC2_SUBSCRIPTION'|'OVER_MAX_INSTANCES'|'NO_INSTANCES'|'TIMEOUT'|'HEALTH_CONSTRAINTS_INVALID'|'HEALTH_CONSTRAINTS'|'INTERNAL_ERROR'|'THROTTLED'|'ALARM_ACTIVE'|'AGENT_ISSUE'|'AUTO_SCALING_IAM_ROLE_PERMISSIONS'|'AUTO_SCALING_CONFIGURATION'|'MANUAL_STOP', 'message': 'string' }, 'createTime': datetime(2015, 1, 1), 'startTime': datetime(2015, 1, 1), 'completeTime': datetime(2015, 1, 1), 'deploymentOverview': { 'Pending': 123, 'InProgress': 123, 'Succeeded': 123, 'Failed': 123, 'Skipped': 123, 'Ready': 123 }, 'description': 'string', 'creator': 'user'|'autoscaling'|'codeDeployRollback', 'ignoreApplicationStopFailures': True|False, 'autoRollbackConfiguration': { 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, 'updateOutdatedInstancesOnly': True|False, 'rollbackInfo': { 'rollbackDeploymentId': 'string', 'rollbackTriggeringDeploymentId': 'string', 'rollbackMessage': 'string' }, 'deploymentStyle': { 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, 'targetInstances': { 'tagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'autoScalingGroups': [ 'string', ] }, 'instanceTerminationWaitTimeStarted': True|False, 'blueGreenDeploymentConfiguration': { 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, 'loadBalancerInfo': { 'elbInfoList': [ { 'name': 'string' }, ] }, 'additionalDeploymentStatusInfo': 'string', 'fileExistsBehavior': 'DISALLOW'|'OVERWRITE'|'RETAIN' } } :returns: tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file. """ pass def get_deployment_config(deploymentConfigName=None): """ Gets information about a deployment configuration. See also: AWS API Documentation :example: response = client.get_deployment_config( deploymentConfigName='string' ) :type deploymentConfigName: string :param deploymentConfigName: [REQUIRED] The name of a deployment configuration associated with the applicable IAM user or AWS account. :rtype: dict :return: { 'deploymentConfigInfo': { 'deploymentConfigId': 'string', 'deploymentConfigName': 'string', 'minimumHealthyHosts': { 'value': 123, 'type': 'HOST_COUNT'|'FLEET_PERCENT' }, 'createTime': datetime(2015, 1, 1) } } """ pass def get_deployment_group(applicationName=None, deploymentGroupName=None): """ Gets information about a deployment group. See also: AWS API Documentation :example: response = client.get_deployment_group( applicationName='string', deploymentGroupName='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupName: string :param deploymentGroupName: [REQUIRED] The name of an existing deployment group for the specified application. :rtype: dict :return: { 'deploymentGroupInfo': { 'applicationName': 'string', 'deploymentGroupId': 'string', 'deploymentGroupName': 'string', 'deploymentConfigName': 'string', 'ec2TagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'onPremisesInstanceTagFilters': [ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], 'autoScalingGroups': [ { 'name': 'string', 'hook': 'string' }, ], 'serviceRoleArn': 'string', 'targetRevision': { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, 'triggerConfigurations': [ { 'triggerName': 'string', 'triggerTargetArn': 'string', 'triggerEvents': [ 'DeploymentStart'|'DeploymentSuccess'|'DeploymentFailure'|'DeploymentStop'|'DeploymentRollback'|'DeploymentReady'|'InstanceStart'|'InstanceSuccess'|'InstanceFailure'|'InstanceReady', ] }, ], 'alarmConfiguration': { 'enabled': True|False, 'ignorePollAlarmFailure': True|False, 'alarms': [ { 'name': 'string' }, ] }, 'autoRollbackConfiguration': { 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, 'deploymentStyle': { 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, 'blueGreenDeploymentConfiguration': { 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, 'loadBalancerInfo': { 'elbInfoList': [ { 'name': 'string' }, ] }, 'lastSuccessfulDeployment': { 'deploymentId': 'string', 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'endTime': datetime(2015, 1, 1), 'createTime': datetime(2015, 1, 1) }, 'lastAttemptedDeployment': { 'deploymentId': 'string', 'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', 'endTime': datetime(2015, 1, 1), 'createTime': datetime(2015, 1, 1) } } } :returns: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. """ pass def get_deployment_instance(deploymentId=None, instanceId=None): """ Gets information about an instance as part of a deployment. See also: AWS API Documentation :example: response = client.get_deployment_instance( deploymentId='string', instanceId='string' ) :type deploymentId: string :param deploymentId: [REQUIRED] The unique ID of a deployment. :type instanceId: string :param instanceId: [REQUIRED] The unique ID of an instance in the deployment group. :rtype: dict :return: { 'instanceSummary': { 'deploymentId': 'string', 'instanceId': 'string', 'status': 'Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown'|'Ready', 'lastUpdatedAt': datetime(2015, 1, 1), 'lifecycleEvents': [ { 'lifecycleEventName': 'string', 'diagnostics': { 'errorCode': 'Success'|'ScriptMissing'|'ScriptNotExecutable'|'ScriptTimedOut'|'ScriptFailed'|'UnknownError', 'scriptName': 'string', 'message': 'string', 'logTail': 'string' }, 'startTime': datetime(2015, 1, 1), 'endTime': datetime(2015, 1, 1), 'status': 'Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown' }, ], 'instanceType': 'Blue'|'Green' } } :returns: Pending: The deployment is pending for this instance. In Progress: The deployment is in progress for this instance. Succeeded: The deployment has succeeded for this instance. Failed: The deployment has failed for this instance. Skipped: The deployment has been skipped for this instance. Unknown: The deployment status is unknown for this instance. """ pass def get_on_premises_instance(instanceName=None): """ Gets information about an on-premises instance. See also: AWS API Documentation :example: response = client.get_on_premises_instance( instanceName='string' ) :type instanceName: string :param instanceName: [REQUIRED] The name of the on-premises instance about which to get information. :rtype: dict :return: { 'instanceInfo': { 'instanceName': 'string', 'iamSessionArn': 'string', 'iamUserArn': 'string', 'instanceArn': 'string', 'registerTime': datetime(2015, 1, 1), 'deregisterTime': datetime(2015, 1, 1), 'tags': [ { 'Key': 'string', 'Value': 'string' }, ] } } """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} """ pass def get_waiter(): """ """ pass def list_application_revisions(applicationName=None, sortBy=None, sortOrder=None, s3Bucket=None, s3KeyPrefix=None, deployed=None, nextToken=None): """ Lists information about revisions for an application. See also: AWS API Documentation :example: response = client.list_application_revisions( applicationName='string', sortBy='registerTime'|'firstUsedTime'|'lastUsedTime', sortOrder='ascending'|'descending', s3Bucket='string', s3KeyPrefix='string', deployed='include'|'exclude'|'ignore', nextToken='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type sortBy: string :param sortBy: The column name to use to sort the list results: registerTime: Sort by the time the revisions were registered with AWS CodeDeploy. firstUsedTime: Sort by the time the revisions were first used in a deployment. lastUsedTime: Sort by the time the revisions were last used in a deployment. If not specified or set to null, the results will be returned in an arbitrary order. :type sortOrder: string :param sortOrder: The order in which to sort the list results: ascending: ascending order. descending: descending order. If not specified, the results will be sorted in ascending order. If set to null, the results will be sorted in an arbitrary order. :type s3Bucket: string :param s3Bucket: An Amazon S3 bucket name to limit the search for revisions. If set to null, all of the user's buckets will be searched. :type s3KeyPrefix: string :param s3KeyPrefix: A key prefix for the set of Amazon S3 objects to limit the search for revisions. :type deployed: string :param deployed: Whether to list revisions based on whether the revision is the target revision of an deployment group: include: List revisions that are target revisions of a deployment group. exclude: Do not list revisions that are target revisions of a deployment group. ignore: List all revisions. :type nextToken: string :param nextToken: An identifier returned from the previous list application revisions call. It can be used to return the next set of applications in the list. :rtype: dict :return: { 'revisions': [ { 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } }, ], 'nextToken': 'string' } :returns: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. """ pass def list_applications(nextToken=None): """ Lists the applications registered with the applicable IAM user or AWS account. See also: AWS API Documentation :example: response = client.list_applications( nextToken='string' ) :type nextToken: string :param nextToken: An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list. :rtype: dict :return: { 'applications': [ 'string', ], 'nextToken': 'string' } """ pass def list_deployment_configs(nextToken=None): """ Lists the deployment configurations with the applicable IAM user or AWS account. See also: AWS API Documentation :example: response = client.list_deployment_configs( nextToken='string' ) :type nextToken: string :param nextToken: An identifier returned from the previous list deployment configurations call. It can be used to return the next set of deployment configurations in the list. :rtype: dict :return: { 'deploymentConfigsList': [ 'string', ], 'nextToken': 'string' } """ pass def list_deployment_groups(applicationName=None, nextToken=None): """ Lists the deployment groups for an application registered with the applicable IAM user or AWS account. See also: AWS API Documentation :example: response = client.list_deployment_groups( applicationName='string', nextToken='string' ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type nextToken: string :param nextToken: An identifier returned from the previous list deployment groups call. It can be used to return the next set of deployment groups in the list. :rtype: dict :return: { 'applicationName': 'string', 'deploymentGroups': [ 'string', ], 'nextToken': 'string' } :returns: (string) -- """ pass def list_deployment_instances(deploymentId=None, nextToken=None, instanceStatusFilter=None, instanceTypeFilter=None): """ Lists the instance for a deployment associated with the applicable IAM user or AWS account. See also: AWS API Documentation :example: response = client.list_deployment_instances( deploymentId='string', nextToken='string', instanceStatusFilter=[ 'Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown'|'Ready', ], instanceTypeFilter=[ 'Blue'|'Green', ] ) :type deploymentId: string :param deploymentId: [REQUIRED] The unique ID of a deployment. :type nextToken: string :param nextToken: An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list. :type instanceStatusFilter: list :param instanceStatusFilter: A subset of instances to list by status: Pending: Include those instance with pending deployments. InProgress: Include those instance where deployments are still in progress. Succeeded: Include those instances with successful deployments. Failed: Include those instance with failed deployments. Skipped: Include those instance with skipped deployments. Unknown: Include those instance with deployments in an unknown state. (string) -- :type instanceTypeFilter: list :param instanceTypeFilter: The set of instances in a blue/green deployment, either those in the original environment ('BLUE') or those in the replacement environment ('GREEN'), for which you want to view instance information. (string) -- :rtype: dict :return: { 'instancesList': [ 'string', ], 'nextToken': 'string' } :returns: (string) -- """ pass def list_deployments(applicationName=None, deploymentGroupName=None, includeOnlyStatuses=None, createTimeRange=None, nextToken=None): """ Lists the deployments in a deployment group for an application registered with the applicable IAM user or AWS account. See also: AWS API Documentation :example: response = client.list_deployments( applicationName='string', deploymentGroupName='string', includeOnlyStatuses=[ 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped'|'Ready', ], createTimeRange={ 'start': datetime(2015, 1, 1), 'end': datetime(2015, 1, 1) }, nextToken='string' ) :type applicationName: string :param applicationName: The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type deploymentGroupName: string :param deploymentGroupName: The name of an existing deployment group for the specified application. :type includeOnlyStatuses: list :param includeOnlyStatuses: A subset of deployments to list by status: Created: Include created deployments in the resulting list. Queued: Include queued deployments in the resulting list. In Progress: Include in-progress deployments in the resulting list. Succeeded: Include successful deployments in the resulting list. Failed: Include failed deployments in the resulting list. Stopped: Include stopped deployments in the resulting list. (string) -- :type createTimeRange: dict :param createTimeRange: A time range (start and end) for returning a subset of the list of deployments. start (datetime) --The start time of the time range. Note Specify null to leave the start time open-ended. end (datetime) --The end time of the time range. Note Specify null to leave the end time open-ended. :type nextToken: string :param nextToken: An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list. :rtype: dict :return: { 'deployments': [ 'string', ], 'nextToken': 'string' } :returns: (string) -- """ pass def list_git_hub_account_token_names(nextToken=None): """ Lists the names of stored connections to GitHub accounts. See also: AWS API Documentation :example: response = client.list_git_hub_account_token_names( nextToken='string' ) :type nextToken: string :param nextToken: An identifier returned from the previous ListGitHubAccountTokenNames call. It can be used to return the next set of names in the list. :rtype: dict :return: { 'tokenNameList': [ 'string', ], 'nextToken': 'string' } """ pass def list_on_premises_instances(registrationStatus=None, tagFilters=None, nextToken=None): """ Gets a list of names for one or more on-premises instances. Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter. See also: AWS API Documentation :example: response = client.list_on_premises_instances( registrationStatus='Registered'|'Deregistered', tagFilters=[ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], nextToken='string' ) :type registrationStatus: string :param registrationStatus: The registration status of the on-premises instances: Deregistered: Include deregistered on-premises instances in the resulting list. Registered: Include registered on-premises instances in the resulting list. :type tagFilters: list :param tagFilters: The on-premises instance tags that will be used to restrict the corresponding on-premises instance names returned. (dict) --Information about an on-premises instance tag filter. Key (string) --The on-premises instance tag filter key. Value (string) --The on-premises instance tag filter value. Type (string) --The on-premises instance tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. :type nextToken: string :param nextToken: An identifier returned from the previous list on-premises instances call. It can be used to return the next set of on-premises instances in the list. :rtype: dict :return: { 'instanceNames': [ 'string', ], 'nextToken': 'string' } :returns: (string) -- """ pass def register_application_revision(applicationName=None, description=None, revision=None): """ Registers with AWS CodeDeploy a revision for the specified application. See also: AWS API Documentation :example: response = client.register_application_revision( applicationName='string', description='string', revision={ 'revisionType': 'S3'|'GitHub', 's3Location': { 'bucket': 'string', 'key': 'string', 'bundleType': 'tar'|'tgz'|'zip', 'version': 'string', 'eTag': 'string' }, 'gitHubLocation': { 'repository': 'string', 'commitId': 'string' } } ) :type applicationName: string :param applicationName: [REQUIRED] The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account. :type description: string :param description: A comment about the revision. :type revision: dict :param revision: [REQUIRED] Information about the application revision to register, including type and location. revisionType (string) --The type of application revision: S3: An application revision stored in Amazon S3. GitHub: An application revision stored in GitHub. s3Location (dict) --Information about the location of application artifacts stored in Amazon S3. bucket (string) --The name of the Amazon S3 bucket where the application revision is stored. key (string) --The name of the Amazon S3 object that represents the bundled artifacts for the application revision. bundleType (string) --The file type of the application revision. Must be one of the following: tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip archive file. version (string) --A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. If the version is not specified, the system will use the most recent version by default. eTag (string) --The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision. If the ETag is not specified as an input parameter, ETag validation of the object will be skipped. gitHubLocation (dict) --Information about the location of application artifacts stored in GitHub. repository (string) --The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. Specified as account/repository. commitId (string) --The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. """ pass def register_on_premises_instance(instanceName=None, iamSessionArn=None, iamUserArn=None): """ Registers an on-premises instance. See also: AWS API Documentation :example: response = client.register_on_premises_instance( instanceName='string', iamSessionArn='string', iamUserArn='string' ) :type instanceName: string :param instanceName: [REQUIRED] The name of the on-premises instance to register. :type iamSessionArn: string :param iamSessionArn: The ARN of the IAM session to associate with the on-premises instance. :type iamUserArn: string :param iamUserArn: The ARN of the IAM user to associate with the on-premises instance. """ pass def remove_tags_from_on_premises_instances(tags=None, instanceNames=None): """ Removes one or more tags from one or more on-premises instances. See also: AWS API Documentation :example: response = client.remove_tags_from_on_premises_instances( tags=[ { 'Key': 'string', 'Value': 'string' }, ], instanceNames=[ 'string', ] ) :type tags: list :param tags: [REQUIRED] The tag key-value pairs to remove from the on-premises instances. (dict) --Information about a tag. Key (string) --The tag's key. Value (string) --The tag's value. :type instanceNames: list :param instanceNames: [REQUIRED] The names of the on-premises instances from which to remove tags. (string) -- """ pass def skip_wait_time_for_instance_termination(deploymentId=None): """ In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is completed. See also: AWS API Documentation :example: response = client.skip_wait_time_for_instance_termination( deploymentId='string' ) :type deploymentId: string :param deploymentId: The ID of the blue/green deployment for which you want to skip the instance termination wait time. """ pass def stop_deployment(deploymentId=None, autoRollbackEnabled=None): """ Attempts to stop an ongoing deployment. See also: AWS API Documentation :example: response = client.stop_deployment( deploymentId='string', autoRollbackEnabled=True|False ) :type deploymentId: string :param deploymentId: [REQUIRED] The unique ID of a deployment. :type autoRollbackEnabled: boolean :param autoRollbackEnabled: Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision. :rtype: dict :return: { 'status': 'Pending'|'Succeeded', 'statusMessage': 'string' } :returns: Pending: The stop operation is pending. Succeeded: The stop operation was successful. """ pass def update_application(applicationName=None, newApplicationName=None): """ Changes the name of an application. See also: AWS API Documentation :example: response = client.update_application( applicationName='string', newApplicationName='string' ) :type applicationName: string :param applicationName: The current name of the application you want to change. :type newApplicationName: string :param newApplicationName: The new name to give the application. """ pass def update_deployment_group(applicationName=None, currentDeploymentGroupName=None, newDeploymentGroupName=None, deploymentConfigName=None, ec2TagFilters=None, onPremisesInstanceTagFilters=None, autoScalingGroups=None, serviceRoleArn=None, triggerConfigurations=None, alarmConfiguration=None, autoRollbackConfiguration=None, deploymentStyle=None, blueGreenDeploymentConfiguration=None, loadBalancerInfo=None): """ Changes information about a deployment group. See also: AWS API Documentation :example: response = client.update_deployment_group( applicationName='string', currentDeploymentGroupName='string', newDeploymentGroupName='string', deploymentConfigName='string', ec2TagFilters=[ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], onPremisesInstanceTagFilters=[ { 'Key': 'string', 'Value': 'string', 'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE' }, ], autoScalingGroups=[ 'string', ], serviceRoleArn='string', triggerConfigurations=[ { 'triggerName': 'string', 'triggerTargetArn': 'string', 'triggerEvents': [ 'DeploymentStart'|'DeploymentSuccess'|'DeploymentFailure'|'DeploymentStop'|'DeploymentRollback'|'DeploymentReady'|'InstanceStart'|'InstanceSuccess'|'InstanceFailure'|'InstanceReady', ] }, ], alarmConfiguration={ 'enabled': True|False, 'ignorePollAlarmFailure': True|False, 'alarms': [ { 'name': 'string' }, ] }, autoRollbackConfiguration={ 'enabled': True|False, 'events': [ 'DEPLOYMENT_FAILURE'|'DEPLOYMENT_STOP_ON_ALARM'|'DEPLOYMENT_STOP_ON_REQUEST', ] }, deploymentStyle={ 'deploymentType': 'IN_PLACE'|'BLUE_GREEN', 'deploymentOption': 'WITH_TRAFFIC_CONTROL'|'WITHOUT_TRAFFIC_CONTROL' }, blueGreenDeploymentConfiguration={ 'terminateBlueInstancesOnDeploymentSuccess': { 'action': 'TERMINATE'|'KEEP_ALIVE', 'terminationWaitTimeInMinutes': 123 }, 'deploymentReadyOption': { 'actionOnTimeout': 'CONTINUE_DEPLOYMENT'|'STOP_DEPLOYMENT', 'waitTimeInMinutes': 123 }, 'greenFleetProvisioningOption': { 'action': 'DISCOVER_EXISTING'|'COPY_AUTO_SCALING_GROUP' } }, loadBalancerInfo={ 'elbInfoList': [ { 'name': 'string' }, ] } ) :type applicationName: string :param applicationName: [REQUIRED] The application name corresponding to the deployment group to update. :type currentDeploymentGroupName: string :param currentDeploymentGroupName: [REQUIRED] The current name of the deployment group. :type newDeploymentGroupName: string :param newDeploymentGroupName: The new name of the deployment group, if you want to change it. :type deploymentConfigName: string :param deploymentConfigName: The replacement deployment configuration name to use, if you want to change it. :type ec2TagFilters: list :param ec2TagFilters: The replacement set of Amazon EC2 tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names. (dict) --Information about an EC2 tag filter. Key (string) --The tag filter key. Value (string) --The tag filter value. Type (string) --The tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. :type onPremisesInstanceTagFilters: list :param onPremisesInstanceTagFilters: The replacement set of on-premises instance tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names. (dict) --Information about an on-premises instance tag filter. Key (string) --The on-premises instance tag filter key. Value (string) --The on-premises instance tag filter value. Type (string) --The on-premises instance tag filter type: KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value. :type autoScalingGroups: list :param autoScalingGroups: The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them. To keep the Auto Scaling groups, enter their names. To remove Auto Scaling groups, do not enter any Auto Scaling group names. (string) -- :type serviceRoleArn: string :param serviceRoleArn: A replacement ARN for the service role, if you want to change it. :type triggerConfigurations: list :param triggerConfigurations: Information about triggers to change when the deployment group is updated. For examples, see Modify Triggers in an AWS CodeDeploy Deployment Group in the AWS CodeDeploy User Guide. (dict) --Information about notification triggers for the deployment group. triggerName (string) --The name of the notification trigger. triggerTargetArn (string) --The ARN of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent. triggerEvents (list) --The event type or types for which notifications are triggered. (string) -- :type alarmConfiguration: dict :param alarmConfiguration: Information to add or change about Amazon CloudWatch alarms when the deployment group is updated. enabled (boolean) --Indicates whether the alarm configuration is enabled. ignorePollAlarmFailure (boolean) --Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false. true: The deployment will proceed even if alarm status information can't be retrieved from Amazon CloudWatch. false: The deployment will stop if alarm status information can't be retrieved from Amazon CloudWatch. alarms (list) --A list of alarms configured for the deployment group. A maximum of 10 alarms can be added to a deployment group. (dict) --Information about an alarm. name (string) --The name of the alarm. Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms. :type autoRollbackConfiguration: dict :param autoRollbackConfiguration: Information for an automatic rollback configuration that is added or changed when a deployment group is updated. enabled (boolean) --Indicates whether a defined automatic rollback configuration is currently enabled. events (list) --The event type or types that trigger a rollback. (string) -- :type deploymentStyle: dict :param deploymentStyle: Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer. deploymentType (string) --Indicates whether to run an in-place deployment or a blue/green deployment. deploymentOption (string) --Indicates whether to route deployment traffic behind a load balancer. :type blueGreenDeploymentConfiguration: dict :param blueGreenDeploymentConfiguration: Information about blue/green deployment options for a deployment group. terminateBlueInstancesOnDeploymentSuccess (dict) --Information about whether to terminate instances in the original fleet during a blue/green deployment. action (string) --The action to take on instances in the original environment after a successful blue/green deployment. TERMINATE: Instances are terminated after a specified wait time. KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group. terminationWaitTimeInMinutes (integer) --The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. deploymentReadyOption (dict) --Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment. actionOnTimeout (string) --Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment. CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment. STOP_DEPLOYMENT: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped. waitTimeInMinutes (integer) --The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for actionOnTimeout greenFleetProvisioningOption (dict) --Information about how instances are provisioned for a replacement environment in a blue/green deployment. action (string) --The method used to add instances to a replacement environment. DISCOVER_EXISTING: Use instances that already exist or will be created manually. COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group. :type loadBalancerInfo: dict :param loadBalancerInfo: Information about the load balancer used in a deployment. elbInfoList (list) --An array containing information about the load balancer in Elastic Load Balancing to use in a deployment. (dict) --Information about a load balancer in Elastic Load Balancing to use in a deployment. name (string) --For blue/green deployments, the name of the load balancer that will be used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. :rtype: dict :return: { 'hooksNotCleanedUp': [ { 'name': 'string', 'hook': 'string' }, ] } """ pass
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Create configuration to deploy GKE cluster.""" def GenerateConfig(context): """Generate YAML resource configuration.""" name_prefix = context.env['deployment'] + '-' + context.env['name'] cluster_name = name_prefix regular_type_name = name_prefix + '-type' service_type_name = name_prefix + '-service-type' resources = [{ 'name': cluster_name, 'type': 'gcp-types/container-v1beta1:projects.zones.clusters', 'properties': { 'zone': context.properties['zone'], 'cluster': { 'name': cluster_name, 'network': context.properties['network'], 'subnetwork': context.properties['subnetwork'], 'nodePools': [{ 'name': 'default-pool', 'config': { 'machineType': context.properties['machineType'], 'oauthScopes': [ 'https://www.googleapis.com/auth/' + s for s in [ 'compute', 'devstorage.read_only', 'logging.write', 'monitoring' ] ], }, 'initialNodeCount': context.properties['initialNodeCount'], 'management': { 'autoUpgrade': True, 'autoRepair': True }, }], 'privateClusterConfig': { 'enablePrivateNodes': True, 'masterIpv4CidrBlock': '172.16.0.0/28' }, 'shieldedNodes': { 'enabled': True }, 'ipAllocationPolicy': { 'useIpAliases': True }, 'releaseChannel': { 'channel': 'REGULAR' }, }, } }] resources.append({ 'name': name_prefix + '-cloud-router', 'type': 'compute.v1.routers', 'properties': { 'region': context.properties['zone'][:-2], 'network': 'global/networks/' + context.properties['network'], 'nats': [{ 'name': name_prefix + '-nat-config', 'natIpAllocateOption': 'AUTO_ONLY', 'sourceSubnetworkIpRangesToNat': 'ALL_SUBNETWORKS_ALL_IP_RANGES', 'logConfig': { 'enable': True }, }] } }) k8s_resource_types = [] k8s_resource_types.append(service_type_name) resources.append({ 'name': service_type_name, 'type': 'deploymentmanager.v2beta.typeProvider', 'properties': { 'options': { 'validationOptions': { # Kubernetes API accepts ints, in fields they annotate # with string. This validation will show as warning # rather than failure for Deployment Manager. # https://github.com/kubernetes/kubernetes/issues/2971 'schemaValidation': 'IGNORE_WITH_WARNINGS' }, # According to kubernetes spec, the path parameter 'name' # should be the value inside the metadata field # https://github.com/kubernetes/community/blob/master # /contributors/devel/api-conventions.md # This mapping specifies that 'inputMappings': [{ 'fieldName': 'name', 'location': 'PATH', 'methodMatch': '^(GET|DELETE|PUT)$', 'value': '$.ifNull(' '$.resource.properties.metadata.name, ' '$.resource.name)' }, { 'fieldName': 'metadata.name', 'location': 'BODY', 'methodMatch': '^(PUT|POST)$', 'value': '$.ifNull(' '$.resource.properties.metadata.name, ' '$.resource.name)' }, { 'fieldName': 'Authorization', 'location': 'HEADER', 'value': '$.concat("Bearer ",' '$.googleOauth2AccessToken())' }, { 'fieldName': 'spec.clusterIP', 'location': 'BODY', 'methodMatch': '^(PUT)$', 'value': '$.resource.self.spec.clusterIP' }, { 'fieldName': 'metadata.resourceVersion', 'location': 'BODY', 'methodMatch': '^(PUT)$', 'value': '$.resource.self.metadata.resourceVersion' }, { 'fieldName': 'spec.ports', 'location': 'BODY', 'methodMatch': '^(PUT)$', 'value': '$.resource.self.spec.ports' }] }, 'descriptorUrl': ''.join(['https://$(ref.', cluster_name, '.endpoint)/openapi/v2']) } }) k8s_resource_types.append(regular_type_name) resources.append({ 'name': regular_type_name, 'type': 'deploymentmanager.v2beta.typeProvider', 'properties': { 'options': { 'validationOptions': { # Kubernetes API accepts ints, in fields they annotate # with string. This validation will show as warning # rather than failure for Deployment Manager. # https://github.com/kubernetes/kubernetes/issues/2971 'schemaValidation': 'IGNORE_WITH_WARNINGS' }, # According to kubernetes spec, the path parameter 'name' # should be the value inside the metadata field # https://github.com/kubernetes/community/blob/master # /contributors/devel/api-conventions.md # This mapping specifies that 'inputMappings': [{ 'fieldName': 'name', 'location': 'PATH', 'methodMatch': '^(GET|DELETE|PUT)$', 'value': '$.ifNull(' '$.resource.properties.metadata.name, ' '$.resource.name)' }, { 'fieldName': 'metadata.name', 'location': 'BODY', 'methodMatch': '^(PUT|POST)$', 'value': '$.ifNull(' '$.resource.properties.metadata.name, ' '$.resource.name)' }, { 'fieldName': 'Authorization', 'location': 'HEADER', 'value': '$.concat("Bearer ",' '$.googleOauth2AccessToken())' }] }, 'descriptorUrl': ''.join(['https://$(ref.', cluster_name, '.endpoint)/openapi/v2']) } }) cluster_regular_type_root = ''.join( [context.env['project'], '/', regular_type_name]) cluster_service_type_root = ''.join( [context.env['project'], '/', service_type_name]) cluster_types = { 'Service': ''.join([ cluster_service_type_root, ':', '/api/v1/namespaces/{namespace}/services/{name}' ]), 'ServiceAccount': ''.join([ cluster_regular_type_root, ':', '/api/v1/namespaces/{namespace}/serviceaccounts/{name}' ]), 'Deployment': ''.join([ cluster_regular_type_root, ':', '/apis/apps/v1/namespaces/{namespace}/deployments/{name}' ]), 'ClusterRole': ''.join([ cluster_regular_type_root, ':', '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}' ]), 'ClusterRoleBinding': ''.join([ cluster_regular_type_root, ':', '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}' ]), 'Ingress': ''.join([ cluster_regular_type_root, ':', '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}' ]), } resources.append({ 'name': name_prefix + '-rbac-admin-clusterrolebinding', 'type': cluster_types['ClusterRoleBinding'], 'metadata': { 'dependsOn': k8s_resource_types }, 'properties': { 'apiVersion': 'rbac.authorization.k8s.io/v1beta1', 'kind': 'ClusterRoleBinding', 'namespace': 'default', 'metadata': { 'name': 'rbac-cluster-admin', }, 'roleRef': { 'apiGroup': 'rbac.authorization.k8s.io', 'kind': 'ClusterRole', 'name': 'cluster-admin', }, 'subjects': [{ 'kind': 'User', 'name': context.properties['serviceAccountName'], 'apiGroup': 'rbac.authorization.k8s.io', }], } }) resources.extend([{ 'name': name_prefix + '-service', 'type': cluster_types['Service'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'v1', 'kind': 'Service', 'namespace': 'default', 'metadata': { 'name': 'ambassador-admin', 'labels': { 'service': 'ambassador-admin' } }, 'spec': { 'type': 'NodePort', 'ports': [{ 'name': 'ambassador-admin', 'port': 8877, 'targetPort': 8877, }], 'selector': { 'service': 'ambassador', } } } }, { 'name': name_prefix + '-clusterrole', 'type': cluster_types['ClusterRole'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'rbac.authorization.k8s.io/v1beta1', 'kind': 'ClusterRole', 'namespace': 'default', 'metadata': { 'name': 'ambassador', }, 'rules': [{ 'apiGroups': [''], 'resources': ['endpoints', 'namespaces', 'secrets', 'services'], 'verbs': ['get', 'list', 'watch'] }, { 'apiGroups': ['getambassador.io'], 'resources': ['*'], 'verbs': ['get', 'list', 'watch'] }, { 'apiGroups': ['apiextensions.k8s.io'], 'resources': ['customresourcedefinitions'], 'verbs': ['get', 'list', 'watch'] }, { 'apiGroups': ['networking.internal.knative.dev'], 'resources': ['ingresses/status', 'clusteringresses/status'], 'verbs': ['update'] }, { 'apiGroups': ['extensions'], 'resources': ['ingresses'], 'verbs': ['get', 'list', 'watch'] }, { 'apiGroups': ['extensions'], 'resources': ['ingresses/status'], 'verbs': ['update'] }] } }, { 'name': name_prefix + '-serviceaccount', 'type': cluster_types['ServiceAccount'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'v1', 'kind': 'ServiceAccount', 'namespace': 'default', 'metadata': { 'name': 'ambassador', }, } }, { 'name': name_prefix + '-clusterrolebinding', 'type': cluster_types['ClusterRoleBinding'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'rbac.authorization.k8s.io/v1beta1', 'kind': 'ClusterRoleBinding', 'namespace': 'default', 'metadata': { 'name': 'ambassador', }, 'roleRef': { 'apiGroup': 'rbac.authorization.k8s.io', 'kind': 'ClusterRole', 'name': 'ambassador', }, 'subjects': [{ 'kind': 'ServiceAccount', 'name': 'ambassador', 'namespace': 'default', }], } }, { 'name': name_prefix + '-deployment', 'type': cluster_types['Deployment'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'apps/v1', 'kind': 'Deployment', 'namespace': 'default', 'metadata': { 'name': 'ambassador' }, 'spec': { 'replicas': context.properties['replicas'], 'selector': { 'matchLabels': {'service': 'ambassador'} }, 'template': { 'metadata': { 'annotations': { 'sidecar.istio.io/inject': 'false', 'consul.hashicorp.com/connect-inject': 'false' }, 'labels': { 'service': 'ambassador' } }, 'spec': { 'affinity': { 'podAntiAffinity': { 'preferredDuringSchedulingIgnoredDuringExecution': [{'weight': 100, 'podAffinityTerm': {'labelSelector': {'matchLabels': {'service': 'ambassador'}}, 'topologyKey': 'kubernetes.io/hostname'} }] } }, 'serviceAccountName': 'ambassador', 'containers': [{ 'name': 'ambassador', 'image': 'quay.io/datawire/ambassador:' + context.properties['imageVersion'], 'resources': { 'limits': { 'cpu': '1', 'memory': '400Mi' }, 'requests': { 'cpu': '200m', 'memory': '100Mi' }, }, 'env': [{ 'name': 'AMBASSADOR_NAMESPACE', 'valueFrom': { 'fieldRef': { 'fieldPath': 'metadata.namespace' } }, }], 'ports': [ {'name': 'http', 'containerPort': 8080}, {'name': 'https', 'containerPort': 8443}, {'name': 'admin', 'containerPort': 8877} ], 'livenessProbe': { 'httpGet': { 'path': '/ambassador/v0/check_alive', 'port': 8080 }, 'initialDelaySeconds': 30, 'periodSeconds': 3, }, 'readinessProbe': { 'httpGet': { 'path': '/ambassador/v0/check_ready', 'port': 8080 }, 'initialDelaySeconds': 30, 'periodSeconds': 3, }, 'volumeMounts': [{ 'name': 'ambassador-pod-info', 'mountPath': '/tmp/ambassador-pod-info' }] }], 'volumes': [{ 'name': 'ambassador-pod-info', 'downwardAPI': { 'items': [{ 'path': 'labels', 'fieldRef': {'fieldPath': 'metadata.labels'} }] } }], 'restartPolicy': 'Always', 'securityContext': {'runAsUser': 8888} }, } } } }]) ambassador_config_template = ('---\n' 'apiVersion: ambassador/v1\n' 'kind: Mapping\n' 'name: {0}_mapping\n' 'prefix: /\n' 'host: {1}\n' 'service: https://{2}:443\n' 'host_rewrite: {2}\n' 'tls: True\n') # create services ingress_sepc_rules = [] for routing_obj in context.properties['routing']: ambassador_config = '' for mapping_obj in routing_obj['mapping']: ambassador_config = ambassador_config + ambassador_config_template.format( routing_obj['name'] + mapping_obj['name'], mapping_obj['source'], mapping_obj['destination']) ingress_sepc_rules.append({ 'host': mapping_obj['source'], 'http': { 'paths': [{ 'path': '/*', 'backend': { 'serviceName': routing_obj['name'], 'servicePort': 80, }, }], }, }) resources.append({ 'name': name_prefix + '-' + routing_obj['name'] + '-service', 'type': cluster_types['Service'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'v1', 'kind': 'Service', 'namespace': 'default', 'metadata': { 'name': routing_obj['name'], 'labels': { 'service': 'ambassador' }, 'annotations': { 'getambassador.io/config': ambassador_config, }, }, 'spec': { 'type': 'NodePort', 'ports': [{ 'name': routing_obj['name'] + '-http', 'port': 80, 'targetPort': 8080, }], 'selector': { 'service': 'ambassador', } } } }) resources.append({ 'name': name_prefix + '-ingress', 'type': cluster_types['Ingress'], 'metadata': { 'dependsOn': [name_prefix + '-rbac-admin-clusterrolebinding'] }, 'properties': { 'apiVersion': 'extensions/v1beta1', 'kind': 'Ingress', 'namespace': 'default', 'metadata': { 'name': name_prefix + '-ingress', 'annotations': { 'ingress.gcp.kubernetes.io/pre-shared-cert': ','.join(context.properties['tls']), }, }, 'spec': { 'rules': ingress_sepc_rules, } } }) return {'resources': resources}
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/86563872 # https://blog.csdn.net/danspace1/article/details/88737508 # IDEA : # TOTAL MOVES = abs(coins left need) + abs(coins right need) # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def distributeCoins(self, root): """ :type root: TreeNode :rtype: int """ self.ans = 0 def dfs(root): # return the balance of the node if not root: return 0 left = dfs(root.left) right = dfs(root.right) self.ans += abs(left) + abs(right) return root.val -1 + left + right dfs(root) return self.ans # V2 # Time: O(n) # Space: O(h) # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def distributeCoins(self, root): """ :type root: TreeNode :rtype: int """ def dfs(root, result): if not root: return 0 left, right = dfs(root.left, result), dfs(root.right, result) result[0] += abs(left) + abs(right) return root.val + left + right - 1 result = [0] dfs(root, result) return result[0]
# # PySNMP MIB module UX25-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/UX25-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:30:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, enterprises, IpAddress, Counter64, ModuleIdentity, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Integer32, Counter32, iso, experimental, MibIdentifier, TimeTicks, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "enterprises", "IpAddress", "Counter64", "ModuleIdentity", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Integer32", "Counter32", "iso", "experimental", "MibIdentifier", "TimeTicks", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") usr = MibIdentifier((1, 3, 6, 1, 4, 1, 429)) nas = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1)) ux25 = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 10)) ux25AdmnChannelTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 1), ) if mibBuilder.loadTexts: ux25AdmnChannelTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelTable.setDescription('Defines objects for the parameters of an X.25 interface which the administrator can read and set.') ux25AdmnChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1), ).setIndexNames((0, "UX25-MIB", "ux25AdmnChanneIndex")) if mibBuilder.loadTexts: ux25AdmnChannelEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelEntry.setDescription('Entries of ux25AdmnChannelTable.') ux25AdmnChanneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25AdmnChanneIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChanneIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25AdmnNetMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24))).clone(namedValues=NamedValues(("x25Llc", 1), ("x2588", 2), ("x2584", 3), ("x2580", 4), ("pss", 5), ("austpac", 6), ("datapac", 7), ("ddn", 8), ("telenet", 9), ("transpac", 10), ("tymnet", 11), ("datexP", 12), ("ddxP", 13), ("venusP", 14), ("accunet", 15), ("itapac", 16), ("datapak", 17), ("datanet", 18), ("dcs", 19), ("telepac", 20), ("fDatapac", 21), ("finpac", 22), ("pacnet", 23), ("luxpac", 24)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnNetMode.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnNetMode.setDescription('Selects the network protocol to be used. Default=x2584(3).') ux25AdmnProtocolVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("x25ver80", 1), ("x25ver84", 2), ("x25ver88", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnProtocolVersion.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnProtocolVersion.setDescription('Determines the X.25 protocol version being used on the network. A network mode of X25_LLC overides this field to the 1984 standard. Default=x25ver84(3).') ux25AdmnInterfaceMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("dceMode", 1), ("dteMode", 2), ("dxeMode", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnInterfaceMode.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnInterfaceMode.setDescription('Indicates the DTE/DCE nature of the link. The DXE parameter is resolved using ISO 8208 for DTE-DTE operation. Default=dteMode(2).') ux25AdmnLowestPVCVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLowestPVCVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLowestPVCVal.setDescription('Low end of the Permanent Virtual Circuit range. If both the Low and High ends of the range are set to 0 there are no PVCs. Default=0.') ux25AdmnHighestPVCVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnHighestPVCVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnHighestPVCVal.setDescription('High end of the Permanent Virtual Circuit range. If both the Low and High ends of the range are set to 0 there are no PVCs. Default=0.') ux25AdmnChannelLIC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelLIC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelLIC.setDescription('Low end of the one-way incoming logical channel. If both Low and High ends of the channel are set to 0, there are no one-way incoming channels. Default=0.') ux25AdmnChannelHIC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelHIC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelHIC.setDescription('High end of the one-way incoming logical channel. If both Low and High ends of the channel are set to 0, there are no one-way incoming channels. Default=0.') ux25AdmnChannelLTC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelLTC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelLTC.setDescription('Low end of the two-way incoming logical channel. If both Low and High ends of the channel are set to 0, there are no two-way incoming channels. Default=1024.') ux25AdmnChannelHTC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelHTC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelHTC.setDescription('High end of the two-way incoming logical channel. If both Low and High ends of the channel are set to 0, there are no two-way incoming channels. Default=1087.') ux25AdmnChannelLOC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelLOC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelLOC.setDescription('Low end of the one-way outgoing logical channel. If both Low and High ends of the channel are set to 0, there are no one-way outgoing channels. Default=0.') ux25AdmnChannelHOC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnChannelHOC.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnChannelHOC.setDescription('High end of the one-way outgoing logical channel. If both Low and High ends of the channel are set to 0, there are no one-way outgoing channels. Default=0.') ux25AdmnClassTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 2), ) if mibBuilder.loadTexts: ux25AdmnClassTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnClassTable.setDescription('Defines objects for the parameters of an X.25 interface which the administrator can read and set.') ux25AdmnClassEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1), ).setIndexNames((0, "UX25-MIB", "ux25AdmnClassIndex")) if mibBuilder.loadTexts: ux25AdmnClassEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnClassEntry.setDescription('Entries of ux25AdmnClassTable.') ux25AdmnClassIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25AdmnClassIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnClassIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25AdmnLocMaxThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocMaxThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocMaxThruPutClass.setDescription('The maximum value of the throughput class Quality of Service parameter which is supported. According to ISO 8208 this parameter is bounded in the range >=3 and <=12 corresponding to a range 75 to 48000 bits/second. The range supported here is 0 to 15 for non-standard X.25 implementations, which use the Throughput Class Window/Packet Parameters (Group II). Default=12.') ux25AdmnRemMaxThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemMaxThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemMaxThruPutClass.setDescription('The maximum value of the throughput class Quality of Service parameter which is supported. According to ISO 8208 this parameter is bounded in the range >=3 and <=12 corresponding to a range 75 to 48000 bits/second. The range supported here is 0 to 15 for non-standard X.25 implementations, which use the Throughput Class Window/Packet Parameters (Group II). Default=12.') ux25AdmnLocDefThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 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(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocDefThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocDefThruPutClass.setDescription('The default throughput class that is defined for the local-to-remote direction. In some networks, such as TELENET, negotiation of throughput class is constrained to be towards a configured default throughput class. In other PSDNs, this value should be set equal to the value of the Maximum Local Throughput Class. Default=12.') ux25AdmnRemDefThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemDefThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemDefThruPutClass.setDescription('The default throughput class value defined for remote-to-local direction. In some networks, such as TELENET, negotiation of throughput class is constrained to be towards a configured default throughput class. In other PSDNs, this value should be set equal to the value of the Maximum Remote Throughput Class. Default=12.') ux25AdmnLocMinThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocMinThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocMinThruPutClass.setDescription('According to ISO 8208, the throughput class parameter is defined in the range of >=3 to <=12. Some PSDNs may provide different mapping, in which case, this parameter is the minimum value. Default=3.') ux25AdmnRemMinThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemMinThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemMinThruPutClass.setDescription('According to ISO 8208, the throughput class parameter is defined in the range of >=3 to <=12. Some PSDNs may provide different mapping, in which case, this parameter is the minimum value. Default=3.') ux25AdmnThclassNegToDef = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnThclassNegToDef.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnThclassNegToDef.setDescription('Determines if throughput class negotiation will be used for certain network procedures. Default=disable(1).') ux25AdmnThclassType = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noTcType", 1), ("loNibble", 2), ("highNibble", 3), ("bothNibbles", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnThclassType.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnThclassType.setDescription('Defines which throughput class encodings can be used to assign packet and window sizes. Some implementations of X.25 do not use the X.25 packet and window negotiation and rely on mapping the throughput class to these parameters. Default=noTcType(1).') ux25AdmnThclassWinMap = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(31, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnThclassWinMap.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnThclassWinMap.setDescription('The mapping between throughput class and a window parameter. Each number has a range of 1 to 127. Default=3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3') ux25AdmnThclassPackMap = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 2, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(31, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnThclassPackMap.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnThclassPackMap.setDescription('The mapping between the throughput class and a packet parameter. Each number has a range of 4 to 12. Default=7.7.7.7.7.7.7.7.7.7.7.7.7.7.7.7') ux25AdmnPacketTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 3), ) if mibBuilder.loadTexts: ux25AdmnPacketTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPacketTable.setDescription('Defines objects for the parameters of an X.25 interface which the administrator can read and set.') ux25AdmnPacketEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1), ).setIndexNames((0, "UX25-MIB", "ux25AdmnPacketIndex")) if mibBuilder.loadTexts: ux25AdmnPacketEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPacketEntry.setDescription('Entries of ux25AdmnPacketTable.') ux25AdmnPacketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25AdmnPacketIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPacketIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25AdmnPktSequencing = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(16, 32))).clone(namedValues=NamedValues(("pktSeq8", 16), ("pktSeq128", 32)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnPktSequencing.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPktSequencing.setDescription('Indicates whether modulo 8 or 128 sequence numbering operates on the network. Default=pktSeq8(16).') ux25AdmnLocMaxPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 9))).clone(namedValues=NamedValues(("maxPktSz128", 7), ("maxPktSz256", 8), ("maxPktSz512", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocMaxPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocMaxPktSize.setDescription('Maximum acceptable size of packets in the local-to-remote direction. On an incoming call, a value for the packet size parameter greater than this value will be negotiated down to an acceptable size when the call is accepted. Default=maxPktSz256(8).') ux25AdmnRemMaxPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 9))).clone(namedValues=NamedValues(("maxPktSz128", 7), ("maxPktSz256", 8), ("maxPktSz512", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemMaxPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemMaxPktSize.setDescription('Maximum acceptable size of packets in the remote-to-local direction. On an incoming call, a value for the packet size parameter greater than this value will be negotiated down to an acceptable size when the call is accepted. Default=maxPktSz256(8).') ux25AdmnLocDefPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("defPktSz16", 4), ("defPktSz32", 5), ("defPktSz64", 6), ("defPktSz128", 7), ("defPktSz256", 8), ("defPktSz512", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocDefPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocDefPktSize.setDescription('Specifies the value of the default packet size for the direction local-to-remote, which may be nonstandard, provided the value is agreed between the communicating parties on the LAN or between the DTE and DCE. Default=defPktSz256(8).') ux25AdmnRemDefPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("defPktSz16", 4), ("defPktSz32", 5), ("defPktSz64", 6), ("defPktSz128", 7), ("defPktSz256", 8), ("defPktSz512", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemDefPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemDefPktSize.setDescription('Specifies the value of the default packet size for the direction remote-to-local, which may be nonstandard, provided the value is agreed between the communicating parties on the LAN or between the DTE and DCE. Default=defPktSz256(8).') ux25AdmnLocMaxWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocMaxWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocMaxWinSize.setDescription('Specifies the maximum local window size. NOTE: 127 allowed only for modulo 128 networks. Default=7.') ux25AdmnRemMaxWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemMaxWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemMaxWinSize.setDescription('Specifies the maximum remote window size. NOTE: 127 allowed only for modulo 128 networks. Default=7.') ux25AdmnLocDefWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocDefWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocDefWinSize.setDescription('Specifies the value of the default window size, which may be nonstandard, provided the value is agreed on by all parties on the LAN between the DTE and DCE. NOTE: The sequence numbering scheme affects the range of this parameter. Default=2.') ux25AdmnRemDefWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRemDefWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRemDefWinSize.setDescription('Specifies the value of the default window size, which may be nonstandard, provided the value is agreed on by all parties on the LAN between the DTE and DCE. NOTE: The sequence numbering scheme affects the range of this parameter. Default=2.') ux25AdmnMaxNSDULimit = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnMaxNSDULimit.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnMaxNSDULimit.setDescription('The default maximum length beyond which concatenation is stopped and data currently held is passed to the Network Service user. Default=256.') ux25AdmnAccNoDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnAccNoDiagnostic.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnAccNoDiagnostic.setDescription('Allow the omission of the diagnostic byte in incoming RESTART, CLEAR and RESET INDICATION packets. Default=disable(1).') ux25AdmnUseDiagnosticPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnUseDiagnosticPacket.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnUseDiagnosticPacket.setDescription('Use diagnostic packets. Default=disable(1).') ux25AdmnItutClearLen = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnItutClearLen.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnItutClearLen.setDescription('Restrict the length of a CLEAR INDICATION to 5 bytes and a CLEAR CONFIRM to 3 bytes. Default=disable(1).') ux25AdmnBarDiagnosticPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarDiagnosticPacket.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarDiagnosticPacket.setDescription('Bar diagnostic packets. Default=disable(1).') ux25AdmnDiscNzDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDiscNzDiagnostic.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDiscNzDiagnostic.setDescription('Discard all diagnostic packets on a non-zero LCN. Default=disable(1).') ux25AdmnAcceptHexAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnAcceptHexAdd.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnAcceptHexAdd.setDescription('Allow DTE addresses to contain hexadecimal digits. Default=disable(1).') ux25AdmnBarNonPrivilegeListen = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarNonPrivilegeListen.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarNonPrivilegeListen.setDescription('Disallow a non-privileged user (i.e without superuser privilege) from listening for incoming calls. Default=enable(2).') ux25AdmnIntlAddrRecognition = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notDistinguished", 1), ("examineDnic", 2), ("prefix1", 3), ("prefix0", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnIntlAddrRecognition.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnIntlAddrRecognition.setDescription("Determine whether outgoing international calls are to be accepted. The values and their interpretation are: 1 - International calls are not distinguished. 2 - The DNIC of the called DTE address is examined and compared to that held in the psdn_local members dnic1 and dnic2. A mismatch implies an international call. 3 - International calls are distinguished by having a '1' prefix on the DTE address. 4 - International calls are distinguished by having a '0' prefix on the DTE address. Default=notDistinguished(1).") ux25AdmnDnic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDnic.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDnic.setDescription('This field contains the first four digits of DNIC and is only used when ux25AdmnIntlAddrRecognition is set to examineDnic(2). Note this field must contain exactly four BCD digits. Default=0000.') ux25AdmnIntlPrioritized = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnIntlPrioritized.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnIntlPrioritized.setDescription('Determine whether some prioritizing method is to used for international calls and is used in conjuction with ux25AdmnPrtyEncodeCtrl and ux25AdmnPrtyPktForced value. Default=disable(1).') ux25AdmnPrtyEncodeCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("x2588", 1), ("datapacPriority76", 2), ("datapacTraffic80", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnPrtyEncodeCtrl.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPrtyEncodeCtrl.setDescription('Describes how the priority request is to be encoded for this PSDN. Default=x2588(1).') ux25AdmnPrtyPktForcedVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("prioPktSz0", 1), ("prioPktSz4", 5), ("prioPktSz5", 6), ("prioPktSz6", 7), ("prioPktSz7", 8), ("prioPktSz8", 9), ("prioPktSz9", 10), ("prioPktSz10", 11), ("prioPktSz11", 12), ("prioPktSz12", 13)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnPrtyPktForcedVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnPrtyPktForcedVal.setDescription('If this entry is other than prioPktSz1(1) all priority call requests and incoming calls should have the associated packet size parameter forced to this value. Note that the actual packet size is 2 to the power of this parameter. Default=prioPktSz1(1).') ux25AdmnSrcAddrCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noSaCntrl", 1), ("omitDte", 2), ("useLocal", 3), ("forceLocal", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSrcAddrCtrl.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSrcAddrCtrl.setDescription('Provide a means to override or set the calling address in outgoing call requests for this PSDN. Default=noSaCntrl(1).') ux25AdmnDbitInAccept = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDbitInAccept.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDbitInAccept.setDescription('Defines the action to take when a Call Accept is received with the D-bit set and there is no local D-bit support. Default=clearCall(3).') ux25AdmnDbitOutAccept = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDbitOutAccept.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDbitOutAccept.setDescription('Defines the action to take when the remote user sends a Call Accept with the D-bit set when the local user did not request use of the D-bit. Default=clearCall(3).') ux25AdmnDbitInData = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDbitInData.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDbitInData.setDescription('Defines the action to take when a data packet is received with the D-bit set and the local user did not request use of the D-bit. Default=clearCall(3).') ux25AdmnDbitOutData = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 3, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnDbitOutData.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnDbitOutData.setDescription('Defines the action when the local user send a data packet with the D-bit set, but the remote party has not indicated D-bit support. Default=clearCall(3).') ux25AdmnSubscriberTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 4), ) if mibBuilder.loadTexts: ux25AdmnSubscriberTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubscriberTable.setDescription('Defines objects for the parameters of an X.25 interface which the administrator can read and set.') ux25AdmnSubscriberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1), ).setIndexNames((0, "UX25-MIB", "ux25AdmnSubscriberIndex")) if mibBuilder.loadTexts: ux25AdmnSubscriberEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubscriberEntry.setDescription('Entries of ux25AdmnSubscriberTable.') ux25AdmnSubscriberIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25AdmnSubscriberIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubscriberIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25AdmnSubCugIaoa = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubCugIaoa.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubCugIaoa.setDescription('Specifies if this DTE subscribes to Closed User Groups with Incoming or Outgoing access. Default=enable(2).') ux25AdmnSubCugPref = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubCugPref.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubCugPref.setDescription('Specifies if this DTE subscribes to a Preferential Closed User Groups. Default=disable(1).') ux25AdmnSubCugoa = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubCugoa.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubCugoa.setDescription('Specifies if this DTE subscribes to Closed User Groups with Outgoing access. Default=disable(1).') ux25AdmnSubCugia = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubCugia.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubCugia.setDescription('Specifies whether or not this DTE subscribes to Closed User Groups with Incoming Access. Default=disable(1).') ux25AdmnCugFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("basic", 1), ("extended", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnCugFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnCugFormat.setDescription('The maximum number of Closed User Groups that this DTE subscribes to. This will be one of two ranges: Basic (100 or fewer) or Extended (between 101 and 10000). Default=basic(1).') ux25AdmnBarInCug = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarInCug.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarInCug.setDescription('Provides the means to force rejection of any incoming calls carrying the Closed User Group optional facility (which is necessary in some networks, such as DDN. When enabled, such calls will be rejected, otherwise incoming Closed User Group facilities are ignored. Default=disable(1).') ux25AdmnSubExtended = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubExtended.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubExtended.setDescription('Subscribe to extended call packets (Window and Packet size negotiation is permitted). Default=enable(2).') ux25AdmnBarExtended = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarExtended.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarExtended.setDescription('Treat window and packet size negotiation in incoming packets as a procedure error. Default=disable(1).') ux25AdmnSubFstSelNoRstrct = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubFstSelNoRstrct.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubFstSelNoRstrct.setDescription('Subscribe to fast select with no restriction on response. Default=enable(2).') ux25AdmnSubFstSelWthRstrct = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubFstSelWthRstrct.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubFstSelWthRstrct.setDescription('Subscribe to fast select with restriction on response. Default=disable(1).') ux25AdmnAccptRvsChrgng = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnAccptRvsChrgng.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnAccptRvsChrgng.setDescription('Allow incoming calls to specify the reverse charging facility. Default=disable(1).') ux25AdmnSubLocChargePrevent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubLocChargePrevent.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubLocChargePrevent.setDescription('Subscribe to local charging prevention. Default=disable(1).') ux25AdmnSubToaNpiFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubToaNpiFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubToaNpiFormat.setDescription('Subscribe to TOA/NPI Address Format. Default=disable(1).') ux25AdmnBarToaNpiFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarToaNpiFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarToaNpiFormat.setDescription('Bar incoming call set-up and clearing packets which use the TOA/NPI Address Format. Default=disable(1).') ux25AdmnSubNuiOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnSubNuiOverride.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnSubNuiOverride.setDescription('Subscribe to NUI override. Deafult=disable(1).') ux25AdmnBarInCall = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarInCall.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarInCall.setDescription('Bar incoming calls. Default=disable(1).') ux25AdmnBarOutCall = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 4, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnBarOutCall.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnBarOutCall.setDescription('Bar outgoing calls. Default=disable(1).') ux25AdmnTimerTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 5), ) if mibBuilder.loadTexts: ux25AdmnTimerTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnTimerTable.setDescription('Defines objects for the parameters of an X.25 interface which the administrator can read and set.') ux25AdmnTimerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1), ).setIndexNames((0, "UX25-MIB", "ux25AdmnTimerIndex")) if mibBuilder.loadTexts: ux25AdmnTimerEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnTimerEntry.setDescription('Entries of ux25AdmnTimerTable.') ux25AdmnTimerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25AdmnTimerIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnTimerIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25AdmnAckDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnAckDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnAckDelay.setDescription('The maximum number of ticks (0.1 second units) over which a pending acknowledgement is withheld. Default=5.') ux25AdmnRstrtTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRstrtTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRstrtTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T20, the Restart Request Response Timer. Default=1800.') ux25AdmnCallTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnCallTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnCallTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T21, the Call Request Response Timer. Default=2000.') ux25AdmnRstTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRstTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRstTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T22, the Reset Request Response Timer. Default=1800.') ux25AdmnClrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnClrTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnClrTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T23, the Clear Request Response Timer. Default=1800.') ux25AdmnWinStatTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnWinStatTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnWinStatTime.setDescription('Related, but does not correspond exactly to the DTE Window Status Transmission Timer, T24. Specifies the number of ticks (0.1 second units) for the maximum time that acknowledgments of data received from the remote transmitter will be witheld. At timer expiration, any witheld acknowledgments will be carried by a X.25 level 3 RNR packet. Default=750.') ux25AdmnWinRotTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnWinRotTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnWinRotTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T25, the Window Rotation Timer. Default=1500.') ux25AdmnIntrptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnIntrptTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnIntrptTime.setDescription('The number of ticks (0.1 second units) for the DTE timer parameter T26, the Interrupt Response Timer. Default=1800.') ux25AdmnIdleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnIdleValue.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnIdleValue.setDescription('The number of ticks (0.1 second units) during which a link level connection associated with no connections will be maintained. If the link is to a WAN then this value should be zero (infinity). This timer is only used with X.25 on a LAN. Default=0.') ux25AdmnConnectValue = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnConnectValue.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnConnectValue.setDescription('Specifies the number of ticks (0.1 second units), over which the DTE/DCE resolution phase be completely implemented in order to prevent the unlikely event that two packet level entities cannot resolve their DTE/DCE nature. When this expires, the link connection will be disconnected and all pending connections aborted. Default=2000.') ux25AdmnRstrtCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRstrtCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRstrtCnt.setDescription('The number of ticks (0.1 second units) for the DTE Restart Request Retransmission Count. Default=1.') ux25AdmnRstCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnRstCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnRstCnt.setDescription('The number of ticks (0.1 second units) for the DTE Reset Request Retransmission Count. Default=1.') ux25AdmnClrCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnClrCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnClrCnt.setDescription('The number of ticks (0.1 second units) for the DTE Clear Request Retransmission Count. Default=1.') ux25AdmnLocalDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnLocalDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnLocalDelay.setDescription('The transit delay (in 0.1 second units) attributed to internal processing. Default=5.') ux25AdmnAccessDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 5, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ux25AdmnAccessDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25AdmnAccessDelay.setDescription('The transit delay (in 0.1 second units) attributed to the effect of the line transmission rate. Default=5.') ux25OperChannelTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 6), ) if mibBuilder.loadTexts: ux25OperChannelTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelTable.setDescription('Defines objects that report the current parameters used by a running interface. These objects are read only.') ux25OperChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1), ).setIndexNames((0, "UX25-MIB", "ux25OperChannelIndex")) if mibBuilder.loadTexts: ux25OperChannelEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelEntry.setDescription('Entries of ux25OperChannelTable.') ux25OperChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelIndex.setDescription('') ux25OperNetMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24))).clone(namedValues=NamedValues(("x25Llc", 1), ("x2588", 2), ("x2584", 3), ("x2580", 4), ("pss", 5), ("austpac", 6), ("datapac", 7), ("ddn", 8), ("telenet", 9), ("transpac", 10), ("tymnet", 11), ("datexP", 12), ("ddxP", 13), ("venusP", 14), ("accunet", 15), ("itapac", 16), ("datapak", 17), ("datanet", 18), ("dcs", 19), ("telepac", 20), ("fDatapac", 21), ("finpac", 22), ("pacnet", 23), ("luxpac", 24)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperNetMode.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperNetMode.setDescription('') ux25OperProtocolVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("x25ver80", 1), ("x25ver84", 2), ("x25ver88", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperProtocolVersion.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperProtocolVersion.setDescription('') ux25OperInterfaceMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("dceMode", 1), ("dteMode", 2), ("dxeMode", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperInterfaceMode.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperInterfaceMode.setDescription('') ux25OperLowestPVCVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLowestPVCVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLowestPVCVal.setDescription('') ux25OperHighestPVCVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperHighestPVCVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperHighestPVCVal.setDescription('') ux25OperChannelLIC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelLIC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelLIC.setDescription('') ux25OperChannelHIC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelHIC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelHIC.setDescription('') ux25OperChannelLTC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelLTC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelLTC.setDescription('') ux25OperChannelHTC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelHTC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelHTC.setDescription('') ux25OperChannelLOC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelLOC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelLOC.setDescription('') ux25OperChannelHOC = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 6, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperChannelHOC.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperChannelHOC.setDescription('') ux25OperClassTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 7), ) if mibBuilder.loadTexts: ux25OperClassTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperClassTable.setDescription('Defines objects that report the current parameters used by a running interface. These objects are read only.') ux25OperClassEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1), ).setIndexNames((0, "UX25-MIB", "ux25OperClassIndex")) if mibBuilder.loadTexts: ux25OperClassEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperClassEntry.setDescription('Entries of ux25OperTable.') ux25OperClassIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperClassIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperClassIndex.setDescription('') ux25OperLocMaxThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocMaxThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocMaxThruPutClass.setDescription('') ux25OperRemMaxThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemMaxThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemMaxThruPutClass.setDescription('') ux25OperLocDefThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 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(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocDefThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocDefThruPutClass.setDescription('') ux25OperRemDefThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemDefThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemDefThruPutClass.setDescription('') ux25OperLocMinThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocMinThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocMinThruPutClass.setDescription('') ux25OperRemMinThruPutClass = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("tcReserved0", 1), ("tcReserved1", 2), ("tcReserved2", 3), ("tc75", 4), ("tc150", 5), ("tc300", 6), ("tc600", 7), ("tc1200", 8), ("tc2400", 9), ("tc4800", 10), ("tc9600", 11), ("tc19200", 12), ("tc48000", 13), ("tcReserved13", 14), ("tcReserved14", 15), ("tcReserved15", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemMinThruPutClass.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemMinThruPutClass.setDescription('') ux25OperThclassNegToDef = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperThclassNegToDef.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperThclassNegToDef.setDescription('') ux25OperThclassType = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noTcType", 1), ("loNibble", 2), ("highNibble", 3), ("bothNibbles", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperThclassType.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperThclassType.setDescription('') ux25OperThclassWinMap = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(31, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperThclassWinMap.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperThclassWinMap.setDescription('') ux25OperThclassPackMap = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 7, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(31, 47))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperThclassPackMap.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperThclassPackMap.setDescription('') ux25OperPacketTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 8), ) if mibBuilder.loadTexts: ux25OperPacketTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPacketTable.setDescription('Defines objects that report the current parameters used by a running interface. These objects are read only.') ux25OperPacketEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1), ).setIndexNames((0, "UX25-MIB", "ux25OperPacketIndex")) if mibBuilder.loadTexts: ux25OperPacketEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPacketEntry.setDescription('Entries of ux25OperPacketTable.') ux25OperPacketIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperPacketIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPacketIndex.setDescription('') ux25OperPktSequencing = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(16, 32))).clone(namedValues=NamedValues(("pktSeq8", 16), ("pktSeq128", 32)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperPktSequencing.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPktSequencing.setDescription('') ux25OperLocMaxPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 9))).clone(namedValues=NamedValues(("maxPktSz128", 7), ("maxPktSz256", 8), ("maxPktSz512", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocMaxPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocMaxPktSize.setDescription('') ux25OperRemMaxPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 9))).clone(namedValues=NamedValues(("maxPktSz128", 7), ("maxPktSz256", 8), ("maxPktSz512", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemMaxPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemMaxPktSize.setDescription('') ux25OperLocDefPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("defPktSz16", 4), ("defPktSz32", 5), ("defPktSz64", 6), ("defPktSz128", 7), ("defPktSz256", 8), ("defPktSz512", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocDefPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocDefPktSize.setDescription('') ux25OperRemDefPktSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("defPktSz16", 4), ("defPktSz32", 5), ("defPktSz64", 6), ("defPktSz128", 7), ("defPktSz256", 8), ("defPktSz512", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemDefPktSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemDefPktSize.setDescription('') ux25OperLocMaxWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocMaxWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocMaxWinSize.setDescription('') ux25OperRemMaxWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemMaxWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemMaxWinSize.setDescription('') ux25OperLocDefWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocDefWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocDefWinSize.setDescription('') ux25OperRemDefWinSize = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRemDefWinSize.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRemDefWinSize.setDescription('') ux25OperMaxNSDULimit = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperMaxNSDULimit.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperMaxNSDULimit.setDescription('') ux25OperAccNoDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperAccNoDiagnostic.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperAccNoDiagnostic.setDescription('') ux25OperUseDiagnosticPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperUseDiagnosticPacket.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperUseDiagnosticPacket.setDescription('') ux25OperItutClearLen = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperItutClearLen.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperItutClearLen.setDescription('') ux25OperBarDiagnosticPacket = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarDiagnosticPacket.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarDiagnosticPacket.setDescription('') ux25OperDiscNzDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDiscNzDiagnostic.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDiscNzDiagnostic.setDescription('') ux25OperAcceptHexAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperAcceptHexAdd.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperAcceptHexAdd.setDescription('') ux25OperBarNonPrivilegeListen = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarNonPrivilegeListen.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarNonPrivilegeListen.setDescription('') ux25OperIntlAddrRecognition = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notDistinguished", 1), ("examineDnic", 2), ("prefix1", 3), ("prefix0", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperIntlAddrRecognition.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperIntlAddrRecognition.setDescription('') ux25OperDnic = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDnic.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDnic.setDescription('') ux25OperIntlPrioritized = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperIntlPrioritized.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperIntlPrioritized.setDescription('') ux25OperPrtyEncodeCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("x2588", 1), ("datapacPriority76", 2), ("datapacTraffic80", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperPrtyEncodeCtrl.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPrtyEncodeCtrl.setDescription('') ux25OperPrtyPktForcedVal = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("prioPktSz0", 1), ("prioPktSz4", 5), ("prioPktSz5", 6), ("prioPktSz6", 7), ("prioPktSz7", 8), ("prioPktSz8", 9), ("prioPktSz9", 10), ("prioPktSz10", 11), ("prioPktSz11", 12), ("prioPktSz12", 13)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperPrtyPktForcedVal.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperPrtyPktForcedVal.setDescription('') ux25OperSrcAddrCtrl = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noSaCntrl", 1), ("omitDte", 2), ("useLocal", 3), ("forceLocal", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSrcAddrCtrl.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSrcAddrCtrl.setDescription('') ux25OperDbitInAccept = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDbitInAccept.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDbitInAccept.setDescription('') ux25OperDbitOutAccept = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDbitOutAccept.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDbitOutAccept.setDescription('') ux25OperDbitInData = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDbitInData.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDbitInData.setDescription('') ux25OperDbitOutData = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 8, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("leaveDbit", 1), ("zeroDbit", 2), ("clearCall", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperDbitOutData.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperDbitOutData.setDescription('') ux25OperSubscriberTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 9), ) if mibBuilder.loadTexts: ux25OperSubscriberTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubscriberTable.setDescription('Defines objects that report the current parameters used by a running interface. These objects are read only.') ux25OperSubscriberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1), ).setIndexNames((0, "UX25-MIB", "ux25OperSubscriberIndex")) if mibBuilder.loadTexts: ux25OperSubscriberEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubscriberEntry.setDescription('Entries of ux25OperSubscriberTable.') ux25OperSubscriberIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubscriberIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubscriberIndex.setDescription('') ux25OperSubCugIaoa = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubCugIaoa.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubCugIaoa.setDescription('') ux25OperSubCugPref = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubCugPref.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubCugPref.setDescription('') ux25OperSubCugoa = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubCugoa.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubCugoa.setDescription('') ux25OperSubCugia = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubCugia.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubCugia.setDescription('') ux25OperCugFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("basic", 1), ("extended", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperCugFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperCugFormat.setDescription('') ux25OperBarInCug = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarInCug.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarInCug.setDescription('') ux25OperSubExtended = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubExtended.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubExtended.setDescription('') ux25OperBarExtended = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarExtended.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarExtended.setDescription('') ux25OperSubFstSelNoRstrct = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubFstSelNoRstrct.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubFstSelNoRstrct.setDescription('') ux25OperSubFstSelWthRstrct = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubFstSelWthRstrct.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubFstSelWthRstrct.setDescription('') ux25OperAccptRvsChrgng = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperAccptRvsChrgng.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperAccptRvsChrgng.setDescription('') ux25OperSubLocChargePrevent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubLocChargePrevent.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubLocChargePrevent.setDescription('') ux25OperSubToaNpiFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubToaNpiFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubToaNpiFormat.setDescription('') ux25OperBarToaNpiFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarToaNpiFormat.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarToaNpiFormat.setDescription('') ux25OperSubNuiOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperSubNuiOverride.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperSubNuiOverride.setDescription('') ux25OperBarInCall = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarInCall.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarInCall.setDescription('') ux25OperBarOutCall = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 9, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperBarOutCall.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperBarOutCall.setDescription('') ux25OperTimerTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 10), ) if mibBuilder.loadTexts: ux25OperTimerTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperTimerTable.setDescription('Defines objects that report the current parameters used by a running interface. These objects are read only.') ux25OperTimerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1), ).setIndexNames((0, "UX25-MIB", "ux25OperTimerIndex")) if mibBuilder.loadTexts: ux25OperTimerEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperTimerEntry.setDescription('Entries of ux25OperTimerTable.') ux25OperTimerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperTimerIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperTimerIndex.setDescription('') ux25OperAckDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperAckDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperAckDelay.setDescription('') ux25OperRstrtTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRstrtTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRstrtTime.setDescription('') ux25OperCallTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperCallTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperCallTime.setDescription('') ux25OperRstTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRstTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRstTime.setDescription('') ux25OperClrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperClrTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperClrTime.setDescription('') ux25OperWinStatTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperWinStatTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperWinStatTime.setDescription('') ux25OperWinRotTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperWinRotTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperWinRotTime.setDescription('') ux25OperIntrptTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperIntrptTime.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperIntrptTime.setDescription('') ux25OperIdleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperIdleValue.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperIdleValue.setDescription('') ux25OperConnectValue = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperConnectValue.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperConnectValue.setDescription('') ux25OperRstrtCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRstrtCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRstrtCnt.setDescription('') ux25OperRstCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperRstCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperRstCnt.setDescription('') ux25OperClrCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperClrCnt.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperClrCnt.setDescription('') ux25OperLocalDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperLocalDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperLocalDelay.setDescription('') ux25OperAccessDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 10, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25OperAccessDelay.setStatus('mandatory') if mibBuilder.loadTexts: ux25OperAccessDelay.setDescription('') ux25StatTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 10, 11), ) if mibBuilder.loadTexts: ux25StatTable.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatTable.setDescription('Defines objects that report operational statistics for an X.25 interface.') ux25StatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1), ).setIndexNames((0, "UX25-MIB", "ux25StatIndex")) if mibBuilder.loadTexts: ux25StatEntry.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatEntry.setDescription('Entries of ux25StatTable.') ux25StatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatIndex.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatIndex.setDescription('A unique value for each X.25 subnetwork entity in the chassis. The value of this object matches the value of the index of the corresponding X.25 subnetwork entity entry in the entity table of the chassis MIB.') ux25StatCallsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatCallsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatCallsRcvd.setDescription('Number of incoming calls.') ux25StatCallsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatCallsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatCallsSent.setDescription('Number of outgoing calls.') ux25StatCallsRcvdEstab = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatCallsRcvdEstab.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatCallsRcvdEstab.setDescription('Number of incoming calls established.') ux25StatCallsSentEstab = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatCallsSentEstab.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatCallsSentEstab.setDescription('Number of outgoing calls established.') ux25StatDataPktsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatDataPktsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatDataPktsRcvd.setDescription('Number of data packets received.') ux25StatDataPktsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatDataPktsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatDataPktsSent.setDescription('Number of data packets sent.') ux25StatRestartsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRestartsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRestartsRcvd.setDescription('Number of restarts received.') ux25StatRestartsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRestartsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRestartsSent.setDescription('Number of restarts sent.') ux25StatRcvrNotRdyRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRcvrNotRdyRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRcvrNotRdyRcvd.setDescription('Number of receiver not ready received.') ux25StatRcvrNotRdySent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRcvrNotRdySent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRcvrNotRdySent.setDescription('Number of receiver not ready sent.') ux25StatRcvrRdyRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRcvrRdyRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRcvrRdyRcvd.setDescription('Number of receiver ready received.') ux25StatRcvrRdySent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatRcvrRdySent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatRcvrRdySent.setDescription('Number of receiver ready sent.') ux25StatResetsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatResetsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatResetsRcvd.setDescription('Number of resets received.') ux25StatResetsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatResetsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatResetsSent.setDescription('Number of resets sent.') ux25StatDiagPktsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatDiagPktsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatDiagPktsRcvd.setDescription('Number of diagnostic packets received.') ux25StatDiagPktsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatDiagPktsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatDiagPktsSent.setDescription('Number of diagnostic packets sent.') ux25StatIntrptPktsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatIntrptPktsRcvd.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatIntrptPktsRcvd.setDescription('Number of interrupt packets received.') ux25StatIntrptPktsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatIntrptPktsSent.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatIntrptPktsSent.setDescription('Number of interrupt packets sent.') ux25StatPVCsInDatTrnsfrState = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatPVCsInDatTrnsfrState.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatPVCsInDatTrnsfrState.setDescription('Number of PVCs in Data Transfer State.') ux25StatSVCsInDatTrnsfrState = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 10, 11, 1, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ux25StatSVCsInDatTrnsfrState.setStatus('mandatory') if mibBuilder.loadTexts: ux25StatSVCsInDatTrnsfrState.setDescription('Number of SVCs in Data Transfer State.') mibBuilder.exportSymbols("UX25-MIB", ux25AdmnClassTable=ux25AdmnClassTable, ux25AdmnPacketTable=ux25AdmnPacketTable, ux25AdmnPacketEntry=ux25AdmnPacketEntry, ux25AdmnChanneIndex=ux25AdmnChanneIndex, ux25OperPacketEntry=ux25OperPacketEntry, ux25AdmnBarInCall=ux25AdmnBarInCall, ux25AdmnSubExtended=ux25AdmnSubExtended, ux25OperPacketIndex=ux25OperPacketIndex, ux25OperBarToaNpiFormat=ux25OperBarToaNpiFormat, ux25StatEntry=ux25StatEntry, ux25AdmnHighestPVCVal=ux25AdmnHighestPVCVal, ux25OperSubCugia=ux25OperSubCugia, ux25AdmnSubNuiOverride=ux25AdmnSubNuiOverride, ux25AdmnLowestPVCVal=ux25AdmnLowestPVCVal, ux25OperChannelLIC=ux25OperChannelLIC, ux25AdmnAckDelay=ux25AdmnAckDelay, ux25OperThclassNegToDef=ux25OperThclassNegToDef, ux25OperBarOutCall=ux25OperBarOutCall, ux25AdmnChannelHIC=ux25AdmnChannelHIC, ux25StatResetsSent=ux25StatResetsSent, ux25AdmnUseDiagnosticPacket=ux25AdmnUseDiagnosticPacket, ux25OperRstrtCnt=ux25OperRstrtCnt, ux25StatCallsRcvdEstab=ux25StatCallsRcvdEstab, ux25OperSubscriberIndex=ux25OperSubscriberIndex, ux25AdmnLocalDelay=ux25AdmnLocalDelay, ux25OperCugFormat=ux25OperCugFormat, ux25OperLocDefPktSize=ux25OperLocDefPktSize, ux25AdmnPrtyEncodeCtrl=ux25AdmnPrtyEncodeCtrl, ux25OperDbitOutAccept=ux25OperDbitOutAccept, ux25OperNetMode=ux25OperNetMode, ux25OperClrTime=ux25OperClrTime, ux25AdmnChannelEntry=ux25AdmnChannelEntry, ux25OperTimerIndex=ux25OperTimerIndex, ux25AdmnRstTime=ux25AdmnRstTime, ux25AdmnIntlAddrRecognition=ux25AdmnIntlAddrRecognition, ux25AdmnBarNonPrivilegeListen=ux25AdmnBarNonPrivilegeListen, ux25OperLocMaxPktSize=ux25OperLocMaxPktSize, ux25StatPVCsInDatTrnsfrState=ux25StatPVCsInDatTrnsfrState, ux25AdmnItutClearLen=ux25AdmnItutClearLen, ux25OperChannelTable=ux25OperChannelTable, ux25AdmnSubLocChargePrevent=ux25AdmnSubLocChargePrevent, ux25OperLowestPVCVal=ux25OperLowestPVCVal, ux25StatTable=ux25StatTable, ux25OperRemMaxPktSize=ux25OperRemMaxPktSize, ux25OperSubNuiOverride=ux25OperSubNuiOverride, ux25AdmnLocMaxPktSize=ux25AdmnLocMaxPktSize, usr=usr, ux25AdmnRemMaxThruPutClass=ux25AdmnRemMaxThruPutClass, ux25OperChannelLTC=ux25OperChannelLTC, ux25AdmnBarInCug=ux25AdmnBarInCug, ux25OperClassIndex=ux25OperClassIndex, ux25OperAccNoDiagnostic=ux25OperAccNoDiagnostic, ux25AdmnWinRotTime=ux25AdmnWinRotTime, ux25OperItutClearLen=ux25OperItutClearLen, ux25OperLocMinThruPutClass=ux25OperLocMinThruPutClass, ux25OperDbitInData=ux25OperDbitInData, ux25AdmnTimerEntry=ux25AdmnTimerEntry, ux25AdmnDbitOutData=ux25AdmnDbitOutData, ux25StatSVCsInDatTrnsfrState=ux25StatSVCsInDatTrnsfrState, ux25OperIntlAddrRecognition=ux25OperIntlAddrRecognition, ux25AdmnDiscNzDiagnostic=ux25AdmnDiscNzDiagnostic, ux25OperLocalDelay=ux25OperLocalDelay, ux25OperPktSequencing=ux25OperPktSequencing, ux25OperRemDefPktSize=ux25OperRemDefPktSize, ux25OperRstrtTime=ux25OperRstrtTime, ux25StatRestartsRcvd=ux25StatRestartsRcvd, ux25AdmnAcceptHexAdd=ux25AdmnAcceptHexAdd, ux25StatDiagPktsSent=ux25StatDiagPktsSent, ux25AdmnChannelLTC=ux25AdmnChannelLTC, ux25OperPrtyPktForcedVal=ux25OperPrtyPktForcedVal, ux25OperThclassType=ux25OperThclassType, ux25OperRstCnt=ux25OperRstCnt, ux25AdmnSubCugIaoa=ux25AdmnSubCugIaoa, ux25AdmnChannelTable=ux25AdmnChannelTable, ux25AdmnRemMinThruPutClass=ux25AdmnRemMinThruPutClass, ux25AdmnChannelLOC=ux25AdmnChannelLOC, ux25AdmnBarDiagnosticPacket=ux25AdmnBarDiagnosticPacket, ux25OperIntrptTime=ux25OperIntrptTime, ux25AdmnSubCugPref=ux25AdmnSubCugPref, ux25OperDiscNzDiagnostic=ux25OperDiscNzDiagnostic, ux25AdmnConnectValue=ux25AdmnConnectValue, ux25OperChannelHOC=ux25OperChannelHOC, ux25AdmnSubscriberEntry=ux25AdmnSubscriberEntry, ux25OperLocDefWinSize=ux25OperLocDefWinSize, ux25AdmnRemDefWinSize=ux25AdmnRemDefWinSize, ux25OperThclassPackMap=ux25OperThclassPackMap, ux25OperSubCugIaoa=ux25OperSubCugIaoa, ux25OperSubLocChargePrevent=ux25OperSubLocChargePrevent, ux25OperRemDefThruPutClass=ux25OperRemDefThruPutClass, ux25AdmnProtocolVersion=ux25AdmnProtocolVersion, ux25OperRstTime=ux25OperRstTime, ux25AdmnNetMode=ux25AdmnNetMode, ux25AdmnClassIndex=ux25AdmnClassIndex, ux25OperSrcAddrCtrl=ux25OperSrcAddrCtrl, ux25AdmnIntlPrioritized=ux25AdmnIntlPrioritized, ux25OperBarInCug=ux25OperBarInCug, ux25AdmnRemMaxWinSize=ux25AdmnRemMaxWinSize, ux25StatRcvrNotRdySent=ux25StatRcvrNotRdySent, ux25AdmnDbitOutAccept=ux25AdmnDbitOutAccept, ux25OperAccessDelay=ux25OperAccessDelay, ux25AdmnRstrtCnt=ux25AdmnRstrtCnt, ux25StatIntrptPktsSent=ux25StatIntrptPktsSent, ux25StatDataPktsSent=ux25StatDataPktsSent, ux25AdmnTimerTable=ux25AdmnTimerTable, ux25OperTimerTable=ux25OperTimerTable, ux25AdmnThclassType=ux25AdmnThclassType, ux25AdmnMaxNSDULimit=ux25AdmnMaxNSDULimit, ux25OperMaxNSDULimit=ux25OperMaxNSDULimit, ux25OperBarDiagnosticPacket=ux25OperBarDiagnosticPacket, ux25OperWinStatTime=ux25OperWinStatTime, ux25AdmnChannelHOC=ux25AdmnChannelHOC, ux25StatResetsRcvd=ux25StatResetsRcvd, ux25StatRestartsSent=ux25StatRestartsSent, ux25StatCallsRcvd=ux25StatCallsRcvd, ux25OperBarExtended=ux25OperBarExtended, ux25AdmnLocDefWinSize=ux25AdmnLocDefWinSize, ux25OperAcceptHexAdd=ux25OperAcceptHexAdd, ux25OperSubToaNpiFormat=ux25OperSubToaNpiFormat, ux25OperDbitInAccept=ux25OperDbitInAccept, ux25OperSubCugPref=ux25OperSubCugPref, ux25AdmnDbitInAccept=ux25AdmnDbitInAccept, ux25OperConnectValue=ux25OperConnectValue, ux25StatDiagPktsRcvd=ux25StatDiagPktsRcvd, ux25OperIdleValue=ux25OperIdleValue, ux25OperSubscriberTable=ux25OperSubscriberTable, ux25StatRcvrRdyRcvd=ux25StatRcvrRdyRcvd, ux25OperClassTable=ux25OperClassTable, ux25OperThclassWinMap=ux25OperThclassWinMap, ux25OperDnic=ux25OperDnic, ux25AdmnSubscriberIndex=ux25AdmnSubscriberIndex, ux25AdmnIdleValue=ux25AdmnIdleValue, ux25AdmnClassEntry=ux25AdmnClassEntry, ux25OperWinRotTime=ux25OperWinRotTime, ux25AdmnTimerIndex=ux25AdmnTimerIndex, ux25AdmnClrCnt=ux25AdmnClrCnt, ux25AdmnLocMaxThruPutClass=ux25AdmnLocMaxThruPutClass, ux25StatIntrptPktsRcvd=ux25StatIntrptPktsRcvd, ux25AdmnRstrtTime=ux25AdmnRstrtTime, ux25AdmnSubToaNpiFormat=ux25AdmnSubToaNpiFormat, ux25OperChannelIndex=ux25OperChannelIndex, ux25AdmnSubFstSelNoRstrct=ux25AdmnSubFstSelNoRstrct, ux25OperSubCugoa=ux25OperSubCugoa, ux25OperAccptRvsChrgng=ux25OperAccptRvsChrgng, ux25StatRcvrRdySent=ux25StatRcvrRdySent, ux25OperHighestPVCVal=ux25OperHighestPVCVal, ux25AdmnAccNoDiagnostic=ux25AdmnAccNoDiagnostic, ux25OperPacketTable=ux25OperPacketTable, ux25AdmnInterfaceMode=ux25AdmnInterfaceMode, ux25OperUseDiagnosticPacket=ux25OperUseDiagnosticPacket, ux25AdmnWinStatTime=ux25AdmnWinStatTime, ux25StatDataPktsRcvd=ux25StatDataPktsRcvd, ux25OperChannelLOC=ux25OperChannelLOC, ux25AdmnDbitInData=ux25AdmnDbitInData, ux25StatCallsSent=ux25StatCallsSent, ux25AdmnLocMinThruPutClass=ux25AdmnLocMinThruPutClass, ux25AdmnPktSequencing=ux25AdmnPktSequencing, ux25OperBarNonPrivilegeListen=ux25OperBarNonPrivilegeListen, ux25OperInterfaceMode=ux25OperInterfaceMode, ux25AdmnIntrptTime=ux25AdmnIntrptTime, ux25AdmnBarOutCall=ux25AdmnBarOutCall, ux25OperProtocolVersion=ux25OperProtocolVersion, ux25OperBarInCall=ux25OperBarInCall, ux25AdmnBarExtended=ux25AdmnBarExtended, ux25OperIntlPrioritized=ux25OperIntlPrioritized, ux25AdmnPacketIndex=ux25AdmnPacketIndex, ux25OperDbitOutData=ux25OperDbitOutData, ux25AdmnRemDefPktSize=ux25AdmnRemDefPktSize, ux25OperSubscriberEntry=ux25OperSubscriberEntry, ux25OperClassEntry=ux25OperClassEntry, ux25OperPrtyEncodeCtrl=ux25OperPrtyEncodeCtrl, ux25OperRemMaxWinSize=ux25OperRemMaxWinSize, ux25AdmnCallTime=ux25AdmnCallTime, ux25AdmnPrtyPktForcedVal=ux25AdmnPrtyPktForcedVal, ux25AdmnAccptRvsChrgng=ux25AdmnAccptRvsChrgng, ux25OperRemMinThruPutClass=ux25OperRemMinThruPutClass, ux25OperClrCnt=ux25OperClrCnt, ux25AdmnSrcAddrCtrl=ux25AdmnSrcAddrCtrl, ux25StatRcvrNotRdyRcvd=ux25StatRcvrNotRdyRcvd, ux25OperSubExtended=ux25OperSubExtended, ux25OperSubFstSelNoRstrct=ux25OperSubFstSelNoRstrct, ux25OperSubFstSelWthRstrct=ux25OperSubFstSelWthRstrct, ux25OperChannelHTC=ux25OperChannelHTC, ux25OperCallTime=ux25OperCallTime, ux25AdmnBarToaNpiFormat=ux25AdmnBarToaNpiFormat, ux25AdmnLocMaxWinSize=ux25AdmnLocMaxWinSize, ux25AdmnLocDefThruPutClass=ux25AdmnLocDefThruPutClass, ux25OperLocMaxWinSize=ux25OperLocMaxWinSize, ux25OperRemDefWinSize=ux25OperRemDefWinSize, ux25AdmnChannelHTC=ux25AdmnChannelHTC, ux25AdmnRemMaxPktSize=ux25AdmnRemMaxPktSize, ux25AdmnSubFstSelWthRstrct=ux25AdmnSubFstSelWthRstrct, ux25AdmnClrTime=ux25AdmnClrTime, ux25OperLocDefThruPutClass=ux25OperLocDefThruPutClass, ux25OperChannelEntry=ux25OperChannelEntry, ux25=ux25, ux25OperChannelHIC=ux25OperChannelHIC, ux25OperRemMaxThruPutClass=ux25OperRemMaxThruPutClass, ux25AdmnRemDefThruPutClass=ux25AdmnRemDefThruPutClass, ux25AdmnThclassNegToDef=ux25AdmnThclassNegToDef, ux25AdmnThclassWinMap=ux25AdmnThclassWinMap, ux25AdmnSubCugoa=ux25AdmnSubCugoa, ux25AdmnDnic=ux25AdmnDnic, ux25AdmnSubCugia=ux25AdmnSubCugia, ux25AdmnCugFormat=ux25AdmnCugFormat, nas=nas, ux25AdmnChannelLIC=ux25AdmnChannelLIC, ux25AdmnLocDefPktSize=ux25AdmnLocDefPktSize, ux25AdmnAccessDelay=ux25AdmnAccessDelay, ux25OperAckDelay=ux25OperAckDelay, ux25StatCallsSentEstab=ux25StatCallsSentEstab, ux25AdmnSubscriberTable=ux25AdmnSubscriberTable, ux25AdmnRstCnt=ux25AdmnRstCnt, ux25AdmnThclassPackMap=ux25AdmnThclassPackMap, ux25OperLocMaxThruPutClass=ux25OperLocMaxThruPutClass, ux25StatIndex=ux25StatIndex, ux25OperTimerEntry=ux25OperTimerEntry)
""" Device Message Queue defined in Thorlabs Kinesis v1.14.10 The device message queue allows the internal events raised by the device to be monitored by the DLLs owner. The device raises many different events, usually associated with a change of state. These messages are temporarily stored in the DLL and can be accessed using the appropriate message functions. The message consists of 3 components, a messageType, a messageID and messageData:: WORD messageType WORD messageID WORD messageData """ #: MessageTypes MessageTypes = { 0: 'GenericDevice', 1: 'GenericPiezo', 2: 'GenericMotor', 3: 'GenericDCMotor', 4: 'GenericSimpleMotor', 5: 'RackDevice', 6: 'Laser', 7: 'TECCtlr', 8: 'Quad', 9: 'NanoTrak', 10: 'Specialized', 11: 'Solenoid', } #: GenericDevice GenericDevice = { 0: 'settingsInitialized', 1: 'settingsUpdated', 2: 'error', 3: 'close', } #: GenericMotor GenericMotor = { 0: 'Homed', 1: 'Moved', 2: 'Stopped', 3: 'LimitUpdated', } #: GenericDCMotor GenericDCMotor = { 0: 'error', 1: 'status', } #: GenericPiezo GenericPiezo = { 0: 'maxVoltageChanged', 1: 'controlModeChanged', 2: 'statusChanged', 3: 'maxTravelChanged', 4: 'TSG_Status', 5: 'TSG_DisplayModeChanged', } #: RackDevice RackDevice = { 0: 'RackCountEstablished', 1: 'RackBayState', } #: Quad Quad = { 0: 'statusChanged', } #: TECCtlr TECCtlr = { 0: 'statusChanged', 2: 'displaySettingsChanged', 3: 'feedbackParamsChanged', } #: Laser Laser = { 0: 'statusChanged', 1: 'controlSourceChanged', 2: 'displayModeChanged', } #: Solenoid Solenoid = { 0: 'statusChanged', } #: NanoTrak NanoTrak = { 0: 'statusChanged', } #: Specialized Specialized = {} #: GenericSimpleMotor GenericSimpleMotor = {} #: MessageID MessageID = { 'GenericDevice': GenericDevice, 'GenericPiezo': GenericPiezo, 'GenericMotor': GenericMotor, 'GenericDCMotor': GenericDCMotor, 'GenericSimpleMotor': GenericSimpleMotor, 'RackDevice': RackDevice, 'Laser': Laser, 'TECCtlr': TECCtlr, 'Quad': Quad, 'NanoTrak': NanoTrak, 'Specialized': Specialized, 'Solenoid': Solenoid, }
class Solution(object): def powerOfTwoBitManipulation(self, n): """ Time - O(1) Space - O(1) :type n: integer :rtype: integer """ if n < 1: return False while n % 2 == 0: n >>= 1 return n == 1 def powerOfTwoBitManipulation2(self, n): """ Time - O(1) Space - O(1) :type n: integer :rtype: integer """ return n > 0 and not n & (n - 1)
if __name__ == '__main__': # with open("input/12.test") as f: with open("input/12.txt") as f: lines = f.read().split("\n") pots = lines[0].split(":")[1].strip() rules = dict() for line in lines[2:]: [k, v] = line.split("=>") k = k.strip() v = v.strip() rules[k] = v print(rules) ngen = 20 print(pots) pots = list("..." + pots + "............................................") for n in range(ngen): npots = list(pots) for i in range(0, len(pots)-5): if i == 0: sub = [".", "."] + pots[:3] elif i == 1: sub = ["."] + pots[0:4] else: sub = pots[i-2:i+3] npots[i] = rules.get("".join(sub), ".") pots = npots print("%2d:" % (n+1), "".join(pots)) ans = 0 for i in range(len(pots)): ans += (i-3) if pots[i] == "#" else 0 print(ans)
expected_output = { "ACL_TEST": { "aces": { "80": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.7.0 0.0.0.255": { "source_network": "10.4.7.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "80", }, "50": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.4.0 0.0.0.255": { "source_network": "10.4.4.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "50", }, "10": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.69.188.0 0.0.0.255": { "source_network": "10.69.188.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "10", }, "130": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.12.0 0.0.0.255": { "source_network": "10.4.12.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "130", }, "90": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.8.0 0.0.0.255": { "source_network": "10.4.8.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "90", }, "40": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.3.0 0.0.0.255": { "source_network": "10.4.3.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "40", }, "150": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.14.0 0.0.0.255": { "source_network": "10.4.14.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "150", }, "30": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.2.0 0.0.0.255": { "source_network": "10.4.2.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "30", }, "120": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.11.0 0.0.0.255": { "source_network": "10.4.11.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "120", }, "100": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.9.0 0.0.0.255": { "source_network": "10.4.9.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "100", }, "170": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.16.0 0.0.0.255": { "source_network": "10.4.16.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "170", }, "160": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.15.0 0.0.0.255": { "source_network": "10.4.15.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "160", }, "20": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.1.0 0.0.0.255": { "source_network": "10.4.1.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "20", }, "70": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.6.0 0.0.0.255": { "source_network": "10.4.6.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "70", }, "110": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.10.0 0.0.0.255": { "source_network": "10.4.10.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "110", }, "140": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.13.0 0.0.0.255": { "source_network": "10.4.13.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "140", }, "60": { "actions": {"forwarding": "deny", "logging": "log-none"}, "matches": { "l3": { "ipv4": { "source_network": { "10.4.5.0 0.0.0.255": { "source_network": "10.4.5.0 0.0.0.255" } }, "protocol": "tcp", "destination_network": { "host 192.168.16.1": { "destination_network": "host 192.168.16.1" } }, } }, "l4": { "tcp": { "destination_port": { "operator": {"operator": "eq", "port": 80} }, "established": False, } }, }, "name": "60", }, }, "type": "ipv4-acl-type", "acl_type": "extended", "name": "ACL_TEST", } }
# %% ####################################### def dict_creation_demo(): print( "We can convert a list of tuples into Dictionary Items: dict( [('key1','val1'), ('key2', 'val2')] " ) was_tuple = dict([("key1", "val1"), ("key2", "val2")]) print(f"This was a list of Tuples: {was_tuple}\n") print( "We can convert a list of lists into Dictionary Items: dict( [['key1','val1'], ['key2', 'val2']] " ) was_list = dict([["key1", "val1"], ["key2", "val2"]]) print(f"This was a list of Lists: {was_list} ")
# Faça um programa que leia 3 números e mostre qual é o maior e qual é o menor. num1 = int(input('Digite o primeiro número: ')) num2 = int(input('Digite o segundo número: ')) num3 = int(input('Digite o terceiro número: ')) maior = num1 if num2 > num1 and num2 > num3: maior = num2 elif num3 > num1 and num3 > num2: maior = num3 menor = 2 if num1 < num2 and num1 < num3: menor = num1 elif num3 < num2 and num3 < num1: menor = num3 print(f'Entre os números {num1}, {num2} e {num3}...') print(f'O maior número é {maior}, e o menor número é {menor}!')
def gcd(a,b): assert a>= a and b >= 0 and a + b > 0 while a > 0 and b > 0: if a >= b: a = a % b else: b = b % a return max(a,b) def egcd(a, b): x,y, u,v = 0,1, 1,0 while a != 0: q, r = b//a, b%a m, n = x-u*q, y-v*q b,a, x,y, u,v = a,r, u,v, m,n gcd = b return gcd, x, y def diophantine(a,b,c): assert c % gcd(a, b) == 0 (d, u, v) = egcd(a,b) x = u * (c // gcd(a,b)) y = v * (c//gcd(a,b)) return (x,y) def divide(a,b,n): assert n > 1 and a > 0 and gcd(a,n) == 1 t,s = diophantine(n,a,1) for i in range(n): if b * s % n == i % n: return i def ChineseRemainderTheorem(n1, r1, n2, r2): (r,x, y) = egcd(n1, n2) n = (r1 * n2 * y + r2 * n1 * x) n = n % (n1 * n2) return n
asSignedInt = lambda s: -int(0x7fffffff&int(s)) if bool(0x80000000&int(s)) else int(0x7fffffff&int(s)) # TODO: swig'ged HIPS I/O unsigned int -> PyInt_AsLong vice PyLong_AsInt; OverflowError: long int too large to convert to int ZERO_STATUS = 0x00000000 def SeparatePathFromPVDL(pathToPVDL,normalizeStrs=False): # normalize --> '/' delimiter and all lowercase letters if pathToPVDL.find('\\')!=-1: # get path delimiter dsep='\\' pathToPVDL=pathToPVDL.replace('\\','/') #in the off chance there are mixed delimiters - standardize on '/' for the split else: dsep='/' pathToPVDLlist=pathToPVDL.split('/') if len(pathToPVDLlist) > 4: # check for at least a <prefix>/p/v/d/l if normalizeStrs: # [pathTo,p,v,d,l] (pathTo w/fwd-slashes & all lower case) pathToAndPVDL=map(lambda dirStr: dirStr.lower(), pathToPVDLlist[-4:]) pathToAndPVDL.insert(0,'/'.join(pathToPVDLlist[:-4]).lower()) else: pathToAndPVDL=pathToPVDLlist[-4:] # [pathTo,p,v,d,l] (pathTo w/no change in slash type & mixed case) pathToAndPVDL.insert(0,dsep.join(pathToPVDLlist[:-4])) else: # no container directory for p/v/d/l directory; invalid HDCS_DATA_PATH pathToAndPVDL=None return pathToAndPVDL
# coding=utf-8 """ 最小差 描述:给定两个整数数组(第一个是数组 A,第二个是数组 B), 在数组 A 中取 A[i],数组 B 中取 B[j], A[i] 和 B[j]两者的差越小越好(|A[i] - B[j]|), 返回最小差。 思路: 合并为一个列表,然后前后比较取最小值 这样的有点在于,升序排列,两两比较 避开指针大和小的比较 """ class Solution: """ @param A: An integer array @param B: An integer array @return: Their smallest difference. """ def smallestDifference(self, A, B): # write your code here # 这法子太棒了 c = [] for _ in A: c.append([_, 'A']) for _ in B: c.append([_, 'B']) c.sort(key=lambda x: x[0]) c_len = len(c) res = None for i in range(0, c_len - 1): if c[i][1] != c[i+1][1]: if res is None: res = abs(c[i][0] - c[i+1][0]) else: x = abs(c[i][0] - c[i+1][0]) res = min(res, x) return res
df12.interaction(['A','B'], pairwise=False, max_factors=3, min_occurrence=1) # A_B # ------- # foo_one # bar_one # foo_two # other # foo_two # other # foo_one # other # # [8 rows x 1 column]
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ def encrypt_this(text: str) -> str: """ Encrypts each word in the message using the following rules: * The first letter needs to be converted to its ASCII code. * The second letter needs to be switched with the last letter Keepin' it simple: There are no special characters in input. :param text: a string containing space separated words :return: secret messages which can be deciphered by the "Decipher this!" kata """ if not text: return "" results = list() for word in text.split(' '): if len(word) == 1: results.append("{}".format(ord(word[0]))) elif len(word) == 2: results.append("{}{}".format(ord(word[0]), word[-1])) else: results.append("{}{}{}{}".format( ord(word[0]), word[-1], word[2:-1], word[1])) return ' '.join(results)
# Copyright 2021 The Cross-Media Measurement Authors # # 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. """ Repository rules/macros for Protobuf. """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") COM_GOOGLE_PROTOBUF_VERSION = "3.19.1" _URL_TEMPLATE = "https://github.com/protocolbuffers/protobuf/releases/download/v%s/protobuf-all-%s.tar.gz" def com_google_protobuf_repo(): http_archive( name = "com_google_protobuf", sha256 = "80631d5a18d51daa3a1336e340001ad4937e926762f21144c62d26fe2a8d71fe", strip_prefix = "protobuf-" + COM_GOOGLE_PROTOBUF_VERSION, url = _URL_TEMPLATE % (COM_GOOGLE_PROTOBUF_VERSION, COM_GOOGLE_PROTOBUF_VERSION), )
# import cv2 def text2binary(string): """ Converts text to binary string. >>> text = 'Hello' >>> binary_text = text2binary(text) >>> print(binary_text) '10010001100101110110011011001101111' """ # creates a list of binary representation of each character # and joins the list to create full binary string output = ''.join('{0:08b}'.format(ord(x), 'b') for x in string) return output def image_to_binary(data): """ Converts an grayscale image to binary string. >>> import cv2 >>> from utilities import * >>> data = cv2.imread("small_image.png", 2) >>> data.shape (11, 12) >>> binary_string = image_to_binary(data) >>> print(binary_string) 000000011...0000000 """ # threshold to remove outliers ret, bw_img = cv2.threshold(data,127,255,cv2.THRESH_BINARY) # result string to store binary representation of each pixel as string img_str = '' # convert every pixel to binary string and adds them to result string for i in range(bw_img.shape[0]): for j in range(bw_img.shape[1]): # create and append a constant length binary string of the pixel img_str += '{0:07b}'.format(bw_img[i][j]) return img_str
def read(text_path): texts = [] with open(text_path) as f: for line in f.readlines(): texts.append(line.strip()) return texts def corpus_perplexity(corpus_path, model): texts = read(corpus_path) N = sum(len(x.split()) for x in texts) corpus_perp = 1 for text in texts: sen_perp = model.perplexity(text) sen_perp_normed = sen_perp ** (len(text.split())/N) corpus_perp *= sen_perp_normed return corpus_perp
################################################ # result postprocessing utils def divide_list_chunks(list, size_list): assert(sum(size_list) >= len(list)) if sum(size_list) < len(list): size_list.append(len(list) - sum(size_list)) for j in range(len(size_list)): cur_id = sum(size_list[0:j]) yield list[cur_id:cur_id+size_list[j]] # temp... really ugly... def divide_nested_list_chunks(list, size_lists): # assert(sum(size_list) >= len(list)) cur_id = 0 output_list = [] for sl in size_lists: sub_list = {} for proc_name, jt_num in sl.items(): sub_list[proc_name] = list[cur_id:cur_id+jt_num] cur_id += jt_num output_list.append(sub_list) return output_list
"""Constants for the Sure Petcare component.""" DOMAIN = "petcare" DEFAULT_DEVICE_CLASS = "lock" # sure petcare api SURE_API_TIMEOUT = 60 # flap BATTERY_ICON = "mdi:battery" SURE_BATT_VOLTAGE_FULL = 1.6 # voltage SURE_BATT_VOLTAGE_LOW = 1.25 # voltage SURE_BATT_VOLTAGE_DIFF = SURE_BATT_VOLTAGE_FULL - SURE_BATT_VOLTAGE_LOW
class Board: width = 3 height = 3 # Board Index # 0 | 1 | 2 # 3 | 4 | 5 # 6 | 7 | 8 def __init__(self): """Instantiates a board object.""" # None is empty, 1 is player 1, 2 is player 2. self._board = [None] * (self.width * self.height) def _check_if_board_is_empty(self): if 0 in self._board: return False return True def _check_indexes(self, l): # If the set is 2 elements, no winner. # If the set is 1 element but with None, then no winner. check = {self._board[l[0]], self._board[l[1]], self._board[l[2]]} if len(check) == 1 and list(check)[0] is not None: return True return False def _check_for_diagonal_win(self): """Checks diagonals for winning player""" # Check UL to LR is_winner = self._check_indexes([0, 4, 8]) if is_winner: return True # Check UR to LL is_winner = self._check_indexes([2, 4, 6]) if is_winner: return True # No winner. return False def _check_for_horizontal_win(self): # Check row 1 is_winner = self._check_indexes([0, 1, 2]) if is_winner: return True # Check row 2 is_winner = self._check_indexes([3, 4, 5]) if is_winner: return True # Check row 3 is_winner = self._check_indexes([6, 7, 8]) if is_winner: return True # No winner. return False def _check_for_vertical_win(self): # Check column 1 is_winner = self._check_indexes([0, 3, 6]) if is_winner: return True # Check row 2 is_winner = self._check_indexes([1, 4, 7]) if is_winner: return True # Check row 3 is_winner = self._check_indexes([2, 5, 8]) if is_winner: return True # No winner. return False class Players: n = 2 # 2 players current_player = 1 # 1 for player 1, 2 for player 2. def next_player(self): """Switches players""" if self.current_player == 1: self.current_player = 2 else: self.current_player = 1
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] par = ter = maior = 0 for l in range(0, 3): for c in range(0, 3): matriz[l][c] = int(input(f'Digite o valor para [{l}, {c}]: ')) if c == 2: ter += matriz[l][c] if l == 1 and c == 0: maior = matriz[l][c] elif l == 1: if matriz[l][c] >= maior: maior = matriz[l][c] for n in matriz[l]: if n % 2 == 0: par += n print('-=' * 50) for l in range(0, 3): for c in range(0, 3): print(f'[{matriz[l][c]:^5}]', end=' ') print() print('-=' * 50) print(f'A soma dos valores pares é {par}') print(f'A soma dos valores da tericeira coluna é {ter}') print(f'O maior valor da segunda coluna é {maior}')
class Hash: def __init__(self): self.m = 5 # cantidad de posiciones iniciales self.min = 20 # porcentaje minimo a ocupar self.max = 80 # porcentaje maximo a ocupar self.n = 0 self.h = [] self.init() def division(self, k): return int(k % self.m) def linear(self, k): return ((k + 1) % self.m) def init(self): self.n = 0 self.h = [] for i in range(int(self.m)): self.h.append(None) for i in range(int(self.m)): self.h[i] = -1 i += 1 def insert(self, k): i = int(self.division(k)) while (self.h[int(i)] != -1): i = self.linear(i) self.h[int(i)] = k self.n += 1 self.rehashing() def rehashing(self): if ((self.n * 100 / self.m) >= self.max): # array copy temp = self.h self.print() # rehashing mprev = self.m self.m = self.n * 100 / self.min self.init() for i in range(int(mprev)): if (temp[i] != -1): self.insert(temp[i]) i += 1 else: self.print() def print(self): cadena = "" cadena += "[" for i in range(int(self.m)): cadena += " " + str(self.h[i]) i += 1 cadena += " ] " + str((self.n * 100 / self.m)) + "%" print(cadena) t = Hash() t.insert(5) t.insert(10) t.insert(15) t.insert(20) t.insert(25) t.insert(30) t.insert(35) t.insert(40) t.insert(45) t.insert(50) t.insert(55) t.insert(60) t.insert(65) t.insert(70) t.insert(75) t.insert(80)
with open("English dictionary.txt", "r") as input_file, open("English dictionary.out", "w") as output_file: row_id = 2 for line in input_file: line = line.strip() output_file.write("%d,%s\n" % (row_id, line.split(",")[1])) row_id += 1
def test_cat1(): assert True def test_cat2(): assert True def test_cat3(): assert True def test_cat4(): assert True def test_cat5(): assert True def test_cat6(): assert True def test_cat7(): assert True def test_cat8(): assert True
# This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module provides implementation for GlobalRoutePlannerDAO """ class GlobalRoutePlannerDAO(object): """ This class is the data access layer for fetching data from the carla server instance for GlobalRoutePlanner """ def __init__(self, wmap): """ Constructor wmap : carl world map object """ self._wmap = wmap def get_topology(self): """ Accessor for topology. This function retrieves topology from the server as a list of road segments as pairs of waypoint objects, and processes the topology into a list of dictionary objects. return: list of dictionary objects with the following attributes entry - (x,y) of entry point of road segment exit - (x,y) of exit point of road segment path - list of waypoints separated by 1m from entry to exit intersection - Boolean indicating if the road segment is an intersection """ topology = [] # Retrieving waypoints to construct a detailed topology for segment in self._wmap.get_topology(): x1 = segment[0].transform.location.x y1 = segment[0].transform.location.y x2 = segment[1].transform.location.x y2 = segment[1].transform.location.y seg_dict = dict() seg_dict['entry'] = (x1, y1) seg_dict['exit'] = (x2, y2) seg_dict['path'] = [] wp1 = segment[0] wp2 = segment[1] seg_dict['intersection'] = True if wp1.is_intersection else False endloc = wp2.transform.location w = wp1.next(1)[0] while w.transform.location.distance(endloc) > 1: x = w.transform.location.x y = w.transform.location.y seg_dict['path'].append((x, y)) w = w.next(1)[0] topology.append(seg_dict) return topology
# print("Hello") # print("Hello") # print("Hello") # i = 1 # so caller iterator, or index if you will # while i < 5: # while loops are for indeterminate time # print("Hello No.", i) # print(f"Hello Number {i}") # i += 1 # i = i + 1 # we will have a infinite loop without i += 1, there is no i++ # # print("Always happens once loop is finished") # print("i is now", i) # # i = 10 # while i >= 0: # print("Going down the floor:", i) # # i could do more stuff # if i == 0: # print("Cool we reached the garage") # i -= 1 # i = i - 1 # print("Whew we are done with this i:", i) # # # total = 0 # do not use sum as name for variable # i = 20 # print(f"BEFORE loop i is {i} total is {total}") # while i <= 30: # total += i # total = total + i # print(f"After adding {i} total is {total}") # i += 2 # step will be 2 here # print(f"i is {i} total is {total}") # # # start = 25 # end = 400 # step = 25 # we do have a for loop for this type of looping but step here can be a float # i = start # initialization # while i <= end: # print(f"i is {i}") # i += step # # print("i is ", i) # start = 10 # end = 500 # step = 1 # increase = 30 # # i = start # while i <= end: # print(f"i is {i}") # step += increase # increasing the increase # print("Step is now", step) # i += step # in general while loops are best suited for loops when we are not 100 % sure of when they will end # so sort of indeterminate # # # # i = 10 # while True: # so i am saying here that this loop should run forever .. unless I have something inside to break out # print("i is",i) # this line will always happen at least once # # could add more lines which will run at least once # # in a while True loop it is typical to check for exit condition # if i >= 14: # similar to while i < 28: # print("Ready to break out i is", i) # break # with break with break out of loop # i += 2 # # # above is simulating do while looping functionality # print("Whew AFTER BREAK out", i) # # # i = 20 # active = True # is_raining = True # # while active or is_raining: # careful here so for while loop to keep running here JUST ONE of the conditions here have to be true # while active and is_raining: # so for while loop to keep running here BOTH conditions here have to be true # print(f"Doing stuff with {i}") # i += 3 # # TODO update weather conditions # if i > 30: # active = False # # # # while True: # res = input("Enter number or q to quit ") # # if res.lower().startswith("q"): # more lenient any word starting with Q or q will work to quit # if res == "q": # print("No more calculations today. I am breaking out of the loop.") # break # elif len(res) == 0: # so i had an empty string here... # print("Hey! You just pressed Enter, please enter something...") # continue # we go back to line 83 and start over # # elif res == "a": # TODO check if if the input is text # elif res[0].isalpha(): # we are checking here for the first symbol of our input # print("I can't cube a letter ") # continue # means we are not going to try to convert "a" to float # # in other words we are not going to do the below 4 instructions # num = float(res) # cube = num**3 # cube = round(cube, 2) # 2 digits after comma # print(f"My calculator says cube of {num} is {cube}") # # # print("All done whew!") # # # outer_flag = True # # inner_flag = True # # i = 10 # # while outer_flag: # # print(i) # # while inner_flag: # # res = input("Enter q to quit") # # if res == 'q': # # print("got q lets break from inside") # # break # # i += 1 # # if i > 14: # # print("outer break about to happen") # # break # # # # # # # # # # # # # i = 5 while i < 10: print(i) i += 1 # this will be bugged think about the even case.... if i % 2 == 0: # i am testing whether some number has a reminder of 0 when divided by 2 print("Even number", i) # continue # we skip the following loop instructions else: # this will perform just like continue print("Doing something with odd number", i) # i += 1 # this will be bugged think about the even case... print("We do something here") # with continue this would not run
load("//ocaml:providers.bzl", "OcamlNsResolverProvider", "PpxNsArchiveProvider") load(":options.bzl", "options", "options_ns_archive", "options_ns_opts") load(":impl_ns_archive.bzl", "impl_ns_archive") load("//ocaml/_transitions:ns_transitions.bzl", "nsarchive_in_transition") OCAML_FILETYPES = [ ".ml", ".mli", ".cmx", ".cmo", ".cma" ] ############################### rule_options = options("ppx") rule_options.update(options_ns_archive("ppx")) rule_options.update(options_ns_opts("ppx")) ###################### ppx_ns_archive = rule( implementation = impl_ns_archive, doc = """Generate a PPX namespace module. """, attrs = dict( rule_options, _rule = attr.string(default = "ppx_ns_archive") ), cfg = nsarchive_in_transition, provides = [PpxNsArchiveProvider], executable = False, toolchains = ["@obazl_rules_ocaml//ocaml:toolchain"], )
# coding=utf-8 class Card: # card-colors KARO = 0 HERZ = 1 PIK = 2 KREUZ = 3 # card-names ZWEI = 2 DREI = 3 VIER = 4 FUENF = 5 SECHS = 6 SIEBEN = 7 ACHT = 8 NEUN = 9 ZEHN = 10 BUBE = 11 DAME = 12 KOENIG = 13 ASS = 14 def __init__(self, color, name, is_trump=False): self.color = color self.name = name self.trump = is_trump def maketrump(self, is_trump=True): self.trump = is_trump def get_color(self): return self.color def get_name(self): return self.name def is_trump(self): return self.trump def __cmp__(self, other): if type(self) != type(other): raise Exception('Can not compare %s and %s' % (type(self), type(other))) return self.name + 15 * self.trump - (other.name + 15 * other.trump) def __eq__(self, other): return hash(self) == hash(other) def __ne__(self, other): return hash(self) != hash(other) def __hash__(self): return (self.color * 100 + self.name) def __str__(self): color = {0: 'Karo', 1: 'Herz', 2: 'Pik', 3: 'Kreuz'}[self.color] name = {2: '2', 3: '3', 4: '4', 5: '5', 6: '6', 7: '7', 8: '8', 9: '9', 10: '10', 11: 'Bube', 12: 'Dame', 13: 'König', 14: 'Ass'}[self.name] return color + ' ' + name
print(' ====== Exercício 13 ====== ') # Solicitando ao usuário que insira o valor do salario que deve receber aumento. salario = float(input('Qual é o salário do funcionário? R$')) # Calculando o a soma do salario inserido com mais 15% de aumento. novo = salario + (salario * 15/100) # Exibindo o resultado ao usuário. print('Um funcionário que ganhava {}, com 15% de aumento, passa a receber R${:.2f}'.format(salario, novo))
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/xtark/ros_ws/devel/include;/home/xtark/ros_ws/src/third_packages/ar_track_alvar/ar_track_alvar/include".split(';') if "/home/xtark/ros_ws/devel/include;/home/xtark/ros_ws/src/third_packages/ar_track_alvar/ar_track_alvar/include" != "" else [] PROJECT_CATKIN_DEPENDS = "ar_track_alvar_msgs;std_msgs;roscpp;tf;tf2;message_runtime;image_transport;sensor_msgs;geometry_msgs;visualization_msgs;resource_retriever;cv_bridge;pcl_ros;pcl_conversions;dynamic_reconfigure".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lar_track_alvar".split(';') if "-lar_track_alvar" != "" else [] PROJECT_NAME = "ar_track_alvar" PROJECT_SPACE_DIR = "/home/xtark/ros_ws/devel" PROJECT_VERSION = "0.7.1"
def maxfun(l, *arr): maxn = 0 maxsum = 0 for k, i in enumerate(arr): s = 0 for t in l: s += i(t) if s >= maxsum: maxn = k maxsum = s return arr[maxn]
class EngineParams(object): def __init__(self, **kwargs): # Iterates over provided arguments and sets the provided arguments as class properties for key, value in kwargs.items(): setattr(self, key, value)
colours = {} # Regular colours["Black"]="\033[0;30m" colours["Red"]="\033[0;31m" colours["Green"]="\033[0;32m" colours["Yellow"]="\033[0;33m" colours["Blue"]="\033[0;34m" colours["Purple"]="\033[0;35m" colours["Cyan"]="\033[0;36m" colours["White"]="\033[0;37m" #Bold colours["BBlack"]="\033[1;30m" colours["BRed"]="\033[1;31m" colours["BGreen"]="\033[1;32m" colours["BYellow"]="\033[1;33m" colours["BBlue"]="\033[1;34m" colours["BPurple"]="\033[1;35m" colours["BCyan"]="\033[1;36m" colours["BWhite"]="\033[1;37m" # High Intensity colours["IBlack"]="\033[0;90m" colours["IRed"]="\033[0;91m" colours["IGreen"]="\033[0;92m" colours["IYellow"]="\033[0;93m" colours["IBlue"]="\033[0;94m" colours["IPurple"]="\033[0;95m" colours["ICyan"]="\033[0;96m" colours["IWhite"]="\033[0;97m" # Bold High Intensity colours["BIBlack"]="\033[1;90m" colours["BIRed"]="\033[1;91m" colours["BIGreen"]="\033[1;92m" colours["BIYellow"]="\033[1;93m" colours["BIBlue"]="\033[1;94m" colours["BIPurple"]="\033[1;95m" colours["BICyan"]="\033[1;96m" colours["BIWhite"]="\033[1;97m" colour_close = "\033[0m" colour_list = ['BRed', 'BGreen', 'BYellow', 'BBlue', 'BPurple', 'BCyan', 'IRed', 'IGreen', 'IYellow', 'IBlue', 'IPurple', 'ICyan']
class A(object): x:int = 1 def foo(): print(1) print(A) print(foo()) #ok print(foo) #error
# The path to the Webdriver (for Chrome/Chromium) CHROMEDRIVER_PATH = 'C:\\WebDriver\\bin\\chromedriver.exe' # Tell the browser to ignore invalid/insecure https connections BROWSER_INSECURE_CERTS = True # The URL pointing to the Franka Control Webinterface (Desk) DESK_URL = 'robot.franka.de' # Expect a login page when calling Desk DESK_LOGIN_REQUIRED = True # The ADS Id of the PLC (defaults to localhost) PLC_ID = '127.0.0.1.1.1' # Boolean flag on the PLC, set TRUE to start the web browser PLC_START_FLAG = 'GVL.bStartBlockly' # Blocklenium sets this flag TRUE if it terminates due to an exception PLC_ERROR_FLAG = 'GVL.bBlockleniumError' # Blocklenium sets this to it's terminating error message PLC_ERROR_MSG = 'GVL.sBlockleniumErrorMsg' # Set the Username for Desk on the PLC PLC_DESK_USER = 'GVL.sDeskUsername' # Set the Password for Desk on the PLC PLC_DESK_PW = 'GVL.sDeskPassword'
def print_division(a,b): try: result = a / b print(f"result: {result}") except: # It catches ALL errors print("error occurred") print_division(10,5) print_division(10,0) print_division(10,2) str_line = input("please enter two numbers to divide:") a = int(str_line.split(" ")[0]) b = int(str_line.split(" ")[1]) print_division(a,b)
class ConnectionError(Exception): """Failed to connect to the broker.""" pass
t = int(input()) while t: arr = [] S = input().split() if(len(S)==1): print(S[0].capitalize()) else: for i in range(len(S)): arr.append(S[i].capitalize()) for i in range(len(S)-1): print(arr[i][0]+'.',end=' ') print(S[len(S)-1].capitalize()) t = t-1
# -*- coding: utf-8 -*- """ uniq is a Python API client library for Cisco's Application Policy Infrastructure Controller Enterprise Module (APIC-EM) Northbound APIs. *** Description *** The APIC-EM Northbound Interface is the only API that you will need to control your network programmatically. The API is function rich and provides you with an easy-to-use, programmatic control of your network elements, interfaces, and hosts. The APIC-EM API provides you with the ability to think about your network at a higher policy level rather than how to implement that policy. When you use the APIC-EM API, your applications will make network policy decisions, which will then be implemented by the APIC-EM Controller through its Southbound Interfaces. Thus you tell the network what you want (i.e., the policy) and the controller figures out how to implement that policy for you. The APIC-EM API is REST based and thus you will discover and control your network using HTTP protocol with HTTP verbs (i.e., GET, POST, PUT, and DELETE) with JSON syntax. This package provides a handle to this rich API library in an easy to consume fashion. *** Usage *** Import the package and make an API call. >>> from uniq.apis.nb.client_manager import NbClientManager >>> client = NbClientManager( ... server="1.1.1.1", ... username="username", ... password="password", ... connect=True) >>> # NorthBound API call to get all users >>> user_list_result = client.user.getUsers() >>> # Serialize the model object to a python dictionary >>> users = client.serialize(user_list_result) >>> print(users) :copyright: (c) 2016 by Cisco Systems, see Copyright for more details. :license: Apache 2.0, see LICENSE for more details. """ __title__ = 'uniq' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2016 Cisco Systems' __version__ = '2.0.10' __first_release_date__ = '2016.1.16'
class Image_SVG(): def Stmp(self): return
def crack(value,g,mod): for i in range(mod): if ((g**i) % mod == value): return i # print("X = ", crack(57, 13, 59)) # print("Y = ", crack(44,13,59)) # print("Alice computes", (44**20)%59) # print("Bob computes", (57**47)%59) def find_num(target): for i in range(target): for j in range(target): if(i * j == target): print(i,j) find_num(5561) def lcm(x,y): orig_x = x orig_y = y while True: if x < y: x = x + orig_x elif y < x: y = y + orig_y else: return x print(lcm(66,82)) def find_db(eb,mod): for i in range(100000): if ((eb*i) % mod == 1): return i print(find_db(13,2706)) def gcd_check(x,y): greater = max(x,y) for i in range(2,greater): if ((x%i) == 0 and (y%i) == 0): return False return True print(gcd_check(2706,13)) # compute ydB mod nB def decrypt(list, db, nb): decrypted = [] for i in range(len(list)): decrypted.append((list[i]**db) % nb) return decrypted def to_ASCII(list): message = "" for letter in list: message += chr(letter) return message encrypted_list = [1516, 3860, 2891, 570, 3483, 4022, 3437, 299,570, 843, 3433, 5450, 653, 570, 3860, 482, 3860, 4851, 570, 2187, 4022, 3075, 653, 3860, 570, 3433, 1511, 2442, 4851, 570, 2187, 3860, 570, 3433, 1511, 4022, 3411, 5139, 1511, 3433, 4180, 570, 4169, 4022, 3411, 3075, 570, 3000, 2442, 2458, 4759, 570, 2863, 2458, 3455, 1106, 3860, 299, 570, 1511, 3433, 3433, 3000, 653, 3269, 4951, 4951, 2187, 2187, 2187, 299, 653, 1106, 1511, 4851, 3860, 3455, 3860, 3075, 299, 1106, 4022, 3194, 4951, 3437, 2458, 4022, 5139, 4951, 2442, 3075, 1106, 1511, 3455, 482, 3860, 653, 4951, 2875, 3668, 2875, 2875, 4951, 3668, 4063, 4951, 2442, 3455, 3075, 3433, 2442, 5139, 653, 5077, 2442, 3075, 3860, 5077, 3411, 653, 3860, 1165, 5077, 2713, 4022, 3075, 5077, 653, 3433, 2442, 2458, 3409, 3455, 4851, 5139, 5077, 2713, 2442, 3075, 5077, 3194, 4022, 3075, 3860, 5077, 3433, 1511, 2442, 4851, 5077, 3000, 3075, 3860, 482, 3455, 4022, 3411, 653, 2458, 2891, 5077, 3075, 3860, 3000, 4022, 3075, 3433, 3860, 1165, 299, 1511, 3433, 3194, 2458] print(decrypt(encrypted_list, 1249, 5561)) decrypted = decrypt(encrypted_list, 1249, 5561) print(to_ASCII(decrypted))
#Função que recebe varios parâmetros e mostra qual o maior valor entre eles def maior(*num): if len(num) > 0: maior = num[0] print(f'Analisando os valores: ', end='') for i in num: print(f'{i}, ', end='') if i >= maior: maior = i print(f'foram inseridos {len(num)} valores sendo o maior deles {maior}.') else: print('Nenhum valor inserido') maior(3,2,4,5,6) maior(1) maior() maior(2,7,1,3000,0,22)
__version__ = '1.0.3.5' if __name__ == '__main__': print(__version__) # ****************************************************************************** # MIT License # # Copyright (c) 2020 Jianlin Shi # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, # modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # ******************************************************************************
#tests if passed-in number is a prime number def is_prime(num): if num < 2: return False for i in range(2, num): if num % i == 0: return False return True #takes in a number and returns a list of prime numbers for zero to the number def generate_prime_numbers(number): primes = [] try: isinstance(number, int) if number > 0: for num in range(2, number+1): if is_prime(num): primes.append(num) return primes else: return 'number should be a positive integer greater than 0' except TypeError: raise TypeError
# time O(nlogn) # space O(1) def minimumWaitingTime(queries): queries.sort() total = 0 prev_sum = 0 for i in queries[:-1]: prev_sum += i total += prev_sum return total # time O(nlogn) # space O(1) def minimumWaitingTime(queries): queries.sort() total = 0 for idx, wait_time in enumerate(queries, start=1): queries_left = len(queries) - idx total += queries_left * wait_time return total
for _ in range(int(input())): n, m, k = map(int, input().split()) req = 0 req = 1*(m-1) + m*(n-1) if req == k: print("YES") else: print("NO")
#/*********************************************************\ # * File: 44ScriptOOP.py * # * # * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) # * # * This file is part of PixelLight. # * # * Permission is hereby granted, free of charge, to any person obtaining a copy of this software # * and associated documentation files (the "Software"), to deal in the Software without # * restriction, including without limitation the rights to use, copy, modify, merge, publish, # * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the # * Software is furnished to do so, subject to the following conditions: # * # * The above copyright notice and this permission notice shall be included in all copies or # * substantial portions of the Software. # * # * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING # * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #\*********************************************************/ #[-------------------------------------------------------] #[ Classes ] #[-------------------------------------------------------] # The "MyScriptClass"-class declaration class MyScriptClass(object): "My script class" # The default constructor - In Python, we can only have one constructor # Destructor def __del__(this): PL['System']['Console']['Print']("MyScriptClass::~MyScriptClass() - a=" + str(this.a) + "\n") # Another constructor def __init__(this, a): # (most people are using the name "self" for this purpose, I stick with "this" to have as comparable as possible example scripts) # A public class attribute this.a = a PL['System']['Console']['Print']("MyScriptClass::MyScriptClass(a) - a=" + str(this.a) + "\n") # A public class method def DoSomething(this): this.a *= 2 PL['System']['Console']['Print']("MyScriptClass::DoSomething() - a=" + str(this.a) + "\n") # A derived class named "MyDerivedScriptClass" class MyDerivedScriptClass(MyScriptClass): "My derived script class" # The default constructor def __init__(this): # Calling the non-default constructor of the base class MyScriptClass.__init__(this, 10) # A public class attribute this.b = 0 # A private class attribute (actually, Python doesn't support private stuff, it's just a name convention!) this._privateX = 0 PL['System']['Console']['Print']("MyDerivedScriptClass::MyDerivedScriptClass() - b=" + str(this.b) + "\n") PL['System']['Console']['Print']("MyDerivedScriptClass::MyDerivedScriptClass() - _privateX=" + str(this._privateX) + "\n") # Overloading a public virtual method def DoSomething(this): # Call the base class implementation MyScriptClass.DoSomething(this) # Do something more this.b = this.a PL['System']['Console']['Print']("MyDerivedScriptClass::DoSomething() - b=" + str(this.b) + "\n") # Call the private class method this._PrivateDoSomething() # A public class method def GetPrivateX(this): return this._privateX # A private class method (actually, Python doesn't support private stuff, it's just a name convention!) def _PrivateDoSomething(this): # Increment the private attribute this._privateX = this._privateX + 1 PL['System']['Console']['Print']("MyDerivedScriptClass::PrivateDoSomething() - _privateX=" + str(this._privateX) + "\n") #[-------------------------------------------------------] #[ Global functions ] #[-------------------------------------------------------] def OOP(): # Create an instance of MyScriptClass firstObject = MyScriptClass(5) firstObject.a = 1 firstObject.DoSomething() # Create an instance of MyDerivedScriptClass secondObject = MyDerivedScriptClass() secondObject.DoSomething() secondObject.a = firstObject.a secondObject.b = 2 PL['System']['Console']['Print']("secondObject.GetPrivateX() = " + str(secondObject.GetPrivateX()) + "\n")
# -*- coding: utf-8 -*- """ Created on Tue Jul 23 14:39:19 2019 @author: aksha """ annual_salary = int(input('Enter your annual salary: ')) annual_salary1 = annual_salary total_cost = 1000000 semi_annual_raise = 0.07 current_savings = 0.0 low = 0 high = 10000 guess = 5000 numberofsteps = 0 while abs(current_savings-total_cost*0.25)>=100 and guess != 9999 and abs(low-high)>=2: current_savings = 0.0 annual_salary = annual_salary1 for months in range(1,37): if months%6==1 and months != 1: annual_salary += annual_salary*semi_annual_raise current_savings += annual_salary/12*(guess/10000) + current_savings*0.04/12 if current_savings<(total_cost*0.25): low = guess else: high = guess guess =int((low+high)/2) numberofsteps += 1 if guess==9999: print('It is not possible to pay the down payment in 3 years') elif guess ==0: print('The portion size cannot be computed as it is very less(less than 0.0001)') else: print('Best Savings Rate: ',guess/10000) print('Steps in bisection search: ',numberofsteps)
orig = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" num = int(input()) for i in range(num): alpha = list(orig) key = input() cipher = input() tl = list(key) letters = [] newAlpha = [] for l in tl: if l not in letters: letters.append(l) alpha.remove(l) length = len(letters) count = 0 t = [] for y in range(length): t.insert(y, "") t[y] += letters[y] count = y; while count < len(alpha): t[y] += alpha[count] count += length t.sort() for tt in t: for ttt in tt: newAlpha.append(ttt) count = 0 for c in cipher: if(c != " "): print(orig[newAlpha.index(c)], end="") count += 1 if(count == 5): count = 0 print(" ", end="") print(" ")
def get_inplane(inplanes, idx): if isinstance(inplanes, list): return inplanes[idx] else: return inplanes
def linearsearch(_list, _v): if len(_list) == 0: return False for i, item in enumerate(_list): if item == _v: return i return False
images = [ "https://demo.com/imgs/1.jpg", "https://demo.com/imgs/2.jpg", "https://demo.com/imgs/3.jpg", ]
"""Constants for the Livebox component.""" DOMAIN = "livebox" COORDINATOR = "coordinator" UNSUB_LISTENER = "unsubscribe_listener" LIVEBOX_ID = "id" LIVEBOX_API = "api" COMPONENTS = ["sensor", "binary_sensor", "device_tracker", "switch"] TEMPLATE_SENSOR = "Orange Livebox" DEFAULT_USERNAME = "admin" DEFAULT_HOST = "192.168.1.1" DEFAULT_PORT = 80 CALLID = "callId" CONF_LAN_TRACKING = "lan_tracking" DEFAULT_LAN_TRACKING = False CONF_TRACKING_TIMEOUT = "timeout_tracking" DEFAULT_TRACKING_TIMEOUT = 300
INITIAL_CAROUSEL_DATA = [ { "title": "New Feature", "description": "Explore", "graphic": "/images/homepage/map-explorer.png", "url": "/explore" }, { "title": "Data Visualization", "description": "Yemen - WFP mVAM, Food Security Monitoring", "graphic": "/images/homepage/mVAM.png", "url": "//data.humdata.org/visualization/wfp-indicators/" }, { "title": "Data Visualization", "description": "South Sudan - OCHA, Who is doing What Where (3W)", "graphic": "/images/homepage/south-sudan.png", "url": "//data.humdata.org/organization/ocha-south-sudan" }, { "title": "Blog Post", "description": "New Features", "graphic": "/images/homepage/membership.jpg", "url": "https://centre.humdata.org/new-features-contact-the-contributor-and-group-message/", "buttonText": "Read", "newTab": True }, { "title": "Data Visualization", "description": "Global - WFP, Food Market Prices", "graphic": "/images/homepage/WFP.png", "url": "//data.humdata.org/organization/wfp" }, { "title": "Data Visualization", "description": "Kenya, Kakuma Refugee Camp - UNHCR, Who is doing What Where", "graphic": "/images/homepage/KakumaRefugee.png", "url": "//data.humdata.org/organization/unhcr-kenya" }, { "title": "Data Visualization", "description": "Somalia - Adeso, Who is doing What, Where and When (4W)", "graphic": "/images/homepage/Adeso.png", "url": "//data.humdata.org/organization/adeso" }, { "title": "Film", "description": "Making the Invisible Visible", "graphic": "/images/homepage/movie_small.png", "embed": True, "url": "//youtu.be/7QX5Ji5gl9g" } ]
"optimize with in-place list operations" class error(Exception): pass # when imported: local exception class Stack: def __init__(self, start=[]): # self is the instance object self.stack = [] # start is any sequence: stack... for x in start: self.push(x) def push(self, obj): # methods: like module + self self.stack.append(obj) # top is end of list def pop(self): if not self.stack: raise error('underflow') return self.stack.pop() # like fetch and delete stack[-1] def top(self): if not self.stack: raise error('underflow') return self.stack[-1] def empty(self): return not self.stack # instance.empty() def __len__(self): return len(self.stack) # len(instance), not instance def __getitem__(self, offset): return self.stack[offset] # instance[offset], in, for def __repr__(self): return '[Stack:%s]' % self.stack
''' A Simple nested if ''' # Can you eat chicken? a = input("Are you veg or non veg?\n") day = input("Which day is today?\n") if(a == "nonveg"): if(day == "sunday"): print("You can eat chicken") else: print("It is not sunday! You cannot eat chicken..") else: print("you are vegitarian! you cannot eat chicken!")
__author__ = "Rob MacKinnon <rome@villagertech.com>" __package__ = "DOMObjects" __name__ = "DOMObjects.flags" __license__ = "MIT" DEBUG = 0 FLAG_READ = 2**0 FLAG_WRITE = 2**1 FLAG_NAMESPACE = 2**2 FLAG_RESERVED_8 = 2**3 FLAG_RESERVED_16 = 2**4 FLAG_RESERVED_32 = 2**5 FLAG_RESERVED_64 = 2**6 FLAG_RESERVED_128 = 2**7 class DOMFlags(object): """ @abstract Class object for holding user definable flags for DOM Objects """ def __init__(self): """ @abstract Object initializer and bootstraps first object. """ self.__flags__ = {} self.default_flags = 0 | FLAG_READ | FLAG_WRITE self.__flags__["self"] = self.default_flags def __hasbit__(self, byteVal: int, bit: int = 0) -> bool: """ @abstract Private method to test if bit flag is set. @param byteVal [int] Binary flag set @param bit [int] Bit position to check true @returns [bool] True if bit value is 1 """ if DEBUG is 1: print("1?"+str(self.__getbit__(byteVal, bit))+" "+str(self.__getbit__(byteVal, bit) is 1)) return self.__getbit__(byteVal, bit) is 1 def __getbit__(self, byteVal: int, bit: int = 0) -> int: """ @abstract Returns the value of selected bit via bitwise operation @param byteVal [int] Binary flag set @param bit [int] Bit position to return @returns [int] 0|1 of value at bit position """ assert 0 <= bit < 8 _mask = 254 # --- Expensive Debugging Code Begin --- if DEBUG is 1: _print = "" _marker = "" _value = "" for x in range(0, 8): _print += str(((byteVal >> x) | _mask) - _mask) if bit-1 is x: _marker += "^" _value += str(bit) else: _marker += " " _value += " " print(_print) print(_marker) print(_value) # --- Expensive Debugging Code End --- return ((byteVal >> bit-1) | _mask) - _mask def __setbit__(self, byteVal: int, bit: int = 0, value: int = 0) -> int: """ @abstract Set explicit bit value of flag @param byteVal [int] Byte value to modify @param bit [int] Bit position alter @param value [int] 0|1 value to alter to @returns [int] 0|1 of value at bit position """ assert -1 < bit < 8 assert -1 < value < 2 # @bug Suddenly, a wild `None` appeared! # We are not sure why DOMObject.attach() started setting the # parent flag value to `None`, nor where it is actually doing # so after an hour stepping through things. Below is the fix. # Therefore we immediately default to READONLY to be secure. if byteVal == -1: return 0 | FLAG_READ _retVal = byteVal _bitVal = self.__getbit__(byteVal, bit) if _bitVal == value: # NOP pass elif _bitVal < value: _retVal = byteVal | 2**bit elif _bitVal > value: _retVal = byteVal - 2**bit else: raise Exception("we got somewhere we shouldn't have") return _retVal def has_flag(self, name: str) -> bool: """ @abstract Checks if `name` is a valid flag @param name [str] Flag key name to resolve @returns [bool] True on found/existing """ return name in self.__flags__.keys() @property def protected(self) -> bool: """ @abstract Returns whether the parent is currently protected @returns [bool] True if write flag is 0 """ return not self.is_writeable(name="self") def is_writeable(self, name: str = "self") -> bool: """ @abstract Returns whether the object is currently protected @param name [str] Flag name @returns [bool] True if write flag is 1 """ if not self.has_flag(name): raise Exception("invalid flag name `%s` referenced" % name) if DEBUG is 1: print("hasbit="+str(self.__hasbit__(self.__flags__[name], FLAG_WRITE))) return self.__hasbit__(self.__flags__[name], FLAG_WRITE) def lock(self, name: str = "self") -> None: """ @abstract Set the writeable flag to readonly @param name [str] Flag name @returns [None] """ if not self.has_flag(name): raise Exception("invalid flag name referenced") _value = self.__setbit__(self.__flags__[name], FLAG_WRITE, 0) self.update_flag(name, _value) def unlock(self, name: str = "self") -> None: """ @abstract Set the writeable flag to readonly @param name [str] Flag name @returns [None] """ if not self.has_flag(name): raise KeyError("invalid flag name referenced") _value = self.__setbit__(self.__flags__[name], FLAG_WRITE, 1) self.update_flag(name, _value) def test_bit(self, name: str, flag: int) -> bool: """ @abstract Boolean test for flag currently set @param name [str; Flag name @param flag [int] Bit position or FLAG_xxxxx global @returns [bool] True is requested value is set """ return self.__hasbit__(self.get_flag(name), flag) def get_flag(self, name: str) -> int: """ @abstract Return the value of flag @param name: str; flag name @returns [int] Byte value of flag set """ if not self.has_flag(name): raise Exception("invalid flag name referenced") return self.__flags__[name] def set_flag(self, name: str, flags: int = 0) -> bool: """ @abstract Set a new flag with a specific bit flag @param name [str] Flag name @param flags [int] #optional Bit mask to set to @returns [bool] True on success """ # Check to see if this flag already exists if self.has_flag(name): # flag name already exists, update instead return self.update_flag(name, flags) # Is this flag set protected, if not we should set the flags requested. if not self.protected: self.__flags__.update({name: flags}) return True raise Exception("cannot add flag, parent locked") def del_flag(self, name: str) -> bool: """ @abstract Remove a flag @param name [str] Flag name @returns [bool] True on success """ # Is this flag set protected, if not we should set the flags requested. if not self.protected: del self.__flags__[name] return True raise Exception("cannot delete flag, parent locked") def update_flag(self, name: str, flags: int) -> bool: """ @abstract update a flag to specified flag value @param name [str] Flag name @param flags [int] Bit mask to set @returns [bool] True on success """ if not self.protected and self.has_flag(name): self.__flags__[name] = flags return True # import pdb; pdb.set_trace() # breakpoint 1d9b2b3f // raise Exception("invalid flag name referenced")
languages = {} banned = [] results = {} data = input().split("-") while "exam finished" not in data: if "banned" in data: banned.append(data[0]) data = input().split("-") continue name = data[0] language = data[1] points = int(data[2]) current_points = 0 if language in languages: languages[language] += 1 if name in results: if points > results[name]: results[name] = points else: results[name] = points else: languages[language] = 1 results[name] = points data = input().split("-") results = dict(sorted(results.items(), key=lambda x: (-x[1], x[0]))) languages = dict(sorted(languages.items(), key=lambda x: (-x[1], x[0]))) print("Results:") for name in results: if name in banned: continue else: print(f"{name} | {results[name]}") print("Submissions:") [print(f"{language} - {languages[language]}") for language in languages]
nome = str(input('Digite seu nome: ')).strip() print('Olá {} vou te mostrar algumas informações sobre seu nome'.format(nome)) print('Tudo maiuscula:', nome.upper()) print('Tudo minuscula:', nome.lower()) print('Quantidade de letras:', len(nome) -nome.count(' ')) #print('Seu primeiro nome tem {} letras:'.format(nome.find(' '))) separa = nome.split() print('Seu primeiro nome é {} e ele tem {} letras'.format(separa[0], len(separa[0])))
#!/usr/bin/env python # -*- coding: utf-8 -*- """test_pycmake ---------------------------------- Tests for `pycmake` module. """
""" This package contains implementation of the individual components of the topic coherence pipeline. """
# -*- coding: utf-8 -*- { 'name': "se_openeducat_se_idr", 'summary': """ se_openeducat_se_idr """, 'description': """ Openeducat SE IDR """, 'author': "Alejandro", 'category': 'Uncategorized', 'version': '0.1', 'depends': ['base','openeducat_core','openeducat_fees'], 'data': [ 'security/ir.model.access.csv', 'views/op_student.xml', 'views/student_view.xml', 'views/account_payment_view.xml' ], }
''' Generic functions for files ''' class FileOps: def open(self, name): ''' Open the file and return a string ''' with open(name, 'rb') as f: return f.read()
''' Caesar Cypher, by Jackson Urquhart - 19 February 2022 @ 22:47 ''' in_str = str(input("\nEnter phrase: \n")) # Gets in_string from user key = int(input("\nEnter key: \n")) # Gets key from user keep_upper = str(input("\nMaintain case? y/n\n")) # Determines whether user wants to maintiain case values def encrypt(in_str, key): # Def encrypt out_str = '' # Object to be returned for letter in in_str: # For string in in_str if 96 < ord(letter.lower()) < 123: # If letter is a letter if keep_upper=='y' and letter.isupper(): # If letter is upper upper_status = True # Set upper_status to True letter=letter.lower() char=ord(letter) # Set char to ascii of letter char += key # Add key to ascii of letter if char>122: # If char with key is > 122 (z) print(char) char = 97+(123-char) # Subtract 123 from char and add additional value to 97 (a) print(char) if upper_status is True: # If letter is upper char -= 32 # Make char ASCII for uppper letter upper_status = False # Reset upper status out_str += chr(char) # Add str value of char to out_str else: # If letter is not a letter out_str += letter # Add letter return(out_str) # Return out_str out_str=encrypt(in_str, key) # Defines out_str as the reslt of main print(out_str) # Print out_str
# # PySNMP MIB module ETHER-WIS (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ETHER-WIS # Produced by pysmi-0.3.4 at Wed May 1 13:06:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Integer32, transmission, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Bits, IpAddress, MibIdentifier, Counter64, Unsigned32, ObjectIdentity, NotificationType, iso, Counter32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "transmission", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Bits", "IpAddress", "MibIdentifier", "Counter64", "Unsigned32", "ObjectIdentity", "NotificationType", "iso", "Counter32", "TimeTicks") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") sonetMediumLineType, sonetFarEndPathStuff2, sonetSESthresholdSet, sonetMediumStuff2, sonetSectionStuff2, sonetPathCurrentWidth, sonetPathStuff2, sonetMediumCircuitIdentifier, sonetMediumLoopbackConfig, sonetFarEndLineStuff2, sonetLineStuff2, sonetMediumLineCoding, sonetMediumType = mibBuilder.importSymbols("SONET-MIB", "sonetMediumLineType", "sonetFarEndPathStuff2", "sonetSESthresholdSet", "sonetMediumStuff2", "sonetSectionStuff2", "sonetPathCurrentWidth", "sonetPathStuff2", "sonetMediumCircuitIdentifier", "sonetMediumLoopbackConfig", "sonetFarEndLineStuff2", "sonetLineStuff2", "sonetMediumLineCoding", "sonetMediumType") etherWisMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 10, 134)) etherWisMIB.setRevisions(('2003-09-19 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: etherWisMIB.setRevisionsDescriptions(('Initial version, published as RFC 3637.',)) if mibBuilder.loadTexts: etherWisMIB.setLastUpdated('200309190000Z') if mibBuilder.loadTexts: etherWisMIB.setOrganization('IETF Ethernet Interfaces and Hub MIB Working Group') if mibBuilder.loadTexts: etherWisMIB.setContactInfo('WG charter: http://www.ietf.org/html.charters/hubmib-charter.html Mailing Lists: General Discussion: hubmib@ietf.org To Subscribe: hubmib-request@ietf.org In Body: subscribe your_email_address Chair: Dan Romascanu Postal: Avaya Inc. Atidim Technology Park, Bldg. 3 Tel Aviv 61131 Israel Tel: +972 3 645 8414 E-mail: dromasca@avaya.com Editor: C. M. Heard Postal: 600 Rainbow Dr. #141 Mountain View, CA 94041-2542 USA Tel: +1 650-964-8391 E-mail: heard@pobox.com') if mibBuilder.loadTexts: etherWisMIB.setDescription("The objects in this MIB module are used in conjunction with objects in the SONET-MIB and the MAU-MIB to manage the Ethernet WAN Interface Sublayer (WIS). The following reference is used throughout this MIB module: [IEEE 802.3 Std] refers to: IEEE Std 802.3, 2000 Edition: 'IEEE Standard for Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications', as amended by IEEE Std 802.3ae-2002, 'IEEE Standard for Carrier Sense Multiple Access with Collision Detection (CSMA/CD) Access Method and Physical Layer Specifications - Media Access Control (MAC) Parameters, Physical Layer and Management Parameters for 10 Gb/s Operation', 30 August 2002. Of particular interest are Clause 50, 'WAN Interface Sublayer (WIS), type 10GBASE-W', Clause 30, '10Mb/s, 100Mb/s, 1000Mb/s, and 10Gb/s MAC Control, and Link Aggregation Management', and Clause 45, 'Management Data Input/Output (MDIO) Interface'. Copyright (C) The Internet Society (2003). This version of this MIB module is part of RFC 3637; see the RFC itself for full legal notices.") etherWisObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 1)) etherWisObjectsPath = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 2)) etherWisConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 3)) etherWisDevice = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 1, 1)) etherWisSection = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 1, 2)) etherWisPath = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 2, 1)) etherWisFarEndPath = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 2, 2)) etherWisDeviceTable = MibTable((1, 3, 6, 1, 2, 1, 10, 134, 1, 1, 1), ) if mibBuilder.loadTexts: etherWisDeviceTable.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceTable.setDescription('The table for Ethernet WIS devices') etherWisDeviceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 134, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: etherWisDeviceEntry.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceEntry.setDescription('An entry in the Ethernet WIS device table. For each instance of this object there MUST be a corresponding instance of sonetMediumEntry.') etherWisDeviceTxTestPatternMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("squareWave", 2), ("prbs31", 3), ("mixedFrequency", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etherWisDeviceTxTestPatternMode.setReference('[IEEE 802.3 Std.], 50.3.8, WIS test pattern generator and checker, 45.2.2.6, 10G WIS control 2 register (2.7), and 45.2.2.7.2, PRBS31 pattern testing ability (2.8.1).') if mibBuilder.loadTexts: etherWisDeviceTxTestPatternMode.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceTxTestPatternMode.setDescription('This variable controls the transmit test pattern mode. The value none(1) puts the the WIS transmit path into the normal operating mode. The value squareWave(2) puts the WIS transmit path into the square wave test pattern mode described in [IEEE 802.3 Std.] subclause 50.3.8.1. The value prbs31(3) puts the WIS transmit path into the PRBS31 test pattern mode described in [IEEE 802.3 Std.] subclause 50.3.8.2. The value mixedFrequency(4) puts the WIS transmit path into the mixed frequency test pattern mode described in [IEEE 802.3 Std.] subclause 50.3.8.3. Any attempt to set this object to a value other than none(1) when the corresponding instance of ifAdminStatus has the value up(1) MUST be rejected with the error inconsistentValue, and any attempt to set the corresponding instance of ifAdminStatus to the value up(1) when an instance of this object has a value other than none(1) MUST be rejected with the error inconsistentValue.') etherWisDeviceRxTestPatternMode = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("prbs31", 3), ("mixedFrequency", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etherWisDeviceRxTestPatternMode.setReference('[IEEE 802.3 Std.], 50.3.8, WIS test pattern generator and checker, 45.2.2.6, 10G WIS control 2 register (2.7), and 45.2.2.7.2, PRBS31 pattern testing ability (2.8.1).') if mibBuilder.loadTexts: etherWisDeviceRxTestPatternMode.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceRxTestPatternMode.setDescription('This variable controls the receive test pattern mode. The value none(1) puts the the WIS receive path into the normal operating mode. The value prbs31(3) puts the WIS receive path into the PRBS31 test pattern mode described in [IEEE 802.3 Std.] subclause 50.3.8.2. The value mixedFrequency(4) puts the WIS receive path into the mixed frequency test pattern mode described in [IEEE 802.3 Std.] subclause 50.3.8.3. Any attempt to set this object to a value other than none(1) when the corresponding instance of ifAdminStatus has the value up(1) MUST be rejected with the error inconsistentValue, and any attempt to set the corresponding instance of ifAdminStatus to the value up(1) when an instance of this object has a value other than none(1) MUST be rejected with the error inconsistentValue.') etherWisDeviceRxTestPatternErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 1, 1, 1, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: etherWisDeviceRxTestPatternErrors.setReference('[IEEE 802.3 Std.], 50.3.8, WIS test pattern generator and checker, 45.2.2.7.2, PRBS31 pattern testing ability (2.8.1), and 45.2.2.8, 10G WIS test pattern error counter register (2.9).') if mibBuilder.loadTexts: etherWisDeviceRxTestPatternErrors.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceRxTestPatternErrors.setDescription('This object counts the number of errors detected when the WIS receive path is operating in the PRBS31 test pattern mode. It is reset to zero when the WIS receive path initially enters that mode, and it increments each time the PRBS pattern checker detects an error as described in [IEEE 802.3 Std.] subclause 50.3.8.2 unless its value is 65535, in which case it remains unchanged. This object is writeable so that it may be reset upon explicit request of a command generator application while the WIS receive path continues to operate in PRBS31 test pattern mode.') etherWisSectionCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 134, 1, 2, 1), ) if mibBuilder.loadTexts: etherWisSectionCurrentTable.setStatus('current') if mibBuilder.loadTexts: etherWisSectionCurrentTable.setDescription('The table for the current state of Ethernet WIS sections.') etherWisSectionCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 134, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: etherWisSectionCurrentEntry.setStatus('current') if mibBuilder.loadTexts: etherWisSectionCurrentEntry.setDescription('An entry in the etherWisSectionCurrentTable. For each instance of this object there MUST be a corresponding instance of sonetSectionCurrentEntry.') etherWisSectionCurrentJ0Transmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 1, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etherWisSectionCurrentJ0Transmitted.setReference('[IEEE 802.3 Std.], 30.8.1.1.8, aJ0ValueTX.') if mibBuilder.loadTexts: etherWisSectionCurrentJ0Transmitted.setStatus('current') if mibBuilder.loadTexts: etherWisSectionCurrentJ0Transmitted.setDescription("This is the 16-octet section trace message that is transmitted in the J0 byte. The value SHOULD be '89'h followed by fifteen octets of '00'h (or some cyclic shift thereof) when the section trace function is not used, and the implementation SHOULD use that value (or a cyclic shift thereof) as a default if no other value has been set.") etherWisSectionCurrentJ0Received = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: etherWisSectionCurrentJ0Received.setReference('[IEEE 802.3 Std.], 30.8.1.1.9, aJ0ValueRX.') if mibBuilder.loadTexts: etherWisSectionCurrentJ0Received.setStatus('current') if mibBuilder.loadTexts: etherWisSectionCurrentJ0Received.setDescription('This is the 16-octet section trace message that was most recently received in the J0 byte.') etherWisPathCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 134, 2, 1, 1), ) if mibBuilder.loadTexts: etherWisPathCurrentTable.setStatus('current') if mibBuilder.loadTexts: etherWisPathCurrentTable.setDescription('The table for the current state of Ethernet WIS paths.') etherWisPathCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 134, 2, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: etherWisPathCurrentEntry.setStatus('current') if mibBuilder.loadTexts: etherWisPathCurrentEntry.setDescription('An entry in the etherWisPathCurrentTable. For each instance of this object there MUST be a corresponding instance of sonetPathCurrentEntry.') etherWisPathCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 2, 1, 1, 1, 1), Bits().clone(namedValues=NamedValues(("etherWisPathLOP", 0), ("etherWisPathAIS", 1), ("etherWisPathPLM", 2), ("etherWisPathLCD", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etherWisPathCurrentStatus.setReference('[IEEE 802.3 Std.], 30.8.1.1.18, aPathStatus.') if mibBuilder.loadTexts: etherWisPathCurrentStatus.setStatus('current') if mibBuilder.loadTexts: etherWisPathCurrentStatus.setDescription('This variable indicates the current status of the path payload with a bit map that can indicate multiple defects at once. The bit positions are assigned as follows: etherWisPathLOP(0) This bit is set to indicate that an LOP-P (Loss of Pointer - Path) defect is being experienced. Note: when this bit is set, sonetPathSTSLOP MUST be set in the corresponding instance of sonetPathCurrentStatus. etherWisPathAIS(1) This bit is set to indicate that an AIS-P (Alarm Indication Signal - Path) defect is being experienced. Note: when this bit is set, sonetPathSTSAIS MUST be set in the corresponding instance of sonetPathCurrentStatus. etherWisPathPLM(1) This bit is set to indicate that a PLM-P (Payload Label Mismatch - Path) defect is being experienced. Note: when this bit is set, sonetPathSignalLabelMismatch MUST be set in the corresponding instance of sonetPathCurrentStatus. etherWisPathLCD(3) This bit is set to indicate that an LCD-P (Loss of Codegroup Delination - Path) defect is being experienced. Since this defect is detected by the PCS and not by the path layer itself, there is no corresponding bit in sonetPathCurrentStatus.') etherWisPathCurrentJ1Transmitted = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 2, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: etherWisPathCurrentJ1Transmitted.setReference('[IEEE 802.3 Std.], 30.8.1.1.23, aJ1ValueTX.') if mibBuilder.loadTexts: etherWisPathCurrentJ1Transmitted.setStatus('current') if mibBuilder.loadTexts: etherWisPathCurrentJ1Transmitted.setDescription("This is the 16-octet path trace message that is transmitted in the J1 byte. The value SHOULD be '89'h followed by fifteen octets of '00'h (or some cyclic shift thereof) when the path trace function is not used, and the implementation SHOULD use that value (or a cyclic shift thereof) as a default if no other value has been set.") etherWisPathCurrentJ1Received = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 2, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: etherWisPathCurrentJ1Received.setReference('[IEEE 802.3 Std.], 30.8.1.1.24, aJ1ValueRX.') if mibBuilder.loadTexts: etherWisPathCurrentJ1Received.setStatus('current') if mibBuilder.loadTexts: etherWisPathCurrentJ1Received.setDescription('This is the 16-octet path trace message that was most recently received in the J1 byte.') etherWisFarEndPathCurrentTable = MibTable((1, 3, 6, 1, 2, 1, 10, 134, 2, 2, 1), ) if mibBuilder.loadTexts: etherWisFarEndPathCurrentTable.setStatus('current') if mibBuilder.loadTexts: etherWisFarEndPathCurrentTable.setDescription('The table for the current far-end state of Ethernet WIS paths.') etherWisFarEndPathCurrentEntry = MibTableRow((1, 3, 6, 1, 2, 1, 10, 134, 2, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: etherWisFarEndPathCurrentEntry.setStatus('current') if mibBuilder.loadTexts: etherWisFarEndPathCurrentEntry.setDescription('An entry in the etherWisFarEndPathCurrentTable. For each instance of this object there MUST be a corresponding instance of sonetFarEndPathCurrentEntry.') etherWisFarEndPathCurrentStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 10, 134, 2, 2, 1, 1, 1), Bits().clone(namedValues=NamedValues(("etherWisFarEndPayloadDefect", 0), ("etherWisFarEndServerDefect", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etherWisFarEndPathCurrentStatus.setReference('[IEEE 802.3 Std.], 30.8.1.1.25, aFarEndPathStatus.') if mibBuilder.loadTexts: etherWisFarEndPathCurrentStatus.setStatus('current') if mibBuilder.loadTexts: etherWisFarEndPathCurrentStatus.setDescription('This variable indicates the current status at the far end of the path using a bit map that can indicate multiple defects at once. The bit positions are assigned as follows: etherWisFarEndPayloadDefect(0) A far end payload defect (i.e., far end PLM-P or LCD-P) is currently being signaled in G1 bits 5-7. etherWisFarEndServerDefect(1) A far end server defect (i.e., far end LOP-P or AIS-P) is currently being signaled in G1 bits 5-7. Note: when this bit is set, sonetPathSTSRDI MUST be set in the corresponding instance of sonetPathCurrentStatus.') etherWisGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 3, 1)) etherWisCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 10, 134, 3, 2)) etherWisDeviceGroupBasic = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 134, 3, 1, 1)).setObjects(("ETHER-WIS", "etherWisDeviceTxTestPatternMode"), ("ETHER-WIS", "etherWisDeviceRxTestPatternMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisDeviceGroupBasic = etherWisDeviceGroupBasic.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceGroupBasic.setDescription('A collection of objects that support test features required of all WIS devices.') etherWisDeviceGroupExtra = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 134, 3, 1, 2)).setObjects(("ETHER-WIS", "etherWisDeviceRxTestPatternErrors")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisDeviceGroupExtra = etherWisDeviceGroupExtra.setStatus('current') if mibBuilder.loadTexts: etherWisDeviceGroupExtra.setDescription('A collection of objects that support optional WIS device test features.') etherWisSectionGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 134, 3, 1, 3)).setObjects(("ETHER-WIS", "etherWisSectionCurrentJ0Transmitted"), ("ETHER-WIS", "etherWisSectionCurrentJ0Received")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisSectionGroup = etherWisSectionGroup.setStatus('current') if mibBuilder.loadTexts: etherWisSectionGroup.setDescription('A collection of objects that provide required information about a WIS section.') etherWisPathGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 134, 3, 1, 4)).setObjects(("ETHER-WIS", "etherWisPathCurrentStatus"), ("ETHER-WIS", "etherWisPathCurrentJ1Transmitted"), ("ETHER-WIS", "etherWisPathCurrentJ1Received")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisPathGroup = etherWisPathGroup.setStatus('current') if mibBuilder.loadTexts: etherWisPathGroup.setDescription('A collection of objects that provide required information about a WIS path.') etherWisFarEndPathGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 10, 134, 3, 1, 5)).setObjects(("ETHER-WIS", "etherWisFarEndPathCurrentStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisFarEndPathGroup = etherWisFarEndPathGroup.setStatus('current') if mibBuilder.loadTexts: etherWisFarEndPathGroup.setDescription('A collection of objects that provide required information about the far end of a WIS path.') etherWisCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 10, 134, 3, 2, 1)).setObjects(("ETHER-WIS", "etherWisDeviceGroupBasic"), ("ETHER-WIS", "etherWisSectionGroup"), ("ETHER-WIS", "etherWisPathGroup"), ("ETHER-WIS", "etherWisFarEndPathGroup"), ("SONET-MIB", "sonetMediumStuff2"), ("SONET-MIB", "sonetSectionStuff2"), ("SONET-MIB", "sonetLineStuff2"), ("SONET-MIB", "sonetFarEndLineStuff2"), ("SONET-MIB", "sonetPathStuff2"), ("SONET-MIB", "sonetFarEndPathStuff2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etherWisCompliance = etherWisCompliance.setStatus('current') if mibBuilder.loadTexts: etherWisCompliance.setDescription('The compliance statement for interfaces that include the Ethernet WIS. Compliance with the following external compliance statements is prerequisite: MIB Module Compliance Statement ---------- -------------------- IF-MIB ifCompliance3 IF-INVERTED-STACK-MIB ifInvCompliance EtherLike-MIB dot3Compliance2 MAU-MIB mauModIfCompl3') mibBuilder.exportSymbols("ETHER-WIS", etherWisDevice=etherWisDevice, etherWisPathCurrentEntry=etherWisPathCurrentEntry, PYSNMP_MODULE_ID=etherWisMIB, etherWisObjectsPath=etherWisObjectsPath, etherWisPathCurrentStatus=etherWisPathCurrentStatus, etherWisDeviceGroupExtra=etherWisDeviceGroupExtra, etherWisDeviceRxTestPatternErrors=etherWisDeviceRxTestPatternErrors, etherWisMIB=etherWisMIB, etherWisPathCurrentJ1Transmitted=etherWisPathCurrentJ1Transmitted, etherWisDeviceRxTestPatternMode=etherWisDeviceRxTestPatternMode, etherWisSectionCurrentJ0Received=etherWisSectionCurrentJ0Received, etherWisSectionCurrentJ0Transmitted=etherWisSectionCurrentJ0Transmitted, etherWisFarEndPathCurrentStatus=etherWisFarEndPathCurrentStatus, etherWisFarEndPath=etherWisFarEndPath, etherWisPath=etherWisPath, etherWisSectionCurrentEntry=etherWisSectionCurrentEntry, etherWisGroups=etherWisGroups, etherWisDeviceGroupBasic=etherWisDeviceGroupBasic, etherWisPathGroup=etherWisPathGroup, etherWisPathCurrentTable=etherWisPathCurrentTable, etherWisDeviceTxTestPatternMode=etherWisDeviceTxTestPatternMode, etherWisObjects=etherWisObjects, etherWisPathCurrentJ1Received=etherWisPathCurrentJ1Received, etherWisDeviceEntry=etherWisDeviceEntry, etherWisFarEndPathCurrentTable=etherWisFarEndPathCurrentTable, etherWisSectionGroup=etherWisSectionGroup, etherWisCompliances=etherWisCompliances, etherWisSection=etherWisSection, etherWisFarEndPathGroup=etherWisFarEndPathGroup, etherWisFarEndPathCurrentEntry=etherWisFarEndPathCurrentEntry, etherWisSectionCurrentTable=etherWisSectionCurrentTable, etherWisCompliance=etherWisCompliance, etherWisConformance=etherWisConformance, etherWisDeviceTable=etherWisDeviceTable)
print("hello world") #prin("how are you") def fa(): return fb() def fb(): return fc() def fc(): return 1 def suma(a, b): return a + b
# -*- coding: utf-8 -*- """ Created on Thu Jun 6 17:02:15 2019 @author: Administrator """ class Solution: def setZeroes(self, matrix: list) -> None: """ Do not return anything, modify matrix in-place instead. """ d = {} d['R'] = [] d['C'] = [] for r, val in enumerate(matrix): for c, v in enumerate(val): if v == 0: d['R'].append(r) d['C'].append(c) d['R'] = list(set(d['R'])) d['C'] = list(set(d['C'])) for p in range(len(matrix)): for q in range(len(matrix[p])): if p in d['R'] or q in d['C']: matrix[p][q] = 0 solu = Solution() matrix = [ [0,1,2,0], [3,4,5,2], [1,3,1,5] ] solu.setZeroes(matrix) print(matrix)
# # PySNMP MIB module Nortel-Magellan-Passport-BaseRoutingMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-BaseRoutingMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:16:59 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") RowStatus, Unsigned32, Gauge32, RowPointer, StorageType, Counter32, Integer32, DisplayString = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "RowStatus", "Unsigned32", "Gauge32", "RowPointer", "StorageType", "Counter32", "Integer32", "DisplayString") FixedPoint1, NonReplicated, DigitString, AsciiStringIndex = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "FixedPoint1", "NonReplicated", "DigitString", "AsciiStringIndex") components, passportMIBs = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "components", "passportMIBs") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") TimeTicks, MibIdentifier, Unsigned32, Bits, NotificationType, ModuleIdentity, Counter64, Gauge32, iso, ObjectIdentity, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibIdentifier", "Unsigned32", "Bits", "NotificationType", "ModuleIdentity", "Counter64", "Gauge32", "iso", "ObjectIdentity", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Integer32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") baseRoutingMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18)) rtg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40)) rtgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1), ) if mibBuilder.loadTexts: rtgRowStatusTable.setStatus('mandatory') rtgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex")) if mibBuilder.loadTexts: rtgRowStatusEntry.setStatus('mandatory') rtgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtgRowStatus.setStatus('mandatory') rtgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgComponentName.setStatus('mandatory') rtgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgStorageType.setStatus('mandatory') rtgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: rtgIndex.setStatus('mandatory') rtgProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 12), ) if mibBuilder.loadTexts: rtgProvTable.setStatus('mandatory') rtgProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex")) if mibBuilder.loadTexts: rtgProvEntry.setStatus('mandatory') rtgTandemTraffic = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 12, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("allowed", 0), ("denied", 1))).clone('allowed')).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtgTandemTraffic.setStatus('mandatory') rtgSplittingRegionIdsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 407), ) if mibBuilder.loadTexts: rtgSplittingRegionIdsTable.setStatus('mandatory') rtgSplittingRegionIdsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 407, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgSplittingRegionIdsValue")) if mibBuilder.loadTexts: rtgSplittingRegionIdsEntry.setStatus('mandatory') rtgSplittingRegionIdsValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 407, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 126))).setMaxAccess("readwrite") if mibBuilder.loadTexts: rtgSplittingRegionIdsValue.setStatus('mandatory') rtgSplittingRegionIdsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 407, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: rtgSplittingRegionIdsRowStatus.setStatus('mandatory') rtgTop = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5)) rtgTopRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1), ) if mibBuilder.loadTexts: rtgTopRowStatusTable.setStatus('mandatory') rtgTopRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex")) if mibBuilder.loadTexts: rtgTopRowStatusEntry.setStatus('mandatory') rtgTopRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopRowStatus.setStatus('mandatory') rtgTopComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopComponentName.setStatus('mandatory') rtgTopStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopStorageType.setStatus('mandatory') rtgTopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: rtgTopIndex.setStatus('mandatory') rtgTopStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11), ) if mibBuilder.loadTexts: rtgTopStatsTable.setStatus('mandatory') rtgTopStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex")) if mibBuilder.loadTexts: rtgTopStatsEntry.setStatus('mandatory') rtgTopControlPktRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopControlPktRx.setStatus('mandatory') rtgTopControlBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopControlBytesRx.setStatus('mandatory') rtgTopControlPktTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopControlPktTx.setStatus('mandatory') rtgTopControlBytesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 11, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopControlBytesTx.setStatus('mandatory') rtgTopNode = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2)) rtgTopNodeRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1), ) if mibBuilder.loadTexts: rtgTopNodeRowStatusTable.setStatus('mandatory') rtgTopNodeRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex")) if mibBuilder.loadTexts: rtgTopNodeRowStatusEntry.setStatus('mandatory') rtgTopNodeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeRowStatus.setStatus('mandatory') rtgTopNodeComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeComponentName.setStatus('mandatory') rtgTopNodeStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeStorageType.setStatus('mandatory') rtgTopNodeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 12))) if mibBuilder.loadTexts: rtgTopNodeIndex.setStatus('mandatory') rtgTopNodeOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 10), ) if mibBuilder.loadTexts: rtgTopNodeOperTable.setStatus('mandatory') rtgTopNodeOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex")) if mibBuilder.loadTexts: rtgTopNodeOperEntry.setStatus('mandatory') rtgTopNodeNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeNodeId.setStatus('mandatory') rtgTopNodeLg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2)) rtgTopNodeLgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1), ) if mibBuilder.loadTexts: rtgTopNodeLgRowStatusTable.setStatus('mandatory') rtgTopNodeLgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex")) if mibBuilder.loadTexts: rtgTopNodeLgRowStatusEntry.setStatus('mandatory') rtgTopNodeLgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgRowStatus.setStatus('mandatory') rtgTopNodeLgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgComponentName.setStatus('mandatory') rtgTopNodeLgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgStorageType.setStatus('mandatory') rtgTopNodeLgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 12))) if mibBuilder.loadTexts: rtgTopNodeLgIndex.setStatus('mandatory') rtgTopNodeLgOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 10), ) if mibBuilder.loadTexts: rtgTopNodeLgOperTable.setStatus('mandatory') rtgTopNodeLgOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex")) if mibBuilder.loadTexts: rtgTopNodeLgOperEntry.setStatus('mandatory') rtgTopNodeLgDelayMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgDelayMetric.setStatus('mandatory') rtgTopNodeLgTputMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTputMetric.setStatus('mandatory') rtgTopNodeLgLnnTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 235), ) if mibBuilder.loadTexts: rtgTopNodeLgLnnTable.setStatus('mandatory') rtgTopNodeLgLnnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 235, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgLnnValue")) if mibBuilder.loadTexts: rtgTopNodeLgLnnEntry.setStatus('mandatory') rtgTopNodeLgLnnValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 235, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2047))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgLnnValue.setStatus('mandatory') rtgTopNodeLgTrkObj = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2)) rtgTopNodeLgTrkObjRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1), ) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjRowStatusTable.setStatus('mandatory') rtgTopNodeLgTrkObjRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgTrkObjIndex")) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjRowStatusEntry.setStatus('mandatory') rtgTopNodeLgTrkObjRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjRowStatus.setStatus('mandatory') rtgTopNodeLgTrkObjComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjComponentName.setStatus('mandatory') rtgTopNodeLgTrkObjStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjStorageType.setStatus('mandatory') rtgTopNodeLgTrkObjIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjIndex.setStatus('mandatory') rtgTopNodeLgTrkObjOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10), ) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjOperTable.setStatus('mandatory') rtgTopNodeLgTrkObjOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgTrkObjIndex")) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjOperEntry.setStatus('mandatory') rtgTopNodeLgTrkObjMaxReservableBwOut = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjMaxReservableBwOut.setStatus('mandatory') rtgTopNodeLgTrkObjTrunkCost = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjTrunkCost.setStatus('mandatory') rtgTopNodeLgTrkObjTrunkDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjTrunkDelay.setStatus('mandatory') rtgTopNodeLgTrkObjTrunkSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjTrunkSecurity.setStatus('mandatory') rtgTopNodeLgTrkObjSupportedTrafficTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjSupportedTrafficTypes.setStatus('mandatory') rtgTopNodeLgTrkObjTrunkType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("terrestrial", 0), ("satellite", 1), ("trunkType1", 2), ("trunkType2", 3), ("trunkType3", 4), ("trunkType4", 5), ("trunkType5", 6), ("trunkType6", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjTrunkType.setStatus('mandatory') rtgTopNodeLgTrkObjCustomerParameter = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjCustomerParameter.setStatus('mandatory') rtgTopNodeLgTrkObjFarEndTrmLkInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjFarEndTrmLkInstance.setStatus('mandatory') rtgTopNodeLgTrkObjUnresTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 234), ) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjUnresTable.setStatus('mandatory') rtgTopNodeLgTrkObjUnresEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 234, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgTrkObjIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgTrkObjUnresSetupPriorityIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "rtgTopNodeLgTrkObjUnresUnreservedBwPartsIndex")) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjUnresEntry.setStatus('mandatory') rtgTopNodeLgTrkObjUnresSetupPriorityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 234, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("bwPartOver255", 0)))) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjUnresSetupPriorityIndex.setStatus('mandatory') rtgTopNodeLgTrkObjUnresUnreservedBwPartsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 234, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))) if mibBuilder.loadTexts: rtgTopNodeLgTrkObjUnresUnreservedBwPartsIndex.setStatus('mandatory') rtgTopNodeLgTrkObjUnresValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 40, 5, 2, 2, 2, 234, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: rtgTopNodeLgTrkObjUnresValue.setStatus('mandatory') trm = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41)) trmRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1), ) if mibBuilder.loadTexts: trmRowStatusTable.setStatus('mandatory') trmRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex")) if mibBuilder.loadTexts: trmRowStatusEntry.setStatus('mandatory') trmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmRowStatus.setStatus('mandatory') trmComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmComponentName.setStatus('mandatory') trmStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmStorageType.setStatus('mandatory') trmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: trmIndex.setStatus('mandatory') trmLk = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2)) trmLkRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1), ) if mibBuilder.loadTexts: trmLkRowStatusTable.setStatus('mandatory') trmLkRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLkIndex")) if mibBuilder.loadTexts: trmLkRowStatusEntry.setStatus('mandatory') trmLkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkRowStatus.setStatus('mandatory') trmLkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkComponentName.setStatus('mandatory') trmLkStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkStorageType.setStatus('mandatory') trmLkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))) if mibBuilder.loadTexts: trmLkIndex.setStatus('mandatory') trmLkOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10), ) if mibBuilder.loadTexts: trmLkOperTable.setStatus('mandatory') trmLkOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLkIndex")) if mibBuilder.loadTexts: trmLkOperEntry.setStatus('mandatory') trmLkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inactive", 1), ("joining", 2), ("online", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkStatus.setStatus('mandatory') trmLkThroughput = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 2), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 640000000))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkThroughput.setStatus('mandatory') trmLkDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 1500))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkDelay.setStatus('obsolete') trmLkMaxTxUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkMaxTxUnit.setStatus('mandatory') trmLkLinkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 5), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkLinkComponentName.setStatus('mandatory') trmLkDelayUsec = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 10, 1, 6), FixedPoint1().subtype(subtypeSpec=ValueRangeConstraint(10, 15000))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkDelayUsec.setStatus('mandatory') trmLkFwdStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 11), ) if mibBuilder.loadTexts: trmLkFwdStatsTable.setStatus('mandatory') trmLkFwdStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLkIndex")) if mibBuilder.loadTexts: trmLkFwdStatsEntry.setStatus('mandatory') trmLkFciSet = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkFciSet.setStatus('mandatory') trmLkOverflowAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkOverflowAttempts.setStatus('mandatory') trmLkPathOverflowAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkPathOverflowAttempts.setStatus('mandatory') trmLkDiscardCongestedTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 280), ) if mibBuilder.loadTexts: trmLkDiscardCongestedTable.setStatus('mandatory') trmLkDiscardCongestedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 280, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLkIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLkDiscardCongestedIndex")) if mibBuilder.loadTexts: trmLkDiscardCongestedEntry.setStatus('mandatory') trmLkDiscardCongestedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 280, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("discardPriority1", 0), ("discardPriority2", 1), ("discardPriority3", 2)))) if mibBuilder.loadTexts: trmLkDiscardCongestedIndex.setStatus('mandatory') trmLkDiscardCongestedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 2, 280, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLkDiscardCongestedValue.setStatus('mandatory') trmLg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3)) trmLgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1), ) if mibBuilder.loadTexts: trmLgRowStatusTable.setStatus('mandatory') trmLgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex")) if mibBuilder.loadTexts: trmLgRowStatusEntry.setStatus('mandatory') trmLgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgRowStatus.setStatus('mandatory') trmLgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgComponentName.setStatus('mandatory') trmLgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgStorageType.setStatus('mandatory') trmLgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 12))) if mibBuilder.loadTexts: trmLgIndex.setStatus('mandatory') trmLgLk = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2)) trmLgLkRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1), ) if mibBuilder.loadTexts: trmLgLkRowStatusTable.setStatus('mandatory') trmLgLkRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLkIndex")) if mibBuilder.loadTexts: trmLgLkRowStatusEntry.setStatus('mandatory') trmLgLkRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkRowStatus.setStatus('mandatory') trmLgLkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkComponentName.setStatus('mandatory') trmLgLkStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkStorageType.setStatus('mandatory') trmLgLkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))) if mibBuilder.loadTexts: trmLgLkIndex.setStatus('mandatory') trmLgLkOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10), ) if mibBuilder.loadTexts: trmLgLkOperTable.setStatus('mandatory') trmLgLkOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLkIndex")) if mibBuilder.loadTexts: trmLgLkOperEntry.setStatus('mandatory') trmLgLkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inactive", 1), ("joining", 2), ("online", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkStatus.setStatus('mandatory') trmLgLkThroughput = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 2), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 640000000))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkThroughput.setStatus('mandatory') trmLgLkDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 1500))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkDelay.setStatus('obsolete') trmLgLkMaxTxUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkMaxTxUnit.setStatus('mandatory') trmLgLkLinkComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 5), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkLinkComponentName.setStatus('mandatory') trmLgLkDelayUsec = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 10, 1, 6), FixedPoint1().subtype(subtypeSpec=ValueRangeConstraint(10, 15000))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkDelayUsec.setStatus('mandatory') trmLgLkFwdStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 11), ) if mibBuilder.loadTexts: trmLgLkFwdStatsTable.setStatus('mandatory') trmLgLkFwdStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLkIndex")) if mibBuilder.loadTexts: trmLgLkFwdStatsEntry.setStatus('mandatory') trmLgLkFciSet = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkFciSet.setStatus('mandatory') trmLgLkOverflowAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkOverflowAttempts.setStatus('mandatory') trmLgLkPathOverflowAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkPathOverflowAttempts.setStatus('mandatory') trmLgLkDiscardCongestedTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 280), ) if mibBuilder.loadTexts: trmLgLkDiscardCongestedTable.setStatus('mandatory') trmLgLkDiscardCongestedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 280, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLkIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLkDiscardCongestedIndex")) if mibBuilder.loadTexts: trmLgLkDiscardCongestedEntry.setStatus('mandatory') trmLgLkDiscardCongestedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 280, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("discardPriority1", 0), ("discardPriority2", 1), ("discardPriority3", 2)))) if mibBuilder.loadTexts: trmLgLkDiscardCongestedIndex.setStatus('mandatory') trmLgLkDiscardCongestedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 2, 280, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLkDiscardCongestedValue.setStatus('mandatory') trmLgLNN = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3)) trmLgLNNRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1), ) if mibBuilder.loadTexts: trmLgLNNRowStatusTable.setStatus('mandatory') trmLgLNNRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLNNIndex")) if mibBuilder.loadTexts: trmLgLNNRowStatusEntry.setStatus('mandatory') trmLgLNNRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLNNRowStatus.setStatus('mandatory') trmLgLNNComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLNNComponentName.setStatus('mandatory') trmLgLNNStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLNNStorageType.setStatus('mandatory') trmLgLNNIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2047))) if mibBuilder.loadTexts: trmLgLNNIndex.setStatus('mandatory') trmLgLNNOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 10), ) if mibBuilder.loadTexts: trmLgLNNOperTable.setStatus('mandatory') trmLgLNNOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "trmLgLNNIndex")) if mibBuilder.loadTexts: trmLgLNNOperEntry.setStatus('mandatory') trmLgLNNLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("trunk", 0), ("internalGateway", 1), ("externalGateway", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLNNLinkType.setStatus('mandatory') trmLgLNNAddressPlanComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 41, 3, 3, 10, 1, 2), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: trmLgLNNAddressPlanComponentName.setStatus('mandatory') npi = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43)) npiRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1), ) if mibBuilder.loadTexts: npiRowStatusTable.setStatus('mandatory') npiRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiIndex")) if mibBuilder.loadTexts: npiRowStatusEntry.setStatus('mandatory') npiRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiRowStatus.setStatus('mandatory') npiComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiComponentName.setStatus('mandatory') npiStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiStorageType.setStatus('mandatory') npiIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("x121", 0), ("e164", 1)))) if mibBuilder.loadTexts: npiIndex.setStatus('mandatory') npiStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 10), ) if mibBuilder.loadTexts: npiStatsTable.setStatus('mandatory') npiStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiIndex")) if mibBuilder.loadTexts: npiStatsEntry.setStatus('mandatory') npiTotalDnas = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: npiTotalDnas.setStatus('mandatory') npiDna = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2)) npiDnaRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1), ) if mibBuilder.loadTexts: npiDnaRowStatusTable.setStatus('mandatory') npiDnaRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiDnaIndex")) if mibBuilder.loadTexts: npiDnaRowStatusEntry.setStatus('mandatory') npiDnaRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiDnaRowStatus.setStatus('mandatory') npiDnaComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiDnaComponentName.setStatus('mandatory') npiDnaStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiDnaStorageType.setStatus('mandatory') npiDnaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 1, 1, 10), DigitString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))) if mibBuilder.loadTexts: npiDnaIndex.setStatus('mandatory') npiDnaInfoTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 10), ) if mibBuilder.loadTexts: npiDnaInfoTable.setStatus('mandatory') npiDnaInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiIndex"), (0, "Nortel-Magellan-Passport-BaseRoutingMIB", "npiDnaIndex")) if mibBuilder.loadTexts: npiDnaInfoEntry.setStatus('mandatory') npiDnaDestinationName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 43, 2, 10, 1, 1), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: npiDnaDestinationName.setStatus('mandatory') baseRoutingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 1)) baseRoutingGroupBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 1, 5)) baseRoutingGroupBE00 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 1, 5, 1)) baseRoutingGroupBE00A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 1, 5, 1, 2)) baseRoutingCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 3)) baseRoutingCapabilitiesBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 3, 5)) baseRoutingCapabilitiesBE00 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 3, 5, 1)) baseRoutingCapabilitiesBE00A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 18, 3, 5, 1, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-BaseRoutingMIB", rtgTopNodeLgIndex=rtgTopNodeLgIndex, rtgTopNodeLgRowStatus=rtgTopNodeLgRowStatus, rtgIndex=rtgIndex, trmLgLkFwdStatsTable=trmLgLkFwdStatsTable, npiDnaInfoTable=npiDnaInfoTable, trmRowStatusEntry=trmRowStatusEntry, trmLgLkDiscardCongestedTable=trmLgLkDiscardCongestedTable, npiDna=npiDna, trmLkComponentName=trmLkComponentName, rtgTopNodeLgTrkObjFarEndTrmLkInstance=rtgTopNodeLgTrkObjFarEndTrmLkInstance, trmLgLkRowStatusEntry=trmLgLkRowStatusEntry, rtgTopStatsTable=rtgTopStatsTable, trmLkLinkComponentName=trmLkLinkComponentName, trmLgLNNRowStatus=trmLgLNNRowStatus, rtgTopNodeIndex=rtgTopNodeIndex, trmLgLkDelayUsec=trmLgLkDelayUsec, trmLgLkRowStatusTable=trmLgLkRowStatusTable, npiRowStatusTable=npiRowStatusTable, trmLkDiscardCongestedTable=trmLkDiscardCongestedTable, trmLgLNNAddressPlanComponentName=trmLgLNNAddressPlanComponentName, rtgTopNodeStorageType=rtgTopNodeStorageType, rtgTopControlBytesRx=rtgTopControlBytesRx, trmLkPathOverflowAttempts=trmLkPathOverflowAttempts, baseRoutingCapabilities=baseRoutingCapabilities, trmRowStatus=trmRowStatus, trmLkRowStatus=trmLkRowStatus, baseRoutingMIB=baseRoutingMIB, rtgTopNodeLgTrkObjOperTable=rtgTopNodeLgTrkObjOperTable, trmLgLkThroughput=trmLgLkThroughput, npiTotalDnas=npiTotalDnas, rtgTopNodeLgStorageType=rtgTopNodeLgStorageType, rtgRowStatusEntry=rtgRowStatusEntry, rtgProvTable=rtgProvTable, rtgSplittingRegionIdsTable=rtgSplittingRegionIdsTable, npiDnaComponentName=npiDnaComponentName, rtgTopNodeLgTputMetric=rtgTopNodeLgTputMetric, npi=npi, trmLgRowStatus=trmLgRowStatus, rtgTopNodeLgTrkObjCustomerParameter=rtgTopNodeLgTrkObjCustomerParameter, trmLkThroughput=trmLkThroughput, rtgTopNodeLgRowStatusEntry=rtgTopNodeLgRowStatusEntry, rtgTopControlPktTx=rtgTopControlPktTx, rtgTopComponentName=rtgTopComponentName, trmLgComponentName=trmLgComponentName, trmLgLkMaxTxUnit=trmLgLkMaxTxUnit, rtgTopNodeLgTrkObjUnresSetupPriorityIndex=rtgTopNodeLgTrkObjUnresSetupPriorityIndex, baseRoutingGroupBE00=baseRoutingGroupBE00, rtgTopNodeLgTrkObjIndex=rtgTopNodeLgTrkObjIndex, trmComponentName=trmComponentName, rtgTopStatsEntry=rtgTopStatsEntry, baseRoutingGroupBE=baseRoutingGroupBE, trmStorageType=trmStorageType, rtgTopRowStatusEntry=rtgTopRowStatusEntry, rtgTopNodeLgTrkObjSupportedTrafficTypes=rtgTopNodeLgTrkObjSupportedTrafficTypes, rtgStorageType=rtgStorageType, rtgTopNode=rtgTopNode, npiDnaRowStatusEntry=npiDnaRowStatusEntry, rtgTopNodeLgOperEntry=rtgTopNodeLgOperEntry, npiStorageType=npiStorageType, rtgTopNodeLgTrkObjTrunkDelay=rtgTopNodeLgTrkObjTrunkDelay, rtgTopNodeLgTrkObjRowStatus=rtgTopNodeLgTrkObjRowStatus, rtgTopNodeOperEntry=rtgTopNodeOperEntry, rtgTopNodeLgTrkObjUnresTable=rtgTopNodeLgTrkObjUnresTable, trmLkStatus=trmLkStatus, trmLkDiscardCongestedEntry=trmLkDiscardCongestedEntry, trm=trm, trmLkDiscardCongestedValue=trmLkDiscardCongestedValue, trmIndex=trmIndex, rtgTopNodeLgTrkObjUnresUnreservedBwPartsIndex=rtgTopNodeLgTrkObjUnresUnreservedBwPartsIndex, trmLkRowStatusEntry=trmLkRowStatusEntry, rtgTopNodeLgTrkObjTrunkType=rtgTopNodeLgTrkObjTrunkType, trmLgLNNIndex=trmLgLNNIndex, trmLgLkStatus=trmLgLkStatus, rtgTopNodeLgLnnTable=rtgTopNodeLgLnnTable, rtgTopNodeLgLnnEntry=rtgTopNodeLgLnnEntry, npiStatsEntry=npiStatsEntry, trmLgLkOverflowAttempts=trmLgLkOverflowAttempts, trmLgLNN=trmLgLNN, trmLgIndex=trmLgIndex, trmLgLkPathOverflowAttempts=trmLgLkPathOverflowAttempts, trmRowStatusTable=trmRowStatusTable, npiComponentName=npiComponentName, trmLkRowStatusTable=trmLkRowStatusTable, rtgTopNodeRowStatusEntry=rtgTopNodeRowStatusEntry, rtgTopStorageType=rtgTopStorageType, trmLgLNNRowStatusTable=trmLgLNNRowStatusTable, trmLgLNNRowStatusEntry=trmLgLNNRowStatusEntry, baseRoutingGroup=baseRoutingGroup, trmLkDiscardCongestedIndex=trmLkDiscardCongestedIndex, trmLkOverflowAttempts=trmLkOverflowAttempts, baseRoutingGroupBE00A=baseRoutingGroupBE00A, npiDnaStorageType=npiDnaStorageType, rtgComponentName=rtgComponentName, rtgTopNodeComponentName=rtgTopNodeComponentName, trmLgLkStorageType=trmLgLkStorageType, npiRowStatus=npiRowStatus, trmLk=trmLk, trmLgLkFciSet=trmLgLkFciSet, rtgTop=rtgTop, rtgTopNodeLgTrkObjMaxReservableBwOut=rtgTopNodeLgTrkObjMaxReservableBwOut, trmLgLkDiscardCongestedValue=trmLgLkDiscardCongestedValue, npiRowStatusEntry=npiRowStatusEntry, trmLkFwdStatsTable=trmLkFwdStatsTable, rtgTopNodeLgTrkObjUnresValue=rtgTopNodeLgTrkObjUnresValue, trmLgLNNOperTable=trmLgLNNOperTable, trmLgRowStatusEntry=trmLgRowStatusEntry, trmLgLkLinkComponentName=trmLgLkLinkComponentName, npiDnaRowStatusTable=npiDnaRowStatusTable, rtgTopNodeLgRowStatusTable=rtgTopNodeLgRowStatusTable, rtgTopNodeLgTrkObj=rtgTopNodeLgTrkObj, trmLkStorageType=trmLkStorageType, trmLgLk=trmLgLk, npiIndex=npiIndex, trmLgStorageType=trmLgStorageType, npiDnaIndex=npiDnaIndex, rtg=rtg, rtgTopIndex=rtgTopIndex, rtgTopNodeLg=rtgTopNodeLg, rtgTopNodeLgDelayMetric=rtgTopNodeLgDelayMetric, rtgTopRowStatus=rtgTopRowStatus, rtgRowStatusTable=rtgRowStatusTable, rtgTopNodeLgOperTable=rtgTopNodeLgOperTable, rtgTopNodeLgTrkObjStorageType=rtgTopNodeLgTrkObjStorageType, trmLkFwdStatsEntry=trmLkFwdStatsEntry, trmLgLkIndex=trmLgLkIndex, baseRoutingCapabilitiesBE00A=baseRoutingCapabilitiesBE00A, npiDnaRowStatus=npiDnaRowStatus, rtgTopNodeLgComponentName=rtgTopNodeLgComponentName, trmLgLNNStorageType=trmLgLNNStorageType, rtgTandemTraffic=rtgTandemTraffic, rtgTopNodeOperTable=rtgTopNodeOperTable, npiDnaInfoEntry=npiDnaInfoEntry, rtgRowStatus=rtgRowStatus, trmLkFciSet=trmLkFciSet, trmLgLNNComponentName=trmLgLNNComponentName, rtgTopNodeLgTrkObjComponentName=rtgTopNodeLgTrkObjComponentName, trmLkOperTable=trmLkOperTable, rtgTopNodeRowStatus=rtgTopNodeRowStatus, rtgSplittingRegionIdsEntry=rtgSplittingRegionIdsEntry, npiStatsTable=npiStatsTable, trmLgLkOperTable=trmLgLkOperTable, trmLkIndex=trmLkIndex, trmLkOperEntry=trmLkOperEntry, trmLgLkOperEntry=trmLgLkOperEntry, rtgTopNodeNodeId=rtgTopNodeNodeId, trmLkDelay=trmLkDelay, rtgTopNodeLgTrkObjTrunkCost=rtgTopNodeLgTrkObjTrunkCost, trmLkMaxTxUnit=trmLkMaxTxUnit, trmLgLkDiscardCongestedEntry=trmLgLkDiscardCongestedEntry, trmLgLkDiscardCongestedIndex=trmLgLkDiscardCongestedIndex, rtgTopRowStatusTable=rtgTopRowStatusTable, rtgSplittingRegionIdsRowStatus=rtgSplittingRegionIdsRowStatus, trmLkDelayUsec=trmLkDelayUsec, trmLgLkDelay=trmLgLkDelay, rtgTopNodeLgTrkObjOperEntry=rtgTopNodeLgTrkObjOperEntry, trmLg=trmLg, rtgProvEntry=rtgProvEntry, rtgTopNodeLgTrkObjUnresEntry=rtgTopNodeLgTrkObjUnresEntry, rtgTopNodeLgTrkObjTrunkSecurity=rtgTopNodeLgTrkObjTrunkSecurity, trmLgLNNOperEntry=trmLgLNNOperEntry, npiDnaDestinationName=npiDnaDestinationName, baseRoutingCapabilitiesBE00=baseRoutingCapabilitiesBE00, rtgTopNodeRowStatusTable=rtgTopNodeRowStatusTable, baseRoutingCapabilitiesBE=baseRoutingCapabilitiesBE, trmLgLkComponentName=trmLgLkComponentName, trmLgLkRowStatus=trmLgLkRowStatus, rtgTopControlBytesTx=rtgTopControlBytesTx, trmLgRowStatusTable=trmLgRowStatusTable, rtgTopNodeLgLnnValue=rtgTopNodeLgLnnValue, rtgTopNodeLgTrkObjRowStatusTable=rtgTopNodeLgTrkObjRowStatusTable, trmLgLkFwdStatsEntry=trmLgLkFwdStatsEntry, rtgSplittingRegionIdsValue=rtgSplittingRegionIdsValue, rtgTopNodeLgTrkObjRowStatusEntry=rtgTopNodeLgTrkObjRowStatusEntry, trmLgLNNLinkType=trmLgLNNLinkType, rtgTopControlPktRx=rtgTopControlPktRx)
def denumerate(enum_list): try: nums = dict(enum_list) maximum = max(nums) + 1 result = ''.join(nums[a] for a in xrange(maximum)) if result.isalnum() and len(result) == maximum: return result except (KeyError, TypeError, ValueError): pass return False
lines = open('input.txt', 'r').readlines() timestamp = int(lines[0].strip()) buses = lines[1].strip().split(',') m, x = [], [] for i, bus in enumerate(buses): if bus == 'x': continue bus = int(bus) m.append(bus) x.append((bus - i) % bus) def extended_euclidean(a, b): if a == 0: return b, 0, 1 else: g, y, x = extended_euclidean(b % a, a) return g, x - (b // a) * y, y def modinv(a, m): return extended_euclidean(a, m)[1] % m def crt(m, x): while True: temp1 = modinv(m[1], m[0]) * x[0] * m[1] + modinv(m[0], m[1]) * x[1] * m[0] temp2 = m[0] * m[1] m, x = [temp2] + m[2:], [temp1 % temp2] + x[2:] if len(x) == 1: break return x[0] print(crt(m, x))
print('olá mário') n1=int(input('digite um valor ')) n2=int(input('digite o segundo número ')) s=n1+n2 print('a soma entre {} e {:.2f} \n vale {}'.format(n1,n2,s),end=' >>> ') # (end='')tambem continua a linha porém com espaço. print('olá')
"""Dependency specific initialization.""" def deps(repo_mapping = {}): pass
#!/usr/bin/env python # -*- coding: utf-8 -*- # def is_whitespaces_str(s): return True if len(s.strip(" \t\n\r\f\v")) == 0 else False
command = '/usr/bin/gunicorn' pythonpath = '/usr/share/webapps/netbox' bind = '127.0.0.1:8001' workers = 3 user = 'netbox'
# Copyright (c) lobsterpy development team # Distributed under the terms of a BSD 3-Clause "New" or "Revised" License """ This package provides the modules for analyzing Lobster files """
# This one's a bit different, representing an unusual (and honestly, # not recommended) strategy for tracking users that sign up for a service. class User: # An (intentionally shared) collection storing users who sign up for some hypothetical service. # There's only one set of members, so it lives at the class level! members = {} names = set() def __init__(self, name): if not self.names: self.names.add(name) else: self.names = set(name) if self.members == {}: self.members = set() # Not signed up to begin with. def sign_up(self): self.members.add(self.name) # Change the code above so that the following lines work: # sarah = User('sarah') heather = User('heather') cristina = User('cristina') print(User.members) # {} heather.sign_up() cristina.sign_up() print(User.members) # {'heather', 'cristina'}
def is_knight_removed(matrix: list, row: int, col: int): if row not in range(rows) or col not in range(rows): return False return matrix[row][col] == "K" def affected_knights(matrix: list, row: int, col: int): result = 0 if is_knight_removed(matrix, row - 2, col + 1): result += 1 if is_knight_removed(matrix, row - 1, col + 2): result += 1 if is_knight_removed(matrix, row + 1, col + 2): result += 1 if is_knight_removed(matrix, row + 2, col + 1): result += 1 if is_knight_removed(matrix, row + 2 , col - 1): result += 1 if is_knight_removed(matrix, row + 1, col - 2): result += 1 if is_knight_removed(matrix, row - 1, col - 2): result += 1 if is_knight_removed(matrix, row - 2, col - 1): result += 1 return result rows = int(input()) matrix = [] knights_removed = 0 for row in range(rows): matrix.append(list(input())) while True: pass max_knights_removed, row_knight, col_knight = 0, 0, 0 for row in range(rows): for col in range(rows): if matrix[row][col] == "0": continue elif matrix[row][col] == "K": removed_knights = affected_knights(matrix, row, col) if removed_knights > max_knights_removed: max_knights_removed, row_knight, col_knight = removed_knights, row, col if max_knights_removed == 0: break matrix[row_knight][col_knight] = "0" knights_removed += 1 print(knights_removed)
# Fibonacci """ Using Recursion """ def fibonacci(n): if n <= 1: return n return fibonacci(n-1) + fibonacci(n-2) print(fibonacci(5)) """ Using Dynamic Programming """ def fibonacci2(n): # Taking 1st two fibonacci nubers as 0 and 1 FibArray = [0, 1] while len(FibArray) < n + 1: FibArray.append(0) if n <= 1: return n else: if FibArray[n - 1] == 0: FibArray[n - 1] = fibonacci(n - 1) if FibArray[n - 2] == 0: FibArray[n - 2] = fibonacci(n - 2) FibArray[n] = FibArray[n - 2] + FibArray[n - 1] return FibArray[n] print(fibonacci2(4))