content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def buildTree(self, inorder: 'List[int]', postorder: 'List[int]') -> 'TreeNode':
if not inorder or not postorder:
return
root = TreeNode(postorder[-1])
i = 0
while inorder[i] != postorder[-1]:
i += 1
root.left = self.buildTree(inorder[:i], postorder[:i])
root.right =self.buildTree(inorder[i+1:], postorder[i:-1])
return root
# def buildTree(self, inorder: 'List[int]', postorder: 'List[int]') -> 'TreeNode':
# if not inorder or not postorder:
# return []
# root = TreeNode(postorder[-1])
# self._buildTree(root,inorder,postorder)
# return root
# def _buildTree(self, node, inorder, postorder) -> 'TreeNode':
# rootIndex_inorder = inorder.index(postorder[-1])
# lenOfLeftSubTree = rootIndex_inorder
# lenOfRightSubTree = len(inorder)-lenOfLeftSubTree-1
# if lenOfLeftSubTree > 0:
# node.left = TreeNode(postorder[lenOfLeftSubTree-1])
# self._buildTree(node.left,inorder[0:rootIndex_inorder],postorder[0:lenOfLeftSubTree])
# if lenOfRightSubTree > 0:
# node.right = TreeNode(postorder[lenOfLeftSubTree+lenOfRightSubTree-1])
# self._buildTree(node.right,inorder[rootIndex_inorder+1:],postorder[lenOfLeftSubTree:lenOfLeftSubTree+lenOfRightSubTree])
# return | class Solution:
def build_tree(self, inorder: 'List[int]', postorder: 'List[int]') -> 'TreeNode':
if not inorder or not postorder:
return
root = tree_node(postorder[-1])
i = 0
while inorder[i] != postorder[-1]:
i += 1
root.left = self.buildTree(inorder[:i], postorder[:i])
root.right = self.buildTree(inorder[i + 1:], postorder[i:-1])
return root |
expected_output = {
"tag": {
"1": {
"topo_type": "unicast",
"topo_name": "base",
"tid": 0,
"topo_id": "0x0",
"flex_algo": {
"None": {
"prefix": {
"4.4.4.4": {
"prefix_attr": {
"x_flag": False,
"r_flag": False,
"n_flag": True
},
"subnet": "32",
"source_router_id": "4.4.4.4",
"algo": {
0: {},
1: {}
},
"via_interface": {
"GigabitEthernet0/0/8": {
"level": {
"L2": {
"source_ip": {
"4.4.4.4": {
"lsp": {
"next_hop_lsp_index": 4,
"rtp_lsp_index": 7,
"rtp_lsp_version": 2651,
"tpl_lsp_version": 2651
},
"distance": 115,
"metric": 35,
"via_ip": "23.23.23.1",
"tag": "0",
"filtered_out": False,
"host": "asr1k-23.00-00",
"prefix_attr": {
"x_flag": False,
"r_flag": False,
"n_flag": True
},
"algo": {
0: {
"sid_index": 604,
"flags": {
"r_flag": False,
"n_flag": True,
"p_flag": False,
"e_flag": False,
"v_flag": False,
"l_flag": False
},
"label": "100604"
},
1: {}
}
}
}
}
}
}
}
}
}
}
}
}
}
} | expected_output = {'tag': {'1': {'topo_type': 'unicast', 'topo_name': 'base', 'tid': 0, 'topo_id': '0x0', 'flex_algo': {'None': {'prefix': {'4.4.4.4': {'prefix_attr': {'x_flag': False, 'r_flag': False, 'n_flag': True}, 'subnet': '32', 'source_router_id': '4.4.4.4', 'algo': {0: {}, 1: {}}, 'via_interface': {'GigabitEthernet0/0/8': {'level': {'L2': {'source_ip': {'4.4.4.4': {'lsp': {'next_hop_lsp_index': 4, 'rtp_lsp_index': 7, 'rtp_lsp_version': 2651, 'tpl_lsp_version': 2651}, 'distance': 115, 'metric': 35, 'via_ip': '23.23.23.1', 'tag': '0', 'filtered_out': False, 'host': 'asr1k-23.00-00', 'prefix_attr': {'x_flag': False, 'r_flag': False, 'n_flag': True}, 'algo': {0: {'sid_index': 604, 'flags': {'r_flag': False, 'n_flag': True, 'p_flag': False, 'e_flag': False, 'v_flag': False, 'l_flag': False}, 'label': '100604'}, 1: {}}}}}}}}}}}}}}} |
{
"targets": [
{
"target_name": "baseJump",
"sources": [
"cc/baseJump.cc",
"cc/BigInteger.cc",
"cc/BigIntegerAlgorithms.cc",
"cc/BigIntegerUtils.cc",
"cc/BigUnsigned.cc",
"cc/BigUnsignedInABase.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"conditions": [
[
"OS==\"mac\"",
{
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
}
}
]
]
}
]
}
| {'targets': [{'target_name': 'baseJump', 'sources': ['cc/baseJump.cc', 'cc/BigInteger.cc', 'cc/BigIntegerAlgorithms.cc', 'cc/BigIntegerUtils.cc', 'cc/BigUnsigned.cc', 'cc/BigUnsignedInABase.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'conditions': [['OS=="mac"', {'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'}}]]}]} |
i = 0
while i < 3:
print("i: ", i)
j = 0
while j < 3:
print("j: ", j)
j += 1
i += 1
| i = 0
while i < 3:
print('i: ', i)
j = 0
while j < 3:
print('j: ', j)
j += 1
i += 1 |
#!/usr/bin/env python3
#
# Author: Vishwas K Singh
# Email: vishwasks32@gmail.com
#
# Script to Program to find Sum, Diff, Prod, Avg, Div
num1 = input("Enter the first Number: ")
num2 = input("Enter the second Number: ")
# Check if the user has entered the number itself
try:
# Convert the numbers to double always, which would handle integers
# and also floating point numbers
num1 = float(num1)
num2 = float(num2)
except ValueError:
print("The entered input is not a number")
exit(0)
except TypeError:
print("The entered input is not a number")
exit(0)
# Perform operation on numbers
# Sum
print("Sum of the two Numbers is: %.2f"%(num1+num2))
# Difference - always will positive
print("Difference of two numbers is: %.2f"%(abs(num1-num2)))
# average
print("Average of two numbers is: %.2f"%((num1+num2)/2))
# product
print("Product of the two numbers is %.2f"%(num1*num2))
# division
if num2 == 0:
print("Cannot perform division as second number is zero")
else:
print("Division of the two numbers is %.2f"%(num1/num2))
| num1 = input('Enter the first Number: ')
num2 = input('Enter the second Number: ')
try:
num1 = float(num1)
num2 = float(num2)
except ValueError:
print('The entered input is not a number')
exit(0)
except TypeError:
print('The entered input is not a number')
exit(0)
print('Sum of the two Numbers is: %.2f' % (num1 + num2))
print('Difference of two numbers is: %.2f' % abs(num1 - num2))
print('Average of two numbers is: %.2f' % ((num1 + num2) / 2))
print('Product of the two numbers is %.2f' % (num1 * num2))
if num2 == 0:
print('Cannot perform division as second number is zero')
else:
print('Division of the two numbers is %.2f' % (num1 / num2)) |
class Bands:
all_bands = []
def __init__(self, band_name, members):
self.band_name = 'band_name'
self.members = members
self.__class__.all_bands.append(self)
def to_list(self):
return self.all_bands
def __str__(self):
return f'the band name is {self.band_name}'
def __repr__(self):
return f'band: {self.band_name}'
class Musician:
def __init__(self, name, insturment):
self.name = name
self.insturment = insturment
def __str__(self):
return f'I am the {self.insturment}'
def __repr__(self):
return f'band member is: {self.insturment}'
class Guitarist(Musician):
def __init__(self, name):
super().__init__(name, 'guitarist')
class Singer(Musician):
def __init__(self, name):
super().__init__(name, 'singer')
class Drummer(Musician):
def __init__(self, name):
super().__init__(name, 'drummer')
| class Bands:
all_bands = []
def __init__(self, band_name, members):
self.band_name = 'band_name'
self.members = members
self.__class__.all_bands.append(self)
def to_list(self):
return self.all_bands
def __str__(self):
return f'the band name is {self.band_name}'
def __repr__(self):
return f'band: {self.band_name}'
class Musician:
def __init__(self, name, insturment):
self.name = name
self.insturment = insturment
def __str__(self):
return f'I am the {self.insturment}'
def __repr__(self):
return f'band member is: {self.insturment}'
class Guitarist(Musician):
def __init__(self, name):
super().__init__(name, 'guitarist')
class Singer(Musician):
def __init__(self, name):
super().__init__(name, 'singer')
class Drummer(Musician):
def __init__(self, name):
super().__init__(name, 'drummer') |
# Author: btjanaka (Bryon Tjanaka)
# Problem: (Leetcode) 1
# Title: Two Sum
# Link: https://leetcode.com/problems/two-sum/
# Idea: The easy solution is to check every pair of elements, but this is
# O(n^2). To achieve O(n), the basic idea is to use a set that keeps track of
# which elements we have seen so far while iterating through the list. Then, for
# the value x, we can check if we have (target - x) in the set. This is
# efficient since lookups for a hash set are O(1). In this solution, we have to
# use a dict / hash map instead of a set because we need to store the indices of
# the numbers.
# Difficulty: easy
# Tags: set
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
prev_nums_with_indices = dict()
for i in range(len(nums)):
x = nums[i]
if (target - x) in prev_nums_with_indices:
prev_num_index = prev_nums_with_indices[target - x]
return [prev_num_index, i]
prev_nums_with_indices[x] = i
# Technically not necessary, since the problem guarantees exactly one solution.
return [-1, -1]
| class Solution:
def two_sum(self, nums: List[int], target: int) -> List[int]:
prev_nums_with_indices = dict()
for i in range(len(nums)):
x = nums[i]
if target - x in prev_nums_with_indices:
prev_num_index = prev_nums_with_indices[target - x]
return [prev_num_index, i]
prev_nums_with_indices[x] = i
return [-1, -1] |
a = list(map(lambda i: ord(i) - 97, list(input())))
idx_array = [-1 for _ in range(26)]
for i in range(len(a)):
if idx_array[a[i]] == -1:
idx_array[a[i]] = i
for idx in idx_array:
print(idx, end=' ') | a = list(map(lambda i: ord(i) - 97, list(input())))
idx_array = [-1 for _ in range(26)]
for i in range(len(a)):
if idx_array[a[i]] == -1:
idx_array[a[i]] = i
for idx in idx_array:
print(idx, end=' ') |
# Complete the compareTriplets function below.
def compareTriplets(a, b):
al =0
bo=0
for i in range(3):
if(a[i]>b[i]):
al+=1
elif(b[i]>a[i]):
bo+=1
return(al,bo)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
a = list(map(int, input().rstrip().split()))
b = list(map(int, input().rstrip().split()))
result = compareTriplets(a, b)
fptr.write(' '.join(map(str, result)))
fptr.write('\n')
fptr.close()
| def compare_triplets(a, b):
al = 0
bo = 0
for i in range(3):
if a[i] > b[i]:
al += 1
elif b[i] > a[i]:
bo += 1
return (al, bo)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
a = list(map(int, input().rstrip().split()))
b = list(map(int, input().rstrip().split()))
result = compare_triplets(a, b)
fptr.write(' '.join(map(str, result)))
fptr.write('\n')
fptr.close() |
def partition(top, end, array):
pivot_index = top
pivot = array[pivot_index]
while top < end:
while top < len(array) and array[top] <= pivot:
top += 1
while array[end] > pivot:
end -= 1
if(top < end):
array[top], array[end] = array[end], array[top]
array[end], array[pivot_index] = array[pivot_index], array[end]
return end
def quick_sort(top, end, array):
if (top < end):
p = partition(top, end, array)
quick_sort(top, p - 1, array)
quick_sort(p + 1, end, array)
array = [ 10, 7, 8, 9, 1, 5 ]
quick_sort(0, len(array) - 1, array)
print(f'Sorted array: {array}')
| def partition(top, end, array):
pivot_index = top
pivot = array[pivot_index]
while top < end:
while top < len(array) and array[top] <= pivot:
top += 1
while array[end] > pivot:
end -= 1
if top < end:
(array[top], array[end]) = (array[end], array[top])
(array[end], array[pivot_index]) = (array[pivot_index], array[end])
return end
def quick_sort(top, end, array):
if top < end:
p = partition(top, end, array)
quick_sort(top, p - 1, array)
quick_sort(p + 1, end, array)
array = [10, 7, 8, 9, 1, 5]
quick_sort(0, len(array) - 1, array)
print(f'Sorted array: {array}') |
def find_coordinates(x, y):
# Get coordinates of mouse click
return (x- x%10, y - y%10)
def get_all_neighbours(cell):
# get neighbours along with current cell
(x,y) = cell
return [(x-i,y-j) for i in range(-10,20,10) for j in range(-10,20,10)]
def get_next_generation(cells):
# Get next generation
next_gen = {}
which_cells_to_check = set()
for curr_cell,_ in cells.items():
for xy in get_all_neighbours(curr_cell):
which_cells_to_check.add(xy)
for curr_cell in which_cells_to_check:
curr_live_neighbours = 0
for xy in get_all_neighbours(curr_cell):
curr_live_neighbours += 1 if (curr_cell != xy) and (cells.get(xy,None) is not None) else 0
if cells.get(curr_cell,None) is not None and ((curr_live_neighbours == 2) or (curr_live_neighbours == 3)):
next_gen[curr_cell]=True
if cells.get(curr_cell,None) is None and (curr_live_neighbours == 3):
next_gen[curr_cell]=True
return next_gen
| def find_coordinates(x, y):
return (x - x % 10, y - y % 10)
def get_all_neighbours(cell):
(x, y) = cell
return [(x - i, y - j) for i in range(-10, 20, 10) for j in range(-10, 20, 10)]
def get_next_generation(cells):
next_gen = {}
which_cells_to_check = set()
for (curr_cell, _) in cells.items():
for xy in get_all_neighbours(curr_cell):
which_cells_to_check.add(xy)
for curr_cell in which_cells_to_check:
curr_live_neighbours = 0
for xy in get_all_neighbours(curr_cell):
curr_live_neighbours += 1 if curr_cell != xy and cells.get(xy, None) is not None else 0
if cells.get(curr_cell, None) is not None and (curr_live_neighbours == 2 or curr_live_neighbours == 3):
next_gen[curr_cell] = True
if cells.get(curr_cell, None) is None and curr_live_neighbours == 3:
next_gen[curr_cell] = True
return next_gen |
#
# PySNMP MIB module BIANCA-BRICK-PPP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BIANCA-BRICK-PPP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:37:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Gauge32, MibIdentifier, iso, ObjectIdentity, Unsigned32, ModuleIdentity, Integer32, NotificationType, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, IpAddress, TimeTicks, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibIdentifier", "iso", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "Integer32", "NotificationType", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "IpAddress", "TimeTicks", "Counter32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
org = MibIdentifier((1, 3))
dod = MibIdentifier((1, 3, 6))
internet = MibIdentifier((1, 3, 6, 1))
private = MibIdentifier((1, 3, 6, 1, 4))
enterprises = MibIdentifier((1, 3, 6, 1, 4, 1))
bintec = MibIdentifier((1, 3, 6, 1, 4, 1, 272))
bibo = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4))
ppp = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 3))
dialmap = MibIdentifier((1, 3, 6, 1, 4, 1, 272, 4, 4))
class BitValue(Integer32):
pass
class Date(Integer32):
pass
biboPPPTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 1), )
if mibBuilder.loadTexts: biboPPPTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTable.setDescription("The biboPPPTable contains configuration information for the PPP interfaces. Each time a new entry is made here, a corresponding entry is made in the ifTable. Creating entries: Entries are created by assigning a value to the biboPPPType object. Deleting entries: Entries are removed by setting an entry's biboPPPEncapsulation object to 'delete'.")
biboPPPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboPPPType"))
if mibBuilder.loadTexts: biboPPPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPEntry.setDescription('')
biboPPPIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIfIndex.setDescription('Correlating PPP interface index. This value is assigned automatically by the system.')
biboPPPType = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5))).clone(namedValues=NamedValues(("isdn-dialup", 1), ("leased", 2), ("isdn-dialin-only", 3), ("multiuser", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPType.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPType.setDescription("The type of link. A new dialup link is created when this field is set to the value isdn-dialup(1), dialin-only(3) or multiuser(5). The maximum number of dialup links is limited by system memory. Each dialup link should have at least one corresponding entry in the biboDialTable to configure the remote ISDN telephone number(s). A leased line link, can not be created by setting this field to leased(2), but is automatically established when the IsdnChType field is set to either 'leased-dte' or 'leased-dce' (which doesn't make a difference for PPP, but must be set correctly for other encapsulation methods). Naturally, when the IsdnChType field is set to any other value, the biboPPPTable entry is removed. In both cases, a new entry in the biboPPPTable creates corre- corresponding entries in the ifTable (a new interface) and in the biboPPPStatTable (PPP statistics). Setting this object to multiuser(5), up to biboPPPMaxConn matching incoming connections (see biboPPPAuthentication, biboPPPAuthSecret, biboPPPAuthIdent) from different dialin partners will be accepted.")
biboPPPEncapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("ppp", 1), ("x25", 2), ("x25-ppp", 3), ("ip-lapb", 4), ("delete", 5), ("ip-hdlc", 6), ("mpr-lapb", 7), ("mpr-hdlc", 8), ("frame-relay", 9), ("x31-bchan", 10), ("x75-ppp", 11), ("x75btx-ppp", 12), ("x25-nosig", 13), ("x25-ppp-opt", 14), ("x25-pad", 15), ("x25-noconfig", 16), ("x25-noconfig-nosig", 17)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPEncapsulation.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPEncapsulation.setDescription("The layer 2 encapsulation of the link. The use of ppp(1) as described in RFC 1661 is the preferred encapsulation for point-to-point links. The encapsulation is set to x25(2) for X.25-only links and to x25-ppp(3) for concurrent use of X.25 and PPP. Mpr-lapb(7) and mpr-hdlc(8) are popular proprietary encapsulations. They both use the ethertype number for protocol multiplexing. The former is used when error correction or data compression (v42bis) is desired. The latter (mpr-hdlc) is compatible to Cisco's HDLC encapsulation. On IP-only links it is also possible to use the ISO LAPB protocol (ip-lapb(4)), also known as X.75, or raw hdlc framing (ip-hdlc(6)). The x75-ppp encapsulation provides a proprietary solution for using PPP encapsulation over X.75 (LAPB) framing, x75btx-ppp provides PPP over T.70 and LAPB framing including a BTX protocol header to access BTX services over ISDN links. The x25-nosig(13) encapsulation is used to establish X.25 connections over dialup links without specific signalling on the D-channel (pure data call). The x25-ppp-opt encapsulation provides a special kind of the x25-ppp encapsulation. Dialin partner will be authenticated either outband to establish an X.25 connection via ISDN or optional inband by using the point-to-point protocol (PPP). Concurrent use of X.25 and PPP encapsulation is excluded. The x25-noconfig(16) and x25-noconfig-nosig(17) encapsulations provide a solution fr establishing X.25 connections via ISDN. The dial number will be derived from X.25 destination address by using special rules. V42bis data compression can be enabled on LAPB links only, because v42bis requires an error free connection. Dialup links can be removed by setting this field to delete(5). This has no effect on permanent links.")
biboPPPKeepalive = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPKeepalive.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPKeepalive.setDescription('When set to on(1), keepalive packets are sent in regular intervals during the connection. Keepalive packets can not be sent using the ip-lapb or x25 encapsulation.')
biboPPPTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(500, 10000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPTimeout.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTimeout.setDescription('The number of milliseconds waiting before retransmitting a PPP configure packet.')
biboPPPCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("v42bis", 2), ("stac", 3), ("ms-stac", 4), ("mppc", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPCompression.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPCompression.setDescription('The throughput can be enhanced up to factor three using the V42bis compression method or the Stac LZS compression algorithm. V42bis is currently supported with the ip-lapb and mpr-lapb encapsulation. Stac LZS compression algorithm is provided using PPP encapsulated links, stac(3) indicates support of Sequence checking, ms-stac(4) indicates support of Extended mode which is prefered by Microsoft. Both check modes are implemented according RFC 1974. When set to mppc(5), the Microsoft Point-to-Point Compression (MPPC) Protocol according RFC 2118 is negotiated. MPPC uses an LZ based algorithm with a sliding window history buffer.')
biboPPPAuthentication = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("none", 1), ("pap", 2), ("chap", 3), ("both", 4), ("radius", 5), ("ms-chap", 6), ("all", 7), ("ms-chapv2", 8)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPAuthentication.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPAuthentication.setDescription("The type of authentication used on the point-to-point link as described in RFC 1334. The authentication protocol supports pap(2) (Password Authentication Protocol), chap(3) (Challenge Handshake Authentication Protocol), or both(4). When set to both(4), the link must be successfully authenticated by either CHAP or PAP. The type ms-chap(6) and ms-chapv2(8) are Microsofts proprietary CHAP authentication procedures (using MD4 and DES encryption instead of MD5 encryption algorithm), all(7) includes PAP, CHAP and MS-CHAP. Another way to authenticate dial-in users is by using RADIUS (remote authentication dial in user service). Users can authenticate themselves either using PAP or CHAP (excluding MS-CHAP). In general the system creates PPP interfaces with this authentication itself, but it's also possible to take advance of the RADIUS dial-in services with pre-configured interfaces. See biboAdmRadiusServer for further details.")
biboPPPAuthIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPAuthIdent.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPAuthIdent.setDescription("The remote authentication identification string. The local authentication identification string is taken from the contents of the sysName field, up to the appearance of the first dot (e.g., the remote name would be `brick' if the content of the sysName field was `brick.bintec.de').")
biboPPPAuthSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPAuthSecret.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPAuthSecret.setDescription('The authentication secret, which is used symmetrically for both local and remote sides of the PPP link.')
biboPPPIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("static", 1), ("dynamic-server", 2), ("dynamic-client", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpAddress.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAddress.setDescription('The IP control protocol as described in RFC1332 has a means of negotiating IP-addresses. When this option is set to dynamic-server(2), an available IP-address found in biboPPPIpAddrTable is assigned as the remote IP-address and a temporary route is created during the uptime of the interface. When set to dynamic-client(3), the remote system is asked to tell us our own IP-address. A host route will be created during the uptime of the interface. In most cases this option will be set automatically by the network address translation option. In static(1) mode, address-negotiation is not forced.')
biboPPPRetryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPRetryTime.setDescription('Time in seconds to wait before retrying a call; currently not used.')
biboPPPBlockTime = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPBlockTime.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPBlockTime.setDescription('Time in seconds to wait after a connection failure (e.g. the number of biboPPPMaxRetries calls failed). When set to zero, the interface state is never set to blocked.')
biboPPPMaxRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPMaxRetries.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPMaxRetries.setDescription('The number of dialup retries before changing to the blocked state.')
biboPPPShortHold = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 3600))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPShortHold.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPShortHold.setDescription('The time in seconds to wait, once the channel is silent, (that is, no data is being received or transmitted) before terminating the link. When set to zero the short hold mode is disabled, when set to -1 the short hold mode is disabled and the link will be reconnected when connection was lost.')
biboPPPInitConn = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 250))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPInitConn.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPInitConn.setDescription(' The number of channels to initially set up for this interface.')
biboPPPMaxConn = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPMaxConn.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPMaxConn.setDescription('The maximum number of channels bundled for this interface.')
biboPPPMinConn = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPMinConn.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPMinConn.setDescription('The minimum number of channels bundled for this interface.')
biboPPPCallback = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("expected", 3), ("ppp-offered", 4), ("delayed", 5), ("ppp-callback-optional", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPCallback.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPCallback.setDescription("If this object is enabled(1), and the call is recognized by the dialed number then calls are never accepted, and a callback is forced for incoming calls at once. The callback can be delayed for biboPPPRetryTime seconds by setting this entry to delayed(5). If the call is recognized by inband authentication (PAP or CHAP) then the actual connection is closed and a callback is performed at once. Setting this value to ppp-offered(4) allows a called peer to call back the calling site if offered by PPP negotiation. For PABX dialout a dialprefix is added to the number, if offered by the calling site (see isdnStkTable). If this object is set to expected(3), only one initial outgoing call is made expecting a callback. If this object is set to ppp-callback-optional(6), the CBCP option 'no callback' is also offered to the Windows client so that the user can decide wether he wants to be called back or not.")
biboPPPLayer1Protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 19), 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))).clone(namedValues=NamedValues(("data-64k", 1), ("data-56k", 2), ("modem", 3), ("dovb", 4), ("v110-1200", 5), ("v110-2400", 6), ("v110-4800", 7), ("v110-9600", 8), ("v110-14400", 9), ("v110-19200", 10), ("v110-38400", 11), ("modem-profile-1", 12), ("modem-profile-2", 13), ("modem-profile-3", 14), ("modem-profile-4", 15), ("modem-profile-5", 16), ("modem-profile-6", 17), ("modem-profile-7", 18), ("modem-profile-8", 19), ("pptp-pns", 20), ("pppoe", 21), ("aodi", 22), ("pptp-pac", 23)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPLayer1Protocol.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLayer1Protocol.setDescription('This entry is used to select the layer 1 protocol settings for this partner. Normally the correct entry is hdlc-64.')
biboPPPLoginString = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPLoginString.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLoginString.setDescription('A textual string containing a login sequence (script) composed of fields in the format [expect send], comparable to chat scripts commonly used on other sytems. This script is required i.e. to establish an asynchronus PPP dialup connection to CompuServe.')
biboPPPVJHeaderComp = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPVJHeaderComp.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPVJHeaderComp.setDescription('This entry is used to enable Van Jacobsen TCP/IP header compression, which reduces the size of TCP/IP packet headers and increases the efficiency of line utilization.')
biboPPPLayer2Mode = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("auto", 1), ("dte", 2), ("dce", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPLayer2Mode.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLayer2Mode.setDescription('This object specifies the layer 2 mode to be used for a connection. It is only relevant, if the Encapsulation involves an LAPB protocol. This is the case for x25, x25-ppp, ip-lapb, lapb, x31-bchan, x75-ppp, x75btx-ppp, x25-nosig. The Default value of this object is auto. For dialup connection, the layer 2 mode will than be DTE, on the calling side and DCE on the called side. For permanent connections, the layer 2 mode is set at lower layers (for example isdnChType in the isdnChTable). When this object is set to dte or dce, the layer 2 mode will always be DTE or DCE, regardless of the call direction or the settings at the lower layer.')
biboPPPDynShortHold = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPDynShortHold.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPDynShortHold.setDescription("Optimizes idle time disconnects depending on the charging information received during the connection. This value specifies the minimum inactivity time (channel is silent) in percents of the current charging interval length and is only used for outgoing connections. Incoming connections are disconnected after idle time according to the value biboPPPShortHold. Please note that this only works if your ISDN port has the AOCD service enabled (advice of charging during the call). For instance in Germany this is an extra paid service. (Even the 'Komfortanschluss' does only include AOCE [advice of charge at the end of the call], so AOCD has to be ordered and paid extra.)")
biboPPPLocalIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPLocalIdent.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLocalIdent.setDescription('This is the local identification string used for PPP authentication(PAP/CHAP). If this entry is empty the variable biboAdmLocalPPPIdent will be used.')
biboPPPDNSNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("dynamic-client", 3), ("dynamic-server", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPDNSNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPDNSNegotiation.setDescription('The IP control protocol extensions as described in RFC 1877 has a means of negotiating primary and secondary Domain Name System (DNS) server addresses. When this option is disabled(1), no DNS negotiation will be performed. If enabled(2), DNS negotiation behavier depends on biboPPPIpAddress switch (client or server mode). Setting to dynamic-client(3), the remote system is asked to tell us the IP-address(es) of primary and/or secondary DNS. Setting to dynamic_server(4), primary and/or secondary DNS IP-address(es) found in biboAdmNameServer or biboAdmNameServ2, if asked, will be send to remote.')
biboPPPEncryption = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("mppe-40", 2), ("mppe-128", 3), ("des-56", 4), ("triple-des-168", 5), ("blowfish-168", 6), ("mppe-56", 7), ("mppev2-40", 8), ("mppev2-56", 9), ("mppev2-128", 10), ("blowfish-56", 11)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPEncryption.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPEncryption.setDescription("This field specifies the data encryption scheme for en(de)crypting PPP encapsulated multi-protocol datagrams. Setting to mppe-40(2), mppe-128(3) or mppe-56(7) the Microsoft Point to Point Encryption Protocol (MPPE) will be enabled, using a 40 bit, 128 bit respectively 56 bit session key for initializing encryption tables. Setting to mppev2-40(8), mppev2-56(9) or mppev2-128(10) the Microsoft Point to Point Encryption Protocol (MPPE) 'stateless mode' will be enabled, using a 40 bit, 56 bit respectively 128 bit session key.")
biboPPPLQMonitoring = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPLQMonitoring.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLQMonitoring.setDescription('This parameter enables (2) or disables (1) PPP Link Quality Monitoring (LQM) according RFC 1989. When set to on(2) LQM is added to the list of parameters used in LCP negotiation. If LQM is acknowledged by peer link quality reports will be generated and send periodically.')
biboPPPIpPoolId = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 28), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpPoolId.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpPoolId.setDescription('Pool ID value to select an IP address pool for dynamic IP address assignment via IPCP. See also PPPIpAssignTable for further details.')
biboPPPSessionTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 29), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPSessionTimeout.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPSessionTimeout.setDescription('Maximum number of seconds before termination the established PPP session, regardless there is any data throughput on the corresponding link(s). When set to 0, there no limit for the duration of the PPP session.')
biboPPPStatTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 2), )
if mibBuilder.loadTexts: biboPPPStatTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPStatTable.setDescription('The biboPPPStatTable contains statistical connection- specific information. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP interface is created in the biboPPPTable. Deleting entries: Entries are removed by the system when the corresponding PPP interface is removed.')
biboPPPStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboPPPConnIfIndex"))
if mibBuilder.loadTexts: biboPPPStatEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPStatEntry.setDescription('')
biboPPPConnIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnIfIndex.setDescription('Correlating PPP interface index.')
biboPPPConnActive = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnActive.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnActive.setDescription('The actual number of bundled channels.')
biboPPPConnProtocols = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnProtocols.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnProtocols.setDescription('The bitwise ORed protocols successfully negotiated on this connection; currently the following protocols are supported: tcp/ip(1), ipx(2), bridge(4), bpdu(8), x25(16). These protocol values are most likely to change in future software releases.')
biboPPPConnState = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("idle", 1), ("incoming", 2), ("outgoing", 3), ("connected", 4), ("dataxfer", 5), ("disconnect", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnState.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnState.setDescription('The physical state of the link. This field is obsolete and will not be supported in a future release.')
biboPPPConnDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnDuration.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnDuration.setDescription('The current link duration on this interface in seconds.')
biboPPPConnUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnUnits.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnUnits.setDescription('The current costs on this interface for all member links.')
biboPPPConnTransmitOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnTransmitOctets.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnTransmitOctets.setDescription("The octets transmitted on this interface since its last change to the 'up' state.")
biboPPPConnReceivedOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnReceivedOctets.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnReceivedOctets.setDescription("The octets received since its last change to the `up' state.")
biboPPPConnOutgoingCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnOutgoingCalls.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnOutgoingCalls.setDescription("The number of outgoing calls on this interface since its last change to the 'up' state.")
biboPPPConnOutgoingFails = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnOutgoingFails.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnOutgoingFails.setDescription("The number of outgoing call failures on this interface since its last change to the 'up' state.")
biboPPPConnIncomingCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnIncomingCalls.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnIncomingCalls.setDescription('The number of incoming calls on this interface since its last change to the up state.')
biboPPPConnIncomingFails = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnIncomingFails.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnIncomingFails.setDescription('The number of incoming call failures on this interface since its last change to the up state.')
biboPPPTotalDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalDuration.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalDuration.setDescription('The total link duration in seconds.')
biboPPPTotalUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalUnits.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalUnits.setDescription('The total costs on this interface for all member links.')
biboPPPTotalTransmitOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalTransmitOctets.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalTransmitOctets.setDescription('The total amount of octets transmitted.')
biboPPPTotalReceivedOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalReceivedOctets.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalReceivedOctets.setDescription('The total amount of octets received.')
biboPPPTotalOutgoingCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalOutgoingCalls.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalOutgoingCalls.setDescription('The total number of outgoing calls.')
biboPPPTotalOutgoingFails = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalOutgoingFails.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalOutgoingFails.setDescription('The total number of outgoing call failures.')
biboPPPTotalIncomingCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalIncomingCalls.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalIncomingCalls.setDescription('The total number of incoming calls.')
biboPPPTotalIncomingFails = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalIncomingFails.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalIncomingFails.setDescription('The total number of incoming call failures.')
biboPPPThroughput = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPThroughput.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPThroughput.setDescription('The actual thoughput of the interface; updated every 5 seconds.')
biboPPPCompressionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPCompressionMode.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPCompressionMode.setDescription('This object describes wether data compression is active for this interface. 42bis or Stac LZS compression algorithm can be enabled in the biboPPPTable.')
biboPPPChargeInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPChargeInterval.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPChargeInterval.setDescription('Describes the measured interval between charging info elements received from the ISDN network.')
biboPPPIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPIdleTime.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIdleTime.setDescription('The currently measured connection inactivity time (channel is silent).')
biboPPPConnCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPConnCharge.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPConnCharge.setDescription('The current charge on this interface as 1/1000 of the respective currency.')
biboPPPTotalCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPTotalCharge.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPTotalCharge.setDescription('The total charge on this interface as 1/1000 of the respective currency.')
pppSessionTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 10), )
if mibBuilder.loadTexts: pppSessionTable.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionTable.setDescription('The pppSessionTable contains statistical information for the PPP protocol. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP connection is created. Deleting entries: Entries are removed by the system when the corresponding PPP connection is terminated.')
pppSessionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "pppSessionIfIndex"))
if mibBuilder.loadTexts: pppSessionEntry.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionEntry.setDescription('')
pppSessionIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionIfIndex.setDescription('Correlating PPP interface index.')
pppSessionMlp = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("negotiated", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionMlp.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionMlp.setDescription('Indicates negotiation of Multilink PPP.')
pppSessionMru = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionMru.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionMru.setDescription("Peer's MRU/MRRU LCP option.")
pppSessionLcpCallback = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("lcp", 2), ("cbcp", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionLcpCallback.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionLcpCallback.setDescription('Callback option inside LCP negotiation.')
pppSessionAuthProt = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("pap", 2), ("chap", 3), ("ms-chapv1", 4), ("ms-chapv2", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionAuthProt.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionAuthProt.setDescription('The negotiated PPP authentication protocol.')
pppSessionCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("stac", 2), ("ms-stac", 3), ("mppc", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionCompression.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionCompression.setDescription('The negotiated CCP compression mode.')
pppSessionEncryption = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("mppe-40", 2), ("mppe-128", 3), ("des-56", 4), ("triple-des-168", 5), ("blowfish-168", 6), ("mppe-56", 7), ("mppev2-40", 8), ("mppev2-56", 9), ("mppev2-128", 10), ("blowfish-56", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionEncryption.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionEncryption.setDescription('The negotiated CCP encryption mode.')
pppSessionCbcpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("no-callback", 2), ("user-specified", 3), ("pre-specified", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionCbcpMode.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionCbcpMode.setDescription('The negotiated Callback Control Protocol (CBCP) mode.')
pppSessionCbcpDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 60))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionCbcpDelay.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionCbcpDelay.setDescription('The negotiated (CBCP) callback delay in seconds.')
pppSessionLocIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 10), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionLocIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionLocIpAddr.setDescription('The negotiated local IP Address.')
pppSessionRemIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 11), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionRemIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionRemIpAddr.setDescription('The negotiated remote IP Address.')
pppSessionDNS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 12), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionDNS1.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionDNS1.setDescription('The negotiated first name server IP address.')
pppSessionDNS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 13), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionDNS2.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionDNS2.setDescription('The negotiated second name server IP address.')
pppSessionWINS1 = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 14), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionWINS1.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionWINS1.setDescription('The negotiated first NetBIOS name server (WINS) IP address.')
pppSessionWINS2 = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionWINS2.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionWINS2.setDescription('The negotiated second NetBIOS name server (WINS) IP address.')
pppSessionVJHeaderComp = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("negotiated", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionVJHeaderComp.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionVJHeaderComp.setDescription('The negotiation of Van Jacobsen TCP/IP header compression option (IPCP).')
pppSessionIpxcpNodeNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 17), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionIpxcpNodeNumber.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionIpxcpNodeNumber.setDescription('Unique IPX Node Id dynamically assigned the client.')
pppSessionBacpFavoredPeer = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("local", 2), ("remote", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppSessionBacpFavoredPeer.setStatus('mandatory')
if mibBuilder.loadTexts: pppSessionBacpFavoredPeer.setDescription('The result of the BACP Favored-Peer negotiation.')
biboPPPLinkTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 3), )
if mibBuilder.loadTexts: biboPPPLinkTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkTable.setDescription('The biboPPPLinkTable contains statistical information for each current PPP link on the system. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP interface is created in the biboPPPTable. Deleting entries: Entries are removed by the system when the corresponding PPP interface is removed.')
biboPPPLinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboPPPLinkIfIndex"))
if mibBuilder.loadTexts: biboPPPLinkEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkEntry.setDescription('')
biboPPPLinkIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkIfIndex.setDescription('Correlating PPP interface index.')
biboPPPLinkEstablished = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 2), Date()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkEstablished.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkEstablished.setDescription('Time when the link was established.')
biboPPPLinkDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("incoming-dce", 1), ("outgoing-dte", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkDirection.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkDirection.setDescription('Direction of link, incoming(1) or outgoing(2). In case of permanent links, the meaning is dce(1) or dte(2).')
biboPPPLinkProtocols = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkProtocols.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkProtocols.setDescription('The bitwise ORed protocols successfully negotiated on this link; currently the following protocols are supported: tcp/ip(1), ipx(2), bridge(4), bpdu(8), x25(16). These protocol values are most likely to change in future software releases.')
biboPPPLinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("starting", 3), ("loopbacked", 4), ("dialing", 5), ("retry-wait", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkState.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkState.setDescription('The actual state of each link in a bundle. The link is fully operational in the up(1) state, and not operational in the down(2) state. The starting(3) state is an inter- mediate state when the link is physically established but PPP or other link negotation has not finished yet. The loopbacked(4) state is entered when the PPP keepalive mechanism detects a loopbacked link. The dialing(5) state shows that a dialup link is in its link establishment phase, dialing. If there is no answer to the call, the link enters the retry-wait(6) state for biboPPPRetryTime seconds. After waiting that time either a call retry will occur, or the ifOperStatus will enter the blocked state, depending on the amount of retries already done (biboPPPLinkRetries) and the value of the biboPPPMaxRetries field.')
biboPPPLinkUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkUnits.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkUnits.setDescription('The costs for this link in units.')
biboPPPLinkRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkRetries.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkRetries.setDescription('The amount of retries taken to establish the link.')
biboPPPLinkKeepaliveSent = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkKeepaliveSent.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkKeepaliveSent.setDescription('The amount of keepalive packets sent on the link.')
biboPPPLinkKeepalivePending = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkKeepalivePending.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkKeepalivePending.setDescription('The amount of keepalive answer packets waiting for since the last occurance of an echo reply packet.')
biboPPPLinkDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkDeviceIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkDeviceIndex.setDescription('The underlying link device index.')
biboPPPLinkSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkSpeed.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkSpeed.setDescription('The speed of the link.')
biboPPPLinkStkNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkStkNumber.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkStkNumber.setDescription('The stack number of the dialup link, correlating to the isdnStkNumber field in the isdnCallTable.')
biboPPPLinkCallType = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("incoming", 1), ("outgoing", 2), ("undef", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkCallType.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkCallType.setDescription('The call type of the dialup link, correlating to the isdnCallType field in the isdnCallTable.')
biboPPPLinkCallReference = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkCallReference.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkCallReference.setDescription('The call reference of the dialup link, correlating to the isdnCallReference field in the isdnCallTable.')
biboPPPLinkCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkCharge.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkCharge.setDescription('The costs for this link as 1/1000 of the respective currency.')
biboPPPLinkAccm = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 17), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkAccm.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkAccm.setDescription('.')
biboPPPLinkLqm = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("negotiated", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkLqm.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkLqm.setDescription('Indicates the successful negotiation of the Link Quality Protocol (LQM).')
biboPPPLinkLcpComp = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("addr", 2), ("prot", 3), ("both", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkLcpComp.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkLcpComp.setDescription('Address- and Protocol-Field compression.')
biboPPPLinkLocDiscr = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkLocDiscr.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkLocDiscr.setDescription('Local LCP multilink endpoint discriminator.')
biboPPPLinkRemDiscr = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 21), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPLinkRemDiscr.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPLinkRemDiscr.setDescription("Peer's LCP multilink endpoint discriminator.")
pppLqmTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 6), )
if mibBuilder.loadTexts: pppLqmTable.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmTable.setDescription('The pppLqmTable contains statistical information for each current PPP link on the system. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP link was established and LQM negotiated successful. Deleting entries: Entries are removed by the system when the corresponding PPP link is disconnected.')
pppLqmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "pppLqmIfIndex"))
if mibBuilder.loadTexts: pppLqmEntry.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmEntry.setDescription('')
pppLqmIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmIfIndex.setDescription('Correlating PPP interface index.')
pppLqmCallReference = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmCallReference.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmCallReference.setDescription('The call reference of the dialup link, correlating to the isdnCallReference field in the isdnCallTable.')
pppLqmReportingPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmReportingPeriod.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmReportingPeriod.setDescription('The LQMReportingPeriod field indicates the maximum time in hundredths of seconds between transmission of Link Quality Reports (LQR). The peer may transmit packets at a faster rate than that which was negotiated.')
pppLqmOutLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmOutLQRs.setDescription('Number of transmitted Link Quality Reports (LQR) on this link.')
pppLqmOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmOutPackets.setDescription('Number of transmitted Packets on this link.')
pppLqmOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmOutOctets.setDescription('Number of transmitted Octets on this link, including framing data.')
pppLqmInLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmInLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmInLQRs.setDescription('Number of Link Quality Reports (LQR) received on this link.')
pppLqmInPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmInPackets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmInPackets.setDescription('Number of Packets reveived on this link.')
pppLqmInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmInOctets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmInOctets.setDescription('Number of Octets reveived on this link, including framing data.')
pppLqmInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmInDiscards.setDescription('Number of Packets received on this link, but discarded.')
pppLqmInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmInErrors.setDescription('Number of errorneous Packets received on this link.')
pppLqmPeerOutLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerOutLQRs.setDescription('Number of Link Quality Reports (LQR) transmitted by remote on this link.')
pppLqmPeerOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerOutPackets.setDescription('Number of Packets transmitted by remote on this link.')
pppLqmPeerOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerOutOctets.setDescription('Number of Octets transmitted by remote on this link, including framing data.')
pppLqmPeerInLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerInLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerInLQRs.setDescription('Number of Link Quality Reports (LQR) received by remote on this link.')
pppLqmPeerInPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerInPackets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerInPackets.setDescription('Number of Packets reveived by remote on this link.')
pppLqmPeerInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerInOctets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerInOctets.setDescription('Number of Octets reveived by remote on this link, including framing data.')
pppLqmPeerInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerInDiscards.setDescription('Number of Packets received by remote on this link, but discarded.')
pppLqmPeerInErrors = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmPeerInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmPeerInErrors.setDescription('Number of errorneous Packets received by remote on this link.')
pppLqmLostOutLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostOutLQRs.setDescription('Number of lost Link Quality Reports (LQR) transmitted on this link.')
pppLqmLostOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostOutPackets.setDescription('Number of lost Packets transmitted on this link.')
pppLqmLostOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostOutOctets.setDescription('Number of lost Octets transmitted on this link.')
pppLqmLostPeerOutLQRs = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostPeerOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostPeerOutLQRs.setDescription('Number of lost Link Quality Reports (LQR) transmitted by remote on this link.')
pppLqmLostPeerOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostPeerOutPkts.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostPeerOutPkts.setDescription('Number of lost Packets transmitted by remote on this link.')
pppLqmLostPeerOutOcts = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppLqmLostPeerOutOcts.setStatus('mandatory')
if mibBuilder.loadTexts: pppLqmLostPeerOutOcts.setDescription('Number of lost Octets transmitted by remote on this link.')
biboPPPIpAssignTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 4), )
if mibBuilder.loadTexts: biboPPPIpAssignTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignTable.setDescription("The biboPPPIpAssignTable contains IP addresses used when dynamically assigning IP addresses; i.e. when the biboPPPIpAddress field is set to `dynamic'. Creating entries: Entries are created by assigning a value (IP address) to the biboPPPIpAssignAddress object. Deleting entries: An entry (address) can be removed by assigning the value `delete' to its biboPPPIpAssignState.")
biboPPPIpAssignEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboPPPIpAssignAddress"))
if mibBuilder.loadTexts: biboPPPIpAssignEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignEntry.setDescription('Pool of IP addresses for dynamic IP address assignment via IPCP. See the biboPPPIpAddress field for further explanation.')
biboPPPIpAssignAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpAssignAddress.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignAddress.setDescription('First IP address of this range.')
biboPPPIpAssignState = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unused", 1), ("assigned", 2), ("delete", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpAssignState.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignState.setDescription('If an entry is currently in use, the state is set to as- signed(1). Otherwise it is set to unused(2). You may also delete this entry by changing it to delete(3).')
biboPPPIpAssignPoolId = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpAssignPoolId.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignPoolId.setDescription('Pool ID value.')
biboPPPIpAssignRange = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPIpAssignRange.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPIpAssignRange.setDescription('Number of IP addresses that will be assigned starting from biboPPPIpAssignAddress. A range of 0 will disable this entry')
pppIpInUseTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 7), )
if mibBuilder.loadTexts: pppIpInUseTable.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseTable.setDescription('The pppIpUseTable contains dynamically assigned IP addresses.')
pppIpInUseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "pppIpInUseAddress"))
if mibBuilder.loadTexts: pppIpInUseEntry.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseEntry.setDescription('')
pppIpInUseAddress = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUseAddress.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseAddress.setDescription('assigned IP address')
pppIpInUsePoolId = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUsePoolId.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUsePoolId.setDescription('Unique IP address pool ID')
pppIpInUseIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUseIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseIfIndex.setDescription('Unique interface index')
pppIpInUseIdent = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUseIdent.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseIdent.setDescription('The remote authentication identification string.')
pppIpInUseState = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("assigned", 1), ("reserved", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUseState.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseState.setDescription('If an IP address is currently assigned, the state of this entry is set to assigned(1). Otherwise, after disconnect, it is set to reserved(2) until the same peer reconnects or this entry expires (see pppIpInUseAge).')
pppIpInUseAge = MibScalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppIpInUseAge.setStatus('mandatory')
if mibBuilder.loadTexts: pppIpInUseAge.setDescription('This object specifies the age of the entry after creation or after changing into state reserved(2). After expiration the IP address (see pppIpInUseAddress) is no longer reserved for peer specified by pppIpInUseIdent and this entry will be deleted.')
biboPPPProfileTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 5), )
if mibBuilder.loadTexts: biboPPPProfileTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileTable.setDescription('The biboPPPProfileTable contains PPP default parameters used for PPP negotiation with unknown dialin partners. For PPP connections, PPP profiles are asigned to incoming connections via the isdnDispatchTable. Currently no entries can be created or deleted by user.')
biboPPPProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboPPPProfileName"))
if mibBuilder.loadTexts: biboPPPProfileEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileEntry.setDescription('')
biboPPPProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("profile-1", 1), ("profile-2", 2), ("profile-3", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: biboPPPProfileName.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileName.setDescription('The name of the PPP profile. Three profiles are available.')
biboPPPProfileAuthProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 6, 7, 8))).clone(namedValues=NamedValues(("none", 1), ("pap", 2), ("chap", 3), ("both", 4), ("ms-chap", 6), ("all", 7), ("ms-chapv2", 8)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPProfileAuthProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileAuthProtocol.setDescription('The type of authentication used on the point-to-point link as described in RFC 1334. See biboPPPAuthentication for further details.')
biboPPPProfileAuthRadius = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("inband", 2), ("outband", 3), ("both", 4), ("radius-only", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPProfileAuthRadius.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileAuthRadius.setDescription('This entry is used to configure possible RADIUS authentication on incoming calls. The default value is inband(2), only inband RADIUS requests (PAP, CHAP) are sent to the defined RADIUS server. Outband requests (CALLERID) are sent in outband(3) mode. If set to both(3), both requests are sent. To disable RADIUS requests in the profile set this value to none(1). To disable authentication attempts via the local data base set this value to radius-only(5).')
biboPPPProfileLQMonitoring = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPProfileLQMonitoring.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileLQMonitoring.setDescription('This parameter enables (2) or disables (1) PPP Link Quality Monitoring (LQM) according RFC 1989. When set to on(2) LQM is added to the list of parameters acknowledged in LCP negotiation. Link quality reports (LQR) will be generated and send periodically.')
biboPPPProfilePPPoEDevIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPProfilePPPoEDevIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfilePPPoEDevIfIndex.setDescription('Specifies the device to be used for PPP over Ethernet (PPPoE) according RFC 2516.')
biboPPPProfileCallbackNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("cbcp-optional", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboPPPProfileCallbackNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts: biboPPPProfileCallbackNegotiation.setDescription("Specifies wether callback negotiation (LCP/CBCP) is allowed or not. If set to disabled(1), no callback negotiation will be performed or accepted. If set to enabled(2), PPP callback negotation will be accepted on demand. If this object is set to cbcp-optional(3), the CBCP option 'no callback' is also offered to the Windows client so that the user can decide wether he wants to be called back or not.")
pppExtIfTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 3, 9), )
if mibBuilder.loadTexts: pppExtIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfTable.setDescription("The pppExtIfTable contains extended configuration and information related to the PPP interfaces on the system. Entries are optional for each interface and can be added or deleted by the user. Deleting entries: Entries are removed by setting an entry's pppExtIfBodMode object to 'delete'.")
pppExtIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "pppExtIfIndex"))
if mibBuilder.loadTexts: pppExtIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfEntry.setDescription('')
pppExtIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfIndex.setDescription('Correlating PPP interface index.')
pppExtIfBodMode = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("disabled", 1), ("backup", 2), ("bod-active", 3), ("bod-passive", 4), ("bap-active", 5), ("bap-passive", 6), ("delete", 7), ("bap-both", 8), ("bap-first", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfBodMode.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfBodMode.setDescription('Enables bandwidth on demand (BOD) mode for leased line and dialup interfaces when setting to bod-active (3) respectively bod-passive (4) or backup only mode for leased line connections like X.21. When set to disabled (1), neither bandwidth on demand (as specified by the pppExtIfTable) or backup mode is enabled. Four modes (bap-active (5), bap-passive (6), bap-both(7) and bap-first (8)) are available for BAP (Bandwidth Allocation Protocol) support to specify wether BAP Call-Requests and BAP Callback-Requests should be initiated and/or accepted.')
pppExtIfAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("equal", 1), ("proportional", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfAlgorithm.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfAlgorithm.setDescription('The algorithm to use for weighting line utilization. Line utilization is determined by calculating the average load for each interface. When set to equal (1) all samples taken over the time interval (defined in pppExtIfInterval) will be given equal weight, when set to proportional (2) the weighting disproportional to the age of the sample.')
pppExtIfInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 300))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfInterval.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfInterval.setDescription('The time interval (in seconds) to use for sampling and calculating of the average throughput of the interface. See also: pppExtIfLoad.')
pppExtIfLoad = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppExtIfLoad.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfLoad.setDescription('The actual throughput (in percent) of the total bandwidth of this interface (load). This value is updated once every second.')
pppExtIfMlpFragmentation = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("proportional", 1), ("equal", 2), ("interleave", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfMlpFragmentation.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfMlpFragmentation.setDescription('The multilink PPP fragmentation mode. When set to proportional (1) packets will be divided into fragments proportional to the transmission rate of each link, when set to equal (2) packets will be divided into multiple equal fragments (equal to MlpFragSize) such that the number sent on each link is proportional to the transmission rate. When set to interleave (3), large datagrams will be fragmentated (maximum size determined by MlpFragSize) to reduce transmission delay of high-priority traffic on slower links.')
pppExtIfMlpFragSize = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 1500))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfMlpFragSize.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfMlpFragSize.setDescription('The multilink PPP fragment size. If MlpFragmentation is set to proportional (1) this value specifies the minimum size of the fragment in bytes. If MlpFragmentation is set to equal (2) this value specifies the maximum fragment size in bytes.')
pppExtIfPPPoEService = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfPPPoEService.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfPPPoEService.setDescription('The PPPoE (PPP over Ethernet, RFC 2516) service name which indicates the requested service during PPPoE discovery stage. Examples of the use of the service name are to indicate an ISP name or a class or a quality of service.')
pppExtIfPPPoEAcServer = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfPPPoEAcServer.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfPPPoEAcServer.setDescription('The PPPoE (PPP over Ethernet, RFC 2516) AC-Server name which determines the access concentrator during PPPoE discovery stage.')
pppExtIfEncKeyNegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("authentication", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfEncKeyNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfEncKeyNegotiation.setDescription("This variable defines the specification of shared secrets (encryption keys) between the sender and receiver of encrypted data. If set to static (1), the keys specified in 'pppExtIfEncTxKey' and 'pppExtIfEncRxKey' will be used, if set to authentication (2), the key derivation is based on PPP authentication via CHAP or MS-CHAP.")
pppExtIfEncTxKey = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 11), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfEncTxKey.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfEncTxKey.setDescription("Static (encryption) key used for transmission of encrypted data via PPP. It's size depends on the used encryption algorithm and the corresponding key length, e.g. 'des_56' or 'blowfish_168'.")
pppExtIfEncRxKey = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 12), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfEncRxKey.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfEncRxKey.setDescription("Static (decryption) key used for decryption of encrypted data received on PPP connections. It's size depends on the used encryption algorithm and the corresponding key length, e.g. 'des_56' or 'blowfish_168'.")
pppExtIfGearUpThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfGearUpThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfGearUpThreshold.setDescription('Gear up threshold for invoking current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with this value once per second. If exceeded longer than 5 seconds an additional B-channel will be requested.')
pppExtIfGearDownThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfGearDownThreshold.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfGearDownThreshold.setDescription('Gear down threshold for decreasing current bandwidth. The expected throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) after dropping a B-channel is compared with this threshold value once per second. If the needed bandwidth falls below this threshold longer than 10 seconds, exactly one B-channel will be dropped.')
pppExtIfAodiDChanQlen = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfAodiDChanQlen.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfAodiDChanQlen.setDescription('Upper threshold for the amount of data (in octets) waiting to be sent across the 9.6Kbit/sec D-channel. If exceeded, additional bandwidth will be invoked at once.')
pppExtIfAodiGearDownTxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfAodiGearDownTxRate.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfAodiGearDownTxRate.setDescription('Lower threshold for the amount of data in bits per second to be sent across the 64Kbit/sec B-channel. If the measured throughput becomes smaller than this value over a period of pppExtIfGearDownPersistance seconds, the remaining B-channel will be dropped.')
pppExtIfGearUpPersistance = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfGearUpPersistance.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfGearUpPersistance.setDescription('Gear up persistence interval for invoking current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with the current value of the variable pppExtIfGearUpThreshold once per second. If exceeded longer than pppExtIfGearUpPersistance seconds an additional B-channel will be requested.')
pppExtIfGearDownPersistance = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfGearDownPersistance.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfGearDownPersistance.setDescription('Gear down persistence interval for decreasing current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with the current value of pppExtIfGearDownThreshold once per second. If exceeded longer than pppExtIfGearDownPersistance seconds, exactly one B-channel will be dropped.')
pppExtIfL1Speed = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 19), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfL1Speed.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfL1Speed.setDescription("This object contains the interface's nominal bandwidth in bits per second. Please note that this parameter may not represent the real available transmission rate. The current purpose is only informational for example for PPTP or PPPoE interfaces where no accurate information from the underlaying network is available.")
pppExtIfCurrentRetryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 36000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfCurrentRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfCurrentRetryTime.setDescription('Current time in seconds to wait before retrying a call when the smart retry algorithm is implemented.')
pppExtIfMaxRetryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 36000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfMaxRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfMaxRetryTime.setDescription('Maximum time in seconds to wait before retrying a call when the smart retry algorithm is implemented. When set to zero this algorithm is disabled.')
pppExtIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8192))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfMtu.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfMtu.setDescription('Determines size of the largest datagram which can be sent on the interface, specified in octets (see ifMtu). When set to zero (default), the value of the variable ifMtu depends on the received LCP MRU/MRRU option.')
pppExtIfMru = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8192))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfMru.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfMru.setDescription('The maximum length for the PPP information field, including padding, but not including the protocol field, is termed the Maximum Receive Unit (MRU).')
pppExtIfAuthMutual = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppExtIfAuthMutual.setStatus('mandatory')
if mibBuilder.loadTexts: pppExtIfAuthMutual.setDescription('This object enables mutual PPP authentication between the peers.')
biboDialTable = MibTable((1, 3, 6, 1, 4, 1, 272, 4, 4, 1), )
if mibBuilder.loadTexts: biboDialTable.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialTable.setDescription("The biboDialTable contains configuration information for incoming and outgoing ISDN telephone numbers. Creating entries: Entries are created by assigning a value to the biboDialIfIndex object. Deleting entries: An entry can be removed by assigning the value `delete' to its biboDialType object.")
biboDialEntry = MibTableRow((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1), ).setIndexNames((0, "BIANCA-BRICK-PPP-MIB", "biboDialIfIndex"))
if mibBuilder.loadTexts: biboDialEntry.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialEntry.setDescription('')
biboDialIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialIfIndex.setDescription('The correlating PPP interface index.')
biboDialType = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("isdn", 1), ("isdn-spv", 2), ("delete", 3), ("ppp-callback", 4), ("ppp-negotiated", 5), ("x25-dialout", 6), ("ip", 7), ("x25", 8)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialType.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialType.setDescription('The dialup type can be set to plain isdn(1), isdn-spv(2) semi-permanent links used by the German 1TR6 D-channel protocol, or to delete(3) to delete a biboDialTable entry. The types ppp-callback(4) and ppp-negotiated(5) are used for the LCP callback option.')
biboDialDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("incoming", 1), ("outgoing", 2), ("both", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialDirection.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialDirection.setDescription('The allowed dial direction is either incoming(1), outgoing(2), or both(3) calls. No call is ever set up when set to incoming(1). Incoming calls will not be identified when set to outoing(2). Furthermore, once PPP authentication succeeds and there is at least one incoming number defined but for which none matches, the call will not be accepted for security reasons.')
biboDialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialNumber.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialNumber.setDescription("The defined dialing number. Used for either dialing or comparing to incoming calls or both, depending on the content of the biboDialDirection field. The wildcards '*', '?', '[', ']', '{', '}' may be used.")
biboDialSubaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 5), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialSubaddress.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialSubaddress.setDescription('The defined dial subaddress, if any. Also, see the biboDialNumber field.')
biboDialClosedUserGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 9999))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialClosedUserGroup.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialClosedUserGroup.setDescription('The defined closed user group, if any. Also, see the biboDialNumber field.')
biboDialStkMask = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 7), BitValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialStkMask.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialStkMask.setDescription('The defined stack mask. Each value of IsdnStkNumber represents a bit in this bitmask. A mask of 0 disables dialup completely, while a mask of -1 enables dialup on all available ISDN stacks.')
biboDialScreening = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("user", 1), ("user-verified", 2), ("user-failed", 3), ("network", 4), ("dont-care", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialScreening.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialScreening.setDescription("The screening indicator of the biboDialNumber. The biboDialScreening field can be used to gauge the `trustworthiness' of the biboDialNumber field. (See isdnCallScreening) Indicators are ordered from highest to lowest as follows: indicator: CPN assigned: verification: `network' by network none `user-verified' by user verification successful `user' by user none `user-failed' by user verification failed Set this field to `dont-care' to accept all calls. Otherwise calls are accepted only if the screening indicator matches or is higher than the set value.")
biboDialCallingSubaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 9), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialCallingSubaddress.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialCallingSubaddress.setDescription('The defined calling dial subaddress, if any. Also, see the biboDialNumber field.')
biboDialTypeOfCallingSubAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("nsap", 1), ("user-specified", 2), ("reserved", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialTypeOfCallingSubAdd.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialTypeOfCallingSubAdd.setDescription('The type of calling party subaddress.')
biboDialTypeOfCalledSubAdd = MibTableColumn((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("nsap", 1), ("user-specified", 2), ("reserved", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: biboDialTypeOfCalledSubAdd.setStatus('mandatory')
if mibBuilder.loadTexts: biboDialTypeOfCalledSubAdd.setDescription('The type of called party subaddress.')
mibBuilder.exportSymbols("BIANCA-BRICK-PPP-MIB", pppExtIfAodiDChanQlen=pppExtIfAodiDChanQlen, biboDialTable=biboDialTable, pppSessionDNS1=pppSessionDNS1, biboPPPLinkTable=biboPPPLinkTable, pppLqmLostOutOctets=pppLqmLostOutOctets, biboPPPIpAssignPoolId=biboPPPIpAssignPoolId, bintec=bintec, pppSessionLocIpAddr=pppSessionLocIpAddr, biboPPPConnIfIndex=biboPPPConnIfIndex, biboPPPConnIncomingCalls=biboPPPConnIncomingCalls, biboPPPLinkEntry=biboPPPLinkEntry, biboPPPIfIndex=biboPPPIfIndex, biboPPPMinConn=biboPPPMinConn, pppLqmPeerInLQRs=pppLqmPeerInLQRs, pppLqmLostOutLQRs=pppLqmLostOutLQRs, pppSessionCompression=pppSessionCompression, pppExtIfLoad=pppExtIfLoad, biboPPPLinkKeepalivePending=biboPPPLinkKeepalivePending, biboPPPVJHeaderComp=biboPPPVJHeaderComp, biboPPPProfileCallbackNegotiation=biboPPPProfileCallbackNegotiation, dialmap=dialmap, biboPPPTotalIncomingCalls=biboPPPTotalIncomingCalls, biboDialCallingSubaddress=biboDialCallingSubaddress, biboPPPConnOutgoingFails=biboPPPConnOutgoingFails, biboPPPEncapsulation=biboPPPEncapsulation, biboDialNumber=biboDialNumber, biboPPPLinkKeepaliveSent=biboPPPLinkKeepaliveSent, biboPPPRetryTime=biboPPPRetryTime, dod=dod, pppLqmPeerInOctets=pppLqmPeerInOctets, pppExtIfPPPoEService=pppExtIfPPPoEService, biboPPPConnReceivedOctets=biboPPPConnReceivedOctets, biboPPPMaxRetries=biboPPPMaxRetries, biboPPPLinkState=biboPPPLinkState, biboPPPTotalTransmitOctets=biboPPPTotalTransmitOctets, biboPPPLinkIfIndex=biboPPPLinkIfIndex, pppLqmOutLQRs=pppLqmOutLQRs, pppLqmPeerInErrors=pppLqmPeerInErrors, pppIpInUseTable=pppIpInUseTable, biboPPPType=biboPPPType, pppLqmInOctets=pppLqmInOctets, pppSessionEntry=pppSessionEntry, pppIpInUseIfIndex=pppIpInUseIfIndex, biboPPPCallback=biboPPPCallback, biboPPPProfileAuthRadius=biboPPPProfileAuthRadius, biboDialScreening=biboDialScreening, pppSessionRemIpAddr=pppSessionRemIpAddr, ppp=ppp, biboPPPTotalCharge=biboPPPTotalCharge, biboPPPConnOutgoingCalls=biboPPPConnOutgoingCalls, biboPPPLinkLqm=biboPPPLinkLqm, biboPPPLinkCallType=biboPPPLinkCallType, biboPPPStatEntry=biboPPPStatEntry, private=private, pppSessionCbcpMode=pppSessionCbcpMode, biboDialDirection=biboDialDirection, biboPPPProfileAuthProtocol=biboPPPProfileAuthProtocol, pppLqmEntry=pppLqmEntry, pppExtIfEncTxKey=pppExtIfEncTxKey, biboPPPLinkCallReference=biboPPPLinkCallReference, biboPPPProfileEntry=biboPPPProfileEntry, biboPPPIpAddress=biboPPPIpAddress, biboPPPLinkLocDiscr=biboPPPLinkLocDiscr, pppSessionVJHeaderComp=pppSessionVJHeaderComp, pppExtIfTable=pppExtIfTable, pppExtIfGearUpThreshold=pppExtIfGearUpThreshold, biboPPPLinkLcpComp=biboPPPLinkLcpComp, biboPPPIpAssignEntry=biboPPPIpAssignEntry, internet=internet, pppIpInUseState=pppIpInUseState, biboPPPMaxConn=biboPPPMaxConn, pppLqmLostPeerOutOcts=pppLqmLostPeerOutOcts, pppLqmInErrors=pppLqmInErrors, biboPPPTotalUnits=biboPPPTotalUnits, pppExtIfAodiGearDownTxRate=pppExtIfAodiGearDownTxRate, pppExtIfAlgorithm=pppExtIfAlgorithm, pppLqmInPackets=pppLqmInPackets, pppLqmPeerOutLQRs=pppLqmPeerOutLQRs, biboPPPTotalReceivedOctets=biboPPPTotalReceivedOctets, biboPPPLocalIdent=biboPPPLocalIdent, biboPPPSessionTimeout=biboPPPSessionTimeout, pppSessionMlp=pppSessionMlp, biboPPPLinkCharge=biboPPPLinkCharge, pppSessionIfIndex=pppSessionIfIndex, biboPPPLinkSpeed=biboPPPLinkSpeed, pppLqmPeerOutOctets=pppLqmPeerOutOctets, biboPPPStatTable=biboPPPStatTable, pppSessionLcpCallback=pppSessionLcpCallback, pppLqmInDiscards=pppLqmInDiscards, pppLqmLostPeerOutLQRs=pppLqmLostPeerOutLQRs, pppIpInUseAge=pppIpInUseAge, pppExtIfAuthMutual=pppExtIfAuthMutual, biboDialStkMask=biboDialStkMask, biboPPPIpAssignRange=biboPPPIpAssignRange, pppLqmReportingPeriod=pppLqmReportingPeriod, pppExtIfIndex=pppExtIfIndex, pppExtIfBodMode=pppExtIfBodMode, pppLqmIfIndex=pppLqmIfIndex, biboDialClosedUserGroup=biboDialClosedUserGroup, biboPPPLayer2Mode=biboPPPLayer2Mode, pppSessionWINS2=pppSessionWINS2, biboPPPLinkRetries=biboPPPLinkRetries, biboPPPConnActive=biboPPPConnActive, enterprises=enterprises, pppExtIfEncKeyNegotiation=pppExtIfEncKeyNegotiation, pppLqmCallReference=pppLqmCallReference, pppExtIfEntry=pppExtIfEntry, pppExtIfMlpFragmentation=pppExtIfMlpFragmentation, pppExtIfMlpFragSize=pppExtIfMlpFragSize, pppLqmPeerInDiscards=pppLqmPeerInDiscards, biboPPPConnCharge=biboPPPConnCharge, pppLqmLostOutPackets=pppLqmLostOutPackets, pppLqmPeerInPackets=pppLqmPeerInPackets, pppLqmOutOctets=pppLqmOutOctets, pppIpInUsePoolId=pppIpInUsePoolId, biboPPPConnUnits=biboPPPConnUnits, biboDialIfIndex=biboDialIfIndex, pppExtIfGearDownPersistance=pppExtIfGearDownPersistance, biboPPPConnDuration=biboPPPConnDuration, pppLqmOutPackets=pppLqmOutPackets, pppSessionIpxcpNodeNumber=pppSessionIpxcpNodeNumber, biboPPPEntry=biboPPPEntry, pppLqmPeerOutPackets=pppLqmPeerOutPackets, biboPPPAuthentication=biboPPPAuthentication, biboPPPIdleTime=biboPPPIdleTime, pppExtIfGearUpPersistance=pppExtIfGearUpPersistance, pppExtIfEncRxKey=pppExtIfEncRxKey, biboPPPLinkEstablished=biboPPPLinkEstablished, pppExtIfMru=pppExtIfMru, biboPPPEncryption=biboPPPEncryption, pppSessionDNS2=pppSessionDNS2, bibo=bibo, biboPPPLinkAccm=biboPPPLinkAccm, biboPPPProfilePPPoEDevIfIndex=biboPPPProfilePPPoEDevIfIndex, biboPPPIpAssignTable=biboPPPIpAssignTable, pppSessionBacpFavoredPeer=pppSessionBacpFavoredPeer, biboPPPConnProtocols=biboPPPConnProtocols, Date=Date, biboPPPTotalDuration=biboPPPTotalDuration, pppSessionMru=pppSessionMru, biboPPPLinkProtocols=biboPPPLinkProtocols, biboPPPTable=biboPPPTable, biboPPPInitConn=biboPPPInitConn, biboPPPDynShortHold=biboPPPDynShortHold, pppLqmInLQRs=pppLqmInLQRs, pppExtIfL1Speed=pppExtIfL1Speed, pppSessionCbcpDelay=pppSessionCbcpDelay, pppIpInUseEntry=pppIpInUseEntry, biboPPPConnState=biboPPPConnState, biboPPPTotalOutgoingFails=biboPPPTotalOutgoingFails, biboPPPLinkDirection=biboPPPLinkDirection, biboPPPIpAssignAddress=biboPPPIpAssignAddress, biboPPPKeepalive=biboPPPKeepalive, biboPPPLinkUnits=biboPPPLinkUnits, biboPPPTotalOutgoingCalls=biboPPPTotalOutgoingCalls, biboPPPCompressionMode=biboPPPCompressionMode, pppExtIfCurrentRetryTime=pppExtIfCurrentRetryTime, biboPPPThroughput=biboPPPThroughput, biboPPPCompression=biboPPPCompression, pppExtIfGearDownThreshold=pppExtIfGearDownThreshold, biboPPPProfileName=biboPPPProfileName, BitValue=BitValue, biboPPPLinkDeviceIndex=biboPPPLinkDeviceIndex, biboPPPLoginString=biboPPPLoginString, biboPPPConnTransmitOctets=biboPPPConnTransmitOctets, biboPPPIpPoolId=biboPPPIpPoolId, biboPPPTimeout=biboPPPTimeout, biboPPPAuthIdent=biboPPPAuthIdent, biboDialEntry=biboDialEntry, biboPPPLQMonitoring=biboPPPLQMonitoring, biboDialSubaddress=biboDialSubaddress, pppExtIfMaxRetryTime=pppExtIfMaxRetryTime, biboDialTypeOfCalledSubAdd=biboDialTypeOfCalledSubAdd, biboDialTypeOfCallingSubAdd=biboDialTypeOfCallingSubAdd, biboPPPDNSNegotiation=biboPPPDNSNegotiation, pppIpInUseIdent=pppIpInUseIdent, pppSessionEncryption=pppSessionEncryption, biboPPPShortHold=biboPPPShortHold, biboPPPConnIncomingFails=biboPPPConnIncomingFails, pppLqmTable=pppLqmTable, biboPPPChargeInterval=biboPPPChargeInterval, biboPPPLinkStkNumber=biboPPPLinkStkNumber, biboPPPLayer1Protocol=biboPPPLayer1Protocol, biboPPPAuthSecret=biboPPPAuthSecret, pppIpInUseAddress=pppIpInUseAddress, pppExtIfMtu=pppExtIfMtu, pppExtIfInterval=pppExtIfInterval, biboPPPProfileLQMonitoring=biboPPPProfileLQMonitoring, pppExtIfPPPoEAcServer=pppExtIfPPPoEAcServer, pppSessionAuthProt=pppSessionAuthProt, biboPPPLinkRemDiscr=biboPPPLinkRemDiscr, org=org, pppLqmLostPeerOutPkts=pppLqmLostPeerOutPkts, pppSessionWINS1=pppSessionWINS1, pppSessionTable=pppSessionTable, biboPPPIpAssignState=biboPPPIpAssignState, biboDialType=biboDialType, biboPPPProfileTable=biboPPPProfileTable, biboPPPTotalIncomingFails=biboPPPTotalIncomingFails, biboPPPBlockTime=biboPPPBlockTime)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, constraints_intersection, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(gauge32, mib_identifier, iso, object_identity, unsigned32, module_identity, integer32, notification_type, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, ip_address, time_ticks, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'MibIdentifier', 'iso', 'ObjectIdentity', 'Unsigned32', 'ModuleIdentity', 'Integer32', 'NotificationType', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'IpAddress', 'TimeTicks', 'Counter32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
org = mib_identifier((1, 3))
dod = mib_identifier((1, 3, 6))
internet = mib_identifier((1, 3, 6, 1))
private = mib_identifier((1, 3, 6, 1, 4))
enterprises = mib_identifier((1, 3, 6, 1, 4, 1))
bintec = mib_identifier((1, 3, 6, 1, 4, 1, 272))
bibo = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4))
ppp = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4, 3))
dialmap = mib_identifier((1, 3, 6, 1, 4, 1, 272, 4, 4))
class Bitvalue(Integer32):
pass
class Date(Integer32):
pass
bibo_ppp_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 1))
if mibBuilder.loadTexts:
biboPPPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTable.setDescription("The biboPPPTable contains configuration information for the PPP interfaces. Each time a new entry is made here, a corresponding entry is made in the ifTable. Creating entries: Entries are created by assigning a value to the biboPPPType object. Deleting entries: Entries are removed by setting an entry's biboPPPEncapsulation object to 'delete'.")
bibo_ppp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboPPPType'))
if mibBuilder.loadTexts:
biboPPPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPEntry.setDescription('')
bibo_ppp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIfIndex.setDescription('Correlating PPP interface index. This value is assigned automatically by the system.')
bibo_ppp_type = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5))).clone(namedValues=named_values(('isdn-dialup', 1), ('leased', 2), ('isdn-dialin-only', 3), ('multiuser', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPType.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPType.setDescription("The type of link. A new dialup link is created when this field is set to the value isdn-dialup(1), dialin-only(3) or multiuser(5). The maximum number of dialup links is limited by system memory. Each dialup link should have at least one corresponding entry in the biboDialTable to configure the remote ISDN telephone number(s). A leased line link, can not be created by setting this field to leased(2), but is automatically established when the IsdnChType field is set to either 'leased-dte' or 'leased-dce' (which doesn't make a difference for PPP, but must be set correctly for other encapsulation methods). Naturally, when the IsdnChType field is set to any other value, the biboPPPTable entry is removed. In both cases, a new entry in the biboPPPTable creates corre- corresponding entries in the ifTable (a new interface) and in the biboPPPStatTable (PPP statistics). Setting this object to multiuser(5), up to biboPPPMaxConn matching incoming connections (see biboPPPAuthentication, biboPPPAuthSecret, biboPPPAuthIdent) from different dialin partners will be accepted.")
bibo_ppp_encapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('ppp', 1), ('x25', 2), ('x25-ppp', 3), ('ip-lapb', 4), ('delete', 5), ('ip-hdlc', 6), ('mpr-lapb', 7), ('mpr-hdlc', 8), ('frame-relay', 9), ('x31-bchan', 10), ('x75-ppp', 11), ('x75btx-ppp', 12), ('x25-nosig', 13), ('x25-ppp-opt', 14), ('x25-pad', 15), ('x25-noconfig', 16), ('x25-noconfig-nosig', 17)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPEncapsulation.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPEncapsulation.setDescription("The layer 2 encapsulation of the link. The use of ppp(1) as described in RFC 1661 is the preferred encapsulation for point-to-point links. The encapsulation is set to x25(2) for X.25-only links and to x25-ppp(3) for concurrent use of X.25 and PPP. Mpr-lapb(7) and mpr-hdlc(8) are popular proprietary encapsulations. They both use the ethertype number for protocol multiplexing. The former is used when error correction or data compression (v42bis) is desired. The latter (mpr-hdlc) is compatible to Cisco's HDLC encapsulation. On IP-only links it is also possible to use the ISO LAPB protocol (ip-lapb(4)), also known as X.75, or raw hdlc framing (ip-hdlc(6)). The x75-ppp encapsulation provides a proprietary solution for using PPP encapsulation over X.75 (LAPB) framing, x75btx-ppp provides PPP over T.70 and LAPB framing including a BTX protocol header to access BTX services over ISDN links. The x25-nosig(13) encapsulation is used to establish X.25 connections over dialup links without specific signalling on the D-channel (pure data call). The x25-ppp-opt encapsulation provides a special kind of the x25-ppp encapsulation. Dialin partner will be authenticated either outband to establish an X.25 connection via ISDN or optional inband by using the point-to-point protocol (PPP). Concurrent use of X.25 and PPP encapsulation is excluded. The x25-noconfig(16) and x25-noconfig-nosig(17) encapsulations provide a solution fr establishing X.25 connections via ISDN. The dial number will be derived from X.25 destination address by using special rules. V42bis data compression can be enabled on LAPB links only, because v42bis requires an error free connection. Dialup links can be removed by setting this field to delete(5). This has no effect on permanent links.")
bibo_ppp_keepalive = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPKeepalive.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPKeepalive.setDescription('When set to on(1), keepalive packets are sent in regular intervals during the connection. Keepalive packets can not be sent using the ip-lapb or x25 encapsulation.')
bibo_ppp_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(500, 10000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPTimeout.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTimeout.setDescription('The number of milliseconds waiting before retransmitting a PPP configure packet.')
bibo_ppp_compression = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('v42bis', 2), ('stac', 3), ('ms-stac', 4), ('mppc', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPCompression.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPCompression.setDescription('The throughput can be enhanced up to factor three using the V42bis compression method or the Stac LZS compression algorithm. V42bis is currently supported with the ip-lapb and mpr-lapb encapsulation. Stac LZS compression algorithm is provided using PPP encapsulated links, stac(3) indicates support of Sequence checking, ms-stac(4) indicates support of Extended mode which is prefered by Microsoft. Both check modes are implemented according RFC 1974. When set to mppc(5), the Microsoft Point-to-Point Compression (MPPC) Protocol according RFC 2118 is negotiated. MPPC uses an LZ based algorithm with a sliding window history buffer.')
bibo_ppp_authentication = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('none', 1), ('pap', 2), ('chap', 3), ('both', 4), ('radius', 5), ('ms-chap', 6), ('all', 7), ('ms-chapv2', 8)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPAuthentication.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPAuthentication.setDescription("The type of authentication used on the point-to-point link as described in RFC 1334. The authentication protocol supports pap(2) (Password Authentication Protocol), chap(3) (Challenge Handshake Authentication Protocol), or both(4). When set to both(4), the link must be successfully authenticated by either CHAP or PAP. The type ms-chap(6) and ms-chapv2(8) are Microsofts proprietary CHAP authentication procedures (using MD4 and DES encryption instead of MD5 encryption algorithm), all(7) includes PAP, CHAP and MS-CHAP. Another way to authenticate dial-in users is by using RADIUS (remote authentication dial in user service). Users can authenticate themselves either using PAP or CHAP (excluding MS-CHAP). In general the system creates PPP interfaces with this authentication itself, but it's also possible to take advance of the RADIUS dial-in services with pre-configured interfaces. See biboAdmRadiusServer for further details.")
bibo_ppp_auth_ident = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPAuthIdent.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPAuthIdent.setDescription("The remote authentication identification string. The local authentication identification string is taken from the contents of the sysName field, up to the appearance of the first dot (e.g., the remote name would be `brick' if the content of the sysName field was `brick.bintec.de').")
bibo_ppp_auth_secret = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPAuthSecret.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPAuthSecret.setDescription('The authentication secret, which is used symmetrically for both local and remote sides of the PPP link.')
bibo_ppp_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('static', 1), ('dynamic-server', 2), ('dynamic-client', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAddress.setDescription('The IP control protocol as described in RFC1332 has a means of negotiating IP-addresses. When this option is set to dynamic-server(2), an available IP-address found in biboPPPIpAddrTable is assigned as the remote IP-address and a temporary route is created during the uptime of the interface. When set to dynamic-client(3), the remote system is asked to tell us our own IP-address. A host route will be created during the uptime of the interface. In most cases this option will be set automatically by the network address translation option. In static(1) mode, address-negotiation is not forced.')
bibo_ppp_retry_time = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPRetryTime.setDescription('Time in seconds to wait before retrying a call; currently not used.')
bibo_ppp_block_time = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPBlockTime.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPBlockTime.setDescription('Time in seconds to wait after a connection failure (e.g. the number of biboPPPMaxRetries calls failed). When set to zero, the interface state is never set to blocked.')
bibo_ppp_max_retries = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPMaxRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPMaxRetries.setDescription('The number of dialup retries before changing to the blocked state.')
bibo_ppp_short_hold = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(-1, 3600))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPShortHold.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPShortHold.setDescription('The time in seconds to wait, once the channel is silent, (that is, no data is being received or transmitted) before terminating the link. When set to zero the short hold mode is disabled, when set to -1 the short hold mode is disabled and the link will be reconnected when connection was lost.')
bibo_ppp_init_conn = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 250))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPInitConn.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPInitConn.setDescription(' The number of channels to initially set up for this interface.')
bibo_ppp_max_conn = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPMaxConn.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPMaxConn.setDescription('The maximum number of channels bundled for this interface.')
bibo_ppp_min_conn = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPMinConn.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPMinConn.setDescription('The minimum number of channels bundled for this interface.')
bibo_ppp_callback = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('expected', 3), ('ppp-offered', 4), ('delayed', 5), ('ppp-callback-optional', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPCallback.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPCallback.setDescription("If this object is enabled(1), and the call is recognized by the dialed number then calls are never accepted, and a callback is forced for incoming calls at once. The callback can be delayed for biboPPPRetryTime seconds by setting this entry to delayed(5). If the call is recognized by inband authentication (PAP or CHAP) then the actual connection is closed and a callback is performed at once. Setting this value to ppp-offered(4) allows a called peer to call back the calling site if offered by PPP negotiation. For PABX dialout a dialprefix is added to the number, if offered by the calling site (see isdnStkTable). If this object is set to expected(3), only one initial outgoing call is made expecting a callback. If this object is set to ppp-callback-optional(6), the CBCP option 'no callback' is also offered to the Windows client so that the user can decide wether he wants to be called back or not.")
bibo_ppp_layer1_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))).clone(namedValues=named_values(('data-64k', 1), ('data-56k', 2), ('modem', 3), ('dovb', 4), ('v110-1200', 5), ('v110-2400', 6), ('v110-4800', 7), ('v110-9600', 8), ('v110-14400', 9), ('v110-19200', 10), ('v110-38400', 11), ('modem-profile-1', 12), ('modem-profile-2', 13), ('modem-profile-3', 14), ('modem-profile-4', 15), ('modem-profile-5', 16), ('modem-profile-6', 17), ('modem-profile-7', 18), ('modem-profile-8', 19), ('pptp-pns', 20), ('pppoe', 21), ('aodi', 22), ('pptp-pac', 23)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPLayer1Protocol.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLayer1Protocol.setDescription('This entry is used to select the layer 1 protocol settings for this partner. Normally the correct entry is hdlc-64.')
bibo_ppp_login_string = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPLoginString.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLoginString.setDescription('A textual string containing a login sequence (script) composed of fields in the format [expect send], comparable to chat scripts commonly used on other sytems. This script is required i.e. to establish an asynchronus PPP dialup connection to CompuServe.')
bibo_pppvj_header_comp = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPVJHeaderComp.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPVJHeaderComp.setDescription('This entry is used to enable Van Jacobsen TCP/IP header compression, which reduces the size of TCP/IP packet headers and increases the efficiency of line utilization.')
bibo_ppp_layer2_mode = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('auto', 1), ('dte', 2), ('dce', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPLayer2Mode.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLayer2Mode.setDescription('This object specifies the layer 2 mode to be used for a connection. It is only relevant, if the Encapsulation involves an LAPB protocol. This is the case for x25, x25-ppp, ip-lapb, lapb, x31-bchan, x75-ppp, x75btx-ppp, x25-nosig. The Default value of this object is auto. For dialup connection, the layer 2 mode will than be DTE, on the calling side and DCE on the called side. For permanent connections, the layer 2 mode is set at lower layers (for example isdnChType in the isdnChTable). When this object is set to dte or dce, the layer 2 mode will always be DTE or DCE, regardless of the call direction or the settings at the lower layer.')
bibo_ppp_dyn_short_hold = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPDynShortHold.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPDynShortHold.setDescription("Optimizes idle time disconnects depending on the charging information received during the connection. This value specifies the minimum inactivity time (channel is silent) in percents of the current charging interval length and is only used for outgoing connections. Incoming connections are disconnected after idle time according to the value biboPPPShortHold. Please note that this only works if your ISDN port has the AOCD service enabled (advice of charging during the call). For instance in Germany this is an extra paid service. (Even the 'Komfortanschluss' does only include AOCE [advice of charge at the end of the call], so AOCD has to be ordered and paid extra.)")
bibo_ppp_local_ident = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPLocalIdent.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLocalIdent.setDescription('This is the local identification string used for PPP authentication(PAP/CHAP). If this entry is empty the variable biboAdmLocalPPPIdent will be used.')
bibo_pppdns_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('dynamic-client', 3), ('dynamic-server', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPDNSNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPDNSNegotiation.setDescription('The IP control protocol extensions as described in RFC 1877 has a means of negotiating primary and secondary Domain Name System (DNS) server addresses. When this option is disabled(1), no DNS negotiation will be performed. If enabled(2), DNS negotiation behavier depends on biboPPPIpAddress switch (client or server mode). Setting to dynamic-client(3), the remote system is asked to tell us the IP-address(es) of primary and/or secondary DNS. Setting to dynamic_server(4), primary and/or secondary DNS IP-address(es) found in biboAdmNameServer or biboAdmNameServ2, if asked, will be send to remote.')
bibo_ppp_encryption = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('mppe-40', 2), ('mppe-128', 3), ('des-56', 4), ('triple-des-168', 5), ('blowfish-168', 6), ('mppe-56', 7), ('mppev2-40', 8), ('mppev2-56', 9), ('mppev2-128', 10), ('blowfish-56', 11)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPEncryption.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPEncryption.setDescription("This field specifies the data encryption scheme for en(de)crypting PPP encapsulated multi-protocol datagrams. Setting to mppe-40(2), mppe-128(3) or mppe-56(7) the Microsoft Point to Point Encryption Protocol (MPPE) will be enabled, using a 40 bit, 128 bit respectively 56 bit session key for initializing encryption tables. Setting to mppev2-40(8), mppev2-56(9) or mppev2-128(10) the Microsoft Point to Point Encryption Protocol (MPPE) 'stateless mode' will be enabled, using a 40 bit, 56 bit respectively 128 bit session key.")
bibo_ppplq_monitoring = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPLQMonitoring.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLQMonitoring.setDescription('This parameter enables (2) or disables (1) PPP Link Quality Monitoring (LQM) according RFC 1989. When set to on(2) LQM is added to the list of parameters used in LCP negotiation. If LQM is acknowledged by peer link quality reports will be generated and send periodically.')
bibo_ppp_ip_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 28), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpPoolId.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpPoolId.setDescription('Pool ID value to select an IP address pool for dynamic IP address assignment via IPCP. See also PPPIpAssignTable for further details.')
bibo_ppp_session_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 1, 1, 29), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPSessionTimeout.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPSessionTimeout.setDescription('Maximum number of seconds before termination the established PPP session, regardless there is any data throughput on the corresponding link(s). When set to 0, there no limit for the duration of the PPP session.')
bibo_ppp_stat_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 2))
if mibBuilder.loadTexts:
biboPPPStatTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPStatTable.setDescription('The biboPPPStatTable contains statistical connection- specific information. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP interface is created in the biboPPPTable. Deleting entries: Entries are removed by the system when the corresponding PPP interface is removed.')
bibo_ppp_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboPPPConnIfIndex'))
if mibBuilder.loadTexts:
biboPPPStatEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPStatEntry.setDescription('')
bibo_ppp_conn_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnIfIndex.setDescription('Correlating PPP interface index.')
bibo_ppp_conn_active = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnActive.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnActive.setDescription('The actual number of bundled channels.')
bibo_ppp_conn_protocols = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnProtocols.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnProtocols.setDescription('The bitwise ORed protocols successfully negotiated on this connection; currently the following protocols are supported: tcp/ip(1), ipx(2), bridge(4), bpdu(8), x25(16). These protocol values are most likely to change in future software releases.')
bibo_ppp_conn_state = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('idle', 1), ('incoming', 2), ('outgoing', 3), ('connected', 4), ('dataxfer', 5), ('disconnect', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnState.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnState.setDescription('The physical state of the link. This field is obsolete and will not be supported in a future release.')
bibo_ppp_conn_duration = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnDuration.setDescription('The current link duration on this interface in seconds.')
bibo_ppp_conn_units = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnUnits.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnUnits.setDescription('The current costs on this interface for all member links.')
bibo_ppp_conn_transmit_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnTransmitOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnTransmitOctets.setDescription("The octets transmitted on this interface since its last change to the 'up' state.")
bibo_ppp_conn_received_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnReceivedOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnReceivedOctets.setDescription("The octets received since its last change to the `up' state.")
bibo_ppp_conn_outgoing_calls = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnOutgoingCalls.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnOutgoingCalls.setDescription("The number of outgoing calls on this interface since its last change to the 'up' state.")
bibo_ppp_conn_outgoing_fails = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnOutgoingFails.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnOutgoingFails.setDescription("The number of outgoing call failures on this interface since its last change to the 'up' state.")
bibo_ppp_conn_incoming_calls = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnIncomingCalls.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnIncomingCalls.setDescription('The number of incoming calls on this interface since its last change to the up state.')
bibo_ppp_conn_incoming_fails = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnIncomingFails.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnIncomingFails.setDescription('The number of incoming call failures on this interface since its last change to the up state.')
bibo_ppp_total_duration = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalDuration.setDescription('The total link duration in seconds.')
bibo_ppp_total_units = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalUnits.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalUnits.setDescription('The total costs on this interface for all member links.')
bibo_ppp_total_transmit_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalTransmitOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalTransmitOctets.setDescription('The total amount of octets transmitted.')
bibo_ppp_total_received_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalReceivedOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalReceivedOctets.setDescription('The total amount of octets received.')
bibo_ppp_total_outgoing_calls = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalOutgoingCalls.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalOutgoingCalls.setDescription('The total number of outgoing calls.')
bibo_ppp_total_outgoing_fails = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalOutgoingFails.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalOutgoingFails.setDescription('The total number of outgoing call failures.')
bibo_ppp_total_incoming_calls = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalIncomingCalls.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalIncomingCalls.setDescription('The total number of incoming calls.')
bibo_ppp_total_incoming_fails = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalIncomingFails.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalIncomingFails.setDescription('The total number of incoming call failures.')
bibo_ppp_throughput = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPThroughput.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPThroughput.setDescription('The actual thoughput of the interface; updated every 5 seconds.')
bibo_ppp_compression_mode = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('inactive', 1), ('active', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPCompressionMode.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPCompressionMode.setDescription('This object describes wether data compression is active for this interface. 42bis or Stac LZS compression algorithm can be enabled in the biboPPPTable.')
bibo_ppp_charge_interval = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPChargeInterval.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPChargeInterval.setDescription('Describes the measured interval between charging info elements received from the ISDN network.')
bibo_ppp_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPIdleTime.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIdleTime.setDescription('The currently measured connection inactivity time (channel is silent).')
bibo_ppp_conn_charge = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPConnCharge.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPConnCharge.setDescription('The current charge on this interface as 1/1000 of the respective currency.')
bibo_ppp_total_charge = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 2, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPTotalCharge.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPTotalCharge.setDescription('The total charge on this interface as 1/1000 of the respective currency.')
ppp_session_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 10))
if mibBuilder.loadTexts:
pppSessionTable.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionTable.setDescription('The pppSessionTable contains statistical information for the PPP protocol. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP connection is created. Deleting entries: Entries are removed by the system when the corresponding PPP connection is terminated.')
ppp_session_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'pppSessionIfIndex'))
if mibBuilder.loadTexts:
pppSessionEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionEntry.setDescription('')
ppp_session_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionIfIndex.setDescription('Correlating PPP interface index.')
ppp_session_mlp = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('negotiated', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionMlp.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionMlp.setDescription('Indicates negotiation of Multilink PPP.')
ppp_session_mru = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionMru.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionMru.setDescription("Peer's MRU/MRRU LCP option.")
ppp_session_lcp_callback = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('lcp', 2), ('cbcp', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionLcpCallback.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionLcpCallback.setDescription('Callback option inside LCP negotiation.')
ppp_session_auth_prot = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('pap', 2), ('chap', 3), ('ms-chapv1', 4), ('ms-chapv2', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionAuthProt.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionAuthProt.setDescription('The negotiated PPP authentication protocol.')
ppp_session_compression = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('stac', 2), ('ms-stac', 3), ('mppc', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionCompression.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionCompression.setDescription('The negotiated CCP compression mode.')
ppp_session_encryption = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('mppe-40', 2), ('mppe-128', 3), ('des-56', 4), ('triple-des-168', 5), ('blowfish-168', 6), ('mppe-56', 7), ('mppev2-40', 8), ('mppev2-56', 9), ('mppev2-128', 10), ('blowfish-56', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionEncryption.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionEncryption.setDescription('The negotiated CCP encryption mode.')
ppp_session_cbcp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('no-callback', 2), ('user-specified', 3), ('pre-specified', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionCbcpMode.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionCbcpMode.setDescription('The negotiated Callback Control Protocol (CBCP) mode.')
ppp_session_cbcp_delay = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 60))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionCbcpDelay.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionCbcpDelay.setDescription('The negotiated (CBCP) callback delay in seconds.')
ppp_session_loc_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 10), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionLocIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionLocIpAddr.setDescription('The negotiated local IP Address.')
ppp_session_rem_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 11), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionRemIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionRemIpAddr.setDescription('The negotiated remote IP Address.')
ppp_session_dns1 = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 12), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionDNS1.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionDNS1.setDescription('The negotiated first name server IP address.')
ppp_session_dns2 = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 13), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionDNS2.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionDNS2.setDescription('The negotiated second name server IP address.')
ppp_session_wins1 = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 14), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionWINS1.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionWINS1.setDescription('The negotiated first NetBIOS name server (WINS) IP address.')
ppp_session_wins2 = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 15), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionWINS2.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionWINS2.setDescription('The negotiated second NetBIOS name server (WINS) IP address.')
ppp_session_vj_header_comp = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('negotiated', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionVJHeaderComp.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionVJHeaderComp.setDescription('The negotiation of Van Jacobsen TCP/IP header compression option (IPCP).')
ppp_session_ipxcp_node_number = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 17), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionIpxcpNodeNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionIpxcpNodeNumber.setDescription('Unique IPX Node Id dynamically assigned the client.')
ppp_session_bacp_favored_peer = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 10, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('local', 2), ('remote', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppSessionBacpFavoredPeer.setStatus('mandatory')
if mibBuilder.loadTexts:
pppSessionBacpFavoredPeer.setDescription('The result of the BACP Favored-Peer negotiation.')
bibo_ppp_link_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 3))
if mibBuilder.loadTexts:
biboPPPLinkTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkTable.setDescription('The biboPPPLinkTable contains statistical information for each current PPP link on the system. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP interface is created in the biboPPPTable. Deleting entries: Entries are removed by the system when the corresponding PPP interface is removed.')
bibo_ppp_link_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboPPPLinkIfIndex'))
if mibBuilder.loadTexts:
biboPPPLinkEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkEntry.setDescription('')
bibo_ppp_link_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkIfIndex.setDescription('Correlating PPP interface index.')
bibo_ppp_link_established = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 2), date()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkEstablished.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkEstablished.setDescription('Time when the link was established.')
bibo_ppp_link_direction = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('incoming-dce', 1), ('outgoing-dte', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkDirection.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkDirection.setDescription('Direction of link, incoming(1) or outgoing(2). In case of permanent links, the meaning is dce(1) or dte(2).')
bibo_ppp_link_protocols = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkProtocols.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkProtocols.setDescription('The bitwise ORed protocols successfully negotiated on this link; currently the following protocols are supported: tcp/ip(1), ipx(2), bridge(4), bpdu(8), x25(16). These protocol values are most likely to change in future software releases.')
bibo_ppp_link_state = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('up', 1), ('down', 2), ('starting', 3), ('loopbacked', 4), ('dialing', 5), ('retry-wait', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkState.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkState.setDescription('The actual state of each link in a bundle. The link is fully operational in the up(1) state, and not operational in the down(2) state. The starting(3) state is an inter- mediate state when the link is physically established but PPP or other link negotation has not finished yet. The loopbacked(4) state is entered when the PPP keepalive mechanism detects a loopbacked link. The dialing(5) state shows that a dialup link is in its link establishment phase, dialing. If there is no answer to the call, the link enters the retry-wait(6) state for biboPPPRetryTime seconds. After waiting that time either a call retry will occur, or the ifOperStatus will enter the blocked state, depending on the amount of retries already done (biboPPPLinkRetries) and the value of the biboPPPMaxRetries field.')
bibo_ppp_link_units = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkUnits.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkUnits.setDescription('The costs for this link in units.')
bibo_ppp_link_retries = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkRetries.setDescription('The amount of retries taken to establish the link.')
bibo_ppp_link_keepalive_sent = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkKeepaliveSent.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkKeepaliveSent.setDescription('The amount of keepalive packets sent on the link.')
bibo_ppp_link_keepalive_pending = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkKeepalivePending.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkKeepalivePending.setDescription('The amount of keepalive answer packets waiting for since the last occurance of an echo reply packet.')
bibo_ppp_link_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkDeviceIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkDeviceIndex.setDescription('The underlying link device index.')
bibo_ppp_link_speed = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkSpeed.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkSpeed.setDescription('The speed of the link.')
bibo_ppp_link_stk_number = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkStkNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkStkNumber.setDescription('The stack number of the dialup link, correlating to the isdnStkNumber field in the isdnCallTable.')
bibo_ppp_link_call_type = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('incoming', 1), ('outgoing', 2), ('undef', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkCallType.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkCallType.setDescription('The call type of the dialup link, correlating to the isdnCallType field in the isdnCallTable.')
bibo_ppp_link_call_reference = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkCallReference.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkCallReference.setDescription('The call reference of the dialup link, correlating to the isdnCallReference field in the isdnCallTable.')
bibo_ppp_link_charge = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkCharge.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkCharge.setDescription('The costs for this link as 1/1000 of the respective currency.')
bibo_ppp_link_accm = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 17), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkAccm.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkAccm.setDescription('.')
bibo_ppp_link_lqm = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('negotiated', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkLqm.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkLqm.setDescription('Indicates the successful negotiation of the Link Quality Protocol (LQM).')
bibo_ppp_link_lcp_comp = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('addr', 2), ('prot', 3), ('both', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkLcpComp.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkLcpComp.setDescription('Address- and Protocol-Field compression.')
bibo_ppp_link_loc_discr = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkLocDiscr.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkLocDiscr.setDescription('Local LCP multilink endpoint discriminator.')
bibo_ppp_link_rem_discr = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 3, 1, 21), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPLinkRemDiscr.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPLinkRemDiscr.setDescription("Peer's LCP multilink endpoint discriminator.")
ppp_lqm_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 6))
if mibBuilder.loadTexts:
pppLqmTable.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmTable.setDescription('The pppLqmTable contains statistical information for each current PPP link on the system. Only the system can add or delete entries to this table. Creating entries: Entries are created by the system each time a new PPP link was established and LQM negotiated successful. Deleting entries: Entries are removed by the system when the corresponding PPP link is disconnected.')
ppp_lqm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'pppLqmIfIndex'))
if mibBuilder.loadTexts:
pppLqmEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmEntry.setDescription('')
ppp_lqm_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmIfIndex.setDescription('Correlating PPP interface index.')
ppp_lqm_call_reference = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmCallReference.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmCallReference.setDescription('The call reference of the dialup link, correlating to the isdnCallReference field in the isdnCallTable.')
ppp_lqm_reporting_period = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmReportingPeriod.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmReportingPeriod.setDescription('The LQMReportingPeriod field indicates the maximum time in hundredths of seconds between transmission of Link Quality Reports (LQR). The peer may transmit packets at a faster rate than that which was negotiated.')
ppp_lqm_out_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmOutLQRs.setDescription('Number of transmitted Link Quality Reports (LQR) on this link.')
ppp_lqm_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmOutPackets.setDescription('Number of transmitted Packets on this link.')
ppp_lqm_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmOutOctets.setDescription('Number of transmitted Octets on this link, including framing data.')
ppp_lqm_in_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmInLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmInLQRs.setDescription('Number of Link Quality Reports (LQR) received on this link.')
ppp_lqm_in_packets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmInPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmInPackets.setDescription('Number of Packets reveived on this link.')
ppp_lqm_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmInOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmInOctets.setDescription('Number of Octets reveived on this link, including framing data.')
ppp_lqm_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmInDiscards.setDescription('Number of Packets received on this link, but discarded.')
ppp_lqm_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmInErrors.setDescription('Number of errorneous Packets received on this link.')
ppp_lqm_peer_out_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerOutLQRs.setDescription('Number of Link Quality Reports (LQR) transmitted by remote on this link.')
ppp_lqm_peer_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerOutPackets.setDescription('Number of Packets transmitted by remote on this link.')
ppp_lqm_peer_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerOutOctets.setDescription('Number of Octets transmitted by remote on this link, including framing data.')
ppp_lqm_peer_in_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerInLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerInLQRs.setDescription('Number of Link Quality Reports (LQR) received by remote on this link.')
ppp_lqm_peer_in_packets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerInPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerInPackets.setDescription('Number of Packets reveived by remote on this link.')
ppp_lqm_peer_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerInOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerInOctets.setDescription('Number of Octets reveived by remote on this link, including framing data.')
ppp_lqm_peer_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerInDiscards.setDescription('Number of Packets received by remote on this link, but discarded.')
ppp_lqm_peer_in_errors = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmPeerInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmPeerInErrors.setDescription('Number of errorneous Packets received by remote on this link.')
ppp_lqm_lost_out_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostOutLQRs.setDescription('Number of lost Link Quality Reports (LQR) transmitted on this link.')
ppp_lqm_lost_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostOutPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostOutPackets.setDescription('Number of lost Packets transmitted on this link.')
ppp_lqm_lost_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostOutOctets.setDescription('Number of lost Octets transmitted on this link.')
ppp_lqm_lost_peer_out_lq_rs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostPeerOutLQRs.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostPeerOutLQRs.setDescription('Number of lost Link Quality Reports (LQR) transmitted by remote on this link.')
ppp_lqm_lost_peer_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostPeerOutPkts.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostPeerOutPkts.setDescription('Number of lost Packets transmitted by remote on this link.')
ppp_lqm_lost_peer_out_octs = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 6, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppLqmLostPeerOutOcts.setStatus('mandatory')
if mibBuilder.loadTexts:
pppLqmLostPeerOutOcts.setDescription('Number of lost Octets transmitted by remote on this link.')
bibo_ppp_ip_assign_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 4))
if mibBuilder.loadTexts:
biboPPPIpAssignTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignTable.setDescription("The biboPPPIpAssignTable contains IP addresses used when dynamically assigning IP addresses; i.e. when the biboPPPIpAddress field is set to `dynamic'. Creating entries: Entries are created by assigning a value (IP address) to the biboPPPIpAssignAddress object. Deleting entries: An entry (address) can be removed by assigning the value `delete' to its biboPPPIpAssignState.")
bibo_ppp_ip_assign_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboPPPIpAssignAddress'))
if mibBuilder.loadTexts:
biboPPPIpAssignEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignEntry.setDescription('Pool of IP addresses for dynamic IP address assignment via IPCP. See the biboPPPIpAddress field for further explanation.')
bibo_ppp_ip_assign_address = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpAssignAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignAddress.setDescription('First IP address of this range.')
bibo_ppp_ip_assign_state = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unused', 1), ('assigned', 2), ('delete', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpAssignState.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignState.setDescription('If an entry is currently in use, the state is set to as- signed(1). Otherwise it is set to unused(2). You may also delete this entry by changing it to delete(3).')
bibo_ppp_ip_assign_pool_id = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpAssignPoolId.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignPoolId.setDescription('Pool ID value.')
bibo_ppp_ip_assign_range = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 4, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPIpAssignRange.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPIpAssignRange.setDescription('Number of IP addresses that will be assigned starting from biboPPPIpAssignAddress. A range of 0 will disable this entry')
ppp_ip_in_use_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 7))
if mibBuilder.loadTexts:
pppIpInUseTable.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseTable.setDescription('The pppIpUseTable contains dynamically assigned IP addresses.')
ppp_ip_in_use_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'pppIpInUseAddress'))
if mibBuilder.loadTexts:
pppIpInUseEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseEntry.setDescription('')
ppp_ip_in_use_address = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUseAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseAddress.setDescription('assigned IP address')
ppp_ip_in_use_pool_id = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUsePoolId.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUsePoolId.setDescription('Unique IP address pool ID')
ppp_ip_in_use_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUseIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseIfIndex.setDescription('Unique interface index')
ppp_ip_in_use_ident = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUseIdent.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseIdent.setDescription('The remote authentication identification string.')
ppp_ip_in_use_state = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('assigned', 1), ('reserved', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUseState.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseState.setDescription('If an IP address is currently assigned, the state of this entry is set to assigned(1). Otherwise, after disconnect, it is set to reserved(2) until the same peer reconnects or this entry expires (see pppIpInUseAge).')
ppp_ip_in_use_age = mib_scalar((1, 3, 6, 1, 4, 1, 272, 4, 3, 7, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppIpInUseAge.setStatus('mandatory')
if mibBuilder.loadTexts:
pppIpInUseAge.setDescription('This object specifies the age of the entry after creation or after changing into state reserved(2). After expiration the IP address (see pppIpInUseAddress) is no longer reserved for peer specified by pppIpInUseIdent and this entry will be deleted.')
bibo_ppp_profile_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 5))
if mibBuilder.loadTexts:
biboPPPProfileTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileTable.setDescription('The biboPPPProfileTable contains PPP default parameters used for PPP negotiation with unknown dialin partners. For PPP connections, PPP profiles are asigned to incoming connections via the isdnDispatchTable. Currently no entries can be created or deleted by user.')
bibo_ppp_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboPPPProfileName'))
if mibBuilder.loadTexts:
biboPPPProfileEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileEntry.setDescription('')
bibo_ppp_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('profile-1', 1), ('profile-2', 2), ('profile-3', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
biboPPPProfileName.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileName.setDescription('The name of the PPP profile. Three profiles are available.')
bibo_ppp_profile_auth_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 6, 7, 8))).clone(namedValues=named_values(('none', 1), ('pap', 2), ('chap', 3), ('both', 4), ('ms-chap', 6), ('all', 7), ('ms-chapv2', 8)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPProfileAuthProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileAuthProtocol.setDescription('The type of authentication used on the point-to-point link as described in RFC 1334. See biboPPPAuthentication for further details.')
bibo_ppp_profile_auth_radius = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('inband', 2), ('outband', 3), ('both', 4), ('radius-only', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPProfileAuthRadius.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileAuthRadius.setDescription('This entry is used to configure possible RADIUS authentication on incoming calls. The default value is inband(2), only inband RADIUS requests (PAP, CHAP) are sent to the defined RADIUS server. Outband requests (CALLERID) are sent in outband(3) mode. If set to both(3), both requests are sent. To disable RADIUS requests in the profile set this value to none(1). To disable authentication attempts via the local data base set this value to radius-only(5).')
bibo_ppp_profile_lq_monitoring = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPProfileLQMonitoring.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileLQMonitoring.setDescription('This parameter enables (2) or disables (1) PPP Link Quality Monitoring (LQM) according RFC 1989. When set to on(2) LQM is added to the list of parameters acknowledged in LCP negotiation. Link quality reports (LQR) will be generated and send periodically.')
bibo_ppp_profile_pp_po_e_dev_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPProfilePPPoEDevIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfilePPPoEDevIfIndex.setDescription('Specifies the device to be used for PPP over Ethernet (PPPoE) according RFC 2516.')
bibo_ppp_profile_callback_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('cbcp-optional', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboPPPProfileCallbackNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts:
biboPPPProfileCallbackNegotiation.setDescription("Specifies wether callback negotiation (LCP/CBCP) is allowed or not. If set to disabled(1), no callback negotiation will be performed or accepted. If set to enabled(2), PPP callback negotation will be accepted on demand. If this object is set to cbcp-optional(3), the CBCP option 'no callback' is also offered to the Windows client so that the user can decide wether he wants to be called back or not.")
ppp_ext_if_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 3, 9))
if mibBuilder.loadTexts:
pppExtIfTable.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfTable.setDescription("The pppExtIfTable contains extended configuration and information related to the PPP interfaces on the system. Entries are optional for each interface and can be added or deleted by the user. Deleting entries: Entries are removed by setting an entry's pppExtIfBodMode object to 'delete'.")
ppp_ext_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'pppExtIfIndex'))
if mibBuilder.loadTexts:
pppExtIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfEntry.setDescription('')
ppp_ext_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfIndex.setDescription('Correlating PPP interface index.')
ppp_ext_if_bod_mode = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('disabled', 1), ('backup', 2), ('bod-active', 3), ('bod-passive', 4), ('bap-active', 5), ('bap-passive', 6), ('delete', 7), ('bap-both', 8), ('bap-first', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfBodMode.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfBodMode.setDescription('Enables bandwidth on demand (BOD) mode for leased line and dialup interfaces when setting to bod-active (3) respectively bod-passive (4) or backup only mode for leased line connections like X.21. When set to disabled (1), neither bandwidth on demand (as specified by the pppExtIfTable) or backup mode is enabled. Four modes (bap-active (5), bap-passive (6), bap-both(7) and bap-first (8)) are available for BAP (Bandwidth Allocation Protocol) support to specify wether BAP Call-Requests and BAP Callback-Requests should be initiated and/or accepted.')
ppp_ext_if_algorithm = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('equal', 1), ('proportional', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfAlgorithm.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfAlgorithm.setDescription('The algorithm to use for weighting line utilization. Line utilization is determined by calculating the average load for each interface. When set to equal (1) all samples taken over the time interval (defined in pppExtIfInterval) will be given equal weight, when set to proportional (2) the weighting disproportional to the age of the sample.')
ppp_ext_if_interval = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(5, 300))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfInterval.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfInterval.setDescription('The time interval (in seconds) to use for sampling and calculating of the average throughput of the interface. See also: pppExtIfLoad.')
ppp_ext_if_load = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppExtIfLoad.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfLoad.setDescription('The actual throughput (in percent) of the total bandwidth of this interface (load). This value is updated once every second.')
ppp_ext_if_mlp_fragmentation = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('proportional', 1), ('equal', 2), ('interleave', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfMlpFragmentation.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfMlpFragmentation.setDescription('The multilink PPP fragmentation mode. When set to proportional (1) packets will be divided into fragments proportional to the transmission rate of each link, when set to equal (2) packets will be divided into multiple equal fragments (equal to MlpFragSize) such that the number sent on each link is proportional to the transmission rate. When set to interleave (3), large datagrams will be fragmentated (maximum size determined by MlpFragSize) to reduce transmission delay of high-priority traffic on slower links.')
ppp_ext_if_mlp_frag_size = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(30, 1500))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfMlpFragSize.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfMlpFragSize.setDescription('The multilink PPP fragment size. If MlpFragmentation is set to proportional (1) this value specifies the minimum size of the fragment in bytes. If MlpFragmentation is set to equal (2) this value specifies the maximum fragment size in bytes.')
ppp_ext_if_pp_po_e_service = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfPPPoEService.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfPPPoEService.setDescription('The PPPoE (PPP over Ethernet, RFC 2516) service name which indicates the requested service during PPPoE discovery stage. Examples of the use of the service name are to indicate an ISP name or a class or a quality of service.')
ppp_ext_if_pp_po_e_ac_server = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfPPPoEAcServer.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfPPPoEAcServer.setDescription('The PPPoE (PPP over Ethernet, RFC 2516) AC-Server name which determines the access concentrator during PPPoE discovery stage.')
ppp_ext_if_enc_key_negotiation = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('authentication', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfEncKeyNegotiation.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfEncKeyNegotiation.setDescription("This variable defines the specification of shared secrets (encryption keys) between the sender and receiver of encrypted data. If set to static (1), the keys specified in 'pppExtIfEncTxKey' and 'pppExtIfEncRxKey' will be used, if set to authentication (2), the key derivation is based on PPP authentication via CHAP or MS-CHAP.")
ppp_ext_if_enc_tx_key = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 11), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfEncTxKey.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfEncTxKey.setDescription("Static (encryption) key used for transmission of encrypted data via PPP. It's size depends on the used encryption algorithm and the corresponding key length, e.g. 'des_56' or 'blowfish_168'.")
ppp_ext_if_enc_rx_key = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 12), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfEncRxKey.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfEncRxKey.setDescription("Static (decryption) key used for decryption of encrypted data received on PPP connections. It's size depends on the used encryption algorithm and the corresponding key length, e.g. 'des_56' or 'blowfish_168'.")
ppp_ext_if_gear_up_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfGearUpThreshold.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfGearUpThreshold.setDescription('Gear up threshold for invoking current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with this value once per second. If exceeded longer than 5 seconds an additional B-channel will be requested.')
ppp_ext_if_gear_down_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfGearDownThreshold.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfGearDownThreshold.setDescription('Gear down threshold for decreasing current bandwidth. The expected throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) after dropping a B-channel is compared with this threshold value once per second. If the needed bandwidth falls below this threshold longer than 10 seconds, exactly one B-channel will be dropped.')
ppp_ext_if_aodi_d_chan_qlen = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfAodiDChanQlen.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfAodiDChanQlen.setDescription('Upper threshold for the amount of data (in octets) waiting to be sent across the 9.6Kbit/sec D-channel. If exceeded, additional bandwidth will be invoked at once.')
ppp_ext_if_aodi_gear_down_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfAodiGearDownTxRate.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfAodiGearDownTxRate.setDescription('Lower threshold for the amount of data in bits per second to be sent across the 64Kbit/sec B-channel. If the measured throughput becomes smaller than this value over a period of pppExtIfGearDownPersistance seconds, the remaining B-channel will be dropped.')
ppp_ext_if_gear_up_persistance = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfGearUpPersistance.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfGearUpPersistance.setDescription('Gear up persistence interval for invoking current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with the current value of the variable pppExtIfGearUpThreshold once per second. If exceeded longer than pppExtIfGearUpPersistance seconds an additional B-channel will be requested.')
ppp_ext_if_gear_down_persistance = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfGearDownPersistance.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfGearDownPersistance.setDescription('Gear down persistence interval for decreasing current bandwidth. The measured throughput (in percent of the total bandwidth) of this interface (see pppExtIfLoad) is compared with the current value of pppExtIfGearDownThreshold once per second. If exceeded longer than pppExtIfGearDownPersistance seconds, exactly one B-channel will be dropped.')
ppp_ext_if_l1_speed = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 19), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfL1Speed.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfL1Speed.setDescription("This object contains the interface's nominal bandwidth in bits per second. Please note that this parameter may not represent the real available transmission rate. The current purpose is only informational for example for PPTP or PPPoE interfaces where no accurate information from the underlaying network is available.")
ppp_ext_if_current_retry_time = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 36000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfCurrentRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfCurrentRetryTime.setDescription('Current time in seconds to wait before retrying a call when the smart retry algorithm is implemented.')
ppp_ext_if_max_retry_time = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 36000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfMaxRetryTime.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfMaxRetryTime.setDescription('Maximum time in seconds to wait before retrying a call when the smart retry algorithm is implemented. When set to zero this algorithm is disabled.')
ppp_ext_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 8192))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfMtu.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfMtu.setDescription('Determines size of the largest datagram which can be sent on the interface, specified in octets (see ifMtu). When set to zero (default), the value of the variable ifMtu depends on the received LCP MRU/MRRU option.')
ppp_ext_if_mru = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 8192))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfMru.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfMru.setDescription('The maximum length for the PPP information field, including padding, but not including the protocol field, is termed the Maximum Receive Unit (MRU).')
ppp_ext_if_auth_mutual = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 3, 9, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppExtIfAuthMutual.setStatus('mandatory')
if mibBuilder.loadTexts:
pppExtIfAuthMutual.setDescription('This object enables mutual PPP authentication between the peers.')
bibo_dial_table = mib_table((1, 3, 6, 1, 4, 1, 272, 4, 4, 1))
if mibBuilder.loadTexts:
biboDialTable.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialTable.setDescription("The biboDialTable contains configuration information for incoming and outgoing ISDN telephone numbers. Creating entries: Entries are created by assigning a value to the biboDialIfIndex object. Deleting entries: An entry can be removed by assigning the value `delete' to its biboDialType object.")
bibo_dial_entry = mib_table_row((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1)).setIndexNames((0, 'BIANCA-BRICK-PPP-MIB', 'biboDialIfIndex'))
if mibBuilder.loadTexts:
biboDialEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialEntry.setDescription('')
bibo_dial_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialIfIndex.setDescription('The correlating PPP interface index.')
bibo_dial_type = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('isdn', 1), ('isdn-spv', 2), ('delete', 3), ('ppp-callback', 4), ('ppp-negotiated', 5), ('x25-dialout', 6), ('ip', 7), ('x25', 8)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialType.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialType.setDescription('The dialup type can be set to plain isdn(1), isdn-spv(2) semi-permanent links used by the German 1TR6 D-channel protocol, or to delete(3) to delete a biboDialTable entry. The types ppp-callback(4) and ppp-negotiated(5) are used for the LCP callback option.')
bibo_dial_direction = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('incoming', 1), ('outgoing', 2), ('both', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialDirection.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialDirection.setDescription('The allowed dial direction is either incoming(1), outgoing(2), or both(3) calls. No call is ever set up when set to incoming(1). Incoming calls will not be identified when set to outoing(2). Furthermore, once PPP authentication succeeds and there is at least one incoming number defined but for which none matches, the call will not be accepted for security reasons.')
bibo_dial_number = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialNumber.setDescription("The defined dialing number. Used for either dialing or comparing to incoming calls or both, depending on the content of the biboDialDirection field. The wildcards '*', '?', '[', ']', '{', '}' may be used.")
bibo_dial_subaddress = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 5), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialSubaddress.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialSubaddress.setDescription('The defined dial subaddress, if any. Also, see the biboDialNumber field.')
bibo_dial_closed_user_group = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 9999))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialClosedUserGroup.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialClosedUserGroup.setDescription('The defined closed user group, if any. Also, see the biboDialNumber field.')
bibo_dial_stk_mask = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 7), bit_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialStkMask.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialStkMask.setDescription('The defined stack mask. Each value of IsdnStkNumber represents a bit in this bitmask. A mask of 0 disables dialup completely, while a mask of -1 enables dialup on all available ISDN stacks.')
bibo_dial_screening = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('user', 1), ('user-verified', 2), ('user-failed', 3), ('network', 4), ('dont-care', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialScreening.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialScreening.setDescription("The screening indicator of the biboDialNumber. The biboDialScreening field can be used to gauge the `trustworthiness' of the biboDialNumber field. (See isdnCallScreening) Indicators are ordered from highest to lowest as follows: indicator: CPN assigned: verification: `network' by network none `user-verified' by user verification successful `user' by user none `user-failed' by user verification failed Set this field to `dont-care' to accept all calls. Otherwise calls are accepted only if the screening indicator matches or is higher than the set value.")
bibo_dial_calling_subaddress = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 9), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialCallingSubaddress.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialCallingSubaddress.setDescription('The defined calling dial subaddress, if any. Also, see the biboDialNumber field.')
bibo_dial_type_of_calling_sub_add = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('nsap', 1), ('user-specified', 2), ('reserved', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialTypeOfCallingSubAdd.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialTypeOfCallingSubAdd.setDescription('The type of calling party subaddress.')
bibo_dial_type_of_called_sub_add = mib_table_column((1, 3, 6, 1, 4, 1, 272, 4, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('nsap', 1), ('user-specified', 2), ('reserved', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
biboDialTypeOfCalledSubAdd.setStatus('mandatory')
if mibBuilder.loadTexts:
biboDialTypeOfCalledSubAdd.setDescription('The type of called party subaddress.')
mibBuilder.exportSymbols('BIANCA-BRICK-PPP-MIB', pppExtIfAodiDChanQlen=pppExtIfAodiDChanQlen, biboDialTable=biboDialTable, pppSessionDNS1=pppSessionDNS1, biboPPPLinkTable=biboPPPLinkTable, pppLqmLostOutOctets=pppLqmLostOutOctets, biboPPPIpAssignPoolId=biboPPPIpAssignPoolId, bintec=bintec, pppSessionLocIpAddr=pppSessionLocIpAddr, biboPPPConnIfIndex=biboPPPConnIfIndex, biboPPPConnIncomingCalls=biboPPPConnIncomingCalls, biboPPPLinkEntry=biboPPPLinkEntry, biboPPPIfIndex=biboPPPIfIndex, biboPPPMinConn=biboPPPMinConn, pppLqmPeerInLQRs=pppLqmPeerInLQRs, pppLqmLostOutLQRs=pppLqmLostOutLQRs, pppSessionCompression=pppSessionCompression, pppExtIfLoad=pppExtIfLoad, biboPPPLinkKeepalivePending=biboPPPLinkKeepalivePending, biboPPPVJHeaderComp=biboPPPVJHeaderComp, biboPPPProfileCallbackNegotiation=biboPPPProfileCallbackNegotiation, dialmap=dialmap, biboPPPTotalIncomingCalls=biboPPPTotalIncomingCalls, biboDialCallingSubaddress=biboDialCallingSubaddress, biboPPPConnOutgoingFails=biboPPPConnOutgoingFails, biboPPPEncapsulation=biboPPPEncapsulation, biboDialNumber=biboDialNumber, biboPPPLinkKeepaliveSent=biboPPPLinkKeepaliveSent, biboPPPRetryTime=biboPPPRetryTime, dod=dod, pppLqmPeerInOctets=pppLqmPeerInOctets, pppExtIfPPPoEService=pppExtIfPPPoEService, biboPPPConnReceivedOctets=biboPPPConnReceivedOctets, biboPPPMaxRetries=biboPPPMaxRetries, biboPPPLinkState=biboPPPLinkState, biboPPPTotalTransmitOctets=biboPPPTotalTransmitOctets, biboPPPLinkIfIndex=biboPPPLinkIfIndex, pppLqmOutLQRs=pppLqmOutLQRs, pppLqmPeerInErrors=pppLqmPeerInErrors, pppIpInUseTable=pppIpInUseTable, biboPPPType=biboPPPType, pppLqmInOctets=pppLqmInOctets, pppSessionEntry=pppSessionEntry, pppIpInUseIfIndex=pppIpInUseIfIndex, biboPPPCallback=biboPPPCallback, biboPPPProfileAuthRadius=biboPPPProfileAuthRadius, biboDialScreening=biboDialScreening, pppSessionRemIpAddr=pppSessionRemIpAddr, ppp=ppp, biboPPPTotalCharge=biboPPPTotalCharge, biboPPPConnOutgoingCalls=biboPPPConnOutgoingCalls, biboPPPLinkLqm=biboPPPLinkLqm, biboPPPLinkCallType=biboPPPLinkCallType, biboPPPStatEntry=biboPPPStatEntry, private=private, pppSessionCbcpMode=pppSessionCbcpMode, biboDialDirection=biboDialDirection, biboPPPProfileAuthProtocol=biboPPPProfileAuthProtocol, pppLqmEntry=pppLqmEntry, pppExtIfEncTxKey=pppExtIfEncTxKey, biboPPPLinkCallReference=biboPPPLinkCallReference, biboPPPProfileEntry=biboPPPProfileEntry, biboPPPIpAddress=biboPPPIpAddress, biboPPPLinkLocDiscr=biboPPPLinkLocDiscr, pppSessionVJHeaderComp=pppSessionVJHeaderComp, pppExtIfTable=pppExtIfTable, pppExtIfGearUpThreshold=pppExtIfGearUpThreshold, biboPPPLinkLcpComp=biboPPPLinkLcpComp, biboPPPIpAssignEntry=biboPPPIpAssignEntry, internet=internet, pppIpInUseState=pppIpInUseState, biboPPPMaxConn=biboPPPMaxConn, pppLqmLostPeerOutOcts=pppLqmLostPeerOutOcts, pppLqmInErrors=pppLqmInErrors, biboPPPTotalUnits=biboPPPTotalUnits, pppExtIfAodiGearDownTxRate=pppExtIfAodiGearDownTxRate, pppExtIfAlgorithm=pppExtIfAlgorithm, pppLqmInPackets=pppLqmInPackets, pppLqmPeerOutLQRs=pppLqmPeerOutLQRs, biboPPPTotalReceivedOctets=biboPPPTotalReceivedOctets, biboPPPLocalIdent=biboPPPLocalIdent, biboPPPSessionTimeout=biboPPPSessionTimeout, pppSessionMlp=pppSessionMlp, biboPPPLinkCharge=biboPPPLinkCharge, pppSessionIfIndex=pppSessionIfIndex, biboPPPLinkSpeed=biboPPPLinkSpeed, pppLqmPeerOutOctets=pppLqmPeerOutOctets, biboPPPStatTable=biboPPPStatTable, pppSessionLcpCallback=pppSessionLcpCallback, pppLqmInDiscards=pppLqmInDiscards, pppLqmLostPeerOutLQRs=pppLqmLostPeerOutLQRs, pppIpInUseAge=pppIpInUseAge, pppExtIfAuthMutual=pppExtIfAuthMutual, biboDialStkMask=biboDialStkMask, biboPPPIpAssignRange=biboPPPIpAssignRange, pppLqmReportingPeriod=pppLqmReportingPeriod, pppExtIfIndex=pppExtIfIndex, pppExtIfBodMode=pppExtIfBodMode, pppLqmIfIndex=pppLqmIfIndex, biboDialClosedUserGroup=biboDialClosedUserGroup, biboPPPLayer2Mode=biboPPPLayer2Mode, pppSessionWINS2=pppSessionWINS2, biboPPPLinkRetries=biboPPPLinkRetries, biboPPPConnActive=biboPPPConnActive, enterprises=enterprises, pppExtIfEncKeyNegotiation=pppExtIfEncKeyNegotiation, pppLqmCallReference=pppLqmCallReference, pppExtIfEntry=pppExtIfEntry, pppExtIfMlpFragmentation=pppExtIfMlpFragmentation, pppExtIfMlpFragSize=pppExtIfMlpFragSize, pppLqmPeerInDiscards=pppLqmPeerInDiscards, biboPPPConnCharge=biboPPPConnCharge, pppLqmLostOutPackets=pppLqmLostOutPackets, pppLqmPeerInPackets=pppLqmPeerInPackets, pppLqmOutOctets=pppLqmOutOctets, pppIpInUsePoolId=pppIpInUsePoolId, biboPPPConnUnits=biboPPPConnUnits, biboDialIfIndex=biboDialIfIndex, pppExtIfGearDownPersistance=pppExtIfGearDownPersistance, biboPPPConnDuration=biboPPPConnDuration, pppLqmOutPackets=pppLqmOutPackets, pppSessionIpxcpNodeNumber=pppSessionIpxcpNodeNumber, biboPPPEntry=biboPPPEntry, pppLqmPeerOutPackets=pppLqmPeerOutPackets, biboPPPAuthentication=biboPPPAuthentication, biboPPPIdleTime=biboPPPIdleTime, pppExtIfGearUpPersistance=pppExtIfGearUpPersistance, pppExtIfEncRxKey=pppExtIfEncRxKey, biboPPPLinkEstablished=biboPPPLinkEstablished, pppExtIfMru=pppExtIfMru, biboPPPEncryption=biboPPPEncryption, pppSessionDNS2=pppSessionDNS2, bibo=bibo, biboPPPLinkAccm=biboPPPLinkAccm, biboPPPProfilePPPoEDevIfIndex=biboPPPProfilePPPoEDevIfIndex, biboPPPIpAssignTable=biboPPPIpAssignTable, pppSessionBacpFavoredPeer=pppSessionBacpFavoredPeer, biboPPPConnProtocols=biboPPPConnProtocols, Date=Date, biboPPPTotalDuration=biboPPPTotalDuration, pppSessionMru=pppSessionMru, biboPPPLinkProtocols=biboPPPLinkProtocols, biboPPPTable=biboPPPTable, biboPPPInitConn=biboPPPInitConn, biboPPPDynShortHold=biboPPPDynShortHold, pppLqmInLQRs=pppLqmInLQRs, pppExtIfL1Speed=pppExtIfL1Speed, pppSessionCbcpDelay=pppSessionCbcpDelay, pppIpInUseEntry=pppIpInUseEntry, biboPPPConnState=biboPPPConnState, biboPPPTotalOutgoingFails=biboPPPTotalOutgoingFails, biboPPPLinkDirection=biboPPPLinkDirection, biboPPPIpAssignAddress=biboPPPIpAssignAddress, biboPPPKeepalive=biboPPPKeepalive, biboPPPLinkUnits=biboPPPLinkUnits, biboPPPTotalOutgoingCalls=biboPPPTotalOutgoingCalls, biboPPPCompressionMode=biboPPPCompressionMode, pppExtIfCurrentRetryTime=pppExtIfCurrentRetryTime, biboPPPThroughput=biboPPPThroughput, biboPPPCompression=biboPPPCompression, pppExtIfGearDownThreshold=pppExtIfGearDownThreshold, biboPPPProfileName=biboPPPProfileName, BitValue=BitValue, biboPPPLinkDeviceIndex=biboPPPLinkDeviceIndex, biboPPPLoginString=biboPPPLoginString, biboPPPConnTransmitOctets=biboPPPConnTransmitOctets, biboPPPIpPoolId=biboPPPIpPoolId, biboPPPTimeout=biboPPPTimeout, biboPPPAuthIdent=biboPPPAuthIdent, biboDialEntry=biboDialEntry, biboPPPLQMonitoring=biboPPPLQMonitoring, biboDialSubaddress=biboDialSubaddress, pppExtIfMaxRetryTime=pppExtIfMaxRetryTime, biboDialTypeOfCalledSubAdd=biboDialTypeOfCalledSubAdd, biboDialTypeOfCallingSubAdd=biboDialTypeOfCallingSubAdd, biboPPPDNSNegotiation=biboPPPDNSNegotiation, pppIpInUseIdent=pppIpInUseIdent, pppSessionEncryption=pppSessionEncryption, biboPPPShortHold=biboPPPShortHold, biboPPPConnIncomingFails=biboPPPConnIncomingFails, pppLqmTable=pppLqmTable, biboPPPChargeInterval=biboPPPChargeInterval, biboPPPLinkStkNumber=biboPPPLinkStkNumber, biboPPPLayer1Protocol=biboPPPLayer1Protocol, biboPPPAuthSecret=biboPPPAuthSecret, pppIpInUseAddress=pppIpInUseAddress, pppExtIfMtu=pppExtIfMtu, pppExtIfInterval=pppExtIfInterval, biboPPPProfileLQMonitoring=biboPPPProfileLQMonitoring, pppExtIfPPPoEAcServer=pppExtIfPPPoEAcServer, pppSessionAuthProt=pppSessionAuthProt, biboPPPLinkRemDiscr=biboPPPLinkRemDiscr, org=org, pppLqmLostPeerOutPkts=pppLqmLostPeerOutPkts, pppSessionWINS1=pppSessionWINS1, pppSessionTable=pppSessionTable, biboPPPIpAssignState=biboPPPIpAssignState, biboDialType=biboDialType, biboPPPProfileTable=biboPPPProfileTable, biboPPPTotalIncomingFails=biboPPPTotalIncomingFails, biboPPPBlockTime=biboPPPBlockTime) |
def gcd(a,b):
res = 1
for i in range(1, min(a,b)+1):
if a % i == 0 and b % i == 0: res = i
return res
def solution(w,h):
return w * h - (w + h - gcd(w,h)) | def gcd(a, b):
res = 1
for i in range(1, min(a, b) + 1):
if a % i == 0 and b % i == 0:
res = i
return res
def solution(w, h):
return w * h - (w + h - gcd(w, h)) |
def markov_tweet():
#Created a nested dictionary with the 1st Key = a word second key = possible words that come after and value = counter
words_dic = {}
with open("prunedLyrics.txt", 'r', encoding="utf-8") as f:
for line in f:
line = line.replace("\n"," \n")
words_list = line.split(" ")
for index, word in enumerate(words_list):
temp_kv_dic = {}
#if we encounter a new line, move on to next line
if word == "\n":
break
#check if a word exists in the dictionary, if not intialize with the {currentword: {the next word:1}}
elif word not in words_dic:
temp_kv_dic.update({words_list[index+1]:1})
words_dic.update({word:temp_kv_dic})
#if word is in dictionary, check if the following word is a key, if not intialize it, if it is update value
elif word in words_dic:
if words_list[index+1] in words_dic[word]:
words_dic[word][words_list[index+1]] += 1
else:
temp_kv_dic.update({words_list[index+1]:1})
words_dic[word].update(temp_kv_dic)
print(words_dic)
#words_dic contains a dictionary with the following format
#{word:{nextword:appearances, anotherwordthatcomesafter:appearances}}
markov_tweet()
| def markov_tweet():
words_dic = {}
with open('prunedLyrics.txt', 'r', encoding='utf-8') as f:
for line in f:
line = line.replace('\n', ' \n')
words_list = line.split(' ')
for (index, word) in enumerate(words_list):
temp_kv_dic = {}
if word == '\n':
break
elif word not in words_dic:
temp_kv_dic.update({words_list[index + 1]: 1})
words_dic.update({word: temp_kv_dic})
elif word in words_dic:
if words_list[index + 1] in words_dic[word]:
words_dic[word][words_list[index + 1]] += 1
else:
temp_kv_dic.update({words_list[index + 1]: 1})
words_dic[word].update(temp_kv_dic)
print(words_dic)
markov_tweet() |
class Person:
@property
def full_name(self):
return f"{self.first_name} {self.last_name}"
| class Person:
@property
def full_name(self):
return f'{self.first_name} {self.last_name}' |
chassis_900 = '192.168.65.36'
chassis_910 = '192.168.65.21'
linux_900 = '192.168.65.34:443'
linux_910 = '192.168.65.23:443'
windows_900 = 'localhost:11009'
windows_910 = 'localhost:11009'
cm_900 = '172.40.0.204:443'
server_properties = {'linux_900': {'server': linux_900,
'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'],
'auth': ('admin', 'admin')},
'linux_910': {'server': linux_910,
'locations': [f'{chassis_910}/1/1', f'{chassis_910}/1/2'],
'auth': ('admin', 'admin')},
'windows_900': {'server': windows_900,
'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'],
'auth': None,
'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.00.1915.16'},
'windows_910': {'server': windows_910,
'locations': [f'{chassis_910}/1/1', f'{chassis_910}/1/2'],
'auth': None,
'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.10.2007.7'},
'cm_900': {'server': cm_900,
'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'],
'auth': None,
'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.00.1915.16'}}
license_servers = ['192.168.42.61']
# Default for options.
api = ['rest']
server = ['linux_910']
| chassis_900 = '192.168.65.36'
chassis_910 = '192.168.65.21'
linux_900 = '192.168.65.34:443'
linux_910 = '192.168.65.23:443'
windows_900 = 'localhost:11009'
windows_910 = 'localhost:11009'
cm_900 = '172.40.0.204:443'
server_properties = {'linux_900': {'server': linux_900, 'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'], 'auth': ('admin', 'admin')}, 'linux_910': {'server': linux_910, 'locations': [f'{chassis_910}/1/1', f'{chassis_910}/1/2'], 'auth': ('admin', 'admin')}, 'windows_900': {'server': windows_900, 'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'], 'auth': None, 'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.00.1915.16'}, 'windows_910': {'server': windows_910, 'locations': [f'{chassis_910}/1/1', f'{chassis_910}/1/2'], 'auth': None, 'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.10.2007.7'}, 'cm_900': {'server': cm_900, 'locations': [f'{chassis_900}/1/1', f'{chassis_900}/1/2'], 'auth': None, 'install_dir': 'C:/Program Files (x86)/Ixia/IxNetwork/9.00.1915.16'}}
license_servers = ['192.168.42.61']
api = ['rest']
server = ['linux_910'] |
n=int(input())
arr=list(map(int,input().split()))
a=0
p=0
for k in range(0,n):
a=a+arr[k]
for j in range(0,n):
d=(arr[j] - (a/n))**2
p=p+d
sigma=float ((p/n)**(1/2))
print(sigma)
| n = int(input())
arr = list(map(int, input().split()))
a = 0
p = 0
for k in range(0, n):
a = a + arr[k]
for j in range(0, n):
d = (arr[j] - a / n) ** 2
p = p + d
sigma = float((p / n) ** (1 / 2))
print(sigma) |
class Port:
def __init__(self, path, vendor_id, product_id, serial_number):
self.path = path
self.vendor_id = vendor_id
self.product_id = product_id
self.serial_number = serial_number
def __repr__(self):
return f'<Port ' \
f'path={self.path} ' \
f'vendor_id={self.vendor_id} ' \
f'product_id={self.product_id} ' \
f'serial_number={self.serial_number} ' \
f'>'
| class Port:
def __init__(self, path, vendor_id, product_id, serial_number):
self.path = path
self.vendor_id = vendor_id
self.product_id = product_id
self.serial_number = serial_number
def __repr__(self):
return f'<Port path={self.path} vendor_id={self.vendor_id} product_id={self.product_id} serial_number={self.serial_number} >' |
def less_or_equal(value):
if value : # Change this line
return "25 or less"
elif value : # Change this line
return "75 or less"
else:
return "More than 75"
# Change the value 1 below to experiment with different values
print(less_or_equal(1))
| def less_or_equal(value):
if value:
return '25 or less'
elif value:
return '75 or less'
else:
return 'More than 75'
print(less_or_equal(1)) |
#
# @lc app=leetcode id=2 lang=python3
#
# [2] Add Two Numbers
#
# https://leetcode.com/problems/add-two-numbers/description/
#
# algorithms
# Medium (30.66%)
# Likes: 5024
# Dislikes: 1280
# Total Accepted: 848.6K
# Total Submissions: 2.7M
# Testcase Example: '[2,4,3]\n[5,6,4]'
#
# You are given two non-empty linked lists representing two non-negative
# integers. The digits are stored in reverse order and each of their nodes
# contain a single digit. Add the two numbers and return it as a linked list.
#
# You may assume the two numbers do not contain any leading zero, except the
# number 0 itself.
#
# Example:
#
#
# Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
# Output: 7 -> 0 -> 8
# Explanation: 342 + 465 = 807.
#
#
#
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1.next and l1.val == 0:
return l2
if not l2.next and l2.val == 0:
return l1
p1, p2 = l1, l2
sol = ListNode(0)
head = sol
head.next = None
plus, sol.val = (p1.val + p2.val) // 10, (p1.val + p2.val) % 10
p1, p2 = p1.next, p2.next
while p1 or p2:
temp = ListNode(0)
val1 = p1.val if p1 else 0
p1 = p1.next if p1 else p1
val2 = p2.val if p2 else 0
p2 = p2.next if p2 else p2
temp.next, temp.val = None, val1+val2+plus
plus = temp.val // 10
temp.val %= 10
sol.next = temp
sol = sol.next
if plus != 0:
temp = ListNode(0)
temp.next, temp.val, sol.next = None, 1, temp
return head
| class Solution:
def add_two_numbers(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1.next and l1.val == 0:
return l2
if not l2.next and l2.val == 0:
return l1
(p1, p2) = (l1, l2)
sol = list_node(0)
head = sol
head.next = None
(plus, sol.val) = ((p1.val + p2.val) // 10, (p1.val + p2.val) % 10)
(p1, p2) = (p1.next, p2.next)
while p1 or p2:
temp = list_node(0)
val1 = p1.val if p1 else 0
p1 = p1.next if p1 else p1
val2 = p2.val if p2 else 0
p2 = p2.next if p2 else p2
(temp.next, temp.val) = (None, val1 + val2 + plus)
plus = temp.val // 10
temp.val %= 10
sol.next = temp
sol = sol.next
if plus != 0:
temp = list_node(0)
(temp.next, temp.val, sol.next) = (None, 1, temp)
return head |
class ValueBlend:
def _init_corners(self, **kwargs):
# Corners is list of tuples:
# [bottomleft, bottomright, topleft, topright]
if 'corners' in kwargs:
self.corners = kwargs['corners']
if len(self.corners) != 4 or \
any(len(v) != 2 for v in self.corners):
raise ValueError("corner should be a list of four tuples, "
"set either option 'corners' "
"or options 'u_range' and 'v_range'")
elif 'u_range' in kwargs and 'v_range' in kwargs:
self.corners = [[kwargs['u_range'][0], kwargs['v_range'][0]],
[kwargs['u_range'][1], kwargs['v_range'][0]],
[kwargs['u_range'][0], kwargs['v_range'][1]],
[kwargs['u_range'][1], kwargs['v_range'][1]]]
else:
raise ValueError("Must set either option "
"'corners' or options 'u_range' and 'v_range'")
def _blend_tuples(self, tuple1, tuple2, ratio):
out = [None, None]
for i in range(2):
out[i] = (1 - ratio) * tuple1[i] + ratio * tuple2[i]
return out
def blend(self, ratio_u, ratio_v):
uv0 = self._blend_tuples(self.corners[0],
self.corners[1],
ratio_u)
uv1 = self._blend_tuples(self.corners[2],
self.corners[3],
ratio_u)
return self._blend_tuples(uv0, uv1, ratio_v)
| class Valueblend:
def _init_corners(self, **kwargs):
if 'corners' in kwargs:
self.corners = kwargs['corners']
if len(self.corners) != 4 or any((len(v) != 2 for v in self.corners)):
raise value_error("corner should be a list of four tuples, set either option 'corners' or options 'u_range' and 'v_range'")
elif 'u_range' in kwargs and 'v_range' in kwargs:
self.corners = [[kwargs['u_range'][0], kwargs['v_range'][0]], [kwargs['u_range'][1], kwargs['v_range'][0]], [kwargs['u_range'][0], kwargs['v_range'][1]], [kwargs['u_range'][1], kwargs['v_range'][1]]]
else:
raise value_error("Must set either option 'corners' or options 'u_range' and 'v_range'")
def _blend_tuples(self, tuple1, tuple2, ratio):
out = [None, None]
for i in range(2):
out[i] = (1 - ratio) * tuple1[i] + ratio * tuple2[i]
return out
def blend(self, ratio_u, ratio_v):
uv0 = self._blend_tuples(self.corners[0], self.corners[1], ratio_u)
uv1 = self._blend_tuples(self.corners[2], self.corners[3], ratio_u)
return self._blend_tuples(uv0, uv1, ratio_v) |
str_1 = input()
str_2 = input()
str_3 = input()
print([str_1, [str_2], [[str_3]]])
| str_1 = input()
str_2 = input()
str_3 = input()
print([str_1, [str_2], [[str_3]]]) |
class Dataset(object):
def __init__(self, name=None):
self.name = name
def __str__(self):
return self.name
def get_instance_name(self, filepath, id):
raise NotImplementedError("Abstract class")
def import_model(self, filepath):
raise NotImplementedError("Abstract class")
def get_camera_position(self, filepath):
raise NotImplementedError("Abstract class")
def get_camera_position_generator(self, folder):
raise NotImplementedError("Abstract class")
def get_camera_rotation(self, degrees = 0):
raise NotImplementedError("Abstract class")
def get_camera_offset(self, direction, distance, degrees):
raise NotImplementedError("Abstract class")
def get_depth_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_color_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_emission_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_normals_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_normal_map_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_flow_map_output(self, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_semantic_map_output(self, labels_path, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def get_pretty_semantic_map_output(self, labels_path, output_path, base_filename, nodes, links, compositor):
raise NotImplementedError("Abstract class")
def set_render_settings(self):
raise NotImplementedError("Abstract class")
| class Dataset(object):
def __init__(self, name=None):
self.name = name
def __str__(self):
return self.name
def get_instance_name(self, filepath, id):
raise not_implemented_error('Abstract class')
def import_model(self, filepath):
raise not_implemented_error('Abstract class')
def get_camera_position(self, filepath):
raise not_implemented_error('Abstract class')
def get_camera_position_generator(self, folder):
raise not_implemented_error('Abstract class')
def get_camera_rotation(self, degrees=0):
raise not_implemented_error('Abstract class')
def get_camera_offset(self, direction, distance, degrees):
raise not_implemented_error('Abstract class')
def get_depth_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_color_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_emission_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_normals_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_normal_map_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_flow_map_output(self, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_semantic_map_output(self, labels_path, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def get_pretty_semantic_map_output(self, labels_path, output_path, base_filename, nodes, links, compositor):
raise not_implemented_error('Abstract class')
def set_render_settings(self):
raise not_implemented_error('Abstract class') |
def isValid(s: str) -> bool:
open_to_close = {
'(': ')',
'{': '}',
'[': ']'
}
close_to_open = {v: k for k, v in open_to_close.items()}
stack = []
for i in s:
if i in open_to_close:
stack.append(i)
elif i in close_to_open:
if len(stack) <= 0:
return False
last_open = stack.pop()
if open_to_close[last_open] != i:
return False
return len(stack) == 0 | def is_valid(s: str) -> bool:
open_to_close = {'(': ')', '{': '}', '[': ']'}
close_to_open = {v: k for (k, v) in open_to_close.items()}
stack = []
for i in s:
if i in open_to_close:
stack.append(i)
elif i in close_to_open:
if len(stack) <= 0:
return False
last_open = stack.pop()
if open_to_close[last_open] != i:
return False
return len(stack) == 0 |
client_id = 'Ch8pNOBOAYzASwSmKClKZJKts8VnKDsj' # your bot's client ID
token = 'Mzc3MDU4MTc2MzUwMDI3Nzc3.DQ8csA.YRTHtBKENVulI8bk17-6gzGnScU' # your bot's token
carbon_key = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySUQiOiIyMjA5NTkxNzg3NzkyNjI5ODYiLCJyYW5kIjozOTksImlhdCI6MTUxMjkzNTQ5NH0.1Al7nXx5HmvA7Lyc_ddc6V_czVxvD5K7dxPdrW0D1yE' # your bot's key on carbon's site
bots_key = 'https://discordapp.com/oauth2/authorize?client_id=377058176350027777&scope=bot&permissions=268954750&response_type=code&redirect_uri=discord.gg' # your key on bots.discord.pw
postgresql = 'postgres://sflxeqaxuvrkro:d9df02d2b497e0f23c6663de06cbf5a17a7f1a867e7a9a6208484d292cb57f61@ec2-54-195-248-0.eu-west-1.compute.amazonaws.com:5432/d4a6dsf7p8cp8e' # your postgresql info from above
challonge_api_key = 'bU7HgqNbDQhVysppOgPp8zoRqGE82cWf2iM0Q2Ep' # for tournament cog
| client_id = 'Ch8pNOBOAYzASwSmKClKZJKts8VnKDsj'
token = 'Mzc3MDU4MTc2MzUwMDI3Nzc3.DQ8csA.YRTHtBKENVulI8bk17-6gzGnScU'
carbon_key = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySUQiOiIyMjA5NTkxNzg3NzkyNjI5ODYiLCJyYW5kIjozOTksImlhdCI6MTUxMjkzNTQ5NH0.1Al7nXx5HmvA7Lyc_ddc6V_czVxvD5K7dxPdrW0D1yE'
bots_key = 'https://discordapp.com/oauth2/authorize?client_id=377058176350027777&scope=bot&permissions=268954750&response_type=code&redirect_uri=discord.gg'
postgresql = 'postgres://sflxeqaxuvrkro:d9df02d2b497e0f23c6663de06cbf5a17a7f1a867e7a9a6208484d292cb57f61@ec2-54-195-248-0.eu-west-1.compute.amazonaws.com:5432/d4a6dsf7p8cp8e'
challonge_api_key = 'bU7HgqNbDQhVysppOgPp8zoRqGE82cWf2iM0Q2Ep' |
def generate_concept_HTML(concept_title, concept_description):
html_text_1 = '''
<div class="concept">
<div class="concept-title">
''' + concept_title
html_text_2 = '''
</div>
<div class="concept-description">
''' + concept_description
html_text_3 = '''
</div>
</div>'''
full_html_text = html_text_1 + html_text_2 + html_text_3
return full_html_text
def get_title(concept):
start_location = concept.find('TITLE:')
end_location = concept.find('DESCRIPTION:')
title = concept[start_location+7 : end_location-1]
return title
def get_description(concept):
start_location = concept.find('DESCRIPTION:')
description = concept[start_location+13 :]
return description
def get_concept_by_number(text, concept_number):
counter = 0
while counter < concept_number:
counter = counter + 1
next_concept_start = text.find('TITLE:')
next_concept_end = text.find('TITLE:', next_concept_start + 1)
if next_concept_end >= 0:
concept = text[next_concept_start:next_concept_end]
else:
next_concept_end = len(text)
concept = text[next_concept_start:]
text = text[next_concept_end:]
return concept
def generate_concept_HTML(concept_title, concept_description):
html_text_1 = '''
<div class="concept">
<div class="concept-title">
''' + concept_title
html_text_2 = '''
</div>
<div class="concept-description">
''' + concept_description
html_text_3 = '''
</div>
</div>'''
full_html_text = html_text_1 + html_text_2 + html_text_3
return full_html_text
def make_HTML(concept):
concept_title = concept[0]
concept_description = concept[1]
return generate_concept_HTML(concept_title, concept_description)
# This is an example.
EXAMPLE_LIST_OF_CONCEPTS = [ ['Python', 'Python is a Programming Language'],
['For Loop', 'For Loops allow you to iterate over lists'],
['Lists', 'Lists are sequences of data'] ]
# This is the function you will write.
def make_HTML_for_many_concepts(list_of_concepts):
for concept in list_of_concepts:
all_concepts = make_HTML(concept)
all_concepts = all_concepts + make_HTML(concept)
return all_concepts
| def generate_concept_html(concept_title, concept_description):
html_text_1 = '\n<div class="concept">\n <div class="concept-title">\n ' + concept_title
html_text_2 = '\n </div>\n <div class="concept-description">\n ' + concept_description
html_text_3 = '\n </div>\n</div>'
full_html_text = html_text_1 + html_text_2 + html_text_3
return full_html_text
def get_title(concept):
start_location = concept.find('TITLE:')
end_location = concept.find('DESCRIPTION:')
title = concept[start_location + 7:end_location - 1]
return title
def get_description(concept):
start_location = concept.find('DESCRIPTION:')
description = concept[start_location + 13:]
return description
def get_concept_by_number(text, concept_number):
counter = 0
while counter < concept_number:
counter = counter + 1
next_concept_start = text.find('TITLE:')
next_concept_end = text.find('TITLE:', next_concept_start + 1)
if next_concept_end >= 0:
concept = text[next_concept_start:next_concept_end]
else:
next_concept_end = len(text)
concept = text[next_concept_start:]
text = text[next_concept_end:]
return concept
def generate_concept_html(concept_title, concept_description):
html_text_1 = '\n<div class="concept">\n <div class="concept-title">\n ' + concept_title
html_text_2 = '\n </div>\n <div class="concept-description">\n ' + concept_description
html_text_3 = '\n </div>\n</div>'
full_html_text = html_text_1 + html_text_2 + html_text_3
return full_html_text
def make_html(concept):
concept_title = concept[0]
concept_description = concept[1]
return generate_concept_html(concept_title, concept_description)
example_list_of_concepts = [['Python', 'Python is a Programming Language'], ['For Loop', 'For Loops allow you to iterate over lists'], ['Lists', 'Lists are sequences of data']]
def make_html_for_many_concepts(list_of_concepts):
for concept in list_of_concepts:
all_concepts = make_html(concept)
all_concepts = all_concepts + make_html(concept)
return all_concepts |
nop = b'\x00\x00'
brk = b'\x00\xA0'
ld1 = b'\x63\x25' # Load 0x25 into register V3
ld2 = b'\x64\x26' # Load 0x26 into register V4
sne = b'\x93\x40' # Skip next instruction if V3 != V4
with open("snevxvytest.bin", 'wb') as f:
f.write(ld1) # 0x0200 <-- Load the byte 0x25 into register V3
f.write(ld2) # 0x0202 <-- Load the byte 0x25 into register V4
f.write(sne) # 0x0204 <-- Skip next instruction if V3 != V4
f.write(brk) # 0x0206 <-- If it worked, we should skip here. If it didn't, we'll break here.
f.write(nop) # 0x0208
f.write(nop) # 0x020A
f.write(brk) # 0x020C <-- If it worked, we should end up here after a few NOPs
f.write(nop) # 0x020E
| nop = b'\x00\x00'
brk = b'\x00\xa0'
ld1 = b'c%'
ld2 = b'd&'
sne = b'\x93@'
with open('snevxvytest.bin', 'wb') as f:
f.write(ld1)
f.write(ld2)
f.write(sne)
f.write(brk)
f.write(nop)
f.write(nop)
f.write(brk)
f.write(nop) |
'''
Python program to remove two duplicate numbers from a given number of list.
Sample Input:
([1,2,3,2,3,4,5])
([1,2,3,2,4,5])
([1,2,3,4,5])
Sample Output:
[1, 4, 5]
[1, 3, 4, 5]
[1, 2, 3, 4, 5]
'''
a = [10,20,30,20,10,50,60,40,80,50,40]
dup_items = set()
uniq_items = []
for x in a:
if x not in dup_items:
uniq_items.append(x)
dup_items.add(x)
print(dup_items)
| """
Python program to remove two duplicate numbers from a given number of list.
Sample Input:
([1,2,3,2,3,4,5])
([1,2,3,2,4,5])
([1,2,3,4,5])
Sample Output:
[1, 4, 5]
[1, 3, 4, 5]
[1, 2, 3, 4, 5]
"""
a = [10, 20, 30, 20, 10, 50, 60, 40, 80, 50, 40]
dup_items = set()
uniq_items = []
for x in a:
if x not in dup_items:
uniq_items.append(x)
dup_items.add(x)
print(dup_items) |
# optimal performance
def copy_random_list(head):
if not head: return head
# copy each node and insert right after itself
curr = head
while curr:
node_new = RandomListNode(curr.label)
node_next = curr.next
curr.next = node_new
node_new.next = node_next
curr = node_next
# copy random reference
curr = head
while curr:
if curr.random:
curr.next.random = curr.random.next
curr = curr.next.next
# separate out new list
curr = head
dummy = RandomListNode(0)
head_new = dummy
while curr:
node_new = curr.next
node_next = node_new.next
curr.next = node_next
head_new.next = node_new
curr = node_next
head_new = node_new
return dummy.next
# O(n) time, O(1) space
# similar to clone graph approach, not good enough in interview
def copy_random_list_mapping(head):
if not head: return head
mapping = {} # original node => copied node
curr = head
while curr:
mapping[curr] = RandomListNode(curr.label)
curr = curr.next
curr = head
while curr:
mapping[node].next = mapping[node.next]
mapping[node].random = mapping[node.random]
curr = curr.next
return mapping[head]
# O(n) time and space
| def copy_random_list(head):
if not head:
return head
curr = head
while curr:
node_new = random_list_node(curr.label)
node_next = curr.next
curr.next = node_new
node_new.next = node_next
curr = node_next
curr = head
while curr:
if curr.random:
curr.next.random = curr.random.next
curr = curr.next.next
curr = head
dummy = random_list_node(0)
head_new = dummy
while curr:
node_new = curr.next
node_next = node_new.next
curr.next = node_next
head_new.next = node_new
curr = node_next
head_new = node_new
return dummy.next
def copy_random_list_mapping(head):
if not head:
return head
mapping = {}
curr = head
while curr:
mapping[curr] = random_list_node(curr.label)
curr = curr.next
curr = head
while curr:
mapping[node].next = mapping[node.next]
mapping[node].random = mapping[node.random]
curr = curr.next
return mapping[head] |
class CoinPaymentsProviderError(Exception):
pass
class TxInfoException(Exception):
pass
| class Coinpaymentsprovidererror(Exception):
pass
class Txinfoexception(Exception):
pass |
current_number=0
while current_number <=5:
current_number +=1
print(current_number)
| current_number = 0
while current_number <= 5:
current_number += 1
print(current_number) |
def tree(length):
if length>5:
t.forward(length)
t.right(20)
tree(length-15)
t.left(40)
tree(length-15)
t.right(20)
t.backward(length)
t.left(90)
t.color("green")
t.speed(1)
tree(90)
| def tree(length):
if length > 5:
t.forward(length)
t.right(20)
tree(length - 15)
t.left(40)
tree(length - 15)
t.right(20)
t.backward(length)
t.left(90)
t.color('green')
t.speed(1)
tree(90) |
#!/usr/bin/env python
'''
https://leetcode.com/problems/find-the-duplicate-number/
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.
Input: [1,3,4,2,2]
Output: 2
Input: [3,1,3,4,2]
Output: 3
'''
def find_dup(ns):
if len(ns) <= 1:
return -1
slow, fast = ns[0], ns[ns[0]]
while slow != fast:
slow = ns[slow]
fast = ns[ns[fast]]
fast = 0
while fast != slow:
fast = ns[fast]
slow = ns[slow]
return slow
| """
https://leetcode.com/problems/find-the-duplicate-number/
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one.
Input: [1,3,4,2,2]
Output: 2
Input: [3,1,3,4,2]
Output: 3
"""
def find_dup(ns):
if len(ns) <= 1:
return -1
(slow, fast) = (ns[0], ns[ns[0]])
while slow != fast:
slow = ns[slow]
fast = ns[ns[fast]]
fast = 0
while fast != slow:
fast = ns[fast]
slow = ns[slow]
return slow |
cases = int(input())
for a in range(cases):
tracks = int(input().split(" ")[0])
requests = input().split(" ")
last = int(requests[0])
total = 0
for i in requests[1:]:
next = int(i)
total += min(tracks - ((next - last - 1) % tracks + tracks) % tracks, ((next - last - 1) % tracks + tracks) % tracks)
last = next
print(total) | cases = int(input())
for a in range(cases):
tracks = int(input().split(' ')[0])
requests = input().split(' ')
last = int(requests[0])
total = 0
for i in requests[1:]:
next = int(i)
total += min(tracks - ((next - last - 1) % tracks + tracks) % tracks, ((next - last - 1) % tracks + tracks) % tracks)
last = next
print(total) |
def alternating_sums(a):
even, odd = [], []
for i in range(len(a)):
if i % 2 == 0:
even.append(a[i])
else:
odd.append(a[i])
return [sum(even), sum(odd)]
def alternating_sums_short(a):
return [
sum(a[::2]), sum(a[1::2])
]
if __name__ == '__main__':
a = [50, 60, 60, 45, 70]
alternating_sums(a)
alternating_sums_short(a)
| def alternating_sums(a):
(even, odd) = ([], [])
for i in range(len(a)):
if i % 2 == 0:
even.append(a[i])
else:
odd.append(a[i])
return [sum(even), sum(odd)]
def alternating_sums_short(a):
return [sum(a[::2]), sum(a[1::2])]
if __name__ == '__main__':
a = [50, 60, 60, 45, 70]
alternating_sums(a)
alternating_sums_short(a) |
# [h] close all fonts
'''Close all open fonts.'''
all_fonts = AllFonts()
if len(all_fonts) > 0:
for font in all_fonts:
font.close() | """Close all open fonts."""
all_fonts = all_fonts()
if len(all_fonts) > 0:
for font in all_fonts:
font.close() |
def adder(a:int, b:int) -> int:
while b:
_xor = a ^ b
_and = (a & b) << 1
a = _xor
b = _and
return a
if __name__ == "__main__":
bin_digits = 8
for i in range(2 ** bin_digits):
for ii in range(2 ** bin_digits):
true = i + ii
test = adder(i, ii)
if true != test:
print(f"Adding: {i:b} + {ii:b}")
print(f"\tTrue: {true:b}")
print(f"\tTest: {test:b}") | def adder(a: int, b: int) -> int:
while b:
_xor = a ^ b
_and = (a & b) << 1
a = _xor
b = _and
return a
if __name__ == '__main__':
bin_digits = 8
for i in range(2 ** bin_digits):
for ii in range(2 ** bin_digits):
true = i + ii
test = adder(i, ii)
if true != test:
print(f'Adding: {i:b} + {ii:b}')
print(f'\tTrue: {true:b}')
print(f'\tTest: {test:b}') |
# calculate 10!
@profile
def factorial(num):
if num == 1:
return 1
else:
print("Calculating " + str(num) + "!")
return factorial(num -1) * num
@profile
def profiling_factorial():
value = 10
result = factorial(value)
print("10!= " + str(result))
if __name__ == "__main__":
profiling_factorial() | @profile
def factorial(num):
if num == 1:
return 1
else:
print('Calculating ' + str(num) + '!')
return factorial(num - 1) * num
@profile
def profiling_factorial():
value = 10
result = factorial(value)
print('10!= ' + str(result))
if __name__ == '__main__':
profiling_factorial() |
BZX = Contract.from_abi("BZX", "0xc47812857a74425e2039b57891a3dfcf51602d5d", interface.IBZx.abi)
TOKEN_REGISTRY = Contract.from_abi("TOKEN_REGISTRY", "0x2fA30fB75E08f5533f0CF8EBcbb1445277684E85", TokenRegistry.abi)
list = TOKEN_REGISTRY.getTokens(0, 100)
for l in list:
iTokenTemp = Contract.from_abi("iTokenTemp", l[0], LoanTokenLogicStandard.abi)
globals()[iTokenTemp.symbol()] = iTokenTemp
underlyingTemp = Contract.from_abi("underlyingTemp", l[1], TestToken.abi)
globals()[underlyingTemp.symbol()] = underlyingTemp
CHI = Contract.from_abi("CHI", "0x0000000000004946c0e9F43F4Dee607b0eF1fA1c", TestToken.abi)
CHEF = Contract.from_abi("CHEF", "0x1FDCA2422668B961E162A8849dc0C2feaDb58915", MasterChef_BSC.abi)
HELPER = Contract.from_abi("HELPER", "0xE05999ACcb887D32c9bd186e8C9dfE0e1E7814dE", HelperImpl.abi)
BGOV = Contract.from_abi("PGOV", "0xf8E026dC4C0860771f691EcFFBbdfe2fa51c77CF", GovToken.abi)
CHEF = Contract.from_abi("CHEF", CHEF.address, interface.IMasterChef.abi)
SWEEP_FEES = Contract.from_abi("STAKING", "0x5c9b515f05a0E2a9B14C171E2675dDc1655D9A1c", FeeExtractAndDistribute_BSC.abi)
| bzx = Contract.from_abi('BZX', '0xc47812857a74425e2039b57891a3dfcf51602d5d', interface.IBZx.abi)
token_registry = Contract.from_abi('TOKEN_REGISTRY', '0x2fA30fB75E08f5533f0CF8EBcbb1445277684E85', TokenRegistry.abi)
list = TOKEN_REGISTRY.getTokens(0, 100)
for l in list:
i_token_temp = Contract.from_abi('iTokenTemp', l[0], LoanTokenLogicStandard.abi)
globals()[iTokenTemp.symbol()] = iTokenTemp
underlying_temp = Contract.from_abi('underlyingTemp', l[1], TestToken.abi)
globals()[underlyingTemp.symbol()] = underlyingTemp
chi = Contract.from_abi('CHI', '0x0000000000004946c0e9F43F4Dee607b0eF1fA1c', TestToken.abi)
chef = Contract.from_abi('CHEF', '0x1FDCA2422668B961E162A8849dc0C2feaDb58915', MasterChef_BSC.abi)
helper = Contract.from_abi('HELPER', '0xE05999ACcb887D32c9bd186e8C9dfE0e1E7814dE', HelperImpl.abi)
bgov = Contract.from_abi('PGOV', '0xf8E026dC4C0860771f691EcFFBbdfe2fa51c77CF', GovToken.abi)
chef = Contract.from_abi('CHEF', CHEF.address, interface.IMasterChef.abi)
sweep_fees = Contract.from_abi('STAKING', '0x5c9b515f05a0E2a9B14C171E2675dDc1655D9A1c', FeeExtractAndDistribute_BSC.abi) |
lowestPossible = 1
highestPossible = 999
num = 0
while True:
enemy = hero.findNearest(hero.findEnemies())
if enemy:
if enemy.type == "scout":
lowestPossible = num
elif enemy.type == "munchkin":
highestPossible = num
hero.attack(enemy)
else:
num = lowestPossible + Math.ceil((highestPossible - lowestPossible) / 2);
hero.say(num)
| lowest_possible = 1
highest_possible = 999
num = 0
while True:
enemy = hero.findNearest(hero.findEnemies())
if enemy:
if enemy.type == 'scout':
lowest_possible = num
elif enemy.type == 'munchkin':
highest_possible = num
hero.attack(enemy)
else:
num = lowestPossible + Math.ceil((highestPossible - lowestPossible) / 2)
hero.say(num) |
#!/usr/bin/env python
# coding: utf-8
# Utility functions
def get_image_size(model_prefix):
if 'caffenet' in model_prefix:
return 227
elif 'squeezenet' in model_prefix:
return 227
elif 'alexnet' in model_prefix:
return 227
elif 'googlenet' in model_prefix:
return 299
elif 'inception-v3' in model_prefix:
return 299
elif 'inception-v4' in model_prefix:
return 299
elif 'inception-resnet-v2' in model_prefix:
return 299
else:
return 224
| def get_image_size(model_prefix):
if 'caffenet' in model_prefix:
return 227
elif 'squeezenet' in model_prefix:
return 227
elif 'alexnet' in model_prefix:
return 227
elif 'googlenet' in model_prefix:
return 299
elif 'inception-v3' in model_prefix:
return 299
elif 'inception-v4' in model_prefix:
return 299
elif 'inception-resnet-v2' in model_prefix:
return 299
else:
return 224 |
# variable = a container for a value.
# Behaves as the value that it contains
first_name = "Bro"
last_name = "Code"
full_name = first_name +" "+ last_name
#name='Bro'
print("Hello "+full_name)
#print(type(name))
age = 21
age += 1
print("Your age is: "+str(age))
#print(age)
#print(type(age))
height = 250.5
print("Your height is: "+str(height)+"cm")
#print(height)
#print(type(height))
human = True
print("Are you a human: "+str(human))
#print(human)
#print(type(human)) | first_name = 'Bro'
last_name = 'Code'
full_name = first_name + ' ' + last_name
print('Hello ' + full_name)
age = 21
age += 1
print('Your age is: ' + str(age))
height = 250.5
print('Your height is: ' + str(height) + 'cm')
human = True
print('Are you a human: ' + str(human)) |
#!/usr/bin/python
# Any system should have an sh capable of `command -v`
# REQUIRES: command -v sh
print("Oh, but it is!")
# CHECK: This should never be compared
| print('Oh, but it is!') |
class Solution:
def intToRoman(self, num):
symbols_list = [
["M", "M", "M"],
["C", "D", "M"],
["X", "L", "C"],
["I", "V", "X"]
]
pown_list = [1000, 100, 10, 1]
def digitToRoman(digit, symbols):
if digit < 4:
return symbols[0] * digit
elif digit == 4:
return symbols[0] + symbols[1]
elif digit < 9:
return symbols[1] + (symbols[0] * (digit - 5))
else:
return symbols[0] + symbols[2]
buffer = ""
for pown, symbols in zip(pown_list, symbols_list):
buffer += digitToRoman(num // pown, symbols)
num %= pown
return buffer
def test():
sol = Solution()
cases = [3, 4, 5, 9, 58, 1994]
for case in cases:
print(case)
print(sol.intToRoman(case))
if __name__ == '__main__':
test()
| class Solution:
def int_to_roman(self, num):
symbols_list = [['M', 'M', 'M'], ['C', 'D', 'M'], ['X', 'L', 'C'], ['I', 'V', 'X']]
pown_list = [1000, 100, 10, 1]
def digit_to_roman(digit, symbols):
if digit < 4:
return symbols[0] * digit
elif digit == 4:
return symbols[0] + symbols[1]
elif digit < 9:
return symbols[1] + symbols[0] * (digit - 5)
else:
return symbols[0] + symbols[2]
buffer = ''
for (pown, symbols) in zip(pown_list, symbols_list):
buffer += digit_to_roman(num // pown, symbols)
num %= pown
return buffer
def test():
sol = solution()
cases = [3, 4, 5, 9, 58, 1994]
for case in cases:
print(case)
print(sol.intToRoman(case))
if __name__ == '__main__':
test() |
CLUSTERS_DB = 'complete_clusters.db'
SAMPLE2PROTEIN_DB = 'sample2protein.db'
SAMPLE2PATH = 'sample2path.tsv'
| clusters_db = 'complete_clusters.db'
sample2_protein_db = 'sample2protein.db'
sample2_path = 'sample2path.tsv' |
def funny(x):
if (x%2 == 1):
return x+1
else:
return funny(x-1)
print(funny(7))
print(funny(6))
| def funny(x):
if x % 2 == 1:
return x + 1
else:
return funny(x - 1)
print(funny(7))
print(funny(6)) |
class TweetComplaint:
def __init__(self, complain_text, city, state, tweet_id, username, image_url):
self.complain_text = complain_text
self.tweet_id = tweet_id
self.username = username
self.city = city
self.state = state
self.image_url = image_url
self.status = "reported"
def __str__(self):
return self.complain_text +'\n'+ str(self.tweet_id) +'\n'+ self.username +'\n'+ self.city +'\n'+ self.state +'\n'+ self.image_url
def to_dict(self):
return {'category': '', 'city': self.city, 'state': self.state, 'image_url': self.image_url,
'status': self.status, 'text': self.complain_text, 'tweet_id': self.tweet_id, 'username': self.username} | class Tweetcomplaint:
def __init__(self, complain_text, city, state, tweet_id, username, image_url):
self.complain_text = complain_text
self.tweet_id = tweet_id
self.username = username
self.city = city
self.state = state
self.image_url = image_url
self.status = 'reported'
def __str__(self):
return self.complain_text + '\n' + str(self.tweet_id) + '\n' + self.username + '\n' + self.city + '\n' + self.state + '\n' + self.image_url
def to_dict(self):
return {'category': '', 'city': self.city, 'state': self.state, 'image_url': self.image_url, 'status': self.status, 'text': self.complain_text, 'tweet_id': self.tweet_id, 'username': self.username} |
class Solution:
def rob(self, num):
ls = [[0, 0]]
for e in num:
ls.append([max(ls[-1][0], ls[-1][1]), ls[-1][0] + e])
return max(ls[-1])
| class Solution:
def rob(self, num):
ls = [[0, 0]]
for e in num:
ls.append([max(ls[-1][0], ls[-1][1]), ls[-1][0] + e])
return max(ls[-1]) |
# -*- coding: utf-8 -*-
__version__ = '0.16.1.dev0'
PROJECT_NAME = "planemo"
PROJECT_USERAME = "galaxyproject"
RAW_CONTENT_URL = "https://raw.github.com/%s/%s/master/" % (
PROJECT_USERAME, PROJECT_NAME
)
| __version__ = '0.16.1.dev0'
project_name = 'planemo'
project_userame = 'galaxyproject'
raw_content_url = 'https://raw.github.com/%s/%s/master/' % (PROJECT_USERAME, PROJECT_NAME) |
spec = {
'name' : "ODL demo",
'external network name' : "exnet3",
'keypair' : "X220",
'controller' : "r720",
'dns' : "10.30.65.200",
'credentials' : { 'user' : "nic", 'password' : "nic", 'project' : "nic" },
# 'credentials' : { 'user' : "admin", 'password' : "admin", 'project' : "admin" },
# NOTE: network start/end range -
# a) must not include the gateway IP
# b) when assigning host IPs remember taht a DHCP server will be allocated from the range as well as the hosts
# Probably on the first or second available IP in the range....
'Networks' : [
{ 'name' : "odldemo" , "start": "192.168.50.2", "end": "192.168.50.254", "subnet" :" 192.168.50.0/24", "gateway": "192.168.50.1" },
{ 'name' : "odldemo2" , "start": "192.168.111.2", "end": "192.168.111.254", "subnet" :" 192.168.111.0/24", "gateway": "192.168.111.1" },
{ 'name' : "odldemo3" , "start": "172.16.0.2", "end": "172.16.0.254", "subnet" :" 172.16.0.0/24", "gateway": "172.16.0.1" },
],
# Hint: list explicity required external IPs first to avoid them being claimed by hosts that don't care...
'Hosts' : [
{ 'name' : "devstack-control" , 'image' : "trusty64" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.20", "devstack-control"), ("odldemo2" , "192.168.111.10"), ("odldemo3" , "172.16.0.10") ] },
{ 'name' : "devstack-compute-1" , 'image' : "trusty64" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.21","devstack-compute-1"), ("odldemo2" , "192.168.111.11"), ("odldemo3" , "172.16.0.11") ] },
# { 'name' : "devstack-compute-2" , 'image' : "trusty64" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.22") ] },
# { 'name' : "devstack-compute-3" , 'image' : "trusty64" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.23") ] },
{ 'name' : "kilo-controller" , 'image' : "Centos7" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.60", "kilo-controller"), ("odldemo2" , "192.168.111.50"), ("odldemo3" , "172.16.0.50") ] },
{ 'name' : "kilo-compute-1" , 'image' : "Centos7" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.61", "kilo-compute-1"), ("odldemo2" , "192.168.111.51"), ("odldemo3" , "172.16.0.51") ] },
{ 'name' : "kilo-compute-2" , 'image' : "Centos7" , 'flavor':"m1.xlarge" , 'net' : [ ("odldemo" , "192.168.50.62", "kilo-compute-2"), ("odldemo2" , "192.168.111.52"), ("odldemo3" , "172.16.0.52") ] },
]
}
| spec = {'name': 'ODL demo', 'external network name': 'exnet3', 'keypair': 'X220', 'controller': 'r720', 'dns': '10.30.65.200', 'credentials': {'user': 'nic', 'password': 'nic', 'project': 'nic'}, 'Networks': [{'name': 'odldemo', 'start': '192.168.50.2', 'end': '192.168.50.254', 'subnet': ' 192.168.50.0/24', 'gateway': '192.168.50.1'}, {'name': 'odldemo2', 'start': '192.168.111.2', 'end': '192.168.111.254', 'subnet': ' 192.168.111.0/24', 'gateway': '192.168.111.1'}, {'name': 'odldemo3', 'start': '172.16.0.2', 'end': '172.16.0.254', 'subnet': ' 172.16.0.0/24', 'gateway': '172.16.0.1'}], 'Hosts': [{'name': 'devstack-control', 'image': 'trusty64', 'flavor': 'm1.xlarge', 'net': [('odldemo', '192.168.50.20', 'devstack-control'), ('odldemo2', '192.168.111.10'), ('odldemo3', '172.16.0.10')]}, {'name': 'devstack-compute-1', 'image': 'trusty64', 'flavor': 'm1.xlarge', 'net': [('odldemo', '192.168.50.21', 'devstack-compute-1'), ('odldemo2', '192.168.111.11'), ('odldemo3', '172.16.0.11')]}, {'name': 'kilo-controller', 'image': 'Centos7', 'flavor': 'm1.xlarge', 'net': [('odldemo', '192.168.50.60', 'kilo-controller'), ('odldemo2', '192.168.111.50'), ('odldemo3', '172.16.0.50')]}, {'name': 'kilo-compute-1', 'image': 'Centos7', 'flavor': 'm1.xlarge', 'net': [('odldemo', '192.168.50.61', 'kilo-compute-1'), ('odldemo2', '192.168.111.51'), ('odldemo3', '172.16.0.51')]}, {'name': 'kilo-compute-2', 'image': 'Centos7', 'flavor': 'm1.xlarge', 'net': [('odldemo', '192.168.50.62', 'kilo-compute-2'), ('odldemo2', '192.168.111.52'), ('odldemo3', '172.16.0.52')]}]} |
#encoding:utf-8
subreddit = 'kratom'
t_channel = '@r_kratom'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| subreddit = 'kratom'
t_channel = '@r_kratom'
def send_post(submission, r2t):
return r2t.send_simple(submission) |
n = 5
count = 0
total = 0
startCount = n - 3
while True:
if count == n:
break
elif count < n:
x = int(input())
if count > startCount:
total = total + x
count = count + 1
print('')
print('Sum is %d.' % total)
| n = 5
count = 0
total = 0
start_count = n - 3
while True:
if count == n:
break
elif count < n:
x = int(input())
if count > startCount:
total = total + x
count = count + 1
print('')
print('Sum is %d.' % total) |
JPEG_10918 = (
'SOF0', 'SOF1', 'SOF2', 'SOF3', 'SOF5',
'SOF6', 'SOF7', 'SOF9', 'SOF10',
'SOF11', 'SOF13', 'SOF14', 'SOF15',
)
JPEG_14495 = ('SOF55', 'LSE', )
JPEG_15444 = ('SOC', )
PARSE_SUPPORTED = {
'10918' : [
'Process 1',
'Process 2',
'Process 4',
'Process 14',
]
}
DECODE_SUPPORTED = {}
ENCODE_SUPPORTED = {}
ZIGZAG = [ 0, 1, 5, 6, 14, 15, 27, 28,
2, 4, 7, 13, 16, 26, 29, 42,
3, 8, 12, 17, 25, 30, 41, 43,
9, 11, 18, 24, 31, 40, 44, 53,
10, 19, 23, 32, 39, 45, 52, 54,
20, 22, 33, 38, 46, 51, 55, 60,
21, 34, 37, 47, 50, 56, 59, 61,
35, 36, 48, 49, 57, 58, 62, 63]
| jpeg_10918 = ('SOF0', 'SOF1', 'SOF2', 'SOF3', 'SOF5', 'SOF6', 'SOF7', 'SOF9', 'SOF10', 'SOF11', 'SOF13', 'SOF14', 'SOF15')
jpeg_14495 = ('SOF55', 'LSE')
jpeg_15444 = ('SOC',)
parse_supported = {'10918': ['Process 1', 'Process 2', 'Process 4', 'Process 14']}
decode_supported = {}
encode_supported = {}
zigzag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63] |
class Solution:
def numberOfArithmeticSlices(self, A: List[int]) -> int:
count, currentSum = 0, 0
for i in range(2, len(A)):
if A[i] - A[i - 1] == A[i - 1] - A[i - 2]:
count += 1
else:
currentSum += ((count + 1) * count) // 2
count = 0
currentSum += ((count + 1) * count) // 2
return currentSum | class Solution:
def number_of_arithmetic_slices(self, A: List[int]) -> int:
(count, current_sum) = (0, 0)
for i in range(2, len(A)):
if A[i] - A[i - 1] == A[i - 1] - A[i - 2]:
count += 1
else:
current_sum += (count + 1) * count // 2
count = 0
current_sum += (count + 1) * count // 2
return currentSum |
app_name = 'tulius.profile'
urlpatterns = [
]
| app_name = 'tulius.profile'
urlpatterns = [] |
#
# PySNMP MIB module CISCO-WBX-MEETING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WBX-MEETING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:04:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Counter64, NotificationType, IpAddress, Integer32, Counter32, Gauge32, MibIdentifier, ModuleIdentity, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "NotificationType", "IpAddress", "Integer32", "Counter32", "Gauge32", "MibIdentifier", "ModuleIdentity", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "iso", "ObjectIdentity")
AutonomousType, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "AutonomousType", "TextualConvention", "DisplayString")
ciscoWebExMeetingMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809))
ciscoWebExMeetingMIB.setRevisions(('2013-05-29 00:00',))
if mibBuilder.loadTexts: ciscoWebExMeetingMIB.setLastUpdated('201305290000Z')
if mibBuilder.loadTexts: ciscoWebExMeetingMIB.setOrganization('Cisco Systems Inc.')
ciscoWebExMeetingMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 0))
ciscoWebExMeetingMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1))
ciscoWebExMeetingMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2))
class CiscoWebExCommSysResource(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))
namedValues = NamedValues(("cpu", 0), ("memory", 1), ("swap", 2), ("fileDescriptor", 3), ("disk", 4))
class CiscoWebExCommSysResMonitoringStatus(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1))
namedValues = NamedValues(("closed", 0), ("open", 1))
ciscoWebExCommInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1))
ciscoWebExCommSystemResource = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2))
cwCommSystemVersion = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommSystemVersion.setStatus('current')
cwCommSystemObjectID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1, 2), AutonomousType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommSystemObjectID.setStatus('current')
cwCommCPUUsageObject = ObjectIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1))
if mibBuilder.loadTexts: cwCommCPUUsageObject.setStatus('current')
cwCommCPUTotalUsage = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUTotalUsage.setStatus('current')
cwCommCPUUsageWindow = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 2), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60))).setUnits('Minute').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cwCommCPUUsageWindow.setStatus('current')
cwCommCPUTotalNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUTotalNumber.setStatus('current')
cwCommCPUUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4), )
if mibBuilder.loadTexts: cwCommCPUUsageTable.setStatus('current')
cwCommCPUUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1), ).setIndexNames((0, "CISCO-WBX-MEETING-MIB", "cwCommCPUIndex"))
if mibBuilder.loadTexts: cwCommCPUUsageEntry.setStatus('current')
cwCommCPUIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128)))
if mibBuilder.loadTexts: cwCommCPUIndex.setStatus('current')
cwCommCPUName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUName.setStatus('current')
cwCommCPUUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsage.setStatus('current')
cwCommCPUUsageUser = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 4), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageUser.setStatus('current')
cwCommCPUUsageNice = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 5), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageNice.setStatus('current')
cwCommCPUUsageSystem = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 6), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageSystem.setStatus('current')
cwCommCPUUsageIdle = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 7), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageIdle.setStatus('current')
cwCommCPUUsageIOWait = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 8), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageIOWait.setStatus('current')
cwCommCPUUsageIRQ = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 9), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageIRQ.setStatus('current')
cwCommCPUUsageSoftIRQ = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 10), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageSoftIRQ.setStatus('current')
cwCommCPUUsageSteal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 11), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageSteal.setStatus('current')
cwCommCPUUsageCapacitySubTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 12), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUUsageCapacitySubTotal.setStatus('current')
cwCommCPUMonitoringStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 5), CiscoWebExCommSysResMonitoringStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUMonitoringStatus.setStatus('current')
cwCommCPUCapacityTotal = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 6), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KHz').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommCPUCapacityTotal.setStatus('current')
cwCommMEMUsageObject = ObjectIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2))
if mibBuilder.loadTexts: cwCommMEMUsageObject.setStatus('current')
cwCommMEMUsage = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommMEMUsage.setStatus('current')
cwCommMEMMonitoringStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 2), CiscoWebExCommSysResMonitoringStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommMEMMonitoringStatus.setStatus('current')
cwCommMEMTotal = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 3), Gauge32()).setUnits('MBytes').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommMEMTotal.setStatus('current')
cwCommMEMSwapUsageObject = ObjectIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3))
if mibBuilder.loadTexts: cwCommMEMSwapUsageObject.setStatus('current')
cwCommMEMSwapUsage = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommMEMSwapUsage.setStatus('current')
cwCommMEMSwapMonitoringStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3, 2), CiscoWebExCommSysResMonitoringStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommMEMSwapMonitoringStatus.setStatus('current')
cwCommSysResourceNotificationObject = ObjectIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4))
if mibBuilder.loadTexts: cwCommSysResourceNotificationObject.setStatus('current')
cwCommNotificationHostAddressType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 1), InetAddressType()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: cwCommNotificationHostAddressType.setStatus('current')
cwCommNotificationHostAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 2), InetAddress()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: cwCommNotificationHostAddress.setStatus('current')
cwCommNotificationResName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 3), CiscoWebExCommSysResource()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: cwCommNotificationResName.setStatus('current')
cwCommNotificationResValue = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 4), Unsigned32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: cwCommNotificationResValue.setStatus('current')
cwCommNotificationSeqNum = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 5), Counter32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: cwCommNotificationSeqNum.setStatus('current')
cwCommDiskUsageObject = ObjectIdentity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5))
if mibBuilder.loadTexts: cwCommDiskUsageObject.setStatus('current')
cwCommDiskUsageCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommDiskUsageCount.setStatus('current')
cwCommDiskUsageTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2), )
if mibBuilder.loadTexts: cwCommDiskUsageTable.setStatus('current')
cwCommDiskUsageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1), ).setIndexNames((0, "CISCO-WBX-MEETING-MIB", "cwCommDiskUsageIndex"))
if mibBuilder.loadTexts: cwCommDiskUsageEntry.setStatus('current')
cwCommDiskUsageIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 128)))
if mibBuilder.loadTexts: cwCommDiskUsageIndex.setStatus('current')
cwCommDiskPartitionName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommDiskPartitionName.setStatus('current')
cwCommDiskUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommDiskUsage.setStatus('current')
cwCommDiskTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 4), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setUnits('KB').setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommDiskTotal.setStatus('current')
cwCommDiskMonitoringStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 3), CiscoWebExCommSysResMonitoringStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cwCommDiskMonitoringStatus.setStatus('current')
cwCommSystemResourceUsageNormalEvent = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 1)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddressType"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddress"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResName"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResValue"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationSeqNum"))
if mibBuilder.loadTexts: cwCommSystemResourceUsageNormalEvent.setStatus('current')
cwCommSystemResourceUsageMinorEvent = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 2)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddressType"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddress"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResName"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResValue"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationSeqNum"))
if mibBuilder.loadTexts: cwCommSystemResourceUsageMinorEvent.setStatus('current')
cwCommSystemResourceUsageMajorEvent = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 3)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddressType"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddress"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResName"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResValue"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationSeqNum"))
if mibBuilder.loadTexts: cwCommSystemResourceUsageMajorEvent.setStatus('current')
cwCommMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 1))
cwCommMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 1, 1)).setObjects(("CISCO-WBX-MEETING-MIB", "ciscoWebExCommInfoGroup"), ("CISCO-WBX-MEETING-MIB", "ciscoWebExCommSystemResourceGroup"), ("CISCO-WBX-MEETING-MIB", "ciscoWebExMeetingMIBNotifsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cwCommMIBCompliance = cwCommMIBCompliance.setStatus('current')
cwCommMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2))
ciscoWebExCommInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 1)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommSystemVersion"), ("CISCO-WBX-MEETING-MIB", "cwCommSystemObjectID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoWebExCommInfoGroup = ciscoWebExCommInfoGroup.setStatus('current')
ciscoWebExCommSystemResourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 2)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommCPUTotalUsage"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageWindow"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUTotalNumber"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUName"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsage"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUMonitoringStatus"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageUser"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageNice"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageSystem"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageIdle"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageIOWait"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageIRQ"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageSoftIRQ"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageSteal"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUUsageCapacitySubTotal"), ("CISCO-WBX-MEETING-MIB", "cwCommCPUCapacityTotal"), ("CISCO-WBX-MEETING-MIB", "cwCommMEMUsage"), ("CISCO-WBX-MEETING-MIB", "cwCommMEMMonitoringStatus"), ("CISCO-WBX-MEETING-MIB", "cwCommMEMSwapUsage"), ("CISCO-WBX-MEETING-MIB", "cwCommMEMSwapMonitoringStatus"), ("CISCO-WBX-MEETING-MIB", "cwCommMEMTotal"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddressType"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationHostAddress"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResName"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationResValue"), ("CISCO-WBX-MEETING-MIB", "cwCommNotificationSeqNum"), ("CISCO-WBX-MEETING-MIB", "cwCommDiskUsageCount"), ("CISCO-WBX-MEETING-MIB", "cwCommDiskPartitionName"), ("CISCO-WBX-MEETING-MIB", "cwCommDiskUsage"), ("CISCO-WBX-MEETING-MIB", "cwCommDiskTotal"), ("CISCO-WBX-MEETING-MIB", "cwCommDiskMonitoringStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoWebExCommSystemResourceGroup = ciscoWebExCommSystemResourceGroup.setStatus('current')
ciscoWebExMeetingMIBNotifsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 3)).setObjects(("CISCO-WBX-MEETING-MIB", "cwCommSystemResourceUsageNormalEvent"), ("CISCO-WBX-MEETING-MIB", "cwCommSystemResourceUsageMinorEvent"), ("CISCO-WBX-MEETING-MIB", "cwCommSystemResourceUsageMajorEvent"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoWebExMeetingMIBNotifsGroup = ciscoWebExMeetingMIBNotifsGroup.setStatus('current')
mibBuilder.exportSymbols("CISCO-WBX-MEETING-MIB", CiscoWebExCommSysResource=CiscoWebExCommSysResource, cwCommMEMUsage=cwCommMEMUsage, ciscoWebExCommInfo=ciscoWebExCommInfo, cwCommCPUUsageIRQ=cwCommCPUUsageIRQ, cwCommCPUUsageCapacitySubTotal=cwCommCPUUsageCapacitySubTotal, cwCommNotificationHostAddressType=cwCommNotificationHostAddressType, CiscoWebExCommSysResMonitoringStatus=CiscoWebExCommSysResMonitoringStatus, cwCommSystemResourceUsageNormalEvent=cwCommSystemResourceUsageNormalEvent, cwCommCPUUsageNice=cwCommCPUUsageNice, ciscoWebExMeetingMIBNotifs=ciscoWebExMeetingMIBNotifs, cwCommNotificationResValue=cwCommNotificationResValue, cwCommCPUUsageUser=cwCommCPUUsageUser, cwCommSystemVersion=cwCommSystemVersion, cwCommDiskPartitionName=cwCommDiskPartitionName, cwCommMEMMonitoringStatus=cwCommMEMMonitoringStatus, cwCommCPUUsageIdle=cwCommCPUUsageIdle, cwCommMIBCompliances=cwCommMIBCompliances, cwCommDiskUsageCount=cwCommDiskUsageCount, cwCommCPUCapacityTotal=cwCommCPUCapacityTotal, cwCommMIBGroups=cwCommMIBGroups, cwCommMEMTotal=cwCommMEMTotal, cwCommMEMSwapUsage=cwCommMEMSwapUsage, cwCommSystemResourceUsageMinorEvent=cwCommSystemResourceUsageMinorEvent, cwCommDiskMonitoringStatus=cwCommDiskMonitoringStatus, cwCommMEMSwapUsageObject=cwCommMEMSwapUsageObject, cwCommSystemObjectID=cwCommSystemObjectID, cwCommCPUUsageSystem=cwCommCPUUsageSystem, cwCommCPUUsageWindow=cwCommCPUUsageWindow, cwCommCPUIndex=cwCommCPUIndex, cwCommSystemResourceUsageMajorEvent=cwCommSystemResourceUsageMajorEvent, cwCommCPUUsageSoftIRQ=cwCommCPUUsageSoftIRQ, cwCommDiskUsageTable=cwCommDiskUsageTable, cwCommCPUUsageObject=cwCommCPUUsageObject, cwCommCPUUsageEntry=cwCommCPUUsageEntry, ciscoWebExMeetingMIB=ciscoWebExMeetingMIB, cwCommMEMUsageObject=cwCommMEMUsageObject, cwCommNotificationHostAddress=cwCommNotificationHostAddress, cwCommNotificationResName=cwCommNotificationResName, ciscoWebExMeetingMIBNotifsGroup=ciscoWebExMeetingMIBNotifsGroup, cwCommDiskTotal=cwCommDiskTotal, ciscoWebExCommSystemResourceGroup=ciscoWebExCommSystemResourceGroup, cwCommDiskUsageIndex=cwCommDiskUsageIndex, cwCommDiskUsage=cwCommDiskUsage, ciscoWebExCommSystemResource=ciscoWebExCommSystemResource, cwCommMEMSwapMonitoringStatus=cwCommMEMSwapMonitoringStatus, cwCommCPUMonitoringStatus=cwCommCPUMonitoringStatus, cwCommDiskUsageEntry=cwCommDiskUsageEntry, ciscoWebExMeetingMIBConform=ciscoWebExMeetingMIBConform, cwCommSysResourceNotificationObject=cwCommSysResourceNotificationObject, cwCommCPUTotalNumber=cwCommCPUTotalNumber, cwCommCPUUsageTable=cwCommCPUUsageTable, cwCommCPUUsageIOWait=cwCommCPUUsageIOWait, cwCommMIBCompliance=cwCommMIBCompliance, ciscoWebExCommInfoGroup=ciscoWebExCommInfoGroup, cwCommDiskUsageObject=cwCommDiskUsageObject, cwCommCPUUsageSteal=cwCommCPUUsageSteal, ciscoWebExMeetingMIBObjects=ciscoWebExMeetingMIBObjects, PYSNMP_MODULE_ID=ciscoWebExMeetingMIB, cwCommCPUUsage=cwCommCPUUsage, cwCommNotificationSeqNum=cwCommNotificationSeqNum, cwCommCPUTotalUsage=cwCommCPUTotalUsage, cwCommCPUName=cwCommCPUName)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, value_size_constraint, single_value_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(counter64, notification_type, ip_address, integer32, counter32, gauge32, mib_identifier, module_identity, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, time_ticks, iso, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'NotificationType', 'IpAddress', 'Integer32', 'Counter32', 'Gauge32', 'MibIdentifier', 'ModuleIdentity', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'TimeTicks', 'iso', 'ObjectIdentity')
(autonomous_type, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'AutonomousType', 'TextualConvention', 'DisplayString')
cisco_web_ex_meeting_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 809))
ciscoWebExMeetingMIB.setRevisions(('2013-05-29 00:00',))
if mibBuilder.loadTexts:
ciscoWebExMeetingMIB.setLastUpdated('201305290000Z')
if mibBuilder.loadTexts:
ciscoWebExMeetingMIB.setOrganization('Cisco Systems Inc.')
cisco_web_ex_meeting_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 0))
cisco_web_ex_meeting_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1))
cisco_web_ex_meeting_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2))
class Ciscowebexcommsysresource(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4))
named_values = named_values(('cpu', 0), ('memory', 1), ('swap', 2), ('fileDescriptor', 3), ('disk', 4))
class Ciscowebexcommsysresmonitoringstatus(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1))
named_values = named_values(('closed', 0), ('open', 1))
cisco_web_ex_comm_info = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1))
cisco_web_ex_comm_system_resource = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2))
cw_comm_system_version = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommSystemVersion.setStatus('current')
cw_comm_system_object_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 1, 2), autonomous_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommSystemObjectID.setStatus('current')
cw_comm_cpu_usage_object = object_identity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1))
if mibBuilder.loadTexts:
cwCommCPUUsageObject.setStatus('current')
cw_comm_cpu_total_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUTotalUsage.setStatus('current')
cw_comm_cpu_usage_window = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 2), gauge32().subtype(subtypeSpec=value_range_constraint(1, 60))).setUnits('Minute').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cwCommCPUUsageWindow.setStatus('current')
cw_comm_cpu_total_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUTotalNumber.setStatus('current')
cw_comm_cpu_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4))
if mibBuilder.loadTexts:
cwCommCPUUsageTable.setStatus('current')
cw_comm_cpu_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1)).setIndexNames((0, 'CISCO-WBX-MEETING-MIB', 'cwCommCPUIndex'))
if mibBuilder.loadTexts:
cwCommCPUUsageEntry.setStatus('current')
cw_comm_cpu_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128)))
if mibBuilder.loadTexts:
cwCommCPUIndex.setStatus('current')
cw_comm_cpu_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUName.setStatus('current')
cw_comm_cpu_usage = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsage.setStatus('current')
cw_comm_cpu_usage_user = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 4), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageUser.setStatus('current')
cw_comm_cpu_usage_nice = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 5), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageNice.setStatus('current')
cw_comm_cpu_usage_system = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 6), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageSystem.setStatus('current')
cw_comm_cpu_usage_idle = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 7), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageIdle.setStatus('current')
cw_comm_cpu_usage_io_wait = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 8), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageIOWait.setStatus('current')
cw_comm_cpu_usage_irq = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 9), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageIRQ.setStatus('current')
cw_comm_cpu_usage_soft_irq = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 10), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageSoftIRQ.setStatus('current')
cw_comm_cpu_usage_steal = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 11), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageSteal.setStatus('current')
cw_comm_cpu_usage_capacity_sub_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 4, 1, 12), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUUsageCapacitySubTotal.setStatus('current')
cw_comm_cpu_monitoring_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 5), cisco_web_ex_comm_sys_res_monitoring_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUMonitoringStatus.setStatus('current')
cw_comm_cpu_capacity_total = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 1, 6), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KHz').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommCPUCapacityTotal.setStatus('current')
cw_comm_mem_usage_object = object_identity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2))
if mibBuilder.loadTexts:
cwCommMEMUsageObject.setStatus('current')
cw_comm_mem_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommMEMUsage.setStatus('current')
cw_comm_mem_monitoring_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 2), cisco_web_ex_comm_sys_res_monitoring_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommMEMMonitoringStatus.setStatus('current')
cw_comm_mem_total = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 2, 3), gauge32()).setUnits('MBytes').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommMEMTotal.setStatus('current')
cw_comm_mem_swap_usage_object = object_identity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3))
if mibBuilder.loadTexts:
cwCommMEMSwapUsageObject.setStatus('current')
cw_comm_mem_swap_usage = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommMEMSwapUsage.setStatus('current')
cw_comm_mem_swap_monitoring_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 3, 2), cisco_web_ex_comm_sys_res_monitoring_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommMEMSwapMonitoringStatus.setStatus('current')
cw_comm_sys_resource_notification_object = object_identity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4))
if mibBuilder.loadTexts:
cwCommSysResourceNotificationObject.setStatus('current')
cw_comm_notification_host_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 1), inet_address_type()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
cwCommNotificationHostAddressType.setStatus('current')
cw_comm_notification_host_address = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 2), inet_address()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
cwCommNotificationHostAddress.setStatus('current')
cw_comm_notification_res_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 3), cisco_web_ex_comm_sys_resource()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
cwCommNotificationResName.setStatus('current')
cw_comm_notification_res_value = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 4), unsigned32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
cwCommNotificationResValue.setStatus('current')
cw_comm_notification_seq_num = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 4, 5), counter32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
cwCommNotificationSeqNum.setStatus('current')
cw_comm_disk_usage_object = object_identity((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5))
if mibBuilder.loadTexts:
cwCommDiskUsageObject.setStatus('current')
cw_comm_disk_usage_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommDiskUsageCount.setStatus('current')
cw_comm_disk_usage_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2))
if mibBuilder.loadTexts:
cwCommDiskUsageTable.setStatus('current')
cw_comm_disk_usage_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1)).setIndexNames((0, 'CISCO-WBX-MEETING-MIB', 'cwCommDiskUsageIndex'))
if mibBuilder.loadTexts:
cwCommDiskUsageEntry.setStatus('current')
cw_comm_disk_usage_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 128)))
if mibBuilder.loadTexts:
cwCommDiskUsageIndex.setStatus('current')
cw_comm_disk_partition_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommDiskPartitionName.setStatus('current')
cw_comm_disk_usage = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommDiskUsage.setStatus('current')
cw_comm_disk_total = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 2, 1, 4), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setUnits('KB').setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommDiskTotal.setStatus('current')
cw_comm_disk_monitoring_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 809, 1, 2, 5, 3), cisco_web_ex_comm_sys_res_monitoring_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cwCommDiskMonitoringStatus.setStatus('current')
cw_comm_system_resource_usage_normal_event = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 1)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddressType'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddress'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResName'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResValue'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationSeqNum'))
if mibBuilder.loadTexts:
cwCommSystemResourceUsageNormalEvent.setStatus('current')
cw_comm_system_resource_usage_minor_event = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 2)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddressType'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddress'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResName'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResValue'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationSeqNum'))
if mibBuilder.loadTexts:
cwCommSystemResourceUsageMinorEvent.setStatus('current')
cw_comm_system_resource_usage_major_event = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 809, 0, 3)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddressType'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddress'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResName'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResValue'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationSeqNum'))
if mibBuilder.loadTexts:
cwCommSystemResourceUsageMajorEvent.setStatus('current')
cw_comm_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 1))
cw_comm_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 1, 1)).setObjects(('CISCO-WBX-MEETING-MIB', 'ciscoWebExCommInfoGroup'), ('CISCO-WBX-MEETING-MIB', 'ciscoWebExCommSystemResourceGroup'), ('CISCO-WBX-MEETING-MIB', 'ciscoWebExMeetingMIBNotifsGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cw_comm_mib_compliance = cwCommMIBCompliance.setStatus('current')
cw_comm_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2))
cisco_web_ex_comm_info_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 1)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommSystemVersion'), ('CISCO-WBX-MEETING-MIB', 'cwCommSystemObjectID'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_web_ex_comm_info_group = ciscoWebExCommInfoGroup.setStatus('current')
cisco_web_ex_comm_system_resource_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 2)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommCPUTotalUsage'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageWindow'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUTotalNumber'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUName'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsage'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUMonitoringStatus'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageUser'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageNice'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageSystem'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageIdle'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageIOWait'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageIRQ'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageSoftIRQ'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageSteal'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUUsageCapacitySubTotal'), ('CISCO-WBX-MEETING-MIB', 'cwCommCPUCapacityTotal'), ('CISCO-WBX-MEETING-MIB', 'cwCommMEMUsage'), ('CISCO-WBX-MEETING-MIB', 'cwCommMEMMonitoringStatus'), ('CISCO-WBX-MEETING-MIB', 'cwCommMEMSwapUsage'), ('CISCO-WBX-MEETING-MIB', 'cwCommMEMSwapMonitoringStatus'), ('CISCO-WBX-MEETING-MIB', 'cwCommMEMTotal'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddressType'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationHostAddress'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResName'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationResValue'), ('CISCO-WBX-MEETING-MIB', 'cwCommNotificationSeqNum'), ('CISCO-WBX-MEETING-MIB', 'cwCommDiskUsageCount'), ('CISCO-WBX-MEETING-MIB', 'cwCommDiskPartitionName'), ('CISCO-WBX-MEETING-MIB', 'cwCommDiskUsage'), ('CISCO-WBX-MEETING-MIB', 'cwCommDiskTotal'), ('CISCO-WBX-MEETING-MIB', 'cwCommDiskMonitoringStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_web_ex_comm_system_resource_group = ciscoWebExCommSystemResourceGroup.setStatus('current')
cisco_web_ex_meeting_mib_notifs_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 809, 2, 2, 3)).setObjects(('CISCO-WBX-MEETING-MIB', 'cwCommSystemResourceUsageNormalEvent'), ('CISCO-WBX-MEETING-MIB', 'cwCommSystemResourceUsageMinorEvent'), ('CISCO-WBX-MEETING-MIB', 'cwCommSystemResourceUsageMajorEvent'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_web_ex_meeting_mib_notifs_group = ciscoWebExMeetingMIBNotifsGroup.setStatus('current')
mibBuilder.exportSymbols('CISCO-WBX-MEETING-MIB', CiscoWebExCommSysResource=CiscoWebExCommSysResource, cwCommMEMUsage=cwCommMEMUsage, ciscoWebExCommInfo=ciscoWebExCommInfo, cwCommCPUUsageIRQ=cwCommCPUUsageIRQ, cwCommCPUUsageCapacitySubTotal=cwCommCPUUsageCapacitySubTotal, cwCommNotificationHostAddressType=cwCommNotificationHostAddressType, CiscoWebExCommSysResMonitoringStatus=CiscoWebExCommSysResMonitoringStatus, cwCommSystemResourceUsageNormalEvent=cwCommSystemResourceUsageNormalEvent, cwCommCPUUsageNice=cwCommCPUUsageNice, ciscoWebExMeetingMIBNotifs=ciscoWebExMeetingMIBNotifs, cwCommNotificationResValue=cwCommNotificationResValue, cwCommCPUUsageUser=cwCommCPUUsageUser, cwCommSystemVersion=cwCommSystemVersion, cwCommDiskPartitionName=cwCommDiskPartitionName, cwCommMEMMonitoringStatus=cwCommMEMMonitoringStatus, cwCommCPUUsageIdle=cwCommCPUUsageIdle, cwCommMIBCompliances=cwCommMIBCompliances, cwCommDiskUsageCount=cwCommDiskUsageCount, cwCommCPUCapacityTotal=cwCommCPUCapacityTotal, cwCommMIBGroups=cwCommMIBGroups, cwCommMEMTotal=cwCommMEMTotal, cwCommMEMSwapUsage=cwCommMEMSwapUsage, cwCommSystemResourceUsageMinorEvent=cwCommSystemResourceUsageMinorEvent, cwCommDiskMonitoringStatus=cwCommDiskMonitoringStatus, cwCommMEMSwapUsageObject=cwCommMEMSwapUsageObject, cwCommSystemObjectID=cwCommSystemObjectID, cwCommCPUUsageSystem=cwCommCPUUsageSystem, cwCommCPUUsageWindow=cwCommCPUUsageWindow, cwCommCPUIndex=cwCommCPUIndex, cwCommSystemResourceUsageMajorEvent=cwCommSystemResourceUsageMajorEvent, cwCommCPUUsageSoftIRQ=cwCommCPUUsageSoftIRQ, cwCommDiskUsageTable=cwCommDiskUsageTable, cwCommCPUUsageObject=cwCommCPUUsageObject, cwCommCPUUsageEntry=cwCommCPUUsageEntry, ciscoWebExMeetingMIB=ciscoWebExMeetingMIB, cwCommMEMUsageObject=cwCommMEMUsageObject, cwCommNotificationHostAddress=cwCommNotificationHostAddress, cwCommNotificationResName=cwCommNotificationResName, ciscoWebExMeetingMIBNotifsGroup=ciscoWebExMeetingMIBNotifsGroup, cwCommDiskTotal=cwCommDiskTotal, ciscoWebExCommSystemResourceGroup=ciscoWebExCommSystemResourceGroup, cwCommDiskUsageIndex=cwCommDiskUsageIndex, cwCommDiskUsage=cwCommDiskUsage, ciscoWebExCommSystemResource=ciscoWebExCommSystemResource, cwCommMEMSwapMonitoringStatus=cwCommMEMSwapMonitoringStatus, cwCommCPUMonitoringStatus=cwCommCPUMonitoringStatus, cwCommDiskUsageEntry=cwCommDiskUsageEntry, ciscoWebExMeetingMIBConform=ciscoWebExMeetingMIBConform, cwCommSysResourceNotificationObject=cwCommSysResourceNotificationObject, cwCommCPUTotalNumber=cwCommCPUTotalNumber, cwCommCPUUsageTable=cwCommCPUUsageTable, cwCommCPUUsageIOWait=cwCommCPUUsageIOWait, cwCommMIBCompliance=cwCommMIBCompliance, ciscoWebExCommInfoGroup=ciscoWebExCommInfoGroup, cwCommDiskUsageObject=cwCommDiskUsageObject, cwCommCPUUsageSteal=cwCommCPUUsageSteal, ciscoWebExMeetingMIBObjects=ciscoWebExMeetingMIBObjects, PYSNMP_MODULE_ID=ciscoWebExMeetingMIB, cwCommCPUUsage=cwCommCPUUsage, cwCommNotificationSeqNum=cwCommNotificationSeqNum, cwCommCPUTotalUsage=cwCommCPUTotalUsage, cwCommCPUName=cwCommCPUName) |
# Column/Label Types
NULL = 'null'
CATEGORICAL = 'categorical'
TEXT = 'text'
NUMERICAL = 'numerical'
ENTITY = 'entity'
# Feature Types
ARRAY = 'array'
# backend
PYTORCH = "pytorch"
MXNET = "mxnet"
| null = 'null'
categorical = 'categorical'
text = 'text'
numerical = 'numerical'
entity = 'entity'
array = 'array'
pytorch = 'pytorch'
mxnet = 'mxnet' |
def main():
a,b,c,k = map(int,input().split())
ans = 0
ans += min(a, k)
ans -= max(0, k-a-b)
print(ans)
if __name__ == "__main__":
main() | def main():
(a, b, c, k) = map(int, input().split())
ans = 0
ans += min(a, k)
ans -= max(0, k - a - b)
print(ans)
if __name__ == '__main__':
main() |
def main():
# equilibrate then isolate cold finger
info('Equilibrate then isolate coldfinger')
close(name="C", description="Bone to Turbo")
sleep(1)
open(name="B", description="Bone to Diode Laser")
sleep(20)
close(name="B", description="Bone to Diode Laser")
| def main():
info('Equilibrate then isolate coldfinger')
close(name='C', description='Bone to Turbo')
sleep(1)
open(name='B', description='Bone to Diode Laser')
sleep(20)
close(name='B', description='Bone to Diode Laser') |
class AmrTypes:
dbpedia = {
"person": "dbo:Person",
"family": "dbo:Agent",
"animal": "dbo:Animal",
"language": "dbo:Language",
"nationality": "dbo:Country",
"ethnic-group": "dbo:EthnicGroup",
"regional-group": "dbo:EthnicGroup",
"religious-group": "dbo:Religious",
"political-movement": "dbo:PoliticalParty",
"organization": "dbo:Organisation",
"company": "dbo:Company",
"government-organization": "dbo:Organisation",
"military": "dbo:MilitaryPerson",
"criminal-organization": "dbo:Criminal",
"political-party": "dbo:PoliticalParty",
"market-sector": "owl:Thing",
"school": "dbo:School",
"university": "dbo:University",
"research-institute": "dbo:EducationalInstitution",
"team": "dbo:SportsTeam",
"league": "dbo:SportsSeason",
"location": "dbo:Place",
"city": "dbo:City",
"city-district": "dbo:AdministrativeRegion",
"county": "dbo:AdministrativeRegion",
"state": "dbo:AdministrativeRegion",
"province": "dbo:AdministrativeRegion",
"territory": "dbo:Place",
"country": "dbo:Country",
"local-region": "dbo:AdministrativeRegion",
"country-region": "dbo:AdministrativeRegion",
"world-region": "dbo:AdministrativeRegion",
"continent": "dbo:Continent",
"ocean": "dbo:BodyOfWater",
"sea": "dbo:Sea",
"lake": "dbo:Lake",
"river": "dbo:River",
"gulf": "dbo:NaturalPlace",
"bay": "dbo:NaturalPlace",
"strait": "owl:Thing",
"peninsula": "dbo:Place",
"mountain": "dbo:Mountain",
"volcano": "dbo:Volcano",
"valley": "dbo:Valley",
"canyon": "dbo:Place",
"island": "dbo:Island",
"desert": "dbo:NaturalPlace",
"forest": "dbo:NaturalPlace",
"moon": "dbo:Planet",
"planet": "dbo:Planet",
"star": "dbo:Star",
"constellation": "dbo:Constellation",
"facility": "dbo:Building",
"airport": "dbo:Airport",
"station": "dbo:Station",
"port": "dbo:Place",
"tunnel": "dbo:Tunnel",
"bridge": "dbo:Bridge",
"road": "dbo:Road",
"railway-line": "dbo:RailwayStation",
"canal": "dbo:Canal",
"building": "dbo:Building",
"theater": "dbo:Theatre",
"museum": "dbo:Museum",
"palace": "dbo:Building",
"hotel": "dbo:Hotel",
"worship-place": "dbo:Building",
"sports-facility": "dbo:Stadium",
"market": "dbo:Place",
"park": "dbo:Park",
"zoo": "dbo:Park",
"amusement-park": "dbo:AmusementParkAttraction",
"event": "dbo:Event",
"incident": "dbo:Event",
"natural-disaster": "dbo:NaturalEvent",
"earthquake": "dbo:NaturalEvent",
"war": "dbo:MilitaryConflict",
"conference": "dbo:Event",
"game": "dbo:Game",
"festival": "dbo:Festival",
"product": "owl:Thing",
"vehicle": "dbo:MeanOfTransportation",
"ship": "dbo:Ship",
"aircraft": "dbo:Aircraft",
"aircraft-type": "dbo:Aircraft",
"spaceship": "dbo:Spacecraft",
"car-make": "dbo:Automobile",
"work-of-art": "dbo:Work",
"picture": "dbo:Work",
"music": "dbo:MusicalWork",
"show": "dbo:TelevisionEpisode",
"broadcast-program": "dbo:TelevisionEpisode",
"publication": "dbo:WrittenWork",
"book": "dbo:Book",
"newspaper": "dbo:Newspaper",
"magazine": "dbo:Magazine",
"journal": "dbo:WrittenWork",
"natural-object": "owl:Thing",
"award": "dbo:Award",
"law": "owl:Thing",
"court-decision": "owl:Thing",
"treaty": "owl:Thing",
"music-key": "dbo:MusicalWork",
"musical-note": "dbo:MusicalWork",
"food-dish": "dbo:Food",
"writing-script": "dbo:Work",
"variable": "owl:Thing",
"program": "owl:Thing",
"molecular-physical-entity"
"small-molecule": "owl:Thing",
"protein": "dbo:Protein",
"protein-family": "dbo:Protein",
"protein-segment": "dbo:Protein",
"amino-acid": "owl:Thing",
"macro-molecular-complex": "owl:Thing",
"enzyme": "dbo:Enzyme",
"nucleic-acid": "owl:Thing",
"pathway": "owl:Thing",
"gene": "dbo:Gene",
"dna-sequence": "owl:Thing",
"cell": "owl:Thing",
"cell-line": "owl:Thing",
"species": "dbo:Species",
"taxon": "owl:Thing",
"disease": "dbo:Disease",
"medical-condition": "owl:Thing"
} | class Amrtypes:
dbpedia = {'person': 'dbo:Person', 'family': 'dbo:Agent', 'animal': 'dbo:Animal', 'language': 'dbo:Language', 'nationality': 'dbo:Country', 'ethnic-group': 'dbo:EthnicGroup', 'regional-group': 'dbo:EthnicGroup', 'religious-group': 'dbo:Religious', 'political-movement': 'dbo:PoliticalParty', 'organization': 'dbo:Organisation', 'company': 'dbo:Company', 'government-organization': 'dbo:Organisation', 'military': 'dbo:MilitaryPerson', 'criminal-organization': 'dbo:Criminal', 'political-party': 'dbo:PoliticalParty', 'market-sector': 'owl:Thing', 'school': 'dbo:School', 'university': 'dbo:University', 'research-institute': 'dbo:EducationalInstitution', 'team': 'dbo:SportsTeam', 'league': 'dbo:SportsSeason', 'location': 'dbo:Place', 'city': 'dbo:City', 'city-district': 'dbo:AdministrativeRegion', 'county': 'dbo:AdministrativeRegion', 'state': 'dbo:AdministrativeRegion', 'province': 'dbo:AdministrativeRegion', 'territory': 'dbo:Place', 'country': 'dbo:Country', 'local-region': 'dbo:AdministrativeRegion', 'country-region': 'dbo:AdministrativeRegion', 'world-region': 'dbo:AdministrativeRegion', 'continent': 'dbo:Continent', 'ocean': 'dbo:BodyOfWater', 'sea': 'dbo:Sea', 'lake': 'dbo:Lake', 'river': 'dbo:River', 'gulf': 'dbo:NaturalPlace', 'bay': 'dbo:NaturalPlace', 'strait': 'owl:Thing', 'peninsula': 'dbo:Place', 'mountain': 'dbo:Mountain', 'volcano': 'dbo:Volcano', 'valley': 'dbo:Valley', 'canyon': 'dbo:Place', 'island': 'dbo:Island', 'desert': 'dbo:NaturalPlace', 'forest': 'dbo:NaturalPlace', 'moon': 'dbo:Planet', 'planet': 'dbo:Planet', 'star': 'dbo:Star', 'constellation': 'dbo:Constellation', 'facility': 'dbo:Building', 'airport': 'dbo:Airport', 'station': 'dbo:Station', 'port': 'dbo:Place', 'tunnel': 'dbo:Tunnel', 'bridge': 'dbo:Bridge', 'road': 'dbo:Road', 'railway-line': 'dbo:RailwayStation', 'canal': 'dbo:Canal', 'building': 'dbo:Building', 'theater': 'dbo:Theatre', 'museum': 'dbo:Museum', 'palace': 'dbo:Building', 'hotel': 'dbo:Hotel', 'worship-place': 'dbo:Building', 'sports-facility': 'dbo:Stadium', 'market': 'dbo:Place', 'park': 'dbo:Park', 'zoo': 'dbo:Park', 'amusement-park': 'dbo:AmusementParkAttraction', 'event': 'dbo:Event', 'incident': 'dbo:Event', 'natural-disaster': 'dbo:NaturalEvent', 'earthquake': 'dbo:NaturalEvent', 'war': 'dbo:MilitaryConflict', 'conference': 'dbo:Event', 'game': 'dbo:Game', 'festival': 'dbo:Festival', 'product': 'owl:Thing', 'vehicle': 'dbo:MeanOfTransportation', 'ship': 'dbo:Ship', 'aircraft': 'dbo:Aircraft', 'aircraft-type': 'dbo:Aircraft', 'spaceship': 'dbo:Spacecraft', 'car-make': 'dbo:Automobile', 'work-of-art': 'dbo:Work', 'picture': 'dbo:Work', 'music': 'dbo:MusicalWork', 'show': 'dbo:TelevisionEpisode', 'broadcast-program': 'dbo:TelevisionEpisode', 'publication': 'dbo:WrittenWork', 'book': 'dbo:Book', 'newspaper': 'dbo:Newspaper', 'magazine': 'dbo:Magazine', 'journal': 'dbo:WrittenWork', 'natural-object': 'owl:Thing', 'award': 'dbo:Award', 'law': 'owl:Thing', 'court-decision': 'owl:Thing', 'treaty': 'owl:Thing', 'music-key': 'dbo:MusicalWork', 'musical-note': 'dbo:MusicalWork', 'food-dish': 'dbo:Food', 'writing-script': 'dbo:Work', 'variable': 'owl:Thing', 'program': 'owl:Thing', 'molecular-physical-entitysmall-molecule': 'owl:Thing', 'protein': 'dbo:Protein', 'protein-family': 'dbo:Protein', 'protein-segment': 'dbo:Protein', 'amino-acid': 'owl:Thing', 'macro-molecular-complex': 'owl:Thing', 'enzyme': 'dbo:Enzyme', 'nucleic-acid': 'owl:Thing', 'pathway': 'owl:Thing', 'gene': 'dbo:Gene', 'dna-sequence': 'owl:Thing', 'cell': 'owl:Thing', 'cell-line': 'owl:Thing', 'species': 'dbo:Species', 'taxon': 'owl:Thing', 'disease': 'dbo:Disease', 'medical-condition': 'owl:Thing'} |
students = []
def get_students_titlecase():
students_titlecase = []
for student in students:
students_titlecase.append(student['name'].title())
return students_titlecase
def print_students_titlecase():
print(get_students_titlecase())
def add_student(name, student_id = 332):
student = {'name': name, 'student_id': student_id}
students.append(student)
def save_file(student):
try:
f = open('student.txt','a')
f.write(student + '\n')
f.close()
except Exception:
print('could not save file')
def read_file():
try:
f = open('student.txt', 'r')
for student in f.readlines():
add_student(student)
f.close()
except Exception:
print('Could not read file')
read_file()
print_students_titlecase()
student_name = input('enter student name: ')
student_id = input('enter student id: ')
add_student(student_name, student_id)
save_file(student_name) | students = []
def get_students_titlecase():
students_titlecase = []
for student in students:
students_titlecase.append(student['name'].title())
return students_titlecase
def print_students_titlecase():
print(get_students_titlecase())
def add_student(name, student_id=332):
student = {'name': name, 'student_id': student_id}
students.append(student)
def save_file(student):
try:
f = open('student.txt', 'a')
f.write(student + '\n')
f.close()
except Exception:
print('could not save file')
def read_file():
try:
f = open('student.txt', 'r')
for student in f.readlines():
add_student(student)
f.close()
except Exception:
print('Could not read file')
read_file()
print_students_titlecase()
student_name = input('enter student name: ')
student_id = input('enter student id: ')
add_student(student_name, student_id)
save_file(student_name) |
class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
return num_islands(grid)
def num_islands(grid):
res = 0
R = len(grid)
C = len(grid[0])
def dfs(i, j):
if grid[i][j] == '1':
grid[i][j] = '0'
if i > 0:
dfs(i - 1, j)
if i < R - 1:
dfs(i + 1, j)
if j > 0:
dfs(i, j - 1)
if j < C - 1:
dfs(i, j + 1)
for i in range(R):
for j in range(C):
if grid[i][j] == '1':
res += 1
dfs(i, j)
return res
| class Solution:
def num_islands(self, grid: List[List[str]]) -> int:
return num_islands(grid)
def num_islands(grid):
res = 0
r = len(grid)
c = len(grid[0])
def dfs(i, j):
if grid[i][j] == '1':
grid[i][j] = '0'
if i > 0:
dfs(i - 1, j)
if i < R - 1:
dfs(i + 1, j)
if j > 0:
dfs(i, j - 1)
if j < C - 1:
dfs(i, j + 1)
for i in range(R):
for j in range(C):
if grid[i][j] == '1':
res += 1
dfs(i, j)
return res |
sample_rate = 16000
audio_duration = 10
audio_samples = sample_rate * audio_duration
audio_duration_flusense = 1
audio_samples_flusense = sample_rate * audio_duration_flusense
window_size = 512
overlap = 256
mel_bins = 64
device = 'cuda'
num_epochs = 30
gamma = 0.4
patience = 4
step = 10
random_seed = 36851234
split_ratio = 0.2
classes_num = 2
classes_num_flusense = 9
exclude = ['burp', 'vomit', 'hiccup', 'snore', 'wheeze']
valid_labels = ['cough', 'speech', 'etc', 'silence', 'sneeze', 'gasp', 'breathe', 'sniffle', 'throat-clearing']
flusense_weights = [63.38, 2.45, 1.0, 47.78, 13.49, 27.89, 24.93, 0.91, 128.05]
| sample_rate = 16000
audio_duration = 10
audio_samples = sample_rate * audio_duration
audio_duration_flusense = 1
audio_samples_flusense = sample_rate * audio_duration_flusense
window_size = 512
overlap = 256
mel_bins = 64
device = 'cuda'
num_epochs = 30
gamma = 0.4
patience = 4
step = 10
random_seed = 36851234
split_ratio = 0.2
classes_num = 2
classes_num_flusense = 9
exclude = ['burp', 'vomit', 'hiccup', 'snore', 'wheeze']
valid_labels = ['cough', 'speech', 'etc', 'silence', 'sneeze', 'gasp', 'breathe', 'sniffle', 'throat-clearing']
flusense_weights = [63.38, 2.45, 1.0, 47.78, 13.49, 27.89, 24.93, 0.91, 128.05] |
def minion_game(string):
# your code goes here
vowels = frozenset('AEIOU')
length = len(string)
kev_sc = 0
stu_sc = 0
for i in range(length):
if string[i] in vowels:
kev_sc += length - i
else:
stu_sc += length - i
if kev_sc > stu_sc:
print('Kevin', kev_sc)
elif kev_sc < stu_sc:
print('Stuart', stu_sc)
else:
print('Draw')
if __name__ == '__main__':
s = input()
minion_game(s)
| def minion_game(string):
vowels = frozenset('AEIOU')
length = len(string)
kev_sc = 0
stu_sc = 0
for i in range(length):
if string[i] in vowels:
kev_sc += length - i
else:
stu_sc += length - i
if kev_sc > stu_sc:
print('Kevin', kev_sc)
elif kev_sc < stu_sc:
print('Stuart', stu_sc)
else:
print('Draw')
if __name__ == '__main__':
s = input()
minion_game(s) |
class Message:
def __init__(self, to_channel):
self.to_channel = to_channel
self.timestamp = ""
self.text = ""
self.blocks = []
self.is_completed = False
def get_message(self):
return {
"ts": self.timestamp,
"channel": self.to_channel,
"text": self.text,
"blocks": self.blocks,
}
| class Message:
def __init__(self, to_channel):
self.to_channel = to_channel
self.timestamp = ''
self.text = ''
self.blocks = []
self.is_completed = False
def get_message(self):
return {'ts': self.timestamp, 'channel': self.to_channel, 'text': self.text, 'blocks': self.blocks} |
productions = {
(52, 1): [1,25,47,53,49 ],
(53, 2): [54, 57,59,62,64],
(53, 3): [54,57,59,62,64],
(53, 4): [54,57,59,62,64],
(53, 5): [54,57,59,62,64],
(53, 6): [54,57,59,62,64],
(54, 2): [2,55,47],
(54, 3): [0],
(54, 4): [0],
(54, 5): [0],
(54, 6): [0],
(55, 25): [25,56],
(56, 39): [0],
(56, 46): [46,25,56],
(56, 47): [0],
(57, 3): [3,25,40,26,47,58],
(57, 4): [0],
(57, 5): [0],
(57, 6): [0],
(58, 4): [0],
(58, 5): [0],
(58, 6): [0],
(58, 25): [25,40,26,47,58],
(59, 4): [4,55,39,61,47,60],
(59, 5): [0],
(59, 6): [0],
(60, 5): [0],
(60, 6): [0],
(60, 25): [55,39,61,47,60],
(61, 8): [8],
(61, 9): [9,34,26,50,26,35,10,8],
(62, 5): [5,25,63,47,53,47,62],
(62, 6): [0],
(63, 36): [36,55,39,8,37],
(63, 39): [0],
(64, 6): [6,66,65,7],
(65, 7): [0],
(65, 47): [47,66,65],
(66, 6): [64],
(66, 7): [0],
(66, 11): [11,25,69],
(66, 12): [12,25 ],
(66, 13): [13,77,14,66,71],
(66, 15): [0],
(66, 16): [16,77,17,66],
(66, 18): [18,66,19,77],
(66, 19): [0],
(66, 20): [20,36,72,74,37],
(66, 21): [21,36,75,76,37],
(66, 25): [25,67],
(66, 27): [27,25,38,77,28,77,17,66],
(66, 29): [29,77,10,84,7 ],
(66, 47): [0],
(67, 34): [68,38,77],
(67, 38): [68,38,77],
(67, 39): [39,66],
(68, 34): [34,77,35],
(68, 38): [0],
(69, 7): [0],
(69, 15): [0],
(69, 19): [0],
(69, 36): [36,77,70,37],
(69, 47): [0],
(70, 37): [0],
(70, 46): [46,77,70 ],
(71, 7): [0],
(71, 15): [15,66],
(71, 19): [0],
(71, 47): [0],
(72, 25): [25,73],
(73, 7): [0],
(73, 10): [0],
(73, 14): [0],
(73, 15): [0],
(73, 17): [0],
(73, 19): [0],
(73, 22): [0],
(73, 23): [0],
(73, 28): [0],
(73, 30): [0],
(73, 31): [0],
(73, 32): [0],
(73, 33): [0],
(73, 34): [34,77,35],
(73, 35): [0],
(73, 37): [0],
(73, 40): [0],
(73, 41): [0],
(73, 42): [0],
(73, 43): [0],
(73, 44): [0],
(73, 45): [0],
(73, 46): [0],
(73, 47): [0],
(74, 37): [0],
(74, 46): [46,72,74],
(75, 24): [77],
(75, 25): [77],
(75, 26): [77],
(75, 30): [77],
(75, 31): [77],
(75, 36): [77],
(75, 48): [48],
(76, 37): [0],
(76, 46): [46,75,76],
(77, 24): [79,78 ],
(77, 25): [79,78 ],
(77, 26): [79,78 ],
(77, 30): [79,78 ],
(77, 31): [79,78 ],
(77, 36): [79,78 ],
(78, 7): [0],
(78, 10): [0],
(78, 14): [0],
(78, 15): [0],
(78, 17): [0],
(78, 19): [0],
(78, 28): [0],
(78, 35): [0],
(78, 37): [0],
(78, 40): [40,79],
(78, 41): [41,79],
(78, 42): [42,79],
(78, 43): [43,79],
(78, 44): [44,79 ],
(78, 45): [45,79],
(78, 46): [0],
(78, 47): [0],
(79, 24): [81,80],
(79, 25): [81,80],
(79, 26): [81,80],
(79, 30): [30,81,80],
(79, 31): [31,81,80],
(79, 36): [81,80],
(80, 7): [0],
(80, 10): [0],
(80, 14): [0],
(80, 15): [0],
(80, 17): [0],
(80, 19): [0],
(80, 22): [22,81,80],
(80, 28): [0],
(80, 30): [30,81,80],
(80, 31): [31,81,80],
(80, 35): [0],
(80, 37): [0],
(80, 40): [0],
(80, 41): [0],
(80, 42): [0],
(80, 43): [0],
(80, 44): [0],
(80, 45): [0],
(80, 46): [0],
(80, 47): [0],
(81, 24): [83,82 ],
(81, 25): [83,82 ],
(81, 26): [83,82 ],
(81, 36): [83,82 ],
(82, 7): [0],
(82, 10): [0],
(82, 14): [0],
(82, 15): [0],
(82, 17): [0],
(82, 19): [0],
(82, 22): [0],
(82, 23): [23,83,82],
(82, 28): [0],
(82, 30): [0],
(82, 31): [0],
(82, 32): [32,83,82],
(82, 33): [33,83,82],
(82, 35): [0],
(82, 37): [0],
(82, 40): [0],
(82, 41): [0],
(82, 42): [0],
(82, 43): [0],
(82, 44): [0],
(82, 45): [0],
(82, 46): [0],
(82, 47): [0],
(83, 24): [24,83],
(83, 25): [72],
(83, 26): [26],
(83, 36): [36,77,37],
(84, 26): [26,86,39,66,85],
(85, 7): [0],
(85, 47): [47,84],
(86, 39): [0],
(86, 46): [46,26,86]
} | productions = {(52, 1): [1, 25, 47, 53, 49], (53, 2): [54, 57, 59, 62, 64], (53, 3): [54, 57, 59, 62, 64], (53, 4): [54, 57, 59, 62, 64], (53, 5): [54, 57, 59, 62, 64], (53, 6): [54, 57, 59, 62, 64], (54, 2): [2, 55, 47], (54, 3): [0], (54, 4): [0], (54, 5): [0], (54, 6): [0], (55, 25): [25, 56], (56, 39): [0], (56, 46): [46, 25, 56], (56, 47): [0], (57, 3): [3, 25, 40, 26, 47, 58], (57, 4): [0], (57, 5): [0], (57, 6): [0], (58, 4): [0], (58, 5): [0], (58, 6): [0], (58, 25): [25, 40, 26, 47, 58], (59, 4): [4, 55, 39, 61, 47, 60], (59, 5): [0], (59, 6): [0], (60, 5): [0], (60, 6): [0], (60, 25): [55, 39, 61, 47, 60], (61, 8): [8], (61, 9): [9, 34, 26, 50, 26, 35, 10, 8], (62, 5): [5, 25, 63, 47, 53, 47, 62], (62, 6): [0], (63, 36): [36, 55, 39, 8, 37], (63, 39): [0], (64, 6): [6, 66, 65, 7], (65, 7): [0], (65, 47): [47, 66, 65], (66, 6): [64], (66, 7): [0], (66, 11): [11, 25, 69], (66, 12): [12, 25], (66, 13): [13, 77, 14, 66, 71], (66, 15): [0], (66, 16): [16, 77, 17, 66], (66, 18): [18, 66, 19, 77], (66, 19): [0], (66, 20): [20, 36, 72, 74, 37], (66, 21): [21, 36, 75, 76, 37], (66, 25): [25, 67], (66, 27): [27, 25, 38, 77, 28, 77, 17, 66], (66, 29): [29, 77, 10, 84, 7], (66, 47): [0], (67, 34): [68, 38, 77], (67, 38): [68, 38, 77], (67, 39): [39, 66], (68, 34): [34, 77, 35], (68, 38): [0], (69, 7): [0], (69, 15): [0], (69, 19): [0], (69, 36): [36, 77, 70, 37], (69, 47): [0], (70, 37): [0], (70, 46): [46, 77, 70], (71, 7): [0], (71, 15): [15, 66], (71, 19): [0], (71, 47): [0], (72, 25): [25, 73], (73, 7): [0], (73, 10): [0], (73, 14): [0], (73, 15): [0], (73, 17): [0], (73, 19): [0], (73, 22): [0], (73, 23): [0], (73, 28): [0], (73, 30): [0], (73, 31): [0], (73, 32): [0], (73, 33): [0], (73, 34): [34, 77, 35], (73, 35): [0], (73, 37): [0], (73, 40): [0], (73, 41): [0], (73, 42): [0], (73, 43): [0], (73, 44): [0], (73, 45): [0], (73, 46): [0], (73, 47): [0], (74, 37): [0], (74, 46): [46, 72, 74], (75, 24): [77], (75, 25): [77], (75, 26): [77], (75, 30): [77], (75, 31): [77], (75, 36): [77], (75, 48): [48], (76, 37): [0], (76, 46): [46, 75, 76], (77, 24): [79, 78], (77, 25): [79, 78], (77, 26): [79, 78], (77, 30): [79, 78], (77, 31): [79, 78], (77, 36): [79, 78], (78, 7): [0], (78, 10): [0], (78, 14): [0], (78, 15): [0], (78, 17): [0], (78, 19): [0], (78, 28): [0], (78, 35): [0], (78, 37): [0], (78, 40): [40, 79], (78, 41): [41, 79], (78, 42): [42, 79], (78, 43): [43, 79], (78, 44): [44, 79], (78, 45): [45, 79], (78, 46): [0], (78, 47): [0], (79, 24): [81, 80], (79, 25): [81, 80], (79, 26): [81, 80], (79, 30): [30, 81, 80], (79, 31): [31, 81, 80], (79, 36): [81, 80], (80, 7): [0], (80, 10): [0], (80, 14): [0], (80, 15): [0], (80, 17): [0], (80, 19): [0], (80, 22): [22, 81, 80], (80, 28): [0], (80, 30): [30, 81, 80], (80, 31): [31, 81, 80], (80, 35): [0], (80, 37): [0], (80, 40): [0], (80, 41): [0], (80, 42): [0], (80, 43): [0], (80, 44): [0], (80, 45): [0], (80, 46): [0], (80, 47): [0], (81, 24): [83, 82], (81, 25): [83, 82], (81, 26): [83, 82], (81, 36): [83, 82], (82, 7): [0], (82, 10): [0], (82, 14): [0], (82, 15): [0], (82, 17): [0], (82, 19): [0], (82, 22): [0], (82, 23): [23, 83, 82], (82, 28): [0], (82, 30): [0], (82, 31): [0], (82, 32): [32, 83, 82], (82, 33): [33, 83, 82], (82, 35): [0], (82, 37): [0], (82, 40): [0], (82, 41): [0], (82, 42): [0], (82, 43): [0], (82, 44): [0], (82, 45): [0], (82, 46): [0], (82, 47): [0], (83, 24): [24, 83], (83, 25): [72], (83, 26): [26], (83, 36): [36, 77, 37], (84, 26): [26, 86, 39, 66, 85], (85, 7): [0], (85, 47): [47, 84], (86, 39): [0], (86, 46): [46, 26, 86]} |
class CDI():
def __init__(self,v3,v2,v3SessionID,v3BaseURL,v2BaseURL,v2icSessionID):
print("Created CDI Class")
self._v3=v3
self._v2=v2
self._v3SessionID = v3SessionID
self._v3BaseURL = v3BaseURL
self._v2BaseURL = v2BaseURL
self._v2icSessionID = v2icSessionID
| class Cdi:
def __init__(self, v3, v2, v3SessionID, v3BaseURL, v2BaseURL, v2icSessionID):
print('Created CDI Class')
self._v3 = v3
self._v2 = v2
self._v3SessionID = v3SessionID
self._v3BaseURL = v3BaseURL
self._v2BaseURL = v2BaseURL
self._v2icSessionID = v2icSessionID |
# ----------------------------------------------------------------------------
# MODES: serial
# CLASSES: nightly
#
# Test Case: multicolor.py
#
# Tests: Tests setting colors using the multiColor field in some of
# our plots.
# Plots - Boundary, Contour, FilledBoundary, Subset
# Operators - Transform
#
# Programmer: Brad Whitlock
# Date: Wed Apr 6 17:52:12 PST 2005
#
# Modifications:
#
# Mark C. Miller, Thu Jul 13 22:41:56 PDT 2006
# Added test of user-specified material colors
#
# Mark C. Miller, Wed Jan 20 07:37:11 PST 2010
# Added ability to swtich between Silo's HDF5 and PDB data.
# ----------------------------------------------------------------------------
def TestColorDefinitions(testname, colors):
s = ""
for c in colors:
s = s + str(c) + "\n"
TestText(testname, s)
def TestMultiColor(section, plotAtts, decreasingOpacity):
# Get the current colors.
m = plotAtts.GetMultiColor()
# Test what the image currently looks like.
Test("multicolor_%d_00" % section)
# Change the colors all at once. We should have red->blue
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.)
m[i] = (255-c, 0, c, 255)
plotAtts.SetMultiColor(m)
SetPlotOptions(plotAtts)
Test("multicolor_%d_01" % section)
TestColorDefinitions("multicolor_%d_02" % section, plotAtts.GetMultiColor())
# Change the colors another way. We should get green to blue
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.)
plotAtts.SetMultiColor(i, 0, 255-c, c)
SetPlotOptions(plotAtts)
Test("multicolor_%d_03" % section)
TestColorDefinitions("multicolor_%d_04" % section, plotAtts.GetMultiColor())
# Change the colors another way. We should get yellow to red but
# the redder it gets, the more transparent it should also get.
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.)
if decreasingOpacity:
plotAtts.SetMultiColor(i, (255, 255-c, 0, 255 - c))
else:
plotAtts.SetMultiColor(i, (255, 255-c, 0, c))
SetPlotOptions(plotAtts)
Test("multicolor_%d_05" % section)
TestColorDefinitions("multicolor_%d_06" % section, plotAtts.GetMultiColor())
def test1():
TestSection("Testing setting of multiColor in Boundary plot")
# Set up the plot
OpenDatabase(silo_data_path("rect2d.silo"))
AddPlot("Boundary", "mat1")
b = BoundaryAttributes()
b.lineWidth = 4
DrawPlots()
# Test the plot
TestMultiColor(0, b, 0)
# Delete the plots
DeleteAllPlots()
def test2():
TestSection("Testing setting of multiColor in Contour plot")
# Set up the plot
OpenDatabase(silo_data_path("noise.silo"))
AddPlot("Contour", "hardyglobal")
c = ContourAttributes()
c.contourNLevels = 20
SetPlotOptions(c)
DrawPlots()
# Set the view.
v = GetView3D()
v.viewNormal = (-0.400348, -0.676472, 0.618148)
v.focus = (0,0,0)
v.viewUp = (-0.916338, 0.300483, -0.264639)
v.parallelScale = 17.3205
v.imagePan = (0, 0.0397866)
v.imageZoom = 1.07998
SetView3D(v)
# Test the plot
TestMultiColor(1, c, 0)
# Delete the plots
DeleteAllPlots()
def test3():
TestSection("Testing setting of multiColor in FilledBoundary plot")
# Set up the plots. First we want globe so we can see something inside
# of the Subset plot to make sure that setting alpha works.
OpenDatabase(silo_data_path("globe.silo"))
AddPlot("Pseudocolor", "w")
p = PseudocolorAttributes()
p.legendFlag = 0
p.colorTableName = "xray"
SetPlotOptions(p)
OpenDatabase(silo_data_path("bigsil.silo"))
AddPlot("FilledBoundary", "mat")
f = FilledBoundaryAttributes()
f.legendFlag = 0
SetPlotOptions(f)
# Add an operator to globe to make it small.
SetActivePlots(0)
AddOperator("Transform", 0)
t = TransformAttributes()
t.doScale = 1
t.scaleX, t.scaleY, t.scaleZ = 0.04, 0.04, 0.04
t.doTranslate = 1
t.translateX, t.translateY, t.translateZ = 0.5, 0.5, 0.5
SetOperatorOptions(t)
SetActivePlots(1)
DrawPlots()
# Set the view.
v = GetView3D()
v.viewNormal = (-0.385083, -0.737931, -0.554229)
v.focus = (0.5, 0.5, 0.5)
v.viewUp = (-0.922871, 0.310902, 0.227267)
v.parallelScale = 0.866025
v.imagePan = (-0.0165315, 0.0489375)
v.imageZoom = 1.13247
SetView3D(v)
# Test the plot
TestMultiColor(2, f, 1)
# Delete the plots
DeleteAllPlots()
def test4():
TestSection("Testing setting of multiColor in Subset plot")
# Set up the plots. First we want globe so we can see something inside
# of the Subset plot to make sure that setting alpha works.
OpenDatabase(silo_data_path("globe.silo"))
AddPlot("Pseudocolor", "w")
p = PseudocolorAttributes()
p.legendFlag = 0
p.colorTableName = "xray"
SetPlotOptions(p)
OpenDatabase(silo_data_path("bigsil.silo"))
AddPlot("Subset", "domains")
s = SubsetAttributes()
s.legendFlag = 0
SetPlotOptions(s)
# Add an operator to globe to make it small.
SetActivePlots(0)
AddOperator("Transform", 0)
t = TransformAttributes()
t.doScale = 1
t.scaleX, t.scaleY, t.scaleZ = 0.04, 0.04, 0.04
t.doTranslate = 1
t.translateX, t.translateY, t.translateZ = 0.5, 0.5, 0.5
SetOperatorOptions(t)
SetActivePlots(1)
DrawPlots()
# Set the view.
v = GetView3D()
v.viewNormal = (-0.385083, -0.737931, -0.554229)
v.focus = (0.5, 0.5, 0.5)
v.viewUp = (-0.922871, 0.310902, 0.227267)
v.parallelScale = 0.866025
v.imagePan = (-0.0165315, 0.0489375)
v.imageZoom = 1.13247
SetView3D(v)
# Test the plot
TestMultiColor(3, s, 1)
# Delete the plots
DeleteAllPlots()
def test5():
TestSection("Testing user defined colors for FilledBoundary")
ResetView()
OpenDatabase(silo_data_path("globe_matcolors.silo"))
AddPlot("FilledBoundary","mat1")
AddOperator("Slice")
DrawPlots()
Test("multicolor_matcolors")
DeleteAllPlots()
def main():
test1()
test2()
test3()
test4()
test5()
# Run the tests
main()
Exit()
| def test_color_definitions(testname, colors):
s = ''
for c in colors:
s = s + str(c) + '\n'
test_text(testname, s)
def test_multi_color(section, plotAtts, decreasingOpacity):
m = plotAtts.GetMultiColor()
test('multicolor_%d_00' % section)
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.0)
m[i] = (255 - c, 0, c, 255)
plotAtts.SetMultiColor(m)
set_plot_options(plotAtts)
test('multicolor_%d_01' % section)
test_color_definitions('multicolor_%d_02' % section, plotAtts.GetMultiColor())
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.0)
plotAtts.SetMultiColor(i, 0, 255 - c, c)
set_plot_options(plotAtts)
test('multicolor_%d_03' % section)
test_color_definitions('multicolor_%d_04' % section, plotAtts.GetMultiColor())
for i in range(len(m)):
t = float(i) / float(len(m) - 1)
c = int(t * 255.0)
if decreasingOpacity:
plotAtts.SetMultiColor(i, (255, 255 - c, 0, 255 - c))
else:
plotAtts.SetMultiColor(i, (255, 255 - c, 0, c))
set_plot_options(plotAtts)
test('multicolor_%d_05' % section)
test_color_definitions('multicolor_%d_06' % section, plotAtts.GetMultiColor())
def test1():
test_section('Testing setting of multiColor in Boundary plot')
open_database(silo_data_path('rect2d.silo'))
add_plot('Boundary', 'mat1')
b = boundary_attributes()
b.lineWidth = 4
draw_plots()
test_multi_color(0, b, 0)
delete_all_plots()
def test2():
test_section('Testing setting of multiColor in Contour plot')
open_database(silo_data_path('noise.silo'))
add_plot('Contour', 'hardyglobal')
c = contour_attributes()
c.contourNLevels = 20
set_plot_options(c)
draw_plots()
v = get_view3_d()
v.viewNormal = (-0.400348, -0.676472, 0.618148)
v.focus = (0, 0, 0)
v.viewUp = (-0.916338, 0.300483, -0.264639)
v.parallelScale = 17.3205
v.imagePan = (0, 0.0397866)
v.imageZoom = 1.07998
set_view3_d(v)
test_multi_color(1, c, 0)
delete_all_plots()
def test3():
test_section('Testing setting of multiColor in FilledBoundary plot')
open_database(silo_data_path('globe.silo'))
add_plot('Pseudocolor', 'w')
p = pseudocolor_attributes()
p.legendFlag = 0
p.colorTableName = 'xray'
set_plot_options(p)
open_database(silo_data_path('bigsil.silo'))
add_plot('FilledBoundary', 'mat')
f = filled_boundary_attributes()
f.legendFlag = 0
set_plot_options(f)
set_active_plots(0)
add_operator('Transform', 0)
t = transform_attributes()
t.doScale = 1
(t.scaleX, t.scaleY, t.scaleZ) = (0.04, 0.04, 0.04)
t.doTranslate = 1
(t.translateX, t.translateY, t.translateZ) = (0.5, 0.5, 0.5)
set_operator_options(t)
set_active_plots(1)
draw_plots()
v = get_view3_d()
v.viewNormal = (-0.385083, -0.737931, -0.554229)
v.focus = (0.5, 0.5, 0.5)
v.viewUp = (-0.922871, 0.310902, 0.227267)
v.parallelScale = 0.866025
v.imagePan = (-0.0165315, 0.0489375)
v.imageZoom = 1.13247
set_view3_d(v)
test_multi_color(2, f, 1)
delete_all_plots()
def test4():
test_section('Testing setting of multiColor in Subset plot')
open_database(silo_data_path('globe.silo'))
add_plot('Pseudocolor', 'w')
p = pseudocolor_attributes()
p.legendFlag = 0
p.colorTableName = 'xray'
set_plot_options(p)
open_database(silo_data_path('bigsil.silo'))
add_plot('Subset', 'domains')
s = subset_attributes()
s.legendFlag = 0
set_plot_options(s)
set_active_plots(0)
add_operator('Transform', 0)
t = transform_attributes()
t.doScale = 1
(t.scaleX, t.scaleY, t.scaleZ) = (0.04, 0.04, 0.04)
t.doTranslate = 1
(t.translateX, t.translateY, t.translateZ) = (0.5, 0.5, 0.5)
set_operator_options(t)
set_active_plots(1)
draw_plots()
v = get_view3_d()
v.viewNormal = (-0.385083, -0.737931, -0.554229)
v.focus = (0.5, 0.5, 0.5)
v.viewUp = (-0.922871, 0.310902, 0.227267)
v.parallelScale = 0.866025
v.imagePan = (-0.0165315, 0.0489375)
v.imageZoom = 1.13247
set_view3_d(v)
test_multi_color(3, s, 1)
delete_all_plots()
def test5():
test_section('Testing user defined colors for FilledBoundary')
reset_view()
open_database(silo_data_path('globe_matcolors.silo'))
add_plot('FilledBoundary', 'mat1')
add_operator('Slice')
draw_plots()
test('multicolor_matcolors')
delete_all_plots()
def main():
test1()
test2()
test3()
test4()
test5()
main()
exit() |
def run_tests_count_tokens(config):
scenario = sp.test_scenario()
admin, [alice, bob] = get_addresses()
scenario.h1("Tests count token")
#-----------------------------------------------------
scenario.h2("Nothing is minted")
contract = create_new_contract(config, admin, scenario, [])
count = contract.count_tokens()
scenario.verify(count == 0)
#-----------------------------------------------------
scenario.h2("One token is minted")
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
#-----------------------------------------------------
scenario.h2("Two token are minted")
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000))
count = contract.count_tokens()
scenario.verify(count == 2)
#-----------------------------------------------------
scenario.h2("Mint fails are not counted as tokens")
config.max_editions = 2
contract = create_new_contract(config, admin, scenario, [alice, bob])
count = contract.count_tokens()
scenario.verify(count == 2)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000), valid=False)
count = contract.count_tokens()
scenario.verify(count == 2)
| def run_tests_count_tokens(config):
scenario = sp.test_scenario()
(admin, [alice, bob]) = get_addresses()
scenario.h1('Tests count token')
scenario.h2('Nothing is minted')
contract = create_new_contract(config, admin, scenario, [])
count = contract.count_tokens()
scenario.verify(count == 0)
scenario.h2('One token is minted')
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
scenario.h2('Two token are minted')
contract = create_new_contract(config, admin, scenario, [alice])
count = contract.count_tokens()
scenario.verify(count == 1)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000))
count = contract.count_tokens()
scenario.verify(count == 2)
scenario.h2('Mint fails are not counted as tokens')
config.max_editions = 2
contract = create_new_contract(config, admin, scenario, [alice, bob])
count = contract.count_tokens()
scenario.verify(count == 2)
contract.mint(1).run(sender=admin, amount=sp.mutez(1000000), valid=False)
count = contract.count_tokens()
scenario.verify(count == 2) |
gal_sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0740', 'HP1052', 'HP0777']
glu_sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP0646', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0360', 'HP0740', 'HP1052', 'HP0777']
sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1539', 'HP1227', 'HP1538', 'HP1540', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0147', 'HP0144', 'HP0145', 'HP0146', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0154', 'HP0176', 'HP1385', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP0646', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP1166', 'HP1345', 'HP0974', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP0121', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0389', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0360', 'HP0740', 'HP1052', 'HP0777']
m = len(glu_sgd)
n = len(gal_sgd)
w = len(sgd)
# Glucose and galactose comparision
print("\nGlucose and galactose comparision mismatch")
i = j = 0
while i < m and j < n:
if glu_sgd[i] != gal_sgd[j]:
print(glu_sgd[i])
i += 1
else:
i += 1
j += 1
# WT and Glucose comparision
print("\nWT and Glucose comparision mismatch")
i = j = 0
while i < w and j < m:
if sgd[i] != glu_sgd[j]:
print(glu_sgd[i])
i += 1
else:
i += 1
j += 1
| gal_sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0740', 'HP1052', 'HP0777']
glu_sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP0646', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0360', 'HP0740', 'HP1052', 'HP0777']
sgd = ['HP0370', 'HP0950', 'HP0371', 'HP0557', 'HP0202', 'HP0587', 'HP0618', 'HP1112', 'HP0255', 'HP0859', 'HP0089', 'HP0106', 'HP0738', 'HP0942', 'HP0976', 'HP1483', 'HP1280', 'HP1281', 'HP1282', 'HP0598', 'HP1505', 'HP0422', 'HP1399', 'HP1017', 'HP1189', 'HP0723', 'HP0034', 'HP1084', 'HP1229', 'HP0672', 'HP1539', 'HP1227', 'HP1538', 'HP1540', 'HP1406', 'HP1376', 'HP0558', 'HP0195', 'HP0561', 'HP1237', 'HP0919', 'HP1443', 'HP0291', 'HP0663', 'HP0349', 'HP0147', 'HP0144', 'HP0145', 'HP0146', 'HP0107', 'HP0290', 'HP0566', 'HP0215', 'HP0804', 'HP0029', 'HP0134', 'HP0321', 'HP0510', 'HP1013', 'HP1545', 'HP1510', 'HP1011', 'HP0266', 'HP0581', 'HP1232', 'HP1038', 'HP0283', 'HP0929', 'HP0400', 'HP1228', 'HP0831', 'HP1474', 'HP0216', 'HP0354', 'HP0154', 'HP0176', 'HP1385', 'HP0642', 'HP1161', 'HP1087', 'HP0577', 'HP0683', 'HP0961', 'HP0646', 'HP1532', 'HP0045', 'HP0183', 'HP0512', 'HP1491', 'HP0549', 'HP0509', 'HP0044', 'HP0858', 'HP0860', 'HP0409', 'HP0928', 'HP0802', 'HP1158', 'HP0822', 'HP1050', 'HP1279', 'HP1468', 'HP1275', 'HP0829', 'HP0230', 'HP0003', 'HP0867', 'HP0279', 'HP0043', 'HP0090', 'HP0086', 'HP0625', 'HP1020', 'HP0197', 'HP0957', 'HP1058', 'HP1394', 'HP0329', 'HP0198', 'HP1337', 'HP1355', 'HP0240', 'HP0005', 'HP0588', 'HP0590', 'HP0589', 'HP0591', 'HP1257', 'HP0293', 'HP0006', 'HP0493', 'HP1348', 'HP1111', 'HP1109', 'HP1108', 'HP1110', 'HP0075', 'HP0096', 'HP0397', 'HP1166', 'HP1345', 'HP0974', 'HP0737', 'HP1016', 'HP0620', 'HP1380', 'HP0121', 'HP1218', 'HP0742', 'HP0401', 'HP1357', 'HP0736', 'HP0652', 'HP1071', 'HP1475', 'HP1356', 'HP0002', 'HP1574', 'HP0105', 'HP0680', 'HP0364', 'HP0574', 'HP0857', 'HP0212', 'HP0624', 'HP1210', 'HP1249', 'HP0157', 'HP0832', 'HP0389', 'HP0626', 'HP0098', 'HP1088', 'HP1533', 'HP0194', 'HP1458', 'HP0825', 'HP0824', 'HP1164', 'HP1277', 'HP1278', 'HP0196', 'HP1494', 'HP1375', 'HP0648', 'HP1155', 'HP0494', 'HP0623', 'HP1418', 'HP0360', 'HP0740', 'HP1052', 'HP0777']
m = len(glu_sgd)
n = len(gal_sgd)
w = len(sgd)
print('\nGlucose and galactose comparision mismatch')
i = j = 0
while i < m and j < n:
if glu_sgd[i] != gal_sgd[j]:
print(glu_sgd[i])
i += 1
else:
i += 1
j += 1
print('\nWT and Glucose comparision mismatch')
i = j = 0
while i < w and j < m:
if sgd[i] != glu_sgd[j]:
print(glu_sgd[i])
i += 1
else:
i += 1
j += 1 |
# This is not for real use!
# This is normally generated by the build and install so should not be used for anything or filled in with real values.
# File generated from /opt/config
#
GLOBAL_INJECTED_AAI1_IP_ADDR = "10.0.1.1"
GLOBAL_INJECTED_AAI2_IP_ADDR = "10.0.1.2"
GLOBAL_INJECTED_APPC_IP_ADDR = "10.0.2.1"
GLOBAL_INJECTED_ARTIFACTS_VERSION = "1.2.0"
GLOBAL_INJECTED_CLAMP_IP_ADDR = "10.0.12.1"
GLOBAL_INJECTED_CLOUD_ENV = "openstack"
GLOBAL_INJECTED_DCAE_IP_ADDR = "10.0.4.1"
GLOBAL_INJECTED_DNS_IP_ADDR = "10.0.100.1"
GLOBAL_INJECTED_DOCKER_VERSION = "1.1-STAGING-latest"
GLOBAL_INJECTED_EXTERNAL_DNS = "8.8.8.8"
GLOBAL_INJECTED_GERRIT_BRANCH = "amsterdam"
GLOBAL_INJECTED_KEYSTONE = "http://10.12.25.2:5000"
GLOBAL_INJECTED_MR_IP_ADDR = "10.0.11.1"
GLOBAL_INJECTED_MSO_IP_ADDR = "10.0.5.1"
GLOBAL_INJECTED_NETWORK = "oam_onap_wbaL"
GLOBAL_INJECTED_NEXUS_DOCKER_REPO = "10.12.5.2:5000"
GLOBAL_INJECTED_NEXUS_PASSWORD = "anonymous"
GLOBAL_INJECTED_NEXUS_REPO = "https://nexus.onap.org/content/sites/raw"
GLOBAL_INJECTED_NEXUS_USERNAME = "username"
GLOBAL_INJECTED_OPENO_IP_ADDR = "10.0.14.1"
GLOBAL_INJECTED_OPENSTACK_PASSWORD = "password"
GLOBAL_INJECTED_OPENSTACK_TENANT_ID = "000007144004bacac1e39ff23105fff"
GLOBAL_INJECTED_OPENSTACK_USERNAME = "username"
GLOBAL_INJECTED_POLICY_IP_ADDR = "10.0.6.1"
GLOBAL_INJECTED_PORTAL_IP_ADDR = "10.0.9.1"
GLOBAL_INJECTED_PUBLIC_NET_ID = "971040b2-7059-49dc-b220-4fab50cb2ad4"
GLOBAL_INJECTED_REGION = "RegionOne"
GLOBAL_INJECTED_REMOTE_REPO = "http://gerrit.onap.org/r/testsuite/properties.git"
GLOBAL_INJECTED_SCRIPT_VERSION = "1.1.1"
GLOBAL_INJECTED_SDC_IP_ADDR = "10.0.3.1"
GLOBAL_INJECTED_SDNC_IP_ADDR = "10.0.7.1"
GLOBAL_INJECTED_SO_IP_ADDR = "10.0.5.1"
GLOBAL_INJECTED_VID_IP_ADDR = "10.0.8.1"
GLOBAL_INJECTED_VM_FLAVOR = "m1.medium"
GLOBAL_INJECTED_UBUNTU_1404_IMAGE = "ubuntu-14-04-cloud-amd64"
GLOBAL_INJECTED_UBUNTU_1604_IMAGE = "ubuntu-16-04-cloud-amd64"
GLOBAL_INJECTED_PROPERTIES={
"GLOBAL_INJECTED_AAI1_IP_ADDR" : "10.0.1.1",
"GLOBAL_INJECTED_AAI2_IP_ADDR" : "10.0.1.2",
"GLOBAL_INJECTED_APPC_IP_ADDR" : "10.0.2.1",
"GLOBAL_INJECTED_ARTIFACTS_VERSION" : "1.2.0",
"GLOBAL_INJECTED_CLAMP_IP_ADDR" : "10.0.12.1",
"GLOBAL_INJECTED_CLOUD_ENV" : "openstack",
"GLOBAL_INJECTED_DCAE_IP_ADDR" : "10.0.4.1",
"GLOBAL_INJECTED_DNS_IP_ADDR" : "10.0.100.1",
"GLOBAL_INJECTED_DOCKER_VERSION" : "1.1-STAGING-latest",
"GLOBAL_INJECTED_EXTERNAL_DNS" : "8.8.8.8",
"GLOBAL_INJECTED_GERRIT_BRANCH" : "amsterdam",
"GLOBAL_INJECTED_KEYSTONE" : "http://10.12.25.2:5000",
"GLOBAL_INJECTED_MR_IP_ADDR" : "10.0.11.1",
"GLOBAL_INJECTED_MSO_IP_ADDR" : "10.0.5.1",
"GLOBAL_INJECTED_NETWORK" : "oam_onap_wbaL",
"GLOBAL_INJECTED_NEXUS_DOCKER_REPO" : "10.12.5.2:5000",
"GLOBAL_INJECTED_NEXUS_PASSWORD" : "username",
"GLOBAL_INJECTED_NEXUS_REPO" : "https://nexus.onap.org/content/sites/raw",
"GLOBAL_INJECTED_NEXUS_USERNAME" : "username",
"GLOBAL_INJECTED_OPENO_IP_ADDR" : "10.0.14.1",
"GLOBAL_INJECTED_OPENSTACK_PASSWORD" : "password",
"GLOBAL_INJECTED_OPENSTACK_TENANT_ID" : "000007144004bacac1e39ff23105fff",
"GLOBAL_INJECTED_OPENSTACK_USERNAME" : "demo",
"GLOBAL_INJECTED_POLICY_IP_ADDR" : "10.0.6.1",
"GLOBAL_INJECTED_PORTAL_IP_ADDR" : "10.0.9.1",
"GLOBAL_INJECTED_PUBLIC_NET_ID" : "971040b2-7059-49dc-b220-4fab50cb2ad4",
"GLOBAL_INJECTED_REGION" : "RegionOne",
"GLOBAL_INJECTED_REMOTE_REPO" : "http://gerrit.onap.org/r/testsuite/properties.git",
"GLOBAL_INJECTED_SCRIPT_VERSION" : "1.1.1",
"GLOBAL_INJECTED_SDC_IP_ADDR" : "10.0.3.1",
"GLOBAL_INJECTED_SDNC_IP_ADDR" : "10.0.7.1",
"GLOBAL_INJECTED_SO_IP_ADDR" : "10.0.5.1",
"GLOBAL_INJECTED_VID_IP_ADDR" : "10.0.8.1",
"GLOBAL_INJECTED_VM_FLAVOR" : "m1.medium",
"GLOBAL_INJECTED_UBUNTU_1404_IMAGE" : "ubuntu-14-04-cloud-amd64",
"GLOBAL_INJECTED_UBUNTU_1604_IMAGE" : "ubuntu-16-04-cloud-amd64"}
| global_injected_aai1_ip_addr = '10.0.1.1'
global_injected_aai2_ip_addr = '10.0.1.2'
global_injected_appc_ip_addr = '10.0.2.1'
global_injected_artifacts_version = '1.2.0'
global_injected_clamp_ip_addr = '10.0.12.1'
global_injected_cloud_env = 'openstack'
global_injected_dcae_ip_addr = '10.0.4.1'
global_injected_dns_ip_addr = '10.0.100.1'
global_injected_docker_version = '1.1-STAGING-latest'
global_injected_external_dns = '8.8.8.8'
global_injected_gerrit_branch = 'amsterdam'
global_injected_keystone = 'http://10.12.25.2:5000'
global_injected_mr_ip_addr = '10.0.11.1'
global_injected_mso_ip_addr = '10.0.5.1'
global_injected_network = 'oam_onap_wbaL'
global_injected_nexus_docker_repo = '10.12.5.2:5000'
global_injected_nexus_password = 'anonymous'
global_injected_nexus_repo = 'https://nexus.onap.org/content/sites/raw'
global_injected_nexus_username = 'username'
global_injected_openo_ip_addr = '10.0.14.1'
global_injected_openstack_password = 'password'
global_injected_openstack_tenant_id = '000007144004bacac1e39ff23105fff'
global_injected_openstack_username = 'username'
global_injected_policy_ip_addr = '10.0.6.1'
global_injected_portal_ip_addr = '10.0.9.1'
global_injected_public_net_id = '971040b2-7059-49dc-b220-4fab50cb2ad4'
global_injected_region = 'RegionOne'
global_injected_remote_repo = 'http://gerrit.onap.org/r/testsuite/properties.git'
global_injected_script_version = '1.1.1'
global_injected_sdc_ip_addr = '10.0.3.1'
global_injected_sdnc_ip_addr = '10.0.7.1'
global_injected_so_ip_addr = '10.0.5.1'
global_injected_vid_ip_addr = '10.0.8.1'
global_injected_vm_flavor = 'm1.medium'
global_injected_ubuntu_1404_image = 'ubuntu-14-04-cloud-amd64'
global_injected_ubuntu_1604_image = 'ubuntu-16-04-cloud-amd64'
global_injected_properties = {'GLOBAL_INJECTED_AAI1_IP_ADDR': '10.0.1.1', 'GLOBAL_INJECTED_AAI2_IP_ADDR': '10.0.1.2', 'GLOBAL_INJECTED_APPC_IP_ADDR': '10.0.2.1', 'GLOBAL_INJECTED_ARTIFACTS_VERSION': '1.2.0', 'GLOBAL_INJECTED_CLAMP_IP_ADDR': '10.0.12.1', 'GLOBAL_INJECTED_CLOUD_ENV': 'openstack', 'GLOBAL_INJECTED_DCAE_IP_ADDR': '10.0.4.1', 'GLOBAL_INJECTED_DNS_IP_ADDR': '10.0.100.1', 'GLOBAL_INJECTED_DOCKER_VERSION': '1.1-STAGING-latest', 'GLOBAL_INJECTED_EXTERNAL_DNS': '8.8.8.8', 'GLOBAL_INJECTED_GERRIT_BRANCH': 'amsterdam', 'GLOBAL_INJECTED_KEYSTONE': 'http://10.12.25.2:5000', 'GLOBAL_INJECTED_MR_IP_ADDR': '10.0.11.1', 'GLOBAL_INJECTED_MSO_IP_ADDR': '10.0.5.1', 'GLOBAL_INJECTED_NETWORK': 'oam_onap_wbaL', 'GLOBAL_INJECTED_NEXUS_DOCKER_REPO': '10.12.5.2:5000', 'GLOBAL_INJECTED_NEXUS_PASSWORD': 'username', 'GLOBAL_INJECTED_NEXUS_REPO': 'https://nexus.onap.org/content/sites/raw', 'GLOBAL_INJECTED_NEXUS_USERNAME': 'username', 'GLOBAL_INJECTED_OPENO_IP_ADDR': '10.0.14.1', 'GLOBAL_INJECTED_OPENSTACK_PASSWORD': 'password', 'GLOBAL_INJECTED_OPENSTACK_TENANT_ID': '000007144004bacac1e39ff23105fff', 'GLOBAL_INJECTED_OPENSTACK_USERNAME': 'demo', 'GLOBAL_INJECTED_POLICY_IP_ADDR': '10.0.6.1', 'GLOBAL_INJECTED_PORTAL_IP_ADDR': '10.0.9.1', 'GLOBAL_INJECTED_PUBLIC_NET_ID': '971040b2-7059-49dc-b220-4fab50cb2ad4', 'GLOBAL_INJECTED_REGION': 'RegionOne', 'GLOBAL_INJECTED_REMOTE_REPO': 'http://gerrit.onap.org/r/testsuite/properties.git', 'GLOBAL_INJECTED_SCRIPT_VERSION': '1.1.1', 'GLOBAL_INJECTED_SDC_IP_ADDR': '10.0.3.1', 'GLOBAL_INJECTED_SDNC_IP_ADDR': '10.0.7.1', 'GLOBAL_INJECTED_SO_IP_ADDR': '10.0.5.1', 'GLOBAL_INJECTED_VID_IP_ADDR': '10.0.8.1', 'GLOBAL_INJECTED_VM_FLAVOR': 'm1.medium', 'GLOBAL_INJECTED_UBUNTU_1404_IMAGE': 'ubuntu-14-04-cloud-amd64', 'GLOBAL_INJECTED_UBUNTU_1604_IMAGE': 'ubuntu-16-04-cloud-amd64'} |
###############################################################################
# Copyright (c) 2017-2020 Koren Lev (Cisco Systems), #
# Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others #
# #
# All rights reserved. This program and the accompanying materials #
# are made available under the terms of the Apache License, Version 2.0 #
# which accompanies this distribution, and is available at #
# http://www.apache.org/licenses/LICENSE-2.0 #
###############################################################################
VEDGE_ID = "3858e121-d861-4348-9d64-a55fcd5bf60a"
VEDGE = {
"configurations": {
"tunnel_types": [
"vxlan"
],
"tunneling_ip": "192.168.2.1"
},
"host": "node-5.cisco.com",
"id": "3858e121-d861-4348-9d64-a55fcd5bf60a",
"tunnel_ports": {
"vxlan-c0a80203": {
},
"br-tun": {
}
},
"type": "vedge"
}
VEDGE_WITHOUT_CONFIGS = {
}
VEDGE_WITHOUT_TUNNEL_TYPES = {
"configuration": {
"tunnel_types": ""
}
}
NON_ICEHOUSE_CONFIGS = {
"distribution": "Mirantis",
"distribution_version": "8.0"
}
ICEHOUSE_CONFIGS = {
"distribution": "Canonical",
"distribution_version": "icehouse"
}
HOST = {
"host": "node-5.cisco.com",
"id": "node-5.cisco.com",
"ip_address": "192.168.0.4",
"name": "node-5.cisco.com"
}
OTEPS_WITHOUT_CONFIGURATIONS_IN_VEDGE_RESULTS = []
OTEPS_WITHOUT_TUNNEL_TYPES_IN_VEDGE_RESULTS = []
OTEPS_FOR_NON_ICEHOUSE_DISTRIBUTION_RESULTS = [
{
"host": "node-5.cisco.com",
"ip_address": "192.168.2.1",
"udp_port": 4789,
"id": "node-5.cisco.com-otep",
"name": "node-5.cisco.com-otep",
"overlay_type": "vxlan",
"ports": {
"vxlan-c0a80203": {
},
"br-tun": {
}
}
}
]
OTEPS_FOR_ICEHOUSE_DISTRIBUTION_RESULTS = [
{
"host": "node-5.cisco.com",
"ip_address": "192.168.0.4",
"id": "node-5.cisco.com-otep",
"name": "node-5.cisco.com-otep",
"overlay_type": "vxlan",
"ports": {
"vxlan-c0a80203": {
},
"br-tun": {
}
},
"udp_port": "67"
}
]
OTEPS = [
{
"host": "node-5.cisco.com",
"ip_address": "192.168.2.1",
"udp_port": 4789
}
]
OTEP_FOR_GETTING_VECONNECTOR = {
"host": "node-5.cisco.com",
"ip_address": "192.168.2.1",
"udp_port": 4789,
"id": "node-5.cisco.com-otep",
"name": "node-5.cisco.com-otep",
"overlay_type": "vxlan",
"ports": {
"vxlan-c0a80203": {
},
"br-tun": {
}
}
}
HOST_ID = "node-5.cisco.com"
IP_ADDRESS_SHOW_LINES = [
"2: br-mesh: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc "
"pfifo_fast state UP group default qlen 1000",
" link/ether 00:50:56:ac:28:9d brd ff:ff:ff:ff:ff:ff",
" inet 192.168.2.1/24 brd 192.168.2.255 scope global br-mesh",
" valid_lft forever preferred_lft forever",
" inet6 fe80::d4e1:8fff:fe33:ed6a/64 scope global mngtmpaddr dynamic",
" valid_lft 2591951sec preferred_lft 604751sec"
]
OTEP_WITH_CONNECTOR = {
"host": "node-5.cisco.com",
"ip_address": "192.168.2.1",
"udp_port": 4789,
"id": "node-5.cisco.com-otep",
"name": "node-5.cisco.com-otep",
"overlay_type": "vxlan",
"ports": {
"vxlan-c0a80203": {
},
"br-tun": {
}
},
"vconnector": "node-5.cisco.com-br-mesh"
}
| vedge_id = '3858e121-d861-4348-9d64-a55fcd5bf60a'
vedge = {'configurations': {'tunnel_types': ['vxlan'], 'tunneling_ip': '192.168.2.1'}, 'host': 'node-5.cisco.com', 'id': '3858e121-d861-4348-9d64-a55fcd5bf60a', 'tunnel_ports': {'vxlan-c0a80203': {}, 'br-tun': {}}, 'type': 'vedge'}
vedge_without_configs = {}
vedge_without_tunnel_types = {'configuration': {'tunnel_types': ''}}
non_icehouse_configs = {'distribution': 'Mirantis', 'distribution_version': '8.0'}
icehouse_configs = {'distribution': 'Canonical', 'distribution_version': 'icehouse'}
host = {'host': 'node-5.cisco.com', 'id': 'node-5.cisco.com', 'ip_address': '192.168.0.4', 'name': 'node-5.cisco.com'}
oteps_without_configurations_in_vedge_results = []
oteps_without_tunnel_types_in_vedge_results = []
oteps_for_non_icehouse_distribution_results = [{'host': 'node-5.cisco.com', 'ip_address': '192.168.2.1', 'udp_port': 4789, 'id': 'node-5.cisco.com-otep', 'name': 'node-5.cisco.com-otep', 'overlay_type': 'vxlan', 'ports': {'vxlan-c0a80203': {}, 'br-tun': {}}}]
oteps_for_icehouse_distribution_results = [{'host': 'node-5.cisco.com', 'ip_address': '192.168.0.4', 'id': 'node-5.cisco.com-otep', 'name': 'node-5.cisco.com-otep', 'overlay_type': 'vxlan', 'ports': {'vxlan-c0a80203': {}, 'br-tun': {}}, 'udp_port': '67'}]
oteps = [{'host': 'node-5.cisco.com', 'ip_address': '192.168.2.1', 'udp_port': 4789}]
otep_for_getting_veconnector = {'host': 'node-5.cisco.com', 'ip_address': '192.168.2.1', 'udp_port': 4789, 'id': 'node-5.cisco.com-otep', 'name': 'node-5.cisco.com-otep', 'overlay_type': 'vxlan', 'ports': {'vxlan-c0a80203': {}, 'br-tun': {}}}
host_id = 'node-5.cisco.com'
ip_address_show_lines = ['2: br-mesh: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000', ' link/ether 00:50:56:ac:28:9d brd ff:ff:ff:ff:ff:ff', ' inet 192.168.2.1/24 brd 192.168.2.255 scope global br-mesh', ' valid_lft forever preferred_lft forever', ' inet6 fe80::d4e1:8fff:fe33:ed6a/64 scope global mngtmpaddr dynamic', ' valid_lft 2591951sec preferred_lft 604751sec']
otep_with_connector = {'host': 'node-5.cisco.com', 'ip_address': '192.168.2.1', 'udp_port': 4789, 'id': 'node-5.cisco.com-otep', 'name': 'node-5.cisco.com-otep', 'overlay_type': 'vxlan', 'ports': {'vxlan-c0a80203': {}, 'br-tun': {}}, 'vconnector': 'node-5.cisco.com-br-mesh'} |
class RedbotMotorActor(object):
# TODO(asydorchuk): load constants from the config file.
_MAXIMUM_FREQUENCY = 50
def __init__(self, gpio, power_pin, direction_pin_1, direction_pin_2):
self.gpio = gpio
self.power_pin = power_pin
self.direction_pin_1 = direction_pin_1
self.direction_pin_2 = direction_pin_2
self.gpio.setup(power_pin, self.gpio.OUT)
self.gpio.setup(direction_pin_1, self.gpio.OUT)
self.gpio.setup(direction_pin_2, self.gpio.OUT)
self.motor_controller = self.gpio.PWM(
self.power_pin, self._MAXIMUM_FREQUENCY)
def _setDirectionForward(self):
self.gpio.output(self.direction_pin_1, True)
self.gpio.output(self.direction_pin_2, False)
def _setDirectionBackward(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, True)
def start(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, False)
self.motor_controller.start(0.0)
self.relative_power = 0.0
def stop(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, False)
self.motor_controller.stop()
self.relative_power = 0.0
def setPower(self, relative_power):
if relative_power < 0:
self._setDirectionBackward()
else:
self._setDirectionForward()
power = int(100.0 * abs(relative_power))
self.motor_controller.ChangeDutyCycle(power)
self.relative_power = relative_power
| class Redbotmotoractor(object):
_maximum_frequency = 50
def __init__(self, gpio, power_pin, direction_pin_1, direction_pin_2):
self.gpio = gpio
self.power_pin = power_pin
self.direction_pin_1 = direction_pin_1
self.direction_pin_2 = direction_pin_2
self.gpio.setup(power_pin, self.gpio.OUT)
self.gpio.setup(direction_pin_1, self.gpio.OUT)
self.gpio.setup(direction_pin_2, self.gpio.OUT)
self.motor_controller = self.gpio.PWM(self.power_pin, self._MAXIMUM_FREQUENCY)
def _set_direction_forward(self):
self.gpio.output(self.direction_pin_1, True)
self.gpio.output(self.direction_pin_2, False)
def _set_direction_backward(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, True)
def start(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, False)
self.motor_controller.start(0.0)
self.relative_power = 0.0
def stop(self):
self.gpio.output(self.direction_pin_1, False)
self.gpio.output(self.direction_pin_2, False)
self.motor_controller.stop()
self.relative_power = 0.0
def set_power(self, relative_power):
if relative_power < 0:
self._setDirectionBackward()
else:
self._setDirectionForward()
power = int(100.0 * abs(relative_power))
self.motor_controller.ChangeDutyCycle(power)
self.relative_power = relative_power |
#!/usr/bin/env python3
print("// addTable")
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(a, 10):
s = (a + b) % 10
c = (a + b) // 10
print(" '{0}': '{1}{2}',".format(b, s, c))
print(" },")
print()
print("// subTable")
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(0, 10):
d = (a - b) % 10
c = 0 if a >= b else 1
print(" '{0}': '{1}{2}',".format(b, d, c))
print(" },")
print()
print("// mulTable")
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(a, 10):
p = (a * b) % 10
c = (a * b) // 10
print(" '{0}': '{1}{2}',".format(b, p, c))
print(" },")
print()
print("// fullAdderTest")
for a in range(0, 10):
for b in range(0, 10):
for ci in range(0, 10):
s = (a + b + ci) % 10
co = (a + b + ci) // 10
print(" BadBignumTests.checkFullAdder('{0}', '{1}', '{2}', '{3}{4}');".format(
a, b, ci, s, co
))
print("// fullSubberTest")
for a in range(0, 10):
for b in range(0, 10):
for bi in range(0, 10):
d = (a - b - bi) % 10
bo = -((a - b - bi) // 10)
print(" BadBignumTests.checkFullSubber('{0}', '{1}', '{2}', '{3}{4}');".format(
a, b, bi, d, bo
))
print("// mulTest")
for a in range(0, 100):
for b in range(a, 100):
prod = a * b
print(" BadBignumTests.checkMul('{0}', '{1}', '{2}');".format(
a, b, prod
))
| print('// addTable')
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(a, 10):
s = (a + b) % 10
c = (a + b) // 10
print(" '{0}': '{1}{2}',".format(b, s, c))
print(' },')
print()
print('// subTable')
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(0, 10):
d = (a - b) % 10
c = 0 if a >= b else 1
print(" '{0}': '{1}{2}',".format(b, d, c))
print(' },')
print()
print('// mulTable')
for a in range(0, 10):
print(" '{0}': {{".format(a))
for b in range(a, 10):
p = a * b % 10
c = a * b // 10
print(" '{0}': '{1}{2}',".format(b, p, c))
print(' },')
print()
print('// fullAdderTest')
for a in range(0, 10):
for b in range(0, 10):
for ci in range(0, 10):
s = (a + b + ci) % 10
co = (a + b + ci) // 10
print(" BadBignumTests.checkFullAdder('{0}', '{1}', '{2}', '{3}{4}');".format(a, b, ci, s, co))
print('// fullSubberTest')
for a in range(0, 10):
for b in range(0, 10):
for bi in range(0, 10):
d = (a - b - bi) % 10
bo = -((a - b - bi) // 10)
print(" BadBignumTests.checkFullSubber('{0}', '{1}', '{2}', '{3}{4}');".format(a, b, bi, d, bo))
print('// mulTest')
for a in range(0, 100):
for b in range(a, 100):
prod = a * b
print(" BadBignumTests.checkMul('{0}', '{1}', '{2}');".format(a, b, prod)) |
n, k = map(int, input().split())
dis = input().split()
m = n
while True:
m = str(m)
for d in dis:
if d in m:
break
else:
print(m)
exit()
m = int(m) + 1
| (n, k) = map(int, input().split())
dis = input().split()
m = n
while True:
m = str(m)
for d in dis:
if d in m:
break
else:
print(m)
exit()
m = int(m) + 1 |
def replay(adb):
adb.tap(1720, 1000)
def go_to_home(adb):
adb.tap(1961, 40)
def go_to_battle(adb):
adb.tap(1943, 928)
def go_to_event_battle(adb):
adb.tap(1900, 345)
def select_daily_event(adb):
adb.tap(313, 267)
def select_unit(adb):
adb.tap(1935, 935)
def sortie(adb):
adb.tap(1930, 947)
def stage_clear_ok(adb):
adb.tap(1958, 996)
| def replay(adb):
adb.tap(1720, 1000)
def go_to_home(adb):
adb.tap(1961, 40)
def go_to_battle(adb):
adb.tap(1943, 928)
def go_to_event_battle(adb):
adb.tap(1900, 345)
def select_daily_event(adb):
adb.tap(313, 267)
def select_unit(adb):
adb.tap(1935, 935)
def sortie(adb):
adb.tap(1930, 947)
def stage_clear_ok(adb):
adb.tap(1958, 996) |
player_1_position = 7
player_2_position = 10
player_1_score = 0
player_2_score = 0
def roll_die():
i = 1
while 1:
yield i
i += 1
if i > 100:
i = 1
roll = roll_die()
number_of_die_rolls = 0
# while (player_1_score < 1000 and player_2_score < 1000):
# for i in range(6):
while 1:
three_die_rolls = next(roll) + next(roll) + next(roll)
number_of_die_rolls += 3
if((player_1_position + three_die_rolls) % 10 == 0):
player_1_position = 10
else:
player_1_position = (player_1_position + three_die_rolls) % 10
player_1_score += player_1_position
print(f'p1 position: {player_1_position} p1 score: {player_1_score}')
if(player_1_score >= 1000):
print(f'player 1 wins!')
print(f'{number_of_die_rolls} * {player_2_score} = {number_of_die_rolls * player_2_score}')
break
three_die_rolls = next(roll) + next(roll) + next(roll)
number_of_die_rolls += 3
if((player_2_position + three_die_rolls) % 10 == 0):
player_2_position = 10
else:
player_2_position = (player_2_position + three_die_rolls) % 10
player_2_score += player_2_position
print(f'p2 position: {player_2_position} p2 score: {player_2_score}')
if(player_2_score >= 1000):
print(f'player 2 wins!')
print(f'{number_of_die_rolls} * {player_1_score} = {number_of_die_rolls * player_1_score}')
break
print(f'number of die rolls: {number_of_die_rolls}') | player_1_position = 7
player_2_position = 10
player_1_score = 0
player_2_score = 0
def roll_die():
i = 1
while 1:
yield i
i += 1
if i > 100:
i = 1
roll = roll_die()
number_of_die_rolls = 0
while 1:
three_die_rolls = next(roll) + next(roll) + next(roll)
number_of_die_rolls += 3
if (player_1_position + three_die_rolls) % 10 == 0:
player_1_position = 10
else:
player_1_position = (player_1_position + three_die_rolls) % 10
player_1_score += player_1_position
print(f'p1 position: {player_1_position} p1 score: {player_1_score}')
if player_1_score >= 1000:
print(f'player 1 wins!')
print(f'{number_of_die_rolls} * {player_2_score} = {number_of_die_rolls * player_2_score}')
break
three_die_rolls = next(roll) + next(roll) + next(roll)
number_of_die_rolls += 3
if (player_2_position + three_die_rolls) % 10 == 0:
player_2_position = 10
else:
player_2_position = (player_2_position + three_die_rolls) % 10
player_2_score += player_2_position
print(f'p2 position: {player_2_position} p2 score: {player_2_score}')
if player_2_score >= 1000:
print(f'player 2 wins!')
print(f'{number_of_die_rolls} * {player_1_score} = {number_of_die_rolls * player_1_score}')
break
print(f'number of die rolls: {number_of_die_rolls}') |
class RevasCalculations:
'''Functions related to calculations go there
'''
pass
| class Revascalculations:
"""Functions related to calculations go there
"""
pass |
list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
print(list) # Prints complete list
print(list[0]) # Prints first element of the list
print(list[1:3]) # Prints elements starting from 2nd till 3rd
print(list[2:]) # Prints elements starting from 3rd element
print(tinylist * 2) # Prints list two times
print(list + tinylist) # Prints concatenated lists | list = ['abcd', 786, 2.23, 'john', 70.2]
tinylist = [123, 'john']
print(list)
print(list[0])
print(list[1:3])
print(list[2:])
print(tinylist * 2)
print(list + tinylist) |
def solve(s):
word_list = s.split(' ')
name_capitalized = []
for word in word_list:
name_capitalized.append(word.capitalize())
word = ' '.join(name_capitalized)
return word
| def solve(s):
word_list = s.split(' ')
name_capitalized = []
for word in word_list:
name_capitalized.append(word.capitalize())
word = ' '.join(name_capitalized)
return word |
#!/usr/bin/python
print('Content-type: text/plain\n\n')
print('script cgi with GET')
| print('Content-type: text/plain\n\n')
print('script cgi with GET') |
OLD_EXP_PER_HOUR = 10
OLD_TIME_TO_LVL_DELTA = 5
NEW_EXP_PER_HOUR = 10
NEW_TIME_TO_LVL_DELTA = 7
NEW_TIME_TO_LVL_MULTIPLIER = 1.02
def old_level_to_exp(level, exp):
total_exp = exp
for i in range(2, level + 1):
total_exp += i * OLD_TIME_TO_LVL_DELTA * OLD_EXP_PER_HOUR
return total_exp
def new_time_on_lvl(lvl):
return float(NEW_TIME_TO_LVL_DELTA * lvl * NEW_TIME_TO_LVL_MULTIPLIER ** lvl)
def exp_to_new_level(exp):
level = 1
while exp >= new_time_on_lvl(level + 1) * NEW_EXP_PER_HOUR:
exp -= new_time_on_lvl(level + 1) * NEW_EXP_PER_HOUR
level += 1
return level, exp
def old_to_new(level, exp):
raw_exp = old_level_to_exp(level, exp)
return exp_to_new_level(raw_exp)
| old_exp_per_hour = 10
old_time_to_lvl_delta = 5
new_exp_per_hour = 10
new_time_to_lvl_delta = 7
new_time_to_lvl_multiplier = 1.02
def old_level_to_exp(level, exp):
total_exp = exp
for i in range(2, level + 1):
total_exp += i * OLD_TIME_TO_LVL_DELTA * OLD_EXP_PER_HOUR
return total_exp
def new_time_on_lvl(lvl):
return float(NEW_TIME_TO_LVL_DELTA * lvl * NEW_TIME_TO_LVL_MULTIPLIER ** lvl)
def exp_to_new_level(exp):
level = 1
while exp >= new_time_on_lvl(level + 1) * NEW_EXP_PER_HOUR:
exp -= new_time_on_lvl(level + 1) * NEW_EXP_PER_HOUR
level += 1
return (level, exp)
def old_to_new(level, exp):
raw_exp = old_level_to_exp(level, exp)
return exp_to_new_level(raw_exp) |
#!/usr/bin/env python3
# probleme des 8 dames
def printGrid(grid):
for y in range(8):
print(8 - y, end=" |")
for x in range(8):
print(grid[x][y], "", end="")
print()
print("------------------")
print("X |A B C D E F G H")
grid = [[0] * 8 for _ in range(8)]
for j in range(8):
for i in range(8):
grid[i][j] = (i + j) % 10
printGrid(grid)
| def print_grid(grid):
for y in range(8):
print(8 - y, end=' |')
for x in range(8):
print(grid[x][y], '', end='')
print()
print('------------------')
print('X |A B C D E F G H')
grid = [[0] * 8 for _ in range(8)]
for j in range(8):
for i in range(8):
grid[i][j] = (i + j) % 10
print_grid(grid) |
class Bicicleta:
def __init__(self, marca, aro, calibragem):
self.marca = marca;
self.aro = aro;
self.calibragem = calibragem;
def __str__(self):
string = "Marca: "+self.marca+"\nAro: "+str(self.aro)+"\nCalibragem: "+str(self.calibragem)
return string
def getMarca(self):
return self.marca
def getAro(self):
return self.aro
def getCalibragem(self):
return self.calibragem
def getPegadaCarbono(self):
pegCarb = 0
return pegCarb
| class Bicicleta:
def __init__(self, marca, aro, calibragem):
self.marca = marca
self.aro = aro
self.calibragem = calibragem
def __str__(self):
string = 'Marca: ' + self.marca + '\nAro: ' + str(self.aro) + '\nCalibragem: ' + str(self.calibragem)
return string
def get_marca(self):
return self.marca
def get_aro(self):
return self.aro
def get_calibragem(self):
return self.calibragem
def get_pegada_carbono(self):
peg_carb = 0
return pegCarb |
with open("spiderman.txt") as song:
print(song.read(2))
print(song.read(8))
print(song.read())
| with open('spiderman.txt') as song:
print(song.read(2))
print(song.read(8))
print(song.read()) |
# -*- coding: utf-8 -*-
#
# Specifies the name of the last variable considered
# before plotting
#
lastvar = "k"
#
# Specifies the columns to be plotted
# and its label (in grace format)
#
col_contents = [(1, "\\f{Symbol} <r>"), (2, "\\f{Symbol} <dr>"), (3, "U\\sl")]
#
# Specifies the grace format of the x axis
#
xlabel = "\\f{Times-Italic}P"
| lastvar = 'k'
col_contents = [(1, '\\f{Symbol} <r>'), (2, '\\f{Symbol} <dr>'), (3, 'U\\sl')]
xlabel = '\\f{Times-Italic}P' |
print(open('teste_win1252.txt', errors='strict').read())
print(open('teste_win1252.txt', errors='replace').read())
print(open('teste_win1252.txt', errors='ignore').read())
print(open('teste_win1252.txt', errors='surrogateescape').read())
print(open('teste_win1252.txt', errors='backslashreplace').read())
| print(open('teste_win1252.txt', errors='strict').read())
print(open('teste_win1252.txt', errors='replace').read())
print(open('teste_win1252.txt', errors='ignore').read())
print(open('teste_win1252.txt', errors='surrogateescape').read())
print(open('teste_win1252.txt', errors='backslashreplace').read()) |
# --------------
class_1 = ["Geoffrey Hinton", "Andrew Ng", "Sebastian Raschka", "Yoshua Bengio"]
class_2 = ["Hilary Mason", "Carla Gentry", "Corinna Cortes"]
new_class = class_1 + class_2
print(new_class)
new_class.append("Peter Warden")
print(new_class)
new_class.remove("Carla Gentry")
print(new_class)
courses = {"Math" : 65, "English" : 70, "History" : 80, "French" : 70, "Science" : 60}
total = 0
for i in courses:
total += courses[i]
print(total)
percentage = total / len(courses)
print(percentage)
mathematics = {"Geoffrey Hinton" : 78, "Andrew Ng" : 95, "Sebastian Raschka" : 65, "Yoshua Benjio" : 50, "Hilary Manson" :70, "Corinna Cortes" : 66, "Peter Warden" : 75}
topper = min(mathematics)
print(topper)
topper = topper.split()
first_name = topper[0]
last_name = topper[1]
full_name = last_name + " " + first_name
print(full_name)
certificate_name = full_name.upper()
print(certificate_name)
| class_1 = ['Geoffrey Hinton', 'Andrew Ng', 'Sebastian Raschka', 'Yoshua Bengio']
class_2 = ['Hilary Mason', 'Carla Gentry', 'Corinna Cortes']
new_class = class_1 + class_2
print(new_class)
new_class.append('Peter Warden')
print(new_class)
new_class.remove('Carla Gentry')
print(new_class)
courses = {'Math': 65, 'English': 70, 'History': 80, 'French': 70, 'Science': 60}
total = 0
for i in courses:
total += courses[i]
print(total)
percentage = total / len(courses)
print(percentage)
mathematics = {'Geoffrey Hinton': 78, 'Andrew Ng': 95, 'Sebastian Raschka': 65, 'Yoshua Benjio': 50, 'Hilary Manson': 70, 'Corinna Cortes': 66, 'Peter Warden': 75}
topper = min(mathematics)
print(topper)
topper = topper.split()
first_name = topper[0]
last_name = topper[1]
full_name = last_name + ' ' + first_name
print(full_name)
certificate_name = full_name.upper()
print(certificate_name) |
first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
#print(full_name)
#print(f"Hello, {full_name.title()}!")
message = f"Hello, {full_name.title()}!"
print(message)
#print("\tPython")
#print("Languages:\nPython\nC\nJavaScript")
print("Languages:\n\tPython\n\tC\n\tJavaScript") | first_name = 'ada'
last_name = 'lovelace'
full_name = f'{first_name} {last_name}'
message = f'Hello, {full_name.title()}!'
print(message)
print('Languages:\n\tPython\n\tC\n\tJavaScript') |
class FakeConfig(object):
def __init__(
self,
src_dir=None,
spec_dir=None,
stylesheet_urls=None,
script_urls=None,
stop_spec_on_expectation_failure=False,
stop_on_spec_failure=False,
random=True
):
self._src_dir = src_dir
self._spec_dir = spec_dir
self._stylesheet_urls = stylesheet_urls
self._script_urls = script_urls
self._stop_spec_on_expectation_failure = stop_spec_on_expectation_failure
self._stop_on_spec_failure = stop_on_spec_failure
self._random = random
self.reload_call_count = 0
def src_dir(self):
return self._src_dir
def spec_dir(self):
return self._spec_dir
def stylesheet_urls(self):
return self._stylesheet_urls
def script_urls(self):
return self._script_urls
def stop_spec_on_expectation_failure(self):
return self._stop_spec_on_expectation_failure
def stop_on_spec_failure(self):
return self._stop_on_spec_failure
def random(self):
return self._random
def reload(self):
self.reload_call_count += 1
| class Fakeconfig(object):
def __init__(self, src_dir=None, spec_dir=None, stylesheet_urls=None, script_urls=None, stop_spec_on_expectation_failure=False, stop_on_spec_failure=False, random=True):
self._src_dir = src_dir
self._spec_dir = spec_dir
self._stylesheet_urls = stylesheet_urls
self._script_urls = script_urls
self._stop_spec_on_expectation_failure = stop_spec_on_expectation_failure
self._stop_on_spec_failure = stop_on_spec_failure
self._random = random
self.reload_call_count = 0
def src_dir(self):
return self._src_dir
def spec_dir(self):
return self._spec_dir
def stylesheet_urls(self):
return self._stylesheet_urls
def script_urls(self):
return self._script_urls
def stop_spec_on_expectation_failure(self):
return self._stop_spec_on_expectation_failure
def stop_on_spec_failure(self):
return self._stop_on_spec_failure
def random(self):
return self._random
def reload(self):
self.reload_call_count += 1 |
class Timer:
def __init__(self, bot, ring_every=1.0):
self.bot = bot
self.last_ring = 0.0
self.ring_every = ring_every
@property
def rings(self):
if (self.bot.time - self.last_ring) >= self.ring_every:
self.last_ring = self.bot.time
return True
else:
return False
| class Timer:
def __init__(self, bot, ring_every=1.0):
self.bot = bot
self.last_ring = 0.0
self.ring_every = ring_every
@property
def rings(self):
if self.bot.time - self.last_ring >= self.ring_every:
self.last_ring = self.bot.time
return True
else:
return False |
#!/usr/bin/python3
class ComplexThing:
def __init__(self, name, data):
self.name = name
self.data = data
def __str__(self):
return self.name + ": " + str(self.data)
| class Complexthing:
def __init__(self, name, data):
self.name = name
self.data = data
def __str__(self):
return self.name + ': ' + str(self.data) |
CATEGORIES = [
('Arts & Entertainment', [
'Books & Literature',
'Celebrity Fan/Gossip',
'Fine Art',
'Humor',
'Movies',
'Music',
'Television'
]),
('Automotive', [
'Auto Parts',
'Auto Repair',
'Buying/Selling Cars',
'Car Culture',
'Certified Pre-Owned',
'Convertible',
'Coupe',
'Crossover',
'Diesel',
'Electric Vehicle',
'Hatchback',
'Hybrid',
'Luxury',
'MiniVan',
'Mororcycles',
'Off-Road Vehicles',
'Performance Vehicles',
'Pickup',
'Road-Side Assistance',
'Sedan',
'Trucks & Accessories',
'Vintage Cars',
'Wagon',
]),
('Business', [
'Advertising',
'Agriculture',
'Biotech/Biomedical',
'Business Software',
'Construction',
'Forestry',
'Government',
'Green Solutions',
'Human Resources',
'Logistics',
'Marketing',
'Metals',
]
),
('Careers', [
'Career Planning',
'College',
'Financial Aid',
'Job Fairs',
'Job Search',
'Resume Writing/Advice',
'Nursing',
'Scholarships',
'Telecommuting',
'U.S. Military',
'Career Advice',
]),
('Education', [
'7-12 Education',
'Adult Education',
'Art History',
'Colledge Administration',
'College Life',
'Distance Learning',
'English as a 2nd Language',
'Language Learning',
'Graduate School',
'Homeschooling',
'Homework/Study Tips',
'K-6 Educators',
'Private School',
'Special Education',
'Studying Business',
]),
('Family & Parenting', [
'Adoption',
'Babies & Toddlers',
'Daycare/Pre School',
'Family Internet',
'Parenting - K-6 Kids',
'Parenting teens',
'Pregnancy',
'Special Needs Kids',
'Eldercare',
]),
('Health & Fitness', [
'Exercise',
'A.D.D.',
'AIDS/HIV',
'Allergies',
'Alternative Medicine',
'Arthritis',
'Asthma',
'Autism/PDD',
'Bipolar Disorder',
'Brain Tumor',
'Cancer',
'Cholesterol',
'Chronic Fatigue Syndrome',
'Chronic Pain',
'Cold & Flu',
'Deafness',
'Dental Care',
'Depression',
'Dermatology',
'Diabetes',
'Epilepsy',
'GERD/Acid Reflux',
'Headaches/Migraines',
'Heart Disease',
'Herbs for Health',
'Holistic Healing',
'IBS/Crohn\'s Disease',
'Incest/Abuse Support',
'Incontinence',
'Infertility',
'Men\'s Health',
'Nutrition',
'Orthopedics',
'Panic/Anxiety Disorders',
'Pediatrics',
'Physical Therapy',
'Psychology/Psychiatry',
'Senor Health',
'Sexuality',
'Sleep Disorders',
'Smoking Cessation',
'Substance Abuse',
'Thyroid Disease',
'Weight Loss',
'Women\'s Health',
]),
('Food & Drink', [
'American Cuisine',
'Barbecues & Grilling',
'Cajun/Creole',
'Chinese Cuisine',
'Cocktails/Beer',
'Coffee/Tea',
'Cuisine-Specific',
'Desserts & Baking',
'Dining Out',
'Food Allergies',
'French Cuisine',
'Health/Lowfat Cooking',
'Italian Cuisine',
'Japanese Cuisine',
'Mexican Cuisine',
'Vegan',
'Vegetarian',
'Wine',
]),
('Hobbies & Interests', [
'Art/Technology',
'Arts & Crafts',
'Beadwork',
'Birdwatching',
'Board Games/Puzzles',
'Candle & Soap Making',
'Card Games',
'Chess',
'Cigars',
'Collecting',
'Comic Books',
'Drawing/Sketching',
'Freelance Writing',
'Genealogy',
'Getting Published',
'Guitar',
'Home Recording',
'Investors & Patents',
'Jewelry Making',
'Magic & Illusion',
'Needlework',
'Painting',
'Photography',
'Radio',
'Roleplaying Games',
'Sci-Fi & Fantasy',
'Scrapbooking',
'Screenwriting',
'Stamps & Coins',
'Video & Computer Games',
'Woodworking',
]),
('Home & Garden', [
'Appliances',
'Entertaining',
'Environmental Safety',
'Gardening',
'Home Repair',
'Home Theater',
'Interior Decorating',
'Landscaping',
'Remodeling & Construction',
]),
('Law, Gov\'t & Politics', [
'Immigration',
'Legal Issues',
'U.S. Government Resources',
'Politics',
'Commentary',
]),
('News', [
'International News',
'National News',
'Local News',
]),
('Personal Finance', [
'Beginning Investing',
'Credit/Debt & Loans',
'Financial News',
'Financial Planning',
'Hedge Fund',
'Insurance',
'Investing',
'Mutual Funds',
'Options',
'Retirement Planning',
'Stocks',
'Tax Planning',
]),
('Society', [
'Dating',
'Divorce Support',
'Gay Life',
'Marriage',
'Senior Living',
'Teens',
'Weddings',
'Ethnic Specific',
]),
('Science', [
'Astrology',
'Biology',
'Chemistry',
'Geology',
'Paranormal Phenomena',
'Physics',
'Space/Astronomy',
'Geography',
'Botany',
'Weather',
]),
('Pets', [
'Aquariums',
'Birds',
'Cats',
'Dogs',
'Large Animals',
'Reptiles',
'Veterinary Medicine',
]),
('Sports', [
'Auto Racing',
'Baseball',
'Bicycling',
'Bodybuilding',
'Boxing',
'Canoeing/Kayaking',
'Cheerleading',
'Climbing',
'Cricket',
'Figure Skating',
'Fly Fishing',
'Football',
'Freshwater Fishing',
'Game & Fish',
'Golf',
'Horse Racing',
'Horses',
'Hunting/Shooting',
'Inline Skating',
'Martial Arts',
'Mountain Biking',
'NASCAR Racing',
'Olympics',
'Paintball',
'Power & Motorcycles',
'Pro Basketball',
'Pro Ice Hockey',
'Rodeo',
'Rugby',
'Running/Jogging',
'Sailing',
'Saltwater Fishing',
'Scuba Diving',
'Skateboarding',
'Skiing',
'Snowboarding',
'Surfing/Bodyboarding',
'Swimming',
'Table Tennis/Ping-Pong',
'Tennis',
'Volleyball',
'Walking',
'Waterski/Wakeboard',
'World Soccer',
]),
('Style & Fashion', [
'Beauty',
'Body Art',
'Fashion',
'Jewelry',
'Clothing',
'Accessories',
]),
('Technology & Computing', [
'3-D Graphics',
'Animation',
'Antivirus Software',
'C/C++',
'Cameras & Camcorders',
'Cell Phones',
'Computer Certification',
'Computer Networking',
'Computer Peripherals',
'Computer Reviews',
'Data Centers',
'Databases',
'Desktop Publishing',
'Desktop Video',
'Email',
'Graphics Software',
'Home Video/DVD',
'Internet Technology',
'Java',
'JavaScript',
'Mac Support',
'MP3/MIDI',
'Net Conferencing',
'Net for Beginners',
'Network Security',
'Palmtops/PDAs',
'PC Support',
'Portable',
'Entertainment',
'Shareware/Freeware',
'Unix',
'Visual Basic',
'Web Clip Art',
'Web Design/HTML',
'Web Search',
'Windows',
]),
('Travel', [
'Adventure Travel',
'Africa',
'Air Travel',
'Australia & New Zealand',
'Bed & Breakfasts',
'Budget Travel',
'Business Travel',
'By US Locale',
'Camping',
'Canada',
'Caribbean',
'Cruises',
'Eastern Europe',
'Europe',
'France',
'Greece',
'Honeymoons/Getaways',
'Hotels',
'Italy',
'Japan',
'Mexico & Central America',
'National Parks',
'South America',
'Spas',
'Theme Parks',
'Traveling with Kids',
'United Kingdom',
]),
('Real Estate', [
'Apartments',
'Architects',
'Buying/Selling Homes',
]),
('Shopping', [
'Contests & Freebies',
'Couponing',
'Comparison',
'Engines',
]),
('Religion & Spirituality', [
'Alternative Religions',
'Atheism/Agnosticism',
'Buddhism',
'Catholicism',
'Christianity',
'Hinduism',
'Islam',
'Judaism',
'Latter-Day Saints',
'Pagan/Wiccan',
]),
('Uncategorized', []),
('Non-Standard Content', [
'Unmoderated UGC',
'Extreme Graphic/Explicit Violence',
'Pornography',
'Profane Content',
'Hate Content',
'Under Construction',
'Incentivized',
]),
('Illegal Content', [
'Illegal Content',
'Warez',
'Spyware/Malware',
'Copyright Infringement',
])
]
def from_string(s):
try:
cat = s[3:] if s.startswith('IAB') else s
if '-' in cat:
tier1, tier2 = map(int, cat.split('-'))
t1c = CATEGORIES[tier1 - 1][0]
t2c = CATEGORIES[tier1 - 1][1][tier2 - 1]
return '{}: {}'.format(t1c, t2c)
else:
return CATEGORIES[int(cat) - 1][0]
except (ValueError, IndexError):
return s | categories = [('Arts & Entertainment', ['Books & Literature', 'Celebrity Fan/Gossip', 'Fine Art', 'Humor', 'Movies', 'Music', 'Television']), ('Automotive', ['Auto Parts', 'Auto Repair', 'Buying/Selling Cars', 'Car Culture', 'Certified Pre-Owned', 'Convertible', 'Coupe', 'Crossover', 'Diesel', 'Electric Vehicle', 'Hatchback', 'Hybrid', 'Luxury', 'MiniVan', 'Mororcycles', 'Off-Road Vehicles', 'Performance Vehicles', 'Pickup', 'Road-Side Assistance', 'Sedan', 'Trucks & Accessories', 'Vintage Cars', 'Wagon']), ('Business', ['Advertising', 'Agriculture', 'Biotech/Biomedical', 'Business Software', 'Construction', 'Forestry', 'Government', 'Green Solutions', 'Human Resources', 'Logistics', 'Marketing', 'Metals']), ('Careers', ['Career Planning', 'College', 'Financial Aid', 'Job Fairs', 'Job Search', 'Resume Writing/Advice', 'Nursing', 'Scholarships', 'Telecommuting', 'U.S. Military', 'Career Advice']), ('Education', ['7-12 Education', 'Adult Education', 'Art History', 'Colledge Administration', 'College Life', 'Distance Learning', 'English as a 2nd Language', 'Language Learning', 'Graduate School', 'Homeschooling', 'Homework/Study Tips', 'K-6 Educators', 'Private School', 'Special Education', 'Studying Business']), ('Family & Parenting', ['Adoption', 'Babies & Toddlers', 'Daycare/Pre School', 'Family Internet', 'Parenting - K-6 Kids', 'Parenting teens', 'Pregnancy', 'Special Needs Kids', 'Eldercare']), ('Health & Fitness', ['Exercise', 'A.D.D.', 'AIDS/HIV', 'Allergies', 'Alternative Medicine', 'Arthritis', 'Asthma', 'Autism/PDD', 'Bipolar Disorder', 'Brain Tumor', 'Cancer', 'Cholesterol', 'Chronic Fatigue Syndrome', 'Chronic Pain', 'Cold & Flu', 'Deafness', 'Dental Care', 'Depression', 'Dermatology', 'Diabetes', 'Epilepsy', 'GERD/Acid Reflux', 'Headaches/Migraines', 'Heart Disease', 'Herbs for Health', 'Holistic Healing', "IBS/Crohn's Disease", 'Incest/Abuse Support', 'Incontinence', 'Infertility', "Men's Health", 'Nutrition', 'Orthopedics', 'Panic/Anxiety Disorders', 'Pediatrics', 'Physical Therapy', 'Psychology/Psychiatry', 'Senor Health', 'Sexuality', 'Sleep Disorders', 'Smoking Cessation', 'Substance Abuse', 'Thyroid Disease', 'Weight Loss', "Women's Health"]), ('Food & Drink', ['American Cuisine', 'Barbecues & Grilling', 'Cajun/Creole', 'Chinese Cuisine', 'Cocktails/Beer', 'Coffee/Tea', 'Cuisine-Specific', 'Desserts & Baking', 'Dining Out', 'Food Allergies', 'French Cuisine', 'Health/Lowfat Cooking', 'Italian Cuisine', 'Japanese Cuisine', 'Mexican Cuisine', 'Vegan', 'Vegetarian', 'Wine']), ('Hobbies & Interests', ['Art/Technology', 'Arts & Crafts', 'Beadwork', 'Birdwatching', 'Board Games/Puzzles', 'Candle & Soap Making', 'Card Games', 'Chess', 'Cigars', 'Collecting', 'Comic Books', 'Drawing/Sketching', 'Freelance Writing', 'Genealogy', 'Getting Published', 'Guitar', 'Home Recording', 'Investors & Patents', 'Jewelry Making', 'Magic & Illusion', 'Needlework', 'Painting', 'Photography', 'Radio', 'Roleplaying Games', 'Sci-Fi & Fantasy', 'Scrapbooking', 'Screenwriting', 'Stamps & Coins', 'Video & Computer Games', 'Woodworking']), ('Home & Garden', ['Appliances', 'Entertaining', 'Environmental Safety', 'Gardening', 'Home Repair', 'Home Theater', 'Interior Decorating', 'Landscaping', 'Remodeling & Construction']), ("Law, Gov't & Politics", ['Immigration', 'Legal Issues', 'U.S. Government Resources', 'Politics', 'Commentary']), ('News', ['International News', 'National News', 'Local News']), ('Personal Finance', ['Beginning Investing', 'Credit/Debt & Loans', 'Financial News', 'Financial Planning', 'Hedge Fund', 'Insurance', 'Investing', 'Mutual Funds', 'Options', 'Retirement Planning', 'Stocks', 'Tax Planning']), ('Society', ['Dating', 'Divorce Support', 'Gay Life', 'Marriage', 'Senior Living', 'Teens', 'Weddings', 'Ethnic Specific']), ('Science', ['Astrology', 'Biology', 'Chemistry', 'Geology', 'Paranormal Phenomena', 'Physics', 'Space/Astronomy', 'Geography', 'Botany', 'Weather']), ('Pets', ['Aquariums', 'Birds', 'Cats', 'Dogs', 'Large Animals', 'Reptiles', 'Veterinary Medicine']), ('Sports', ['Auto Racing', 'Baseball', 'Bicycling', 'Bodybuilding', 'Boxing', 'Canoeing/Kayaking', 'Cheerleading', 'Climbing', 'Cricket', 'Figure Skating', 'Fly Fishing', 'Football', 'Freshwater Fishing', 'Game & Fish', 'Golf', 'Horse Racing', 'Horses', 'Hunting/Shooting', 'Inline Skating', 'Martial Arts', 'Mountain Biking', 'NASCAR Racing', 'Olympics', 'Paintball', 'Power & Motorcycles', 'Pro Basketball', 'Pro Ice Hockey', 'Rodeo', 'Rugby', 'Running/Jogging', 'Sailing', 'Saltwater Fishing', 'Scuba Diving', 'Skateboarding', 'Skiing', 'Snowboarding', 'Surfing/Bodyboarding', 'Swimming', 'Table Tennis/Ping-Pong', 'Tennis', 'Volleyball', 'Walking', 'Waterski/Wakeboard', 'World Soccer']), ('Style & Fashion', ['Beauty', 'Body Art', 'Fashion', 'Jewelry', 'Clothing', 'Accessories']), ('Technology & Computing', ['3-D Graphics', 'Animation', 'Antivirus Software', 'C/C++', 'Cameras & Camcorders', 'Cell Phones', 'Computer Certification', 'Computer Networking', 'Computer Peripherals', 'Computer Reviews', 'Data Centers', 'Databases', 'Desktop Publishing', 'Desktop Video', 'Email', 'Graphics Software', 'Home Video/DVD', 'Internet Technology', 'Java', 'JavaScript', 'Mac Support', 'MP3/MIDI', 'Net Conferencing', 'Net for Beginners', 'Network Security', 'Palmtops/PDAs', 'PC Support', 'Portable', 'Entertainment', 'Shareware/Freeware', 'Unix', 'Visual Basic', 'Web Clip Art', 'Web Design/HTML', 'Web Search', 'Windows']), ('Travel', ['Adventure Travel', 'Africa', 'Air Travel', 'Australia & New Zealand', 'Bed & Breakfasts', 'Budget Travel', 'Business Travel', 'By US Locale', 'Camping', 'Canada', 'Caribbean', 'Cruises', 'Eastern Europe', 'Europe', 'France', 'Greece', 'Honeymoons/Getaways', 'Hotels', 'Italy', 'Japan', 'Mexico & Central America', 'National Parks', 'South America', 'Spas', 'Theme Parks', 'Traveling with Kids', 'United Kingdom']), ('Real Estate', ['Apartments', 'Architects', 'Buying/Selling Homes']), ('Shopping', ['Contests & Freebies', 'Couponing', 'Comparison', 'Engines']), ('Religion & Spirituality', ['Alternative Religions', 'Atheism/Agnosticism', 'Buddhism', 'Catholicism', 'Christianity', 'Hinduism', 'Islam', 'Judaism', 'Latter-Day Saints', 'Pagan/Wiccan']), ('Uncategorized', []), ('Non-Standard Content', ['Unmoderated UGC', 'Extreme Graphic/Explicit Violence', 'Pornography', 'Profane Content', 'Hate Content', 'Under Construction', 'Incentivized']), ('Illegal Content', ['Illegal Content', 'Warez', 'Spyware/Malware', 'Copyright Infringement'])]
def from_string(s):
try:
cat = s[3:] if s.startswith('IAB') else s
if '-' in cat:
(tier1, tier2) = map(int, cat.split('-'))
t1c = CATEGORIES[tier1 - 1][0]
t2c = CATEGORIES[tier1 - 1][1][tier2 - 1]
return '{}: {}'.format(t1c, t2c)
else:
return CATEGORIES[int(cat) - 1][0]
except (ValueError, IndexError):
return s |
print( "Welcome to the Shape Generator:" )
cont = True
shape1 = 0
shape2 = 0
shape3 = 0
shape4 = 0
shape5 = 0
shape6 = 0
drawAnotherShape = False
def menu():
print()
print( "This program draw the following shapes:" )
print( f"{'1) Horizontal Line':>20s}" )
print( f"{'2) Vertical Line':>18s}" )
print( f"{'3) Rectangle':>14s}" )
print( f"{'4) Left slant right angle triangle':>36s}" )
print( f"{'5) Right slant right angle triangle':>37s}" )
print( f"{'6) Isosceles triangle':>23s}" )
def printShape1(length):
print( f"Here is the horizontal line with length {length}:" )
for i in range( length ):
print( "*", end="" )
print()
def printShape2(length):
print( f"Here is the vertical line with length {length}:" )
for i in range( length ):
print( "*" )
def printShape3(length, width):
print( f"Here is the rectangle with length {length} and width {width}:" )
for x in range( length ):
for x in range ( width):
print( "*",end="")
print()
def printShape4(height):
print( f"Here is the left slant right angle triangle with height {height}:" )
for x in range( 1, height + 1 ):
for y in range (x):
print( "*", end="")
print()
def printShape5(height):
print( f"Here is the right slant right angle triangle with height {height}:" )
for x in range( 1, height + 1 ):
print( " " * (height - x), end=" " )
for y in range (x):
print( "*", end="" )
print()
def printShape6(height):
print( f"Here is the isosceles triangle with height {height}:" )
for x in range( 1, height + 1 ):
for y in range (height - x + 1):
print( " " , end="" )
for z in range(x * 2 - 1):
print( "*", end="")
print()
def inputLength():
length = int( input( "Enter the length of the shape (1-20): " ) )
while length < 1 or length > 20:
print( "Invalid input! You must enter a dimension between 1 and 20." )
length = int( input( "Enter the length of the shape (1-20): " ) )
return length
def inputWidth():
width = int( input( "Enter the width of the rectangle (1-20): " ) )
while width < 1 or width > 20:
print( "Invalid input! You must enter a dimension between 1 and 20." )
width = int( input( "Enter the width of the rectangle (1-20): " ) )
return width
def inputHeight():
height = int( input( "Enter the height of the shape triangle (1-20): " ) )
while height < 1 or height > 20:
print( "Invalid input! You must enter a dimension between 1 and 20." )
height = int( input( "Enter the height of the shape (1-20): " ) )
return height
def inputDrawAnotherShape():
drawAnotherShape = input( "Would you like to draw another shape (y/n)? " )
while drawAnotherShape != "Y" and drawAnotherShape != "y" and drawAnotherShape != "N" and drawAnotherShape != "n":
print( "Error! Incorrect input. Please enter 'y','Y','n' or 'N' to continue." )
drawAnotherShape = input( "Would you like to draw another shape (y/n)? " )
if drawAnotherShape == "Y" or drawAnotherShape == "y":
cont = True
else:
cont = False
return cont
def goodbye():
print()
print( "***************************************************************" )
print( "Here is a summary of the shapes that were drawn." )
print()
print( f"Horizontal Line {shape1:45d}" )
print( f"Vertical Line {shape2:47d}" )
print( f"Rectangle {shape3:51d}" )
print( f"Left Slant Right Angle Triangle {shape4:29d}" )
print( f"Right Slant Right Angle Triangle {shape5:28d}" )
print( f"Isosceles Triangle {shape6:42d}" )
print()
print( "Thank you for using the Shape Generator! Goodbye!" )
print( "***************************************************************" )
while cont == True:
menu()
shape = int( input( "Enter your choice (1-6): " ) )
while shape < 1 or shape > 6:
print( "Invalid choice! Your choice must be between 1 and 6." )
shape = int( input( "Enter your choice (1-6): " ) )
if shape == 1:
shape1 += 1
length = inputLength()
printShape1( length )
elif shape == 2:
shape2 += 1
length = inputLength()
printShape2( length )
elif shape == 3:
shape3 += 1
length = inputLength()
width = inputWidth()
printShape3( length, width )
elif shape == 4:
shape4 += 1
height = inputHeight()
printShape4( height )
elif shape == 5:
shape5 += 1
height = inputHeight()
printShape5( height )
elif shape == 6:
shape6 += 1
height = inputHeight()
printShape6( height )
cont = inputDrawAnotherShape()
goodbye()
| print('Welcome to the Shape Generator:')
cont = True
shape1 = 0
shape2 = 0
shape3 = 0
shape4 = 0
shape5 = 0
shape6 = 0
draw_another_shape = False
def menu():
print()
print('This program draw the following shapes:')
print(f"{'1) Horizontal Line':>20s}")
print(f"{'2) Vertical Line':>18s}")
print(f"{'3) Rectangle':>14s}")
print(f"{'4) Left slant right angle triangle':>36s}")
print(f"{'5) Right slant right angle triangle':>37s}")
print(f"{'6) Isosceles triangle':>23s}")
def print_shape1(length):
print(f'Here is the horizontal line with length {length}:')
for i in range(length):
print('*', end='')
print()
def print_shape2(length):
print(f'Here is the vertical line with length {length}:')
for i in range(length):
print('*')
def print_shape3(length, width):
print(f'Here is the rectangle with length {length} and width {width}:')
for x in range(length):
for x in range(width):
print('*', end='')
print()
def print_shape4(height):
print(f'Here is the left slant right angle triangle with height {height}:')
for x in range(1, height + 1):
for y in range(x):
print('*', end='')
print()
def print_shape5(height):
print(f'Here is the right slant right angle triangle with height {height}:')
for x in range(1, height + 1):
print(' ' * (height - x), end=' ')
for y in range(x):
print('*', end='')
print()
def print_shape6(height):
print(f'Here is the isosceles triangle with height {height}:')
for x in range(1, height + 1):
for y in range(height - x + 1):
print(' ', end='')
for z in range(x * 2 - 1):
print('*', end='')
print()
def input_length():
length = int(input('Enter the length of the shape (1-20): '))
while length < 1 or length > 20:
print('Invalid input! You must enter a dimension between 1 and 20.')
length = int(input('Enter the length of the shape (1-20): '))
return length
def input_width():
width = int(input('Enter the width of the rectangle (1-20): '))
while width < 1 or width > 20:
print('Invalid input! You must enter a dimension between 1 and 20.')
width = int(input('Enter the width of the rectangle (1-20): '))
return width
def input_height():
height = int(input('Enter the height of the shape triangle (1-20): '))
while height < 1 or height > 20:
print('Invalid input! You must enter a dimension between 1 and 20.')
height = int(input('Enter the height of the shape (1-20): '))
return height
def input_draw_another_shape():
draw_another_shape = input('Would you like to draw another shape (y/n)? ')
while drawAnotherShape != 'Y' and drawAnotherShape != 'y' and (drawAnotherShape != 'N') and (drawAnotherShape != 'n'):
print("Error! Incorrect input. Please enter 'y','Y','n' or 'N' to continue.")
draw_another_shape = input('Would you like to draw another shape (y/n)? ')
if drawAnotherShape == 'Y' or drawAnotherShape == 'y':
cont = True
else:
cont = False
return cont
def goodbye():
print()
print('***************************************************************')
print('Here is a summary of the shapes that were drawn.')
print()
print(f'Horizontal Line {shape1:45d}')
print(f'Vertical Line {shape2:47d}')
print(f'Rectangle {shape3:51d}')
print(f'Left Slant Right Angle Triangle {shape4:29d}')
print(f'Right Slant Right Angle Triangle {shape5:28d}')
print(f'Isosceles Triangle {shape6:42d}')
print()
print('Thank you for using the Shape Generator! Goodbye!')
print('***************************************************************')
while cont == True:
menu()
shape = int(input('Enter your choice (1-6): '))
while shape < 1 or shape > 6:
print('Invalid choice! Your choice must be between 1 and 6.')
shape = int(input('Enter your choice (1-6): '))
if shape == 1:
shape1 += 1
length = input_length()
print_shape1(length)
elif shape == 2:
shape2 += 1
length = input_length()
print_shape2(length)
elif shape == 3:
shape3 += 1
length = input_length()
width = input_width()
print_shape3(length, width)
elif shape == 4:
shape4 += 1
height = input_height()
print_shape4(height)
elif shape == 5:
shape5 += 1
height = input_height()
print_shape5(height)
elif shape == 6:
shape6 += 1
height = input_height()
print_shape6(height)
cont = input_draw_another_shape()
goodbye() |
num = 45
# symVal = {1000:'M',900:'CM',500:'D',400:'CD',100:'C',90:'XC',50:'L',40:'XL',10:'X',9:'IX',5:'V',4:'IV',1:'I'}
# romanNum = ''
# i = 0
# while num > 0 :
# curVal = list(symVal)[i]
# for _ in range(num // curVal):
# # if (divmod(num,4)[1] == 0 or divmod(num,9)[1] == 0):
# romanNum += symVal[curVal]
# num -= curVal
# i += 1
# print(romanNum)
class Solution(object):
def __init__(self):
self.roman = ''
def intToRoman(self, num):
self.num = num
self.checkRoman(1000, 'M')
self.checkRoman(500, 'D')
self.checkRoman(100, 'C')
self.checkRoman(50, 'L')
self.checkRoman(10, 'X')
self.checkRoman(5, 'V')
self.checkRoman(1, 'I')
return self.roman
def checkRoman(self, value, strVal):
numVal = self.num // value
if (numVal > 0 and numVal < 4):
for _ in range(0, numVal):
self.roman += strVal
self.num -= value * numVal
if (value > 100 and self.num / (value - 100) > 0):
self.roman += 'C' + strVal
self.num -= (value - 100)
if (value > 10 and self.num / (value - 10) > 0):
self.roman += 'X' + strVal
self.num -= (value - 10)
if (value > 1 and self.num / (value - 1) > 0):
self.roman += 'I' + strVal
self.num -= value - 1
print(Solution().intToRoman(49)) | num = 45
class Solution(object):
def __init__(self):
self.roman = ''
def int_to_roman(self, num):
self.num = num
self.checkRoman(1000, 'M')
self.checkRoman(500, 'D')
self.checkRoman(100, 'C')
self.checkRoman(50, 'L')
self.checkRoman(10, 'X')
self.checkRoman(5, 'V')
self.checkRoman(1, 'I')
return self.roman
def check_roman(self, value, strVal):
num_val = self.num // value
if numVal > 0 and numVal < 4:
for _ in range(0, numVal):
self.roman += strVal
self.num -= value * numVal
if value > 100 and self.num / (value - 100) > 0:
self.roman += 'C' + strVal
self.num -= value - 100
if value > 10 and self.num / (value - 10) > 0:
self.roman += 'X' + strVal
self.num -= value - 10
if value > 1 and self.num / (value - 1) > 0:
self.roman += 'I' + strVal
self.num -= value - 1
print(solution().intToRoman(49)) |
# -*- coding: utf-8 -*-
TO_EXCLUDE = [
"ACITAK",
"ACITAK",
"ADASUW",
"AFEHOL",
"AFENAA",
"AFENAA",
"AMUTEI",
"AQUCOF",
"AQUCOF",
"AQUDAS",
"AQUDAS",
"ARADEE",
"ATAGOQ",
"ATAGOR",
"ATAGOR",
"BAXLA",
"BAXLAP",
"BAXLAP",
"BICPOV",
"BICPOV",
"BIYWAK",
"BIYWAK",
"BIZLOO",
"BUHVOP",
"BUPVEP",
"BUXZAX",
"CAVWEC",
"CIGXIA",
"COFYOM",
"COFYOM",
"COFYOM",
"COKNOH",
"COKNOH01",
"COXQOV",
"COXQOV",
"CUFMOG",
"CUVJUA",
"CUVJUA",
"DIJYED",
"DOVBIB",
"EBUPUO",
"EBUPUO",
"EDIMOT",
"EKIPAP01",
"ENATUJ",
"EQEHUE",
"EQIZAF",
"FAQLIV",
"FEBZUH10",
"FEKCEE",
"FENXAY",
"FIGTUL",
"FIGTUL",
"FIGZIG",
"FIGZIG",
"FIGZIG",
"FIGZOM",
"FIGZOM",
"FIGZOM",
"FIGZUS",
"FIGZUS",
"FINPUP01",
"FIYGAY",
"FODLAM02",
"FUZBUX",
"FUZBUX",
"FUZBUX",
"GASMUK",
"GEVPOM",
"GEVPOM",
"GUVZEE",
"GUVZII",
"HAVHAG",
"HAVHAG",
"HAVHAQ",
"HAVHAQ",
"HAWVIN",
"HAWVUZ",
"HEQVUU",
"HEQWAB",
"HITQOR",
"HITQOR",
"HOJHUM",
"HOMQEI",
"IDIWIB",
"IDIWOH",
"IDIXID",
"IDXID",
"IJATUI",
"IWIHON",
"JAPYEH",
"JAPYEH",
"JAPYIL",
"JAPYOR",
"JAPYUX",
"JAPZAE",
"JAPZEI",
"JAPZEI",
"JAPZIM",
"JAPZUY",
"JAPZUY",
"JEBWEV",
"JIMNUR",
"JIZJAF",
"JIZJEJ",
"JIZJIN",
"JIZJOT",
"JIZJUZ",
"JUBQEE",
"KAJZIH",
"KAKTIA01",
"KAKTIA01",
"KAWCES",
"KAWFUL",
"KAWFUL",
"KEPGES",
"KEPGIW",
"KEPGIW",
"KEPGIW",
"KERWIP",
"KESSIM",
"KESSIM",
"KEXZUI",
"KOCLEW",
"KOGNIE",
"KOGNIE",
"KOVLOC",
"KUTNUI",
"KUTNUI",
"LARRAA",
"LARRAA",
"LAVYIT",
"LIDWAX",
"LIDWAX",
"MAHSUK",
"MAHSUK01",
"MAJLOZ",
"MAPGUI",
"MAVLED",
"MELNEZ",
"MELNEZ",
"MIFQEZ",
"MIFQOJ",
"MIFQOJ",
"MITFON",
"MITSIS",
"MOBBOU",
"MOBBOU",
"MOHQOQ",
"MOHQOQ",
"MOYZAC",
"NAMTON",
"NAMTON",
"NAVRIO",
"NECBUT",
"NECBUT",
"NECCUU",
"NECCUU",
"NENNOK",
"NEZPOA",
"NEZPUG",
"NOJSUD",
"NUHWUJ",
"NUMLIQ",
"NUZXAI",
"NUZXAI",
"OJANES",
"OJANES",
"OLIKUR",
"ORIVUI",
"PEFHIS",
"PEHWEE",
"PEPVEM",
"PEPVEM",
"PETWOC",
"PETWUI",
"PETXAP",
"PIZHAJ",
"PURVIH",
"PURVIH",
"QAMTEG",
"QEJLID", # mixed valence not indicated
"QIDFOB",
"RAWFAZ",
"REKPUV",
"REKPUV",
"RERROW",
"RERROW",
"REYDUX",
"ROCKEZ",
"ROCKEZ",
"RUVHEX",
"SATHUS",
"SIBDUD",
"SIBDUD",
"SISMAL",
"SISMAL",
"SIYXIH",
"SOKKAH",
"SULPMS",
"TAZGEG",
"TAZGEG",
"TAZGEG",
"TCAZCO",
"TCAZCO",
"TCAZCO",
"TEDDUC",
"TEDDUC",
"TEDDUC",
"TEJFOG",
"TEPWIX",
"TEYLOB",
"TICMEY",
"TICMEY",
"UDACEH",
"UDOQAF",
"UDOQAF",
"UGARID",
"UGARID",
"VAYJOB",
"VEYJOB",
"VIGCET",
"VOGBAU",
"VOMMUH",
"VUNQUS",
"VUNQUS",
"VUNQUS",
"WAQFAY",
"WAQKIK",
"WAZKOZ",
"WODZEX",
"WOQKET",
"WUDLIQ",
"XAHREE",
"XAHREE",
"XAXPIX",
"XEDJUN",
"XEHVOW",
"XEHVOW",
"XOXTOW",
"XOXTUC",
"XUVDEZ",
"YAKFIZ",
"YAKFIZ",
"YAMLOQ",
"ZARBEZ",
"ZASTUK",
"ZASTUK",
"ZEJWIX",
"ZEJWOD",
"ZEJXAQ",
"ZEJXAQ",
"ZEJXEU",
"ZEQROE",
"ZIFTIU",
"ZITFIU",
"ZITMUN",
"RAXBAV",
"BAYMOF",
"GIMBIN",
"KIKPOM",
"VAHCEM",
"ZUQVUC",
"CAVXAB",
"EBAGAR",
"ACITAK",
"ZUVVUH",
"BERXAX",
"BIWRUX",
"ZICXOY",
"XUDJUB",
"ZASBEC",
"PEXRIU",
"TACJUE",
"SOSVAX",
"MATVEK",
"YUSKIH",
"SEBCUA",
"NAYCIZ",
"XAVJAF",
"YAZPOG",
"AQOPEB",
"BAQMIR",
"BIPLIX",
"ZEGFOG",
"KIFVOL",
"CAGROT",
"ROFDEV",
"JIVWUH",
"BIYWEO",
"AKIYUO",
"ROFCUK",
"TIWPEU",
"UFAXIJ", # Cr(III/V) disordered
"YALPOR", # partially oxidized Fe and partially reduced Cu
"FUGCUF", # Not so clear where the CSD got the Co(III) from
"YIPDOR", # should have been excluded due to mixed valence
"LOKJUR", # "do not allow distinguishing the Cu oxidation state."
"TERBUQ", # mutlticonfigurational ground state
"TAQDUN",
"AMUTEI",
"PEQXUF",
"YEJJUT",
"ROFDAR",
"BARGAF",
"FAXLOG",
"ZIPFOT",
"WALWEM",
"UCIDEQ",
"VIGQUA",
"XAHREE",
"WAZKOZ",
"ZOCLAE",
"EKINUH",
"FELHUZ",
"QICXEG",
"WUBLEK",
"ZERHAF",
"FARROH",
"ZEJXAQ",
"UHOGUT",
"XALXAJ",
"SISMAL",
"DEFCID",
"YEGLAZ",
"ZEJWIX",
"CUNTOV",
"FODLAM",
"BAWGEO",
"BUPHEA",
"OLELAS",
"DOCPOD",
"WOKJOW",
"WOQKET",
"WOKJAI",
"BEFZAP",
"VUQWAG",
"GATDAH",
"TAQDUN",
"WEZPEX",
"LEKFEM",
"BIJCUV", # highly covalent, Moessbauer is unclear
"XALFUN", # from the paper Co(0) seems to be not that clea
"FAGWOA",
"TUQKUL",
"YEXBOS",
"XIHLIK",
"KIWDOJ",
"BALTUE", # Re(V/VII) resonance forms
"BOJSUO",
]
| to_exclude = ['ACITAK', 'ACITAK', 'ADASUW', 'AFEHOL', 'AFENAA', 'AFENAA', 'AMUTEI', 'AQUCOF', 'AQUCOF', 'AQUDAS', 'AQUDAS', 'ARADEE', 'ATAGOQ', 'ATAGOR', 'ATAGOR', 'BAXLA', 'BAXLAP', 'BAXLAP', 'BICPOV', 'BICPOV', 'BIYWAK', 'BIYWAK', 'BIZLOO', 'BUHVOP', 'BUPVEP', 'BUXZAX', 'CAVWEC', 'CIGXIA', 'COFYOM', 'COFYOM', 'COFYOM', 'COKNOH', 'COKNOH01', 'COXQOV', 'COXQOV', 'CUFMOG', 'CUVJUA', 'CUVJUA', 'DIJYED', 'DOVBIB', 'EBUPUO', 'EBUPUO', 'EDIMOT', 'EKIPAP01', 'ENATUJ', 'EQEHUE', 'EQIZAF', 'FAQLIV', 'FEBZUH10', 'FEKCEE', 'FENXAY', 'FIGTUL', 'FIGTUL', 'FIGZIG', 'FIGZIG', 'FIGZIG', 'FIGZOM', 'FIGZOM', 'FIGZOM', 'FIGZUS', 'FIGZUS', 'FINPUP01', 'FIYGAY', 'FODLAM02', 'FUZBUX', 'FUZBUX', 'FUZBUX', 'GASMUK', 'GEVPOM', 'GEVPOM', 'GUVZEE', 'GUVZII', 'HAVHAG', 'HAVHAG', 'HAVHAQ', 'HAVHAQ', 'HAWVIN', 'HAWVUZ', 'HEQVUU', 'HEQWAB', 'HITQOR', 'HITQOR', 'HOJHUM', 'HOMQEI', 'IDIWIB', 'IDIWOH', 'IDIXID', 'IDXID', 'IJATUI', 'IWIHON', 'JAPYEH', 'JAPYEH', 'JAPYIL', 'JAPYOR', 'JAPYUX', 'JAPZAE', 'JAPZEI', 'JAPZEI', 'JAPZIM', 'JAPZUY', 'JAPZUY', 'JEBWEV', 'JIMNUR', 'JIZJAF', 'JIZJEJ', 'JIZJIN', 'JIZJOT', 'JIZJUZ', 'JUBQEE', 'KAJZIH', 'KAKTIA01', 'KAKTIA01', 'KAWCES', 'KAWFUL', 'KAWFUL', 'KEPGES', 'KEPGIW', 'KEPGIW', 'KEPGIW', 'KERWIP', 'KESSIM', 'KESSIM', 'KEXZUI', 'KOCLEW', 'KOGNIE', 'KOGNIE', 'KOVLOC', 'KUTNUI', 'KUTNUI', 'LARRAA', 'LARRAA', 'LAVYIT', 'LIDWAX', 'LIDWAX', 'MAHSUK', 'MAHSUK01', 'MAJLOZ', 'MAPGUI', 'MAVLED', 'MELNEZ', 'MELNEZ', 'MIFQEZ', 'MIFQOJ', 'MIFQOJ', 'MITFON', 'MITSIS', 'MOBBOU', 'MOBBOU', 'MOHQOQ', 'MOHQOQ', 'MOYZAC', 'NAMTON', 'NAMTON', 'NAVRIO', 'NECBUT', 'NECBUT', 'NECCUU', 'NECCUU', 'NENNOK', 'NEZPOA', 'NEZPUG', 'NOJSUD', 'NUHWUJ', 'NUMLIQ', 'NUZXAI', 'NUZXAI', 'OJANES', 'OJANES', 'OLIKUR', 'ORIVUI', 'PEFHIS', 'PEHWEE', 'PEPVEM', 'PEPVEM', 'PETWOC', 'PETWUI', 'PETXAP', 'PIZHAJ', 'PURVIH', 'PURVIH', 'QAMTEG', 'QEJLID', 'QIDFOB', 'RAWFAZ', 'REKPUV', 'REKPUV', 'RERROW', 'RERROW', 'REYDUX', 'ROCKEZ', 'ROCKEZ', 'RUVHEX', 'SATHUS', 'SIBDUD', 'SIBDUD', 'SISMAL', 'SISMAL', 'SIYXIH', 'SOKKAH', 'SULPMS', 'TAZGEG', 'TAZGEG', 'TAZGEG', 'TCAZCO', 'TCAZCO', 'TCAZCO', 'TEDDUC', 'TEDDUC', 'TEDDUC', 'TEJFOG', 'TEPWIX', 'TEYLOB', 'TICMEY', 'TICMEY', 'UDACEH', 'UDOQAF', 'UDOQAF', 'UGARID', 'UGARID', 'VAYJOB', 'VEYJOB', 'VIGCET', 'VOGBAU', 'VOMMUH', 'VUNQUS', 'VUNQUS', 'VUNQUS', 'WAQFAY', 'WAQKIK', 'WAZKOZ', 'WODZEX', 'WOQKET', 'WUDLIQ', 'XAHREE', 'XAHREE', 'XAXPIX', 'XEDJUN', 'XEHVOW', 'XEHVOW', 'XOXTOW', 'XOXTUC', 'XUVDEZ', 'YAKFIZ', 'YAKFIZ', 'YAMLOQ', 'ZARBEZ', 'ZASTUK', 'ZASTUK', 'ZEJWIX', 'ZEJWOD', 'ZEJXAQ', 'ZEJXAQ', 'ZEJXEU', 'ZEQROE', 'ZIFTIU', 'ZITFIU', 'ZITMUN', 'RAXBAV', 'BAYMOF', 'GIMBIN', 'KIKPOM', 'VAHCEM', 'ZUQVUC', 'CAVXAB', 'EBAGAR', 'ACITAK', 'ZUVVUH', 'BERXAX', 'BIWRUX', 'ZICXOY', 'XUDJUB', 'ZASBEC', 'PEXRIU', 'TACJUE', 'SOSVAX', 'MATVEK', 'YUSKIH', 'SEBCUA', 'NAYCIZ', 'XAVJAF', 'YAZPOG', 'AQOPEB', 'BAQMIR', 'BIPLIX', 'ZEGFOG', 'KIFVOL', 'CAGROT', 'ROFDEV', 'JIVWUH', 'BIYWEO', 'AKIYUO', 'ROFCUK', 'TIWPEU', 'UFAXIJ', 'YALPOR', 'FUGCUF', 'YIPDOR', 'LOKJUR', 'TERBUQ', 'TAQDUN', 'AMUTEI', 'PEQXUF', 'YEJJUT', 'ROFDAR', 'BARGAF', 'FAXLOG', 'ZIPFOT', 'WALWEM', 'UCIDEQ', 'VIGQUA', 'XAHREE', 'WAZKOZ', 'ZOCLAE', 'EKINUH', 'FELHUZ', 'QICXEG', 'WUBLEK', 'ZERHAF', 'FARROH', 'ZEJXAQ', 'UHOGUT', 'XALXAJ', 'SISMAL', 'DEFCID', 'YEGLAZ', 'ZEJWIX', 'CUNTOV', 'FODLAM', 'BAWGEO', 'BUPHEA', 'OLELAS', 'DOCPOD', 'WOKJOW', 'WOQKET', 'WOKJAI', 'BEFZAP', 'VUQWAG', 'GATDAH', 'TAQDUN', 'WEZPEX', 'LEKFEM', 'BIJCUV', 'XALFUN', 'FAGWOA', 'TUQKUL', 'YEXBOS', 'XIHLIK', 'KIWDOJ', 'BALTUE', 'BOJSUO'] |
# -*- coding: utf-8 -*-
URL = '127.0.0.1'
PORT = 27017
DATABASE = 'MyFunctions'
COLLECTION = 'FunctionCheckers'
FILE_PATH = '../examples/functions.py'
CATCHER = 'result'
IMPORT_POST = True
STATIC_POST = True
FUNC_POST = True
| url = '127.0.0.1'
port = 27017
database = 'MyFunctions'
collection = 'FunctionCheckers'
file_path = '../examples/functions.py'
catcher = 'result'
import_post = True
static_post = True
func_post = True |
#Parsing and Extracting
data= "From Stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008"
atpos= data.find("@")
print(atpos)
atss= data.find(" ",atpos) #here it starts at 21 and then goes and find the next space
print(atss)
host= data[atpos+1: atss] #Now we are extracting the part that we are interested in
print(host)
#this prints uct.ac.za
| data = 'From Stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008'
atpos = data.find('@')
print(atpos)
atss = data.find(' ', atpos)
print(atss)
host = data[atpos + 1:atss]
print(host) |
# Solution
def part1(data):
stack = []
meta_sum = 0
gen = input_gen(data)
for x in gen:
if x != 0 or len(stack) % 2 == 1:
stack.append(x)
continue
m = next(gen)
while m > 0 or len(stack) > 0:
for _ in range(m):
meta_sum += next(gen)
m = stack.pop() if len(stack) > 0 else 0
node = stack.pop() - 1 if len(stack) > 0 else 0
if node > 0:
stack.append(node)
stack.append(m)
break
return meta_sum
def part2(data):
gen = input_gen(data)
children_count = next(gen)
metadata_count = next(gen)
root = Tree(None, children_count, metadata_count)
current_node = root
while True:
children_count = next(gen)
metadata_count = next(gen)
new_node = Tree(current_node, children_count, metadata_count)
current_node.children[current_node.index] = new_node
current_node = new_node
if children_count == 0:
get_metadata(gen, current_node.metadata)
while current_node.parent is not None:
current_node = current_node.parent
current_node.index += 1
if current_node.index < len(current_node.children):
break
get_metadata(gen, current_node.metadata)
if current_node.parent is None and current_node.index == len(current_node.children):
break
return calculate_node_value(root)
def input_gen(data):
arr = data.split(' ')
for x in arr:
yield(int(x))
def get_metadata(gen, arr):
for i in range(len(arr)):
arr[i] = next(gen)
def calculate_node_value(node):
if len(node.metadata) == 0:
return 0
if len(node.children) == 0:
return sum(node.metadata)
node_value = 0
for i in node.metadata:
if i <= len(node.children):
node_value += calculate_node_value(node.children[i - 1])
return node_value
class Tree:
def __init__(self, parent, children_count, metadata_count):
self._parent = parent
self._children = [None] * children_count
self._metadata = [None] * metadata_count
self._index = 0
@property
def index(self):
return self._index
@index.setter
def index(self, value):
self._index = value
@property
def parent(self):
return self._parent
@property
def children(self):
return self._children
@property
def metadata(self):
return self._metadata
# Tests
def test(expected, actual):
assert expected == actual, 'Expected: %r, Actual: %r' % (expected, actual)
test(138, part1('2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2'))
test(66, part2('2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2'))
# Solve real puzzle
filename = 'data/day08.txt'
data = [line.rstrip('\n') for line in open(filename, 'r')][0]
print('Day 08, part 1: %r' % (part1(data)))
print('Day 08, part 2: %r' % (part2(data)))
| def part1(data):
stack = []
meta_sum = 0
gen = input_gen(data)
for x in gen:
if x != 0 or len(stack) % 2 == 1:
stack.append(x)
continue
m = next(gen)
while m > 0 or len(stack) > 0:
for _ in range(m):
meta_sum += next(gen)
m = stack.pop() if len(stack) > 0 else 0
node = stack.pop() - 1 if len(stack) > 0 else 0
if node > 0:
stack.append(node)
stack.append(m)
break
return meta_sum
def part2(data):
gen = input_gen(data)
children_count = next(gen)
metadata_count = next(gen)
root = tree(None, children_count, metadata_count)
current_node = root
while True:
children_count = next(gen)
metadata_count = next(gen)
new_node = tree(current_node, children_count, metadata_count)
current_node.children[current_node.index] = new_node
current_node = new_node
if children_count == 0:
get_metadata(gen, current_node.metadata)
while current_node.parent is not None:
current_node = current_node.parent
current_node.index += 1
if current_node.index < len(current_node.children):
break
get_metadata(gen, current_node.metadata)
if current_node.parent is None and current_node.index == len(current_node.children):
break
return calculate_node_value(root)
def input_gen(data):
arr = data.split(' ')
for x in arr:
yield int(x)
def get_metadata(gen, arr):
for i in range(len(arr)):
arr[i] = next(gen)
def calculate_node_value(node):
if len(node.metadata) == 0:
return 0
if len(node.children) == 0:
return sum(node.metadata)
node_value = 0
for i in node.metadata:
if i <= len(node.children):
node_value += calculate_node_value(node.children[i - 1])
return node_value
class Tree:
def __init__(self, parent, children_count, metadata_count):
self._parent = parent
self._children = [None] * children_count
self._metadata = [None] * metadata_count
self._index = 0
@property
def index(self):
return self._index
@index.setter
def index(self, value):
self._index = value
@property
def parent(self):
return self._parent
@property
def children(self):
return self._children
@property
def metadata(self):
return self._metadata
def test(expected, actual):
assert expected == actual, 'Expected: %r, Actual: %r' % (expected, actual)
test(138, part1('2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2'))
test(66, part2('2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2'))
filename = 'data/day08.txt'
data = [line.rstrip('\n') for line in open(filename, 'r')][0]
print('Day 08, part 1: %r' % part1(data))
print('Day 08, part 2: %r' % part2(data)) |
## IMPORTANT: Must be loaded after `02-service-common.py
## announcement service
service_env = dict()
service_url = f'{hub_hostname}:{service_port}'
if c.JupyterHub.internal_ssl:
# if we are using end-to-end mTLS, then pass
# certs to service and set scheme to `https`
# TODO: Generate certs automatically
PKI_STORE=c.JupyterHub.internal_certs_location
service_env = {
'JUPYTERHUB_SSL_CERTFILE':
f'{PKI_STORE}/hub-internal/hub-internal.crt',
'JUPYTERHUB_SSL_KEYFILE':
f'{PKI_STORE}/hub-internal/hub-internal.key',
'JUPYTERHUB_SSL_CLIENT_CA':
f'{PKI_STORE}/hub-ca_trust.crt',
}
service_url = f'https://{service_url}'
else:
# if not, set schema to `http`
service_url = f'http://{service_url}'
pass
# NOTE: you must generate certs for services
c.JupyterHub.services += [
{ # Hub-wide announcments service
'name': 'announcement',
'url': service_url,
'command': [
sys.executable, '-m', 'jupyterhub_announcement',
f'--AnnouncementService.fixed_message="Welcome to the {hub_id} JupyterHub server!"',
f'--AnnouncementService.port={service_port}',
f'--AnnouncementQueue.persist_path=announcements.json',
f'--AnnouncementService.template_paths=["{hub_path}/share/jupyterhub/templates","{hub_path}/templates"]'
],
'environment': service_env
}
]
# increment service port
service_port += 1
| service_env = dict()
service_url = f'{hub_hostname}:{service_port}'
if c.JupyterHub.internal_ssl:
pki_store = c.JupyterHub.internal_certs_location
service_env = {'JUPYTERHUB_SSL_CERTFILE': f'{PKI_STORE}/hub-internal/hub-internal.crt', 'JUPYTERHUB_SSL_KEYFILE': f'{PKI_STORE}/hub-internal/hub-internal.key', 'JUPYTERHUB_SSL_CLIENT_CA': f'{PKI_STORE}/hub-ca_trust.crt'}
service_url = f'https://{service_url}'
else:
service_url = f'http://{service_url}'
pass
c.JupyterHub.services += [{'name': 'announcement', 'url': service_url, 'command': [sys.executable, '-m', 'jupyterhub_announcement', f'--AnnouncementService.fixed_message="Welcome to the {hub_id} JupyterHub server!"', f'--AnnouncementService.port={service_port}', f'--AnnouncementQueue.persist_path=announcements.json', f'--AnnouncementService.template_paths=["{hub_path}/share/jupyterhub/templates","{hub_path}/templates"]'], 'environment': service_env}]
service_port += 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.