content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# -*- coding: utf-8 -*-
"""
1431. Kids With the Greatest Number of Candies
Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that
the ith kid has.
For each kid check if there is a way to distribute extraCandies among the kids such that
he or she can have the greatest number of candies among them. Notice that multiple kids can have
the greatest number of candies.
Constraints:
2 <= candies.length <= 100
1 <= candies[i] <= 100
1 <= extraCandies <= 50
"""
class Solution:
def kidsWithCandies(self, candies, extraCandies):
max_candies = max(candies)
return [val + extraCandies >= max_candies for val in candies]
| """
1431. Kids With the Greatest Number of Candies
Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that
the ith kid has.
For each kid check if there is a way to distribute extraCandies among the kids such that
he or she can have the greatest number of candies among them. Notice that multiple kids can have
the greatest number of candies.
Constraints:
2 <= candies.length <= 100
1 <= candies[i] <= 100
1 <= extraCandies <= 50
"""
class Solution:
def kids_with_candies(self, candies, extraCandies):
max_candies = max(candies)
return [val + extraCandies >= max_candies for val in candies] |
l1= []
l2 = []
i = int(input())
for a in range (0,i):
a = input()
if (a[0]=='1'):
l1.append(a[-1])
elif (a[0]=='2'):
l2.append(a[-1])
elif (a[0] == '5'):
for b in range (0,len(l1)):
print (l1[b], end = " ")
print()
elif (a[0] == '6'):
for b in range (0,len(l2)):
print (l2[b], end = " ")
print()
| l1 = []
l2 = []
i = int(input())
for a in range(0, i):
a = input()
if a[0] == '1':
l1.append(a[-1])
elif a[0] == '2':
l2.append(a[-1])
elif a[0] == '5':
for b in range(0, len(l1)):
print(l1[b], end=' ')
print()
elif a[0] == '6':
for b in range(0, len(l2)):
print(l2[b], end=' ')
print() |
# Write a function to rotate an array. You are given the array arr,
# n, the size of an array, and d, the number of elements to pivot on
# [1,2,3,4,5,6,7], n = 7, d = 2
# [3,4,5,6,7,1,2]
def rotate_array(arr, n, d):
if n == 0:
return None
elif n == 1:
return arr
return arr[d:] + arr[:d]
if __name__ == "__main__":
arr = [1,2,3,4,5,6,7]
arr2 = [2,4,6, 8, 10, 12, 14, 16, 18, 20]
n = 10
d = 3
print(rotate_array(arr2, n, d)) | def rotate_array(arr, n, d):
if n == 0:
return None
elif n == 1:
return arr
return arr[d:] + arr[:d]
if __name__ == '__main__':
arr = [1, 2, 3, 4, 5, 6, 7]
arr2 = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
n = 10
d = 3
print(rotate_array(arr2, n, d)) |
class Solution:
def checkIfPrerequisite(self, n: int, prerequisites: List[List[int]], queries: List[List[int]]) -> List[bool]:
graph = collections.defaultdict(list)
innodes = collections.defaultdict(list)
indegrees = [0] * n
for u, v in prerequisites:
indegrees[v] += 1
graph[u].append(v)
innodes[v].append(u)
frees = []
levels = {}
level = 0
pres = [set() for _ in range(n)]
for u in range(n):
if not indegrees[u]:
frees.append(u)
while frees:
next_level = []
for u in frees:
levels[u] = level
pre = set()
for parent in innodes[u]:
pre.add(parent)
pre |= pres[parent]
pres[u] = pre
for v in graph[u]:
indegrees[v] -= 1
if indegrees[v] == 0:
next_level.append(v)
frees = next_level
level += 1
return [u in pres[v] for u, v in queries]
| class Solution:
def check_if_prerequisite(self, n: int, prerequisites: List[List[int]], queries: List[List[int]]) -> List[bool]:
graph = collections.defaultdict(list)
innodes = collections.defaultdict(list)
indegrees = [0] * n
for (u, v) in prerequisites:
indegrees[v] += 1
graph[u].append(v)
innodes[v].append(u)
frees = []
levels = {}
level = 0
pres = [set() for _ in range(n)]
for u in range(n):
if not indegrees[u]:
frees.append(u)
while frees:
next_level = []
for u in frees:
levels[u] = level
pre = set()
for parent in innodes[u]:
pre.add(parent)
pre |= pres[parent]
pres[u] = pre
for v in graph[u]:
indegrees[v] -= 1
if indegrees[v] == 0:
next_level.append(v)
frees = next_level
level += 1
return [u in pres[v] for (u, v) in queries] |
class APIError(Exception):
"""Represents an error returned in a response to a fleet API call
This exception will be raised any time a response code >= 400 is returned
Attributes:
code (int): The response code
message(str): The message included with the error response
http_error(googleapiclient.errors.HttpError): The underlying exception that caused this exception to be raised
If you need access to the raw response, this is where you'll find
it.
"""
def __init__(self, code, message, http_error):
"""Construct an exception representing an error returned by fleet
Args:
code (int): The response code
message(str): The message included with the error response
http_error(googleapiclient.errors.HttpError): The underlying exception that caused this exception
to be raised.
"""
self.code = code
self.message = message
self.http_error = http_error
def __str__(self):
# Return a string like r'Some bad thing happened(400)'
return '{1} ({0})'.format(
self.code,
self.message
)
def __repr__(self):
# Retun a string like r'<Fleetv1Error; Code: 400; Message: Some bad thing happened>'
return '<{0}; Code: {1}; Message: {2}>'.format(
self.__class__.__name__,
self.code,
self.message
)
| class Apierror(Exception):
"""Represents an error returned in a response to a fleet API call
This exception will be raised any time a response code >= 400 is returned
Attributes:
code (int): The response code
message(str): The message included with the error response
http_error(googleapiclient.errors.HttpError): The underlying exception that caused this exception to be raised
If you need access to the raw response, this is where you'll find
it.
"""
def __init__(self, code, message, http_error):
"""Construct an exception representing an error returned by fleet
Args:
code (int): The response code
message(str): The message included with the error response
http_error(googleapiclient.errors.HttpError): The underlying exception that caused this exception
to be raised.
"""
self.code = code
self.message = message
self.http_error = http_error
def __str__(self):
return '{1} ({0})'.format(self.code, self.message)
def __repr__(self):
return '<{0}; Code: {1}; Message: {2}>'.format(self.__class__.__name__, self.code, self.message) |
"""Base vocabulary map & EOS & UNK (PAD) token"""
# Author: Ziqi Yuan <1564123490@qq.com>
class Vocab:
def __init__(self, pretrain_embedding_path):
self.vocab = []
self.dict = []
with open(pretrain_embedding_path) as file:
for index, line in enumerate(file):
word, embedding = line.split()[0], line.split()[1:]
embedding = [float(v) for v in embedding]
self.vocab.append(word)
self.dict.append(embedding)
self.unk_idx = len(self.vocab)
self.vocab.append('<unk>')
self.dict.append([0 for i in range(100)])
self.vocab_size = len(self.vocab)
self.word2idx = {word: index for index, word in enumerate(self.vocab)}
self.idx2word = {index: word for index, word in enumerate(self.vocab)}
# Note : to run this module(python file alone use '../../dataset/glove.6B.100d.txt' instead)
gloveVocabulary = Vocab("../dataset/glove.6B.100d.txt")
if __name__ == '__main__':
test_vocab = Vocab('../../dataset/glove.6B.100d.txt')
# print(test_vocab.vocab[37], test_vocab.vocab[14])
print(test_vocab.dict[40000])
# print(np.array())
# print(test_vocab.idx2word[test_vocab.vocab_size - 1])
| """Base vocabulary map & EOS & UNK (PAD) token"""
class Vocab:
def __init__(self, pretrain_embedding_path):
self.vocab = []
self.dict = []
with open(pretrain_embedding_path) as file:
for (index, line) in enumerate(file):
(word, embedding) = (line.split()[0], line.split()[1:])
embedding = [float(v) for v in embedding]
self.vocab.append(word)
self.dict.append(embedding)
self.unk_idx = len(self.vocab)
self.vocab.append('<unk>')
self.dict.append([0 for i in range(100)])
self.vocab_size = len(self.vocab)
self.word2idx = {word: index for (index, word) in enumerate(self.vocab)}
self.idx2word = {index: word for (index, word) in enumerate(self.vocab)}
glove_vocabulary = vocab('../dataset/glove.6B.100d.txt')
if __name__ == '__main__':
test_vocab = vocab('../../dataset/glove.6B.100d.txt')
print(test_vocab.dict[40000]) |
# Rotting Oranges
# https://leetcode.com/problems/rotting-oranges/
# In a given grid, each cell can have one of three values:
# the value 0 representing an empty cell;
# the value 1 representing a fresh orange;
# the value 2 representing a rotten orange.
# Every minute, any fresh orange that is adjacent (4-directionally) to a rotten orange becomes rotten.
# Return the minimum number of minutes that must elapse until no cell has a fresh orange.
# If this is impossible, return -1 instead.
# Input: [[2,1,1],[1,1,0],[0,1,1]]
# Output: 4
# Input: [[2,1,1],[0,1,1],[1,0,1]]
# Output: -1
# Explanation: The orange in the bottom left corner (row 2, column 0) is never rotten, because rotting only
# happens 4-directionally.
# Input: [[0,2]]
# Output: 0
# Explanation: Since there are already no fresh oranges at minute 0, the answer is just 0.
# 1 <= grid.length <= 10
# 1 <= grid[0].length <= 10
# grid[i][j] is only 0, 1, or 2
def oranges_rotting(grid):
minute_count = 0
def create_set(grid, target_value):
result = set()
for y in range(len(grid)):
for x in range(len(grid[0])):
if grid[y][x] == target_value:
result.add((x, y))
return result
# create a set of rotten & fresh orange locations
rotten_os = create_set(grid, 2)
fresh_oranges = create_set(grid, 1)
length_fresh = len(fresh_oranges)
# For each time interval iteration
while length_fresh > 0:
going_bad = set()
# loop through fresh oranges and create a set going bad
for x, y in fresh_oranges:
up_cell = (x - 1, y)
down_cell = (x + 1, y)
left_cell = (x, y - 1)
right_cell = (x, y + 1)
if (
up_cell in rotten_os
or down_cell in rotten_os
or left_cell in rotten_os
or right_cell in rotten_os
):
currently_going_bad = (x, y)
going_bad.add(currently_going_bad)
# if none are going bad, it's impossible
length_gb = len(going_bad)
if length_gb == 0:
return -1
# remove oranges going bad from fresh and add to rotten
fresh_oranges.difference_update(going_bad)
rotten_os.update(going_bad)
minute_count += 1
length_fresh = len(fresh_oranges)
return minute_count
# 4
grid = [[2, 1, 1], [1, 1, 0], [0, 1, 1]]
print(oranges_rotting(grid))
# -1
grid = [[2, 1, 1], [0, 1, 1], [1, 0, 1]]
print(oranges_rotting(grid))
# 0
grid = [[0, 2]]
print(oranges_rotting(grid))
| def oranges_rotting(grid):
minute_count = 0
def create_set(grid, target_value):
result = set()
for y in range(len(grid)):
for x in range(len(grid[0])):
if grid[y][x] == target_value:
result.add((x, y))
return result
rotten_os = create_set(grid, 2)
fresh_oranges = create_set(grid, 1)
length_fresh = len(fresh_oranges)
while length_fresh > 0:
going_bad = set()
for (x, y) in fresh_oranges:
up_cell = (x - 1, y)
down_cell = (x + 1, y)
left_cell = (x, y - 1)
right_cell = (x, y + 1)
if up_cell in rotten_os or down_cell in rotten_os or left_cell in rotten_os or (right_cell in rotten_os):
currently_going_bad = (x, y)
going_bad.add(currently_going_bad)
length_gb = len(going_bad)
if length_gb == 0:
return -1
fresh_oranges.difference_update(going_bad)
rotten_os.update(going_bad)
minute_count += 1
length_fresh = len(fresh_oranges)
return minute_count
grid = [[2, 1, 1], [1, 1, 0], [0, 1, 1]]
print(oranges_rotting(grid))
grid = [[2, 1, 1], [0, 1, 1], [1, 0, 1]]
print(oranges_rotting(grid))
grid = [[0, 2]]
print(oranges_rotting(grid)) |
def travel(n,I,O):
l1=[]
#print(I,O)
for i in range(n):
l4=[]
for j in range(n):
if i==j:
l4.append(1)
else:
l4.append(0)
l1.append(l4)
#print(l1)
#print(l1[0].index(1))
for out in range(n):
incoming=out
outgoing=out
while(incoming!=0):
incoming-=1
#print(outgoing,incoming,O[outgoing],I[incoming])
if O[outgoing]=='Y' and I[incoming]=='Y':
l1[out][incoming]=1
outgoing-=1
else:
break
#print(l1)
for out in range(n):
incoming=out
outgoing=out
while(incoming!=(n-1)):
incoming+=1
#print(outgoing,incoming,O[outgoing],I[incoming])
if O[outgoing]=='Y' and I[incoming]=='Y':
l1[out][incoming]=1
outgoing+=1
else:
break
#print(l1)
for i in range(n):
for j in range(n):
if l1[i][j]==1:
print('Y',end="")
else:
print('N',end="")
print()
t=int(input())
for i in range(t):
n=int(input())
I=input()
I=list(I)
O=input()
O=list(O)
print("Case #",i+1,":",sep="")
travel(n,I,O) | def travel(n, I, O):
l1 = []
for i in range(n):
l4 = []
for j in range(n):
if i == j:
l4.append(1)
else:
l4.append(0)
l1.append(l4)
for out in range(n):
incoming = out
outgoing = out
while incoming != 0:
incoming -= 1
if O[outgoing] == 'Y' and I[incoming] == 'Y':
l1[out][incoming] = 1
outgoing -= 1
else:
break
for out in range(n):
incoming = out
outgoing = out
while incoming != n - 1:
incoming += 1
if O[outgoing] == 'Y' and I[incoming] == 'Y':
l1[out][incoming] = 1
outgoing += 1
else:
break
for i in range(n):
for j in range(n):
if l1[i][j] == 1:
print('Y', end='')
else:
print('N', end='')
print()
t = int(input())
for i in range(t):
n = int(input())
i = input()
i = list(I)
o = input()
o = list(O)
print('Case #', i + 1, ':', sep='')
travel(n, I, O) |
class UriTemplates:
"""Entities uri templates."""
ENTITY = '/entities/{0}'
ENTITIES = '/entities'
| class Uritemplates:
"""Entities uri templates."""
entity = '/entities/{0}'
entities = '/entities' |
# Here 'n' is the number of rows and columns
def pattern(n):
for a in range(n):
print("* "*n,end="\n")
pattern(5)
'''
this will return
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
'''
| def pattern(n):
for a in range(n):
print('* ' * n, end='\n')
pattern(5)
'\n\nthis will return \n\n* * * * *\n* * * * *\n* * * * *\n* * * * *\n* * * * *\n\n' |
# ... client initialization left out
data_client = client.data
file_path = "characterizations/CdTe1.json"
dataset_id = 1
data_client.upload(dataset_id, file_path) | data_client = client.data
file_path = 'characterizations/CdTe1.json'
dataset_id = 1
data_client.upload(dataset_id, file_path) |
"""
BASICS
Ensures the existance and correct location of keys
"""
# Ensures the existance of the main keys
# COMPLETE (large dict): Complete JSON directory with all tags and subtags
def ensure_main_keys(COMPLETE):
K = COMPLETE.keys()
if {"user", "password", "Solver", "Variables", "Equation", "Initial Conditions", "Boundary Conditions"}.issubset(set(K)):
return True
return False
# Returns a string with missing variables
def keys_missing(COMPLETE):
PROVIDED = COMPLETE.keys()
EXPECTED = {"user", "password", "Solver", "Variables", "Equation", "Initial Conditions", "Boundary Conditions"}
missing = []
for exp in EXPECTED:
if exp not in PROVIDED:
missing.append(exp)
return "Missing keys: "+",".join(missing)
# Ensures the existance of the main variables
# VARIABLES (dict): Variables dictionary
def ensure_time(VARIABLES):
K = VARIABLES.keys()
if "t" not in K:
return False
tkeys = VARIABLES["t"].keys()
if ("min" not in tkeys) or ("max" not in tkeys) or ("min" not in tkeys) or ("k" not in tkeys):
return False
return True
# Returns the number of main variables:
# Return [count, {}, {}, {}]
def count_xvars(VARIABLES):
tvar = VARIABLES.keys()
info = {"count":0}
for var in tvar:
if VARIABLES[var]["type"] == "main":
varkeys = VARIABLES[var].keys()
if ("min" not in varkeys) or ("max" not in varkeys) or ("min" not in varkeys) or ("h" not in varkeys):
# Lacking information
return {"count":0}
info["count"] += 1
info[var] = VARIABLES[var]
info["t"] = VARIABLES["t"]
return info
# Ensures that a dict containing an operation holds sufficient information
def operation_presyntax(opdict):
# Functions using just the function without any derivatives
reqkeys = ["Q-function", "NL-function", "partial", "Accuracy", "pvar"]
if not all(rk in opdict.keys() for rk in reqkeys):
return False
return True
# Ensures basic equation properties
def valid_pde_equation(EQUATION):
try:
left, right = EQUATION["Left"], EQUATION["Right"]
except:
return [False, "Equation must contain Left, Right keys"]
# Left side can only be du/dt
if left != {"t-derivatives":1}:
return [False, "Left side must be only du/dt: \"Left\":{\"t-derivatives\":1}"]
# Requires the existance of at least one key
if not all(type(rel) is dict for rel in right):
return [False, "Right side must be an array of operations"]
for rl in right:
if not operation_presyntax(rl):
return [False, "One or more operations do not have the correct syntax"]
return [True]
| """
BASICS
Ensures the existance and correct location of keys
"""
def ensure_main_keys(COMPLETE):
k = COMPLETE.keys()
if {'user', 'password', 'Solver', 'Variables', 'Equation', 'Initial Conditions', 'Boundary Conditions'}.issubset(set(K)):
return True
return False
def keys_missing(COMPLETE):
provided = COMPLETE.keys()
expected = {'user', 'password', 'Solver', 'Variables', 'Equation', 'Initial Conditions', 'Boundary Conditions'}
missing = []
for exp in EXPECTED:
if exp not in PROVIDED:
missing.append(exp)
return 'Missing keys: ' + ','.join(missing)
def ensure_time(VARIABLES):
k = VARIABLES.keys()
if 't' not in K:
return False
tkeys = VARIABLES['t'].keys()
if 'min' not in tkeys or 'max' not in tkeys or 'min' not in tkeys or ('k' not in tkeys):
return False
return True
def count_xvars(VARIABLES):
tvar = VARIABLES.keys()
info = {'count': 0}
for var in tvar:
if VARIABLES[var]['type'] == 'main':
varkeys = VARIABLES[var].keys()
if 'min' not in varkeys or 'max' not in varkeys or 'min' not in varkeys or ('h' not in varkeys):
return {'count': 0}
info['count'] += 1
info[var] = VARIABLES[var]
info['t'] = VARIABLES['t']
return info
def operation_presyntax(opdict):
reqkeys = ['Q-function', 'NL-function', 'partial', 'Accuracy', 'pvar']
if not all((rk in opdict.keys() for rk in reqkeys)):
return False
return True
def valid_pde_equation(EQUATION):
try:
(left, right) = (EQUATION['Left'], EQUATION['Right'])
except:
return [False, 'Equation must contain Left, Right keys']
if left != {'t-derivatives': 1}:
return [False, 'Left side must be only du/dt: "Left":{"t-derivatives":1}']
if not all((type(rel) is dict for rel in right)):
return [False, 'Right side must be an array of operations']
for rl in right:
if not operation_presyntax(rl):
return [False, 'One or more operations do not have the correct syntax']
return [True] |
# Python Loops
# for [iterator] in [sequence]
# [sequence] = range(start, end, step)
print ("\nLoop with range")
evenodd = lambda n : "even" if n % 2 == 0 else "odd"
for i in range(1, 11):
print (i, "is " + str(evenodd(i)))
print ("\nLoop in range with step")
for i in range(1, 11, 2):
print (i, "is " + str(evenodd(i)))
print ("\nLoop through list")
flist = [0.1, 1.1, 2.1, 3.1, 4.1, 5.1]
for i in flist:
print (i)
print ("\nLoop through range cast on a list")
for i in range(0, len(flist)):
print (flist[i])
print ("\nLoop through range cast on a list")
for i in range(0, len(flist), 2):
print (flist[i])
print ("\nNested Loop for matrix multiplication")
m1 = [1, 2, 3, 4] # single row matrix
m2 = [4, 3, 2, 1] # single column matrix
k = 0
if len(m1) != len(m2):
print ("Incompatible matrix dimensions")
for i in range(0, len(m1)):
for j in range(0, len(m2)):
if i == j:
k += m1[i] * m2[j]
print (str(i+1) + "," + str(j+1) + ": " + str(m1[i]*m2[j]))
print ("Output: ", k)
#flist = ['m','a','l','a','y','a','l','a','m']
print ("\nBrake for moose")
for i in m1:
for j in m2:
print (str(i) + "," + str(j))
if i == j+1:
print (str(i) + " is one greater than " + str(j) + ". Exiting")
break # this only breaks out of the inner loop
print ("\nContinue for coons")
for i in m1:
for j in m2:
if i == j:
continue
print (str(i) + "," + str(j))
print ("\nIt's been a while ...")
flist = [1.0, 1.1, 1.2, 1.3, 1.4, 1.5]
i = 1;
while i in flist:
print ("i: " + str(i))
i += 0.2
print ("\Quiz")
strlist = ["Anakin", "Vader", "Luke", "Leia", "Rey"]
for s in strlist:
if len(s) < 5:
print (s + ":" + str(len(s)))
i = 0
while (i < len(strlist)):
if len(strlist[i]) < 5:
print (len(strlist[i]))
i += 1
print ("\nBalanced Braces")
# Given "[[[[][][]]]" return true if left braces match with closing right braces
#braces = "[[[[][][]]]"
#braces = "[[[[]]]][]["
#braces = "[[[[]]]]"
#braces = "]]]][[[["
braces = "[]][[]"
left = 0
right = 0
i = 0
brace_open = 0
while i < len(braces):
# base case
if i == 0 and braces[i] == "]":
print ("False: starts with ]")
right += 1
break
if (braces[i] == "["):
left += 1
brace_open += 1
if (braces[i] == "]"):
right += 1
if brace_open >= 1:
brace_open -= 1
else:
pass # don't care
i += 1
if left != right or brace_open > 0:
print ("False: Left:" + str(left) + " Right:" + str(right))
else:
print ("True: Left:" + str(left) + " Right:" + str(right))
print ("\nSimpler code")
def check_balance(braces):
check = 0
for brace in braces:
if brace == '[':
check += 1
elif brace == ']':
check -= 1
if check < 0:
break
return check == 0
#braces = "[[[[][][]]]"
#braces = "[[[[]]]][]["
#braces = "[[[[]]]]"
#braces = "]]]][[[["
#braces = "[]][[]"
ret = check_balance(braces)
if ret == True:
print (braces + " is balanced")
else:
print (braces + " is unbalanced")
print ("\nCheckSum to zero")
def check_sum(nlist):
for num in nlist:
for complement in nlist:
if num + complement == 0:
return True
return False
numlist = [10, -14, 26, 5, -3, 13, -5]
#numlist = [10, -14, 26, 5, -3]
if check_sum(numlist):
print ("Sum checks")
else:
print ("Sum does not check")
# 0 1 1 2 3 5 8 13 21
print ("\nFibonacci with loops")
def fib(n):
n1 = 0
n2 = 1
if (n < 1):
return -1
if (n == 1):
return n1
if (n == 2):
return n2
nth = 3
# if you use for loop here, Py complains that val is uninitialized
while (nth <= n):
val = n1 + n2
n1 = n2
n2 = val
nth += 1
return val
print ("-1: " + str(fib(-1)))
print ("0: " + str(fib(0)))
print ("1: " + str(fib(1)))
print ("2: " + str(fib(2)))
print ("3: " + str(fib(3)))
print ("4: " + str(fib(4)))
print ("5: " + str(fib(5)))
print ("6: " + str(fib(6)))
print ("7: " + str(fib(7)))
| print('\nLoop with range')
evenodd = lambda n: 'even' if n % 2 == 0 else 'odd'
for i in range(1, 11):
print(i, 'is ' + str(evenodd(i)))
print('\nLoop in range with step')
for i in range(1, 11, 2):
print(i, 'is ' + str(evenodd(i)))
print('\nLoop through list')
flist = [0.1, 1.1, 2.1, 3.1, 4.1, 5.1]
for i in flist:
print(i)
print('\nLoop through range cast on a list')
for i in range(0, len(flist)):
print(flist[i])
print('\nLoop through range cast on a list')
for i in range(0, len(flist), 2):
print(flist[i])
print('\nNested Loop for matrix multiplication')
m1 = [1, 2, 3, 4]
m2 = [4, 3, 2, 1]
k = 0
if len(m1) != len(m2):
print('Incompatible matrix dimensions')
for i in range(0, len(m1)):
for j in range(0, len(m2)):
if i == j:
k += m1[i] * m2[j]
print(str(i + 1) + ',' + str(j + 1) + ': ' + str(m1[i] * m2[j]))
print('Output: ', k)
print('\nBrake for moose')
for i in m1:
for j in m2:
print(str(i) + ',' + str(j))
if i == j + 1:
print(str(i) + ' is one greater than ' + str(j) + '. Exiting')
break
print('\nContinue for coons')
for i in m1:
for j in m2:
if i == j:
continue
print(str(i) + ',' + str(j))
print("\nIt's been a while ...")
flist = [1.0, 1.1, 1.2, 1.3, 1.4, 1.5]
i = 1
while i in flist:
print('i: ' + str(i))
i += 0.2
print('\\Quiz')
strlist = ['Anakin', 'Vader', 'Luke', 'Leia', 'Rey']
for s in strlist:
if len(s) < 5:
print(s + ':' + str(len(s)))
i = 0
while i < len(strlist):
if len(strlist[i]) < 5:
print(len(strlist[i]))
i += 1
print('\nBalanced Braces')
braces = '[]][[]'
left = 0
right = 0
i = 0
brace_open = 0
while i < len(braces):
if i == 0 and braces[i] == ']':
print('False: starts with ]')
right += 1
break
if braces[i] == '[':
left += 1
brace_open += 1
if braces[i] == ']':
right += 1
if brace_open >= 1:
brace_open -= 1
else:
pass
i += 1
if left != right or brace_open > 0:
print('False: Left:' + str(left) + ' Right:' + str(right))
else:
print('True: Left:' + str(left) + ' Right:' + str(right))
print('\nSimpler code')
def check_balance(braces):
check = 0
for brace in braces:
if brace == '[':
check += 1
elif brace == ']':
check -= 1
if check < 0:
break
return check == 0
ret = check_balance(braces)
if ret == True:
print(braces + ' is balanced')
else:
print(braces + ' is unbalanced')
print('\nCheckSum to zero')
def check_sum(nlist):
for num in nlist:
for complement in nlist:
if num + complement == 0:
return True
return False
numlist = [10, -14, 26, 5, -3, 13, -5]
if check_sum(numlist):
print('Sum checks')
else:
print('Sum does not check')
print('\nFibonacci with loops')
def fib(n):
n1 = 0
n2 = 1
if n < 1:
return -1
if n == 1:
return n1
if n == 2:
return n2
nth = 3
while nth <= n:
val = n1 + n2
n1 = n2
n2 = val
nth += 1
return val
print('-1: ' + str(fib(-1)))
print('0: ' + str(fib(0)))
print('1: ' + str(fib(1)))
print('2: ' + str(fib(2)))
print('3: ' + str(fib(3)))
print('4: ' + str(fib(4)))
print('5: ' + str(fib(5)))
print('6: ' + str(fib(6)))
print('7: ' + str(fib(7))) |
path = "input.txt"
file = open(path)
input = file.readlines()
file.close()
all_fish = [[int(x) for x in line.split(",")] for line in input][0]
for i in range(80):
new = 0
for idx in range(len(all_fish)):
if all_fish[idx] == 0:
all_fish[idx] = 6
new += 1
else:
all_fish[idx] -= 1
all_fish += [8 for _ in range(new)]
print(len(all_fish))
| path = 'input.txt'
file = open(path)
input = file.readlines()
file.close()
all_fish = [[int(x) for x in line.split(',')] for line in input][0]
for i in range(80):
new = 0
for idx in range(len(all_fish)):
if all_fish[idx] == 0:
all_fish[idx] = 6
new += 1
else:
all_fish[idx] -= 1
all_fish += [8 for _ in range(new)]
print(len(all_fish)) |
def test1_3():
n = 1
while True:
time1 = 100*n**2
time2 = 2**n
if time1 >= time2:
n += 1
else:
break
print(n, time1, time2)
test1_3()
| def test1_3():
n = 1
while True:
time1 = 100 * n ** 2
time2 = 2 ** n
if time1 >= time2:
n += 1
else:
break
print(n, time1, time2)
test1_3() |
def numDepthIncreases():
'''
Problem: https://adventofcode.com/2021/day/1/
'''
with open("data.txt") as f:
data = f.readlines()
num_depth_increases = 0
for i, line in enumerate(data):
if i > 0 and i <= len(data):
if int(line.strip('\n')) > int(data[i-1].strip('\n')):
num_depth_increases += 1
return num_depth_increases
numDepthIncreases() | def num_depth_increases():
"""
Problem: https://adventofcode.com/2021/day/1/
"""
with open('data.txt') as f:
data = f.readlines()
num_depth_increases = 0
for (i, line) in enumerate(data):
if i > 0 and i <= len(data):
if int(line.strip('\n')) > int(data[i - 1].strip('\n')):
num_depth_increases += 1
return num_depth_increases
num_depth_increases() |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
FileName: 344. Reverse String.py
Description:
Author: Kimberly Gao
Date: 2021/07/13 11:21 AM
Version: 0.1
Runtime: 412 ms (5.16%)
Memory Usage: 18.5 MB (64.61%)
"""
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Two pointers: head & tail
:type s: List[str]
:rtype: None
"""
head, tail = 0, len(s)-1
while head < tail:
crt = s[head]
s[head] = s[tail]
s[tail] = crt
head += 1
tail -= 1
| """
FileName: 344. Reverse String.py
Description:
Author: Kimberly Gao
Date: 2021/07/13 11:21 AM
Version: 0.1
Runtime: 412 ms (5.16%)
Memory Usage: 18.5 MB (64.61%)
"""
class Solution:
def reverse_string(self, s: List[str]) -> None:
"""
Two pointers: head & tail
:type s: List[str]
:rtype: None
"""
(head, tail) = (0, len(s) - 1)
while head < tail:
crt = s[head]
s[head] = s[tail]
s[tail] = crt
head += 1
tail -= 1 |
"""
RENDER
"""
render_camera = 'cam1'
render_lights = 'light1'
"""
MATERIAL
"""
mat = 'phong1'
mat_color = ''
"""
INSTANCES
"""
inst_state = 1
inst_tra = 'viz6/null_tra'
inst_tx = 'r'
inst_ty = 'g'
inst_tz = 'b'
inst_rot = 'viz6/null_rot'
inst_rx = 'r'
inst_ry = 'g'
inst_rz = 'b'
inst_sca = 'viz6/null_sca'
inst_sx = 'r'
inst_sy = 'g'
inst_sz = 'b'
inst_col = 'viz6/null_col'
inst_r = 'r'
inst_g = 'g'
inst_b = 'b'
inst_a = 'a'
inst_texs = ''
inst_texindexop = ''
inst_texindex = ''
| """
RENDER
"""
render_camera = 'cam1'
render_lights = 'light1'
'\nMATERIAL\n'
mat = 'phong1'
mat_color = ''
'\nINSTANCES\n'
inst_state = 1
inst_tra = 'viz6/null_tra'
inst_tx = 'r'
inst_ty = 'g'
inst_tz = 'b'
inst_rot = 'viz6/null_rot'
inst_rx = 'r'
inst_ry = 'g'
inst_rz = 'b'
inst_sca = 'viz6/null_sca'
inst_sx = 'r'
inst_sy = 'g'
inst_sz = 'b'
inst_col = 'viz6/null_col'
inst_r = 'r'
inst_g = 'g'
inst_b = 'b'
inst_a = 'a'
inst_texs = ''
inst_texindexop = ''
inst_texindex = '' |
class ServiceReviewHistory:
def __init__(self, org_uuid, service_uuid, service_metadata, state, reviewed_by, reviewed_on, created_on,
updated_on):
self._org_uuid = org_uuid
self._service_uuid = service_uuid
self._service_metadata = service_metadata
self._state = state
self._reviewed_by = reviewed_by
self._reviewed_on = reviewed_on
self._created_on = created_on
self._updated_on = updated_on
def to_dict(self):
return {
"org_uuid": self._org_uuid,
"service_uuid": self._service_uuid,
"service_metadata": self._service_metadata,
"state": self._state,
"reviewed_by": self._reviewed_by,
"reviewed_on": self._reviewed_on,
"created_on": self._created_on,
"updated_on": self._updated_on
}
@property
def org_uuid(self):
return self._org_uuid
@property
def service_uuid(self):
return self._service_uuid
@property
def service_metadata(self):
return self._service_metadata
@property
def state(self):
return self._state
@property
def reviewed_by(self):
return self._reviewed_by
@property
def reviewed_on(self):
return self._reviewed_on
@property
def created_on(self):
return self._created_on
@property
def updated_on(self):
return self._updated_on
| class Servicereviewhistory:
def __init__(self, org_uuid, service_uuid, service_metadata, state, reviewed_by, reviewed_on, created_on, updated_on):
self._org_uuid = org_uuid
self._service_uuid = service_uuid
self._service_metadata = service_metadata
self._state = state
self._reviewed_by = reviewed_by
self._reviewed_on = reviewed_on
self._created_on = created_on
self._updated_on = updated_on
def to_dict(self):
return {'org_uuid': self._org_uuid, 'service_uuid': self._service_uuid, 'service_metadata': self._service_metadata, 'state': self._state, 'reviewed_by': self._reviewed_by, 'reviewed_on': self._reviewed_on, 'created_on': self._created_on, 'updated_on': self._updated_on}
@property
def org_uuid(self):
return self._org_uuid
@property
def service_uuid(self):
return self._service_uuid
@property
def service_metadata(self):
return self._service_metadata
@property
def state(self):
return self._state
@property
def reviewed_by(self):
return self._reviewed_by
@property
def reviewed_on(self):
return self._reviewed_on
@property
def created_on(self):
return self._created_on
@property
def updated_on(self):
return self._updated_on |
class Solution:
def XXX(self, n: int) -> str:
dp = '1'
for i in range(n-1):
s, cur_char, cnt, dp = dp, dp[0], 0, ''
for index in range(len(s)):
if s[index] == cur_char: cnt += 1
else:
dp += str(cnt) + cur_char
cur_char = s[index]
cnt = 1
dp += str(cnt) + cur_char
return dp
| class Solution:
def xxx(self, n: int) -> str:
dp = '1'
for i in range(n - 1):
(s, cur_char, cnt, dp) = (dp, dp[0], 0, '')
for index in range(len(s)):
if s[index] == cur_char:
cnt += 1
else:
dp += str(cnt) + cur_char
cur_char = s[index]
cnt = 1
dp += str(cnt) + cur_char
return dp |
def starts_with_vowel(word: str) -> bool:
return word[0].lower() in "aeiou"
def translate_word(word: str) -> str:
if starts_with_vowel(word):
return word + "yay"
vowel_index = 0
for index, letter in enumerate(word):
if starts_with_vowel(letter):
vowel_index = index
break
return word[vowel_index:] + word[:vowel_index] + "ay"
def translate_list(word_list: list[str]) -> list[str]:
return [translate_word(word) for word in word_list]
if __name__ == "__main__":
print(starts_with_vowel("apple"))
print(starts_with_vowel("ball"))
print(translate_word("hockey"))
print(translate_list(["hello", "I", "am", "very", "exited", "to", "see", "you"]))
| def starts_with_vowel(word: str) -> bool:
return word[0].lower() in 'aeiou'
def translate_word(word: str) -> str:
if starts_with_vowel(word):
return word + 'yay'
vowel_index = 0
for (index, letter) in enumerate(word):
if starts_with_vowel(letter):
vowel_index = index
break
return word[vowel_index:] + word[:vowel_index] + 'ay'
def translate_list(word_list: list[str]) -> list[str]:
return [translate_word(word) for word in word_list]
if __name__ == '__main__':
print(starts_with_vowel('apple'))
print(starts_with_vowel('ball'))
print(translate_word('hockey'))
print(translate_list(['hello', 'I', 'am', 'very', 'exited', 'to', 'see', 'you'])) |
BuildSettingInfo = provider()
def _string_imp(ctx):
value = ctx.build_setting_value
label = ctx.label.name
print("evaluated value for " + label + ": " + value)
return BuildSettingInfo(value = value)
string_flag = rule(
implementation = _string_imp,
# https://docs.bazel.build/versions/main/skylark/config.html#the-build_setting-rule-parameter
build_setting = config.string(flag = True),
)
| build_setting_info = provider()
def _string_imp(ctx):
value = ctx.build_setting_value
label = ctx.label.name
print('evaluated value for ' + label + ': ' + value)
return build_setting_info(value=value)
string_flag = rule(implementation=_string_imp, build_setting=config.string(flag=True)) |
for _ in range(int(input())):
tot = 0
lst = list(map(int, input().split()))
for i in range(1, len(lst)):
if lst[i] > lst[i - 1] * 2:
tot += (lst[i] - 2 * lst[i - 1])
print(tot)
| for _ in range(int(input())):
tot = 0
lst = list(map(int, input().split()))
for i in range(1, len(lst)):
if lst[i] > lst[i - 1] * 2:
tot += lst[i] - 2 * lst[i - 1]
print(tot) |
BASE_URL = 'http://www.travelpayouts.com'
API_DATA_URL = 'http://api.travelpayouts.com/data'
def whereami(client, ip, locale='en', callback=None):
locale = locale if locale in ['en', 'ru', 'de', 'fr', 'it', 'pl', 'th'] else 'en'
params = {
'ip': ip,
'locale': locale
}
if callback:
params["callback"] = callback
return client._get(BASE_URL+"/whereami", params)
def countries(client):
"""Returns a file with a list of countries from the database.
:rtype: list of countries
"""
data = client._get(API_DATA_URL+"/countries.json")
return data
def cities(client):
"""Returns a file with a list of cities from the database.
:rtype: list of cities
"""
data = client._get(API_DATA_URL+"/cities.json")
return data
def airports(client):
"""Returns a file with a list of airports from the database.
:rtype: list of airports
"""
data = client._get(API_DATA_URL+"/airports.json")
return data
def airlines(client):
"""Returns a file with a list of airlines from the database.
:rtype: list of airports
"""
data = client._get(API_DATA_URL+"/airlines.json")
return data
def airlines_alliances(client):
"""Returns a file with a list of alliances from the database.
:rtype: list of alliances
"""
data = client._get(API_DATA_URL+"/airlines_alliances.json")
return data
def planes(client):
"""Returns a file with a list of airplanes from the database.
:rtype: list of airplanes
"""
data = client._get(API_DATA_URL+"/planes.json")
return data
def routes(client):
"""Returns a file with a list of routes from the database.
:rtype: list of routes
"""
data = client._get(API_DATA_URL+"/routes.json")
return data
| base_url = 'http://www.travelpayouts.com'
api_data_url = 'http://api.travelpayouts.com/data'
def whereami(client, ip, locale='en', callback=None):
locale = locale if locale in ['en', 'ru', 'de', 'fr', 'it', 'pl', 'th'] else 'en'
params = {'ip': ip, 'locale': locale}
if callback:
params['callback'] = callback
return client._get(BASE_URL + '/whereami', params)
def countries(client):
"""Returns a file with a list of countries from the database.
:rtype: list of countries
"""
data = client._get(API_DATA_URL + '/countries.json')
return data
def cities(client):
"""Returns a file with a list of cities from the database.
:rtype: list of cities
"""
data = client._get(API_DATA_URL + '/cities.json')
return data
def airports(client):
"""Returns a file with a list of airports from the database.
:rtype: list of airports
"""
data = client._get(API_DATA_URL + '/airports.json')
return data
def airlines(client):
"""Returns a file with a list of airlines from the database.
:rtype: list of airports
"""
data = client._get(API_DATA_URL + '/airlines.json')
return data
def airlines_alliances(client):
"""Returns a file with a list of alliances from the database.
:rtype: list of alliances
"""
data = client._get(API_DATA_URL + '/airlines_alliances.json')
return data
def planes(client):
"""Returns a file with a list of airplanes from the database.
:rtype: list of airplanes
"""
data = client._get(API_DATA_URL + '/planes.json')
return data
def routes(client):
"""Returns a file with a list of routes from the database.
:rtype: list of routes
"""
data = client._get(API_DATA_URL + '/routes.json')
return data |
class ModuleAggregator:
def __init__(self, registry_name) -> None:
self.registry_name = registry_name
self._registry = {}
def __getitem__(self, key):
if isinstance(key, str):
return self._registry[key]
return key
def register(self, name=None):
def wrapper(func):
self._registry[name if name != None else func.__name__] = func
return func
return wrapper
| class Moduleaggregator:
def __init__(self, registry_name) -> None:
self.registry_name = registry_name
self._registry = {}
def __getitem__(self, key):
if isinstance(key, str):
return self._registry[key]
return key
def register(self, name=None):
def wrapper(func):
self._registry[name if name != None else func.__name__] = func
return func
return wrapper |
parrot = 'NORWEGIAN BLUE'
print(parrot)
print(parrot[3])
print(parrot[4])
print()
print(parrot[3])
print(parrot[6])
print(parrot[8])
print()
print(parrot[-4:])
print()
number = '9,243;365:248 978;269'
separators = number[1::4]
print(separators) | parrot = 'NORWEGIAN BLUE'
print(parrot)
print(parrot[3])
print(parrot[4])
print()
print(parrot[3])
print(parrot[6])
print(parrot[8])
print()
print(parrot[-4:])
print()
number = '9,243;365:248 978;269'
separators = number[1::4]
print(separators) |
class User:
'''
class that generates new instances of users
'''
user_list = [] #empty user list
def __init__(self,username,password):
self.username = username
self.password = password
def registration(self):
'''
registration method adds users to the system
'''
User.user_list.append(self)
class Credentials:
'''
class that generates user credentials
'''
credentials_list = [] #empty credentials list
def __init__(self,information_details):
self.information_details = information_details
def save_credentials(self):
'''
save credentialsmethod saves credentials object into the credentials_list
'''
Credentials.credentials_list.append(self) | class User:
"""
class that generates new instances of users
"""
user_list = []
def __init__(self, username, password):
self.username = username
self.password = password
def registration(self):
"""
registration method adds users to the system
"""
User.user_list.append(self)
class Credentials:
"""
class that generates user credentials
"""
credentials_list = []
def __init__(self, information_details):
self.information_details = information_details
def save_credentials(self):
"""
save credentialsmethod saves credentials object into the credentials_list
"""
Credentials.credentials_list.append(self) |
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
# class Solution(object):
# def swapPairs(self, head):
# """
# :type head: ListNode
# :rtype: ListNode
# """
class Solution(object):
# def swapPairs(self, head):
# current = last = last2 = head
# while current is not None:
# nex = current.next
# if current == last.next:
# last.next = nex
# current.next = last
# if last == head:
# head = current
# else:
# last2.next = current
# last2 = last
# last = nex
# current = nex
# return head
# To go from pre -> a -> b -> b.next to pre -> b -> a -> b.next, need to change three reference
def swapPairs(self, head):
dummyHead = ListNode(-1)
dummyHead.next = head
prev = dummyHead
while prev.next and prev.next.next:
a = prev.next
b = prev.next.next
prev.next, b.next, a.next = b, a, b.next
prev = a
return dummyHead.next
| class Solution(object):
def swap_pairs(self, head):
dummy_head = list_node(-1)
dummyHead.next = head
prev = dummyHead
while prev.next and prev.next.next:
a = prev.next
b = prev.next.next
(prev.next, b.next, a.next) = (b, a, b.next)
prev = a
return dummyHead.next |
app_name = 'price_analysis'
urlpatterns = []
| app_name = 'price_analysis'
urlpatterns = [] |
# -*- coding: utf-8 -*-
class Model(object):
pass
class NullModel(Model):
def __init__(self):
pass
@property
def name(self):
return ''
| class Model(object):
pass
class Nullmodel(Model):
def __init__(self):
pass
@property
def name(self):
return '' |
#
# PySNMP MIB module HUAWEI-PWE3-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-PWE3-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:45:54 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint")
hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm")
HWL2VpnVcEncapsType, HWEnableValue, HWL2VpnStateChangeReason = mibBuilder.importSymbols("HUAWEI-VPLS-EXT-MIB", "HWL2VpnVcEncapsType", "HWEnableValue", "HWL2VpnStateChangeReason")
InterfaceIndexOrZero, ifName = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero", "ifName")
InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType")
EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
sysUpTime, = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime")
iso, NotificationType, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, ModuleIdentity, Counter64, Bits, TimeTicks, Gauge32, Bits, ObjectIdentity, MibIdentifier, Unsigned32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "ModuleIdentity", "Counter64", "Bits", "TimeTicks", "Gauge32", "Bits", "ObjectIdentity", "MibIdentifier", "Unsigned32", "Counter32")
DisplayString, TextualConvention, RowStatus, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus", "TruthValue")
hwL2VpnPwe3 = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4))
if mibBuilder.loadTexts: hwL2VpnPwe3.setLastUpdated('200704120900Z')
if mibBuilder.loadTexts: hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.')
if mibBuilder.loadTexts: hwL2VpnPwe3.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China Zip:100085 Http://www.huawei.com E-mail:support@huawei.com')
if mibBuilder.loadTexts: hwL2VpnPwe3.setDescription('The HUAWEI-PWE3-MIB contains objects to manage PWE3.')
class HWLdpPwStateChangeReason(TextualConvention, Integer32):
description = "The type indicates the reason of LDP PW VC's status change: LDP session down (1) AC interface down (2) PSN tunnel state down (3) Mapping message not received (4) PW interface parameter not match (5) Notification not forwarding (6) "
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("ldpSessionDown", 1), ("interfaceDown", 2), ("tunnelDown", 3), ("receivedNoMapping", 4), ("paraUnMatched", 5), ("notifiNotForward", 6))
hwL2Vpn = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119))
hwPwe3MIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1))
hwPwe3Objects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1))
hwPWVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1), )
if mibBuilder.loadTexts: hwPWVcTable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTable.setDescription('This table is the VC configuration table. Users can create or delete a VC by it.')
hwPWVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"))
if mibBuilder.loadTexts: hwPWVcEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWVcEntry.setDescription('Provides the information of a VC entry.')
hwPWVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), Unsigned32())
if mibBuilder.loadTexts: hwPWVcID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hwPWVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), HWL2VpnVcEncapsType())
if mibBuilder.loadTexts: hwPWVcType.setStatus('current')
if mibBuilder.loadTexts: hwPWVcType.setDescription('The type of the Virtual Circuit.This value indicate the service to be carried over this PW.')
hwPWVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), InetAddressType().clone('ipv4')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hwPWVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPeerAddr.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcPeerAddrType is 'unknown').")
hwPWVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("backup", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.")
hwPWVcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcInboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwPWVcInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hwPWVcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcOutboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwPWVcOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hwPWVcSwitchSign = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("staticTostatic", 1), ("ldpTostatic", 2), ("ldpToldp", 3), ("upe", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcSwitchSign.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchSign.setDescription('The sign of switch.')
hwPWVcSwitchID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the switch PW.")
hwPWVcSwitchPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), InetAddressType().clone('ipv4')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchPeerAddrType.setDescription("Denotes the address type of the peer node of the switch PW. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hwPWVcSwitchPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchPeerAddr.setDescription("This object contain the value of the peer node address of the switch PW of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcSwitchPeerAddrType is 'unknown').")
hwPWVcSwitchInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hwPWVcSwitchOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hwPWVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcGroupID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if pwVcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.")
hwPWVcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hwPWVcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3), ("notify", 4), ("notifyDown", 5), ("downNotify", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcAcStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWVcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.")
hwPWVcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcACOAMStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWVcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.")
hwPWVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcMtu.setStatus('current')
if mibBuilder.loadTexts: hwPWVcMtu.setDescription('If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.')
hwPWVcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), HWEnableValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcCtrlWord.setStatus('current')
if mibBuilder.loadTexts: hwPWVcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.')
hwPWVcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcVCCV.setStatus('current')
if mibBuilder.loadTexts: hwPWVcVCCV.setDescription('Indicates the optional VCCV capabilities of the PW. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).')
hwPWVcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcBandWidth.setStatus('current')
if mibBuilder.loadTexts: hwPWVcBandWidth.setDescription("This object indicates the bandwidth. '0' is the default value.")
hwPWVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts: hwPWVcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.')
hwPWVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hwPWVcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently,can't support.Return the default value is '0'.")
hwPWVcExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcExplicitPathName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.")
hwPWVcTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcTemplateName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTemplateName.setDescription('Indicates the PW template index referenced.')
hwPWVcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSecondary.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSecondary.setDescription('Indicates whether or not the secondary PW is used.')
hwPWVcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcUpTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcUpTime.setDescription('Indicates the duration when the PW keeps Up for the last time, in seconds.')
hwPWOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWOAMSync.setStatus('current')
if mibBuilder.loadTexts: hwPWOAMSync.setDescription('Denotes the AC and PSN are enable or not.')
hwPWVCForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVCForBfdIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVCForBfdIndex.setDescription('The index of PW for BFD.')
hwPWVcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcDelayTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcDelayTime.setDescription('The reroute delay time.')
hwPWVcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6), ("immediatelySwitch", 7)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcReroutePolicy.setStatus('current')
if mibBuilder.loadTexts: hwPWVcReroutePolicy.setDescription('Reroute policy.')
hwPWVcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcResumeTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcResumeTime.setDescription('The reroute resume time.')
hwPWVcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), HWL2VpnStateChangeReason()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcRerouteReason.setStatus('current')
if mibBuilder.loadTexts: hwPWVcRerouteReason.setDescription('Last reroute reason.')
hwPWVcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcLastRerouteTime.setDescription('Last reroute time.')
hwPWVcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcManualSetFault.setStatus('current')
if mibBuilder.loadTexts: hwPWVcManualSetFault.setDescription('Denotes the manual has been set fault or not.')
hwPWVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcActive.setStatus('current')
if mibBuilder.loadTexts: hwPWVcActive.setDescription('Denotes the current vc is active or not.')
hwPWVcVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcVrIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcVrIfIndex.setDescription('Denotes the VRRP interface this PW binding to.')
hwPWVcVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcVrID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcVrID.setDescription('Denotes the VrID this PW binding to.')
hwPWBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setStatus('current')
if mibBuilder.loadTexts: hwPWBFDDetectMultiplier.setDescription('The multiple of detection time.')
hwPWBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setStatus('current')
if mibBuilder.loadTexts: hwPWBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.')
hwPWBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setStatus('current')
if mibBuilder.loadTexts: hwPWBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.')
hwPWDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setStatus('current')
if mibBuilder.loadTexts: hwPWDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.')
hwPWBFDRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setStatus('current')
if mibBuilder.loadTexts: hwPWBFDRemoteVcID.setDescription('In the multiple-hop model, the value of remote VC id.')
hwPWEthOamType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ethOam1ag", 1), ("ethOam3ah", 2), ("noEthOamCfg", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWEthOamType.setStatus('current')
if mibBuilder.loadTexts: hwPWEthOamType.setDescription('This value indicates the type of ETH OAM.')
hwPWCfmMaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWCfmMaIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWCfmMaIndex.setDescription('This value indicates the current CFM MA index.')
hwPWVcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcUpStartTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcUpStartTime.setDescription('Specifies the time this PW status was Up(1).')
hwPWVcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcUpSumTime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcUpSumTime.setDescription('Indicates the accumulated time when the VC is Up, in seconds.')
hwPWVcIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcIfName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcIfName.setDescription('Name of the interface (or the virtual interface) associated with the PW.')
hwPWVcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcRowStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWVcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.")
hwPWVcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts: hwPWVcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hwPWVcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hwPWVcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hwPWVcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPwIdleCode.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPwIdleCode.setDescription('Specifies the PwIdleCode.')
hwPWVcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hwPWVcSwitchTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchTnlPolicyName.setDescription('Indicates the switch tunnel policy name used.')
hwPWVcCfmMdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 4095), ValueRangeConstraint(4294967295, 4294967295), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcCfmMdIndex.setDescription('This value indicates the current CFM MD index.')
hwPWVcCfmMaName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcCfmMaName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcCfmMaName.setDescription('This value indicates the current CFM MA name used.')
hwPWVcCfmMdName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 43))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcCfmMdName.setStatus('current')
if mibBuilder.loadTexts: hwPWVcCfmMdName.setDescription('This value indicates the current CFM MD name used.')
hwPWVcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcRawOrTagged.setStatus('current')
if mibBuilder.loadTexts: hwPWVcRawOrTagged.setDescription('Specifies whether the raw or tagged is configured.')
hwPWVcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcInterworkingType.setStatus('current')
if mibBuilder.loadTexts: hwPWVcInterworkingType.setDescription('Specifies the interworking type of the VC entry.')
hwPWVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcCir.setStatus('current')
if mibBuilder.loadTexts: hwPWVcCir.setDescription('Specifies the committed information rate, based on the VC entry.')
hwPWVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcPir.setStatus('current')
if mibBuilder.loadTexts: hwPWVcPir.setDescription('Specifies the peak information rate, based on the VC entry.')
hwPWVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcQosProfile.setStatus('current')
if mibBuilder.loadTexts: hwPWVcQosProfile.setDescription("Specifies the QoS profile's name, based on the VC entry.")
hwPWVcSwitchCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchCir.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchCir.setDescription('Specifies the committed information rate, based on the switch VC entry.')
hwPWVcSwitchPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchPir.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchPir.setDescription('Specifies the peak information rate, based on the switch VC entry.')
hwPWVcSwitchQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchQosProfile.setDescription("Specifies the QoS profile's name, based on the switch VC entry.")
hwPWVcTrigger = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcTrigger.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTrigger.setDescription('Specifies whether the PW remote interface shutdown or not.')
hwPWVcEnableACOAM = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), EnabledStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcEnableACOAM.setStatus('current')
if mibBuilder.loadTexts: hwPWVcEnableACOAM.setDescription('Specifies whether ACOAM detection and notification are all enabled or not.')
hwPWVcSwitchVrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchVrIfIndex.setDescription('Denotes the VRRP interface the switch PW binding to.')
hwPWVcSwitchVrID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWVcSwitchVrID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchVrID.setDescription('Denotes the VrID the switch PW binding to.')
hwPWVcQosParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setStatus('current')
if mibBuilder.loadTexts: hwPWVcQosParaFromPWT.setDescription('This object indicates the configuration of the Qos parameters managed through command line or PW template.')
hwPWVcBfdParaFromPWT = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cliOrMib", 1), ("pwTemplate", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setStatus('current')
if mibBuilder.loadTexts: hwPWVcBfdParaFromPWT.setDescription('This object indicates the configuration of the Bfd parameters managed through command line or PW template.')
hwPwVcNegotiateMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slaveOrMaster", 1), ("independent", 2), ("unknown", 3), ("frr", 4)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcNegotiateMode.setStatus('current')
if mibBuilder.loadTexts: hwPwVcNegotiateMode.setDescription('This object indicates the negotiation mode of the PW on the local node.')
hwPwVcIsBypass = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcIsBypass.setStatus('current')
if mibBuilder.loadTexts: hwPwVcIsBypass.setDescription('This object indicates whether the PW is the bypass PW.')
hwPwVcIsAdmin = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcIsAdmin.setStatus('current')
if mibBuilder.loadTexts: hwPwVcIsAdmin.setDescription('This object indicates whether the PW is the administrator PW.')
hwPwVcAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPwVcAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the service PW.')
hwPwVcAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts: hwPwVcAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the service PW.')
hwPwVcSwitchAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch PW.')
hwPwVcSwitchAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch PW.')
hwPwVcSwitchBackupAdminPwIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), InterfaceIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch backup PW.')
hwPwVcSwitchBackupAdminPwLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch backup PW.')
hwPwVcSwitchBackupVcId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcId.setDescription('This object indicates the VC ID of the switch backup PW.')
hwPwVcSwitchBackupVcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddrType.setDescription('This object indicates type of the IP address of the peer on the switch backup PW. Currently, only IPv4 addresss are supported.')
hwPwVcSwitchBackupVcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPeerAddr.setDescription('This object indicates the IP address of the peer on the switch backup PW.')
hwPwVcSwitchBackupVcReceiveLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcReceiveLabel.setDescription('This object indicates the inbound label of the switch backup VC. For a static VC, the value of the inbound label ranges from 16 to 1023. For a dynamic VC, the inbound label is automatically generated by the system.')
hwPwVcSwitchBackupVcSendLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSendLabel.setDescription('This object indicates the outbound label of the switch backup VC. For a static VC, the value of the outbound label ranges from 0 to 1048575. For a dynamic VC, the outbound label is automatically generated by the system.')
hwPwVcSwitchBackupVcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcTnlPolicyName.setDescription('This object indicates the name of the tunnel policy of the switch backup VC.')
hwPwVcSwitchBackupVcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcCir.setDescription('This object indicates the CIR of the switch backup VC.')
hwPwVcSwitchBackupVcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcPir.setDescription('This object indicates the PIR of the switch backup VC.')
hwPwVcSwitchBackupVcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcQosProfile.setDescription('This object indicates the name of the QoS profile of the switch backup VC.')
hwPwVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3), ("bypass", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSlaveMasterMode.setDescription('This object indicates whether the status of the VC is master or slave.')
hwPwVcSwitchVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch VC is master or slave.')
hwPwVcSwitchBackupVcSlaveMasterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("unknown", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch backup VC is master or slave.')
hwPwVcSwitchVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchVcActive.setDescription('This object indicates whether the status of the switch VC is active or not.')
hwPwVcSwitchBackupVcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcActive.setDescription('This object indicates whether the status of the switch backup VC is active or not.')
hwPwVcSwitchCwTrans = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchCwTrans.setDescription('This object indicates whether the SPE support Control Word Transparent or not,default is false.')
hwPwVcSwitchVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchVcServiceName.setDescription('This object indicates the service name of the switch VC.')
hwPwVcSwitchBackupVcServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setStatus('current')
if mibBuilder.loadTexts: hwPwVcSwitchBackupVcServiceName.setDescription('This object indicates the service name of the switch backup VC.')
hwPWVcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2), )
if mibBuilder.loadTexts: hwPWVcTnlTable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlTable.setDescription('This table is used to search the tunnel index of a VC.')
hwPWVcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"), (0, "HUAWEI-PWE3-MIB", "hwPWVcTnlIndex"))
if mibBuilder.loadTexts: hwPWVcTnlEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlEntry.setDescription('Provides the information of a VC tunnel entry.')
hwPWVcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), Unsigned32())
if mibBuilder.loadTexts: hwPWVcTnlIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlIndex.setDescription('This object indicates the tunnel index of the VC.')
hwPWVcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTnlType.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlType.setDescription('This object indicates the tunnel type.')
hwPWTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWTnlForBfdIndex.setDescription('This object indicates the index of LSP for BFD.')
hwPWVcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3), )
if mibBuilder.loadTexts: hwPWVcStatisticsTable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsTable.setDescription("This table contains the Pwe3's VC packets statistics.")
hwPWVcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"))
if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsEntry.setDescription("Provides the information of the Pwe3's VC packets statistics.")
hwPWVcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsRcvPkts.setDescription('The total number of packets received on this VC.')
hwPWVcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsRcvBytes.setDescription('The total number of bytes received on this VC.')
hwPWVcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsSndPkts.setDescription('The total number of packets sent on this VC.')
hwPWVcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsSndBytes.setDescription('The total number of bytes sent on the VC.')
hwPWRemoteVcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4), )
if mibBuilder.loadTexts: hwPWRemoteVcTable.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcTable.setDescription('This table provides remote PW information for each local PW.')
hwPWRemoteVcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"))
if mibBuilder.loadTexts: hwPWRemoteVcEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcEntry.setDescription('An entry in this table is created by the agent for every PW.')
hwPWRemoteVcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcID.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the remote PW.")
hwPWRemoteVcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), HWL2VpnVcEncapsType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcType.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcType.setDescription('This value indicate the service to be carried over the remote PW.')
hwPWRemoteVcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcStatus.setDescription('Indicates the forwarding status of the remote VC.')
hwPWRemoteVcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcGroupID.setDescription('Indicates the Group ID field of the remote PW. Currently, this value always be zero.')
hwPWRemoteVcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcMtu.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcMtu.setDescription('Indicates the supported MTU size of the remote PW.')
hwPWRemoteVcCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), HWEnableValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcCtrlword.setDescription('Indicates the control word capability of the remote PW.')
hwPWRemoteVcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcMaxAtmCells.setDescription('Indicates the max cell supported of the remote PW when vctype is atm.')
hwPWRemoteVcNotif = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWRemoteVcNotif.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcNotif.setDescription('Indicates notification is supported by the remote PW.')
hwPWVcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchNotifEnable.setDescription('If this object is set to enable(1), then it enables the emission of hwPWVcSwitchWtoP and hwPWVcSwitchPtoW notifications; otherwise these notifications are not emitted. The default value is disable (2).')
hwPWVcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).')
hwPWVcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).')
hwPWVcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: hwPWVcStateChangeReason.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.')
hwPWVcSwitchRmtID = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), Unsigned32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchRmtID.setDescription('This object indicates the VC ID of PW switch between working PW and protect PW .')
hwLdpPWStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), HWLdpPwStateChangeReason()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setStatus('current')
if mibBuilder.loadTexts: hwLdpPWStateChangeReason.setDescription("This object indicates the reason of LDP PW VC's state change.")
hwPWVcTDMPerfCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11), )
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentTable.setDescription('This table provides per TDM PW performance information. The contents of this table entry are reset to zero and gotten new information every 15 minutes.')
hwPWVcTDMPerfCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWVcID"), (0, "HUAWEI-PWE3-MIB", "hwPWVcType"))
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentEntry.setDescription('An entry in this table is created by the agent for every TDM PW entry.')
hwPWVcTDMPerfCurrentMissingPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMissingPkts.setDescription('Number of missing packets (as detected via control word sequence number gaps).')
hwPWVcTDMPerfCurrentJtrBfrOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrOverruns.setDescription('Number of times the jitter buffer was overrun.')
hwPWVcTDMPerfCurrentJtrBfrUnderruns = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentJtrBfrUnderruns.setDescription('Number of times a packet needed to be played out and the jitter buffer was empty.')
hwPWVcTDMPerfCurrentMisOrderDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMisOrderDropped.setDescription('Number of packets detected out of order (via control word sequence numbers) that could not be re-ordered or could not fit in the jitter buffer.')
hwPWVcTDMPerfCurrentMalformedPkt = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentMalformedPkt.setDescription("Number of packets detected with unexpected size or bad headers' stack.")
hwPWVcTDMPerfCurrentESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentESs.setDescription('The counter associated with the number of Error Seconds encountered. Any malformed packet, sequence error, LOPS, and the like are considered as Error Seconds.')
hwPWVcTDMPerfCurrentSESs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentSESs.setDescription('The counter associated with the number of Severely Error Seconds encountered.')
hwPWVcTDMPerfCurrentUASs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered. Any consecutive ten seconds of SES are counted as one Unavailable Seconds (UAS).')
hwPwe3MIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2))
hwPWVcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"))
if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchWtoP.setDescription('This notification is generated when switch from working PW to protect PW happens.')
hwPWVcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"))
if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setStatus('current')
if mibBuilder.loadTexts: hwPWVcSwitchPtoW.setDescription('This notification is generated when switch from protect PW to working PW happens.')
hwPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName"))
if mibBuilder.loadTexts: hwPWVcDown.setStatus('current')
if mibBuilder.loadTexts: hwPWVcDown.setDescription("This notification indicates the VC's state changes to down.")
hwPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName"))
if mibBuilder.loadTexts: hwPWVcUp.setStatus('current')
if mibBuilder.loadTexts: hwPWVcUp.setDescription("This notification indicates the VC's state changes to up.")
hwPWVcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"))
if mibBuilder.loadTexts: hwPWVcDeleted.setStatus('current')
if mibBuilder.loadTexts: hwPWVcDeleted.setDescription('This notification indicates the VC is deleted.')
hwPWVcBackup = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("SNMPv2-MIB", "sysUpTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"))
if mibBuilder.loadTexts: hwPWVcBackup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcBackup.setDescription("This notification indicates the VC's state changes to backup.")
hwLdpPWVcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason"))
if mibBuilder.loadTexts: hwLdpPWVcDown.setStatus('current')
if mibBuilder.loadTexts: hwLdpPWVcDown.setDescription("This notification indicates the LDP PW VC's state changes to down.")
hwLdpPWVcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason"))
if mibBuilder.loadTexts: hwLdpPWVcUp.setStatus('current')
if mibBuilder.loadTexts: hwLdpPWVcUp.setDescription("This notification indicates the Ldp PW VC's state changes to up.")
hwSvcObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3))
hwSvcTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1), )
if mibBuilder.loadTexts: hwSvcTable.setStatus('current')
if mibBuilder.loadTexts: hwSvcTable.setDescription('This table is the SVC configuration table. Users can create or delete a SVC by it.')
hwSvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex"))
if mibBuilder.loadTexts: hwSvcEntry.setStatus('current')
if mibBuilder.loadTexts: hwSvcEntry.setDescription('Provides the information of a SVC entry.')
hwSvcIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), InterfaceIndexOrZero())
if mibBuilder.loadTexts: hwSvcIfIndex.setStatus('current')
if mibBuilder.loadTexts: hwSvcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hwSvcID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcID.setStatus('current')
if mibBuilder.loadTexts: hwSvcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hwSvcType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), HWL2VpnVcEncapsType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcType.setStatus('current')
if mibBuilder.loadTexts: hwSvcType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.')
hwSvcPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), InetAddressType().clone('ipv4')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts: hwSvcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hwSvcPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPeerAddr.setStatus('current')
if mibBuilder.loadTexts: hwSvcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwSvcPeerAddrType is 'unknown').")
hwSvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcStatus.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.")
hwSvcInboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcInboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwSvcInboundLabel.setDescription('This object indicates the inbound label.')
hwSvcOutboundLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcOutboundLabel.setStatus('current')
if mibBuilder.loadTexts: hwSvcOutboundLabel.setDescription('This object indicates the outbound label.')
hwSvcGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcGroupID.setStatus('current')
if mibBuilder.loadTexts: hwSvcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if SvcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.")
hwSvcAcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("plugout", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcAcStatus.setStatus('current')
if mibBuilder.loadTexts: hwSvcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.")
hwSvcACOAMStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcACOAMStatus.setStatus('current')
if mibBuilder.loadTexts: hwSvcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.")
hwSvcMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(46, 9600), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcMtu.setStatus('current')
if mibBuilder.loadTexts: hwSvcMtu.setDescription("If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.Currently, can't support.'0' is the default value.")
hwSvcCtrlWord = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), HWEnableValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcCtrlWord.setStatus('current')
if mibBuilder.loadTexts: hwSvcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.')
hwSvcVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcVCCV.setStatus('current')
if mibBuilder.loadTexts: hwSvcVCCV.setDescription('Indicates the optional VCCV capabilities of the SVC. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|cvLspping(4)|cvBfd(5) or ccAlert(1)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|cvLspping(4)|cvBfd(5).')
hwSvcBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcBandWidth.setStatus('current')
if mibBuilder.loadTexts: hwSvcBandWidth.setDescription("This object indicates the bandwidth.Currently, can't support.'0' is the default value.")
hwSvcMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts: hwSvcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.')
hwSvcTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hwSvcQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts: hwSvcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently, can't support.'0' is the default value.")
hwSvcPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPWTemplateName.setStatus('current')
if mibBuilder.loadTexts: hwSvcPWTemplateName.setDescription('Indicates the PW template index referenced.')
hwSvcUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcUpTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcUpTime.setDescription('Indicates the duration when the SVC keeps Up for the last time, in seconds.')
hwSvcOAMSync = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcOAMSync.setStatus('current')
if mibBuilder.loadTexts: hwSvcOAMSync.setDescription('Denotes the AC and PSN are enable or not.')
hwSvcForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcForBfdIndex.setStatus('current')
if mibBuilder.loadTexts: hwSvcForBfdIndex.setDescription("The index of PW for BFD.Currently, can't support.Return the default value is '0'.")
hwSvcSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcSecondary.setStatus('current')
if mibBuilder.loadTexts: hwSvcSecondary.setDescription("Indicates whether or not the secondary PW is used.Currently, can't support.Return the default value is 'false'.")
hwSvcDelayTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcDelayTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcDelayTime.setDescription("The reroute delay time.Currently, can't support.Return the default value is '0'.")
hwSvcReroutePolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("delay", 1), ("immediately", 2), ("never", 3), ("none", 4), ("err", 5), ("invalid", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcReroutePolicy.setStatus('current')
if mibBuilder.loadTexts: hwSvcReroutePolicy.setDescription("Reroute policy.Currently, can't support.Return the default value is 'invalid(6)'.")
hwSvcResumeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcResumeTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcResumeTime.setDescription("The reroute resume time.Currently, can't support.Return the default value is '0'.")
hwSvcRerouteReason = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), HWL2VpnStateChangeReason()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcRerouteReason.setStatus('current')
if mibBuilder.loadTexts: hwSvcRerouteReason.setDescription("Last reroute reason.Currently, can't support.Return the default value is 'invalidReason(1)'.")
hwSvcLastRerouteTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcLastRerouteTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcLastRerouteTime.setDescription("Last reroute time.Currently, can't support.Return the default value is '0'.")
hwSvcManualSetFault = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcManualSetFault.setStatus('current')
if mibBuilder.loadTexts: hwSvcManualSetFault.setDescription("Denotes the manual has been set fault or not.Currently, can't support.Return the default value is 'false'.")
hwSvcActive = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcActive.setStatus('current')
if mibBuilder.loadTexts: hwSvcActive.setDescription("Denotes the current vc is active or not.Currently, can't support.Return the default value is 'false'.")
hwSvcUpStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcUpStartTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcUpStartTime.setDescription('Specifies the time this PW status was Up(1).')
hwSvcUpSumTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcUpSumTime.setStatus('current')
if mibBuilder.loadTexts: hwSvcUpSumTime.setDescription('Indicates the accumulated time when the SVC is Up, in seconds.')
hwSvcAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts: hwSvcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hwSvcPwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts: hwSvcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hwSvcPwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts: hwSvcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hwSvcPwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPwIdleCode.setStatus('current')
if mibBuilder.loadTexts: hwSvcPwIdleCode.setDescription('Specifies the PwIdleCode.')
hwSvcPwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPwRtpHeader.setStatus('current')
if mibBuilder.loadTexts: hwSvcPwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hwSvcRawOrTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("raw", 1), ("tagged", 2), ("rawTagNotConfiged", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcRawOrTagged.setStatus('current')
if mibBuilder.loadTexts: hwSvcRawOrTagged.setDescription('Specifies whether the VLAN tag of the SVC entry is attached or stripped.')
hwSvcInterworkingType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ipInterWorking", 1), ("ipLayer2", 2), ("ipUnknown", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcInterworkingType.setStatus('current')
if mibBuilder.loadTexts: hwSvcInterworkingType.setDescription('Specifies the interworking type of the SVC entry.')
hwSvcCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcCir.setStatus('current')
if mibBuilder.loadTexts: hwSvcCir.setDescription('Specifies the committed information rate, based on the SVC entry.')
hwSvcPir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcPir.setStatus('current')
if mibBuilder.loadTexts: hwSvcPir.setDescription('Specifies the peak information rate, based on the SVC entry.')
hwSvcQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcQosProfile.setStatus('current')
if mibBuilder.loadTexts: hwSvcQosProfile.setDescription("Specifies the QoS profile's name, based on the SVC entry.")
hwSvcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwSvcRowStatus.setStatus('current')
if mibBuilder.loadTexts: hwSvcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.")
hwSvcTnlTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2), )
if mibBuilder.loadTexts: hwSvcTnlTable.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlTable.setDescription('This table is used to search the tunnel index of a SVC.')
hwSvcTnlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex"), (0, "HUAWEI-PWE3-MIB", "hwSvcTnlIndex"))
if mibBuilder.loadTexts: hwSvcTnlEntry.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlEntry.setDescription('Provides the information of a SVC tunnel entry.')
hwSvcTnlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), Unsigned32())
if mibBuilder.loadTexts: hwSvcTnlIndex.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlIndex.setDescription('This object indicates the tunnel index of the SVC.')
hwSvcTnlType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lsp", 1), ("gre", 2), ("ipsec", 3), ("crLsp", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcTnlType.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlType.setDescription('This object indicates the tunnel type.')
hwSvcTnlForBfdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlForBfdIndex.setDescription("This object indicates the index of LSP for BFD. Currently, can't support.Return the default value is '0'.")
hwSvcStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3), )
if mibBuilder.loadTexts: hwSvcStatisticsTable.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsTable.setDescription("This table contains the L2vpn's SVC packets statistics.")
hwSvcStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwSvcIfIndex"))
if mibBuilder.loadTexts: hwSvcStatisticsEntry.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsEntry.setDescription("Provides the information of the L2VPN's SVC packets Statistics.")
hwSvcStatisticsRcvPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsRcvPkts.setDescription('The total number of packets received on this SVC.')
hwSvcStatisticsRcvBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsRcvBytes.setDescription('The total number of bytes received on this SVC.')
hwSvcStatisticsSndPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsSndPkts.setDescription('The total number of packets sent on this SVC.')
hwSvcStatisticsSndBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsSndBytes.setDescription('The total number of bytes sent on the SVC.')
hwSvcSwitchNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwSvcSwitchNotifEnable.setDescription("If this object is set to enable(1), then it enables the emission of hwSvcSwitchWtoP and hwSvcSwitchPtoW notifications; otherwise these notifications are not emitted.Currently, can't support. The default value is disable (2).")
hwSvcUpDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwSvcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).')
hwSvcDeletedNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), HWEnableValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setStatus('current')
if mibBuilder.loadTexts: hwSvcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).')
hwSvcStateChangeReason = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), HWL2VpnStateChangeReason()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: hwSvcStateChangeReason.setStatus('current')
if mibBuilder.loadTexts: hwSvcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.')
hwL2vpnSvcMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4))
hwSvcSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: hwSvcSwitchWtoP.setStatus('current')
if mibBuilder.loadTexts: hwSvcSwitchWtoP.setDescription("This notification is generated when switch from working PW to protect PW happens.Currently, can't support.")
hwSvcSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"))
if mibBuilder.loadTexts: hwSvcSwitchPtoW.setStatus('current')
if mibBuilder.loadTexts: hwSvcSwitchPtoW.setDescription("This notification is generated when switch from protect PW to working PW happens.Currently, can't support.")
hwSvcDown = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName"))
if mibBuilder.loadTexts: hwSvcDown.setStatus('current')
if mibBuilder.loadTexts: hwSvcDown.setDescription("This notification indicates the SVC's state changes to down.")
hwSvcUp = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"), ("IF-MIB", "ifName"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName"))
if mibBuilder.loadTexts: hwSvcUp.setStatus('current')
if mibBuilder.loadTexts: hwSvcUp.setDescription("This notification indicates the SVC's state changes to up.")
hwSvcDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"))
if mibBuilder.loadTexts: hwSvcDeleted.setStatus('current')
if mibBuilder.loadTexts: hwSvcDeleted.setDescription('This notification indicates the SVC is deleted.')
hwPWTemplateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5), )
if mibBuilder.loadTexts: hwPWTemplateTable.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateTable.setDescription('This table specifies information for configuring and status monitoring to PW tempalte.')
hwPWTemplateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWTemplateName"))
if mibBuilder.loadTexts: hwPWTemplateEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateEntry.setDescription('A row in this table represents a pseudo wire (PW) template. It is indexed by hwPWCmdTemplateIndex, which uniquely identifying a singular tempalte.')
hwPWTemplateName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 19)))
if mibBuilder.loadTexts: hwPWTemplateName.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateName.setDescription("The name of the PW template. Set by the operator to indicate the protocol responsible for establishing this PW. The value 'static' is used in all cases where no maintenance protocol (PW signaling) is used to set-up the PW, i.e. require configuration of entries in the PW tables including PW labels, etc. The value 'ldp' is used in case of signaling with the PWid FEC element with LDP signaling. The value 'rsvp' indicate the use of rsvp control protocol.")
hwPWTemplatePeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hwPWTemplatePeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePeerAddr.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. ')
hwPWTemplateCtrlword = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), HWEnableValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateCtrlword.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateCtrlword.setDescription('Indicates the control word capability of the switch PW.')
hwPWTemplateVCCV = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("ccCw", 0), ("ccAlert", 1), ("ccLabel", 2), ("cvIcmpping", 3), ("cvLspping", 4), ("cvBfd", 5), ("ccTtl", 6)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateVCCV.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateVCCV.setDescription('Indicates the optional VCCV capabilities of the PW template. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).')
hwPWTemplateFrag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateFrag.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateFrag.setDescription('Indicates whether or not fragmentaion is supported.')
hwPWTemplateBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWTemplateBandwidth.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateBandwidth.setDescription("Indicates the bandwitdh when signaling protocol is rsvp. Currently, can't support.'0' is the default value.")
hwPWTemplateTnlPolicyName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 39))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hwPWTemplateQoSBehaviorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented.Currently, can't support.'0' is the default value.")
hwPWTemplateExplicitPathName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.")
hwPWTemplateBFDDetectMultiplier = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 50), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateBFDDetectMultiplier.setDescription('The multiple of detection time.')
hwPWTemplateBFDMinReceiveInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.')
hwPWTemplateBFDMinTransmitInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 1000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.')
hwPWTemplateDynamicBFDDetect = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.')
hwPWTemplateMaxAtmCells = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateMaxAtmCells.setDescription('Specifies the MaxAtmCells.')
hwPWTemplateAtmPackOvertime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 50000), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hwPWTemplatePwJitterBufferDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hwPWTemplatePwTdmEncapsulationNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hwPWTemplatePwIdleCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 255), ValueRangeConstraint(65535, 65535), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePwIdleCode.setDescription('Specifies the PwIdleCode.')
hwPWTemplatePwRtpHeader = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hwPWTemplatePwCCSeqEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), HWEnableValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePwCCSeqEnable.setDescription('Specifies the CC Sequence is enable or not.')
hwPWTemplateCir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateCir.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateCir.setDescription('Specifies the committed information rate, based on the PW template entry.')
hwPWTemplatePir = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplatePir.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplatePir.setDescription('Specifies the peak information rate, based on the PW template entry.')
hwPWTemplateQosProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateQosProfile.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateQosProfile.setDescription("Specifies the QoS profile's name, based on the PW template entry.")
hwPWTemplateFlowLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), EnabledStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateFlowLabel.setDescription('The value of this object identifies whether the PW FlowLabel is enabled.')
hwPWTemplateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hwPWTemplateRowStatus.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden.")
hwPWTemplateMIBTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6))
hwPWTemplateCannotDeleted = NotificationType((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplateName"))
if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateCannotDeleted.setDescription('This notification indicates the PWTemplate cannot be deleted.')
hwPWTableObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7))
hwPWTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1), )
if mibBuilder.loadTexts: hwPWTable.setStatus('current')
if mibBuilder.loadTexts: hwPWTable.setDescription('This table indicates a PW, that is Static PW or LDP PW')
hwPWEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1), ).setIndexNames((0, "HUAWEI-PWE3-MIB", "hwPWId"), (0, "HUAWEI-PWE3-MIB", "hwPWType"), (0, "HUAWEI-PWE3-MIB", "hwPWPeerIp"))
if mibBuilder.loadTexts: hwPWEntry.setStatus('current')
if mibBuilder.loadTexts: hwPWEntry.setDescription('Provides the information of a VC key entry.')
hwPWId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), Unsigned32())
if mibBuilder.loadTexts: hwPWId.setStatus('current')
if mibBuilder.loadTexts: hwPWId.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hwPWType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), HWL2VpnVcEncapsType())
if mibBuilder.loadTexts: hwPWType.setStatus('current')
if mibBuilder.loadTexts: hwPWType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.')
hwPWPeerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), IpAddress())
if mibBuilder.loadTexts: hwPWPeerIp.setStatus('current')
if mibBuilder.loadTexts: hwPWPeerIp.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable.')
hwPWInterfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hwPWInterfaceIndex.setStatus('current')
if mibBuilder.loadTexts: hwPWInterfaceIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hwPwe3MIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3))
hwPwe3MIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1))
hwPwe3MIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsGroup"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroup"), ("HUAWEI-PWE3-MIB", "hwPWTemplateGroup"), ("HUAWEI-PWE3-MIB", "hwPWNotificationControlGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReasonGroup"), ("HUAWEI-PWE3-MIB", "hwPWVcNotificationGroup"), ("HUAWEI-PWE3-MIB", "hwPWTableGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPwe3MIBCompliance = hwPwe3MIBCompliance.setStatus('current')
if mibBuilder.loadTexts: hwPwe3MIBCompliance.setDescription('The compliance statement for systems supporting the HUAWEI-PWE3-MIB.')
hwPwe3MIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2))
hwPWVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchSign"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchID"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchInboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwPWVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWVcIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcAcStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWVcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwPWVcVCCV"), ("HUAWEI-PWE3-MIB", "hwPWVcBandWidth"), ("HUAWEI-PWE3-MIB", "hwPWVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWVcTemplateName"), ("HUAWEI-PWE3-MIB", "hwPWVcSecondary"), ("HUAWEI-PWE3-MIB", "hwPWVcUpTime"), ("HUAWEI-PWE3-MIB", "hwPWOAMSync"), ("HUAWEI-PWE3-MIB", "hwPWVCForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcDelayTime"), ("HUAWEI-PWE3-MIB", "hwPWVcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwPWVcResumeTime"), ("HUAWEI-PWE3-MIB", "hwPWVcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwPWVcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwPWVcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwPWVcActive"), ("HUAWEI-PWE3-MIB", "hwPWVcVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcVrID"), ("HUAWEI-PWE3-MIB", "hwPWBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWBFDRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWEthOamType"), ("HUAWEI-PWE3-MIB", "hwPWCfmMaIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwPWVcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwPWVcIfName"), ("HUAWEI-PWE3-MIB", "hwPWVcRowStatus"), ("HUAWEI-PWE3-MIB", "hwPWVcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWVcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWVcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWVcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWVcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMaName"), ("HUAWEI-PWE3-MIB", "hwPWVcCfmMdName"), ("HUAWEI-PWE3-MIB", "hwPWVcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwPWVcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwPWVcCir"), ("HUAWEI-PWE3-MIB", "hwPWVcPir"), ("HUAWEI-PWE3-MIB", "hwPWVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchCir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPir"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWVcTrigger"), ("HUAWEI-PWE3-MIB", "hwPWVcEnableACOAM"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrIfIndex"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchVrID"), ("HUAWEI-PWE3-MIB", "hwPWVcQosParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPWVcBfdParaFromPWT"), ("HUAWEI-PWE3-MIB", "hwPwVcNegotiateMode"), ("HUAWEI-PWE3-MIB", "hwPwVcIsBypass"), ("HUAWEI-PWE3-MIB", "hwPwVcIsAdmin"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwIfIndex"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupAdminPwLinkStatus"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcId"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcReceiveLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSendLabel"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcCir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcPir"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcQosProfile"), ("HUAWEI-PWE3-MIB", "hwPwVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcSlaveMasterMode"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcActive"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchCwTrans"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchVcServiceName"), ("HUAWEI-PWE3-MIB", "hwPwVcSwitchBackupVcServiceName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcGroup = hwPWVcGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcGroup.setDescription("The Pwe3's VC group.")
hwPWVcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTnlType"), ("HUAWEI-PWE3-MIB", "hwPWTnlForBfdIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcTnlGroup = hwPWVcTnlGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTnlGroup.setDescription("The PWE3's VC Tunnel group.")
hwPWVcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcStatisticsSndBytes"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcStatisticsGroup = hwPWVcStatisticsGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStatisticsGroup.setDescription("The PWE3's VC Statistics group.")
hwPWRemoteVcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwPWRemoteVcID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcType"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcStatus"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcGroupID"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMtu"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWRemoteVcNotif"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWRemoteVcGroup = hwPWRemoteVcGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWRemoteVcGroup.setDescription("The PWE3's Remote VC group.")
hwPWTemplateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddrType"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePeerAddr"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCtrlword"), ("HUAWEI-PWE3-MIB", "hwPWTemplateVCCV"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFrag"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBandwidth"), ("HUAWEI-PWE3-MIB", "hwPWTemplateTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwPWTemplateExplicitPathName"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDDetectMultiplier"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinReceiveInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateBFDMinTransmitInterval"), ("HUAWEI-PWE3-MIB", "hwPWTemplateDynamicBFDDetect"), ("HUAWEI-PWE3-MIB", "hwPWTemplateMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwPWTemplateAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwIdleCode"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePwCCSeqEnable"), ("HUAWEI-PWE3-MIB", "hwPWTemplateCir"), ("HUAWEI-PWE3-MIB", "hwPWTemplatePir"), ("HUAWEI-PWE3-MIB", "hwPWTemplateQosProfile"), ("HUAWEI-PWE3-MIB", "hwPWTemplateFlowLabel"), ("HUAWEI-PWE3-MIB", "hwPWTemplateRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWTemplateGroup = hwPWTemplateGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWTemplateGroup.setDescription("The PWE3's Template group.")
hwPWNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwPWVcDeletedNotifEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWNotificationControlGroup = hwPWNotificationControlGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWNotificationControlGroup.setDescription("The PWE3's Notification Control group.")
hwPWVcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcStateChangeReason"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchRmtID"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcStateChangeReasonGroup = hwPWVcStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcStateChangeReasonGroup.setDescription("The PWE3's Vc State Reason group.")
hwPWVcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwPWVcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwPWVcDown"), ("HUAWEI-PWE3-MIB", "hwPWVcUp"), ("HUAWEI-PWE3-MIB", "hwPWVcDeleted"), ("HUAWEI-PWE3-MIB", "hwPWVcBackup"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcDown"), ("HUAWEI-PWE3-MIB", "hwLdpPWVcUp"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcNotificationGroup = hwPWVcNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcNotificationGroup.setDescription("The PWE3's VC Notification group.")
hwLdpPWStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(("HUAWEI-PWE3-MIB", "hwLdpPWStateChangeReason"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwLdpPWStateChangeReasonGroup = hwLdpPWStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts: hwLdpPWStateChangeReasonGroup.setDescription('The LDP PW VC State Reason group.')
hwPWVcTDMPerfCurrentGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMissingPkts"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrOverruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentJtrBfrUnderruns"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMisOrderDropped"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentMalformedPkt"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentSESs"), ("HUAWEI-PWE3-MIB", "hwPWVcTDMPerfCurrentUASs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWVcTDMPerfCurrentGroup = hwPWVcTDMPerfCurrentGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWVcTDMPerfCurrentGroup.setDescription("The PWE3's VC TDM performance information group.")
hwL2vpnSvcMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3))
hwSvcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcID"), ("HUAWEI-PWE3-MIB", "hwSvcType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddrType"), ("HUAWEI-PWE3-MIB", "hwSvcPeerAddr"), ("HUAWEI-PWE3-MIB", "hwSvcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcInboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcOutboundLabel"), ("HUAWEI-PWE3-MIB", "hwSvcGroupID"), ("HUAWEI-PWE3-MIB", "hwSvcAcStatus"), ("HUAWEI-PWE3-MIB", "hwSvcACOAMStatus"), ("HUAWEI-PWE3-MIB", "hwSvcMtu"), ("HUAWEI-PWE3-MIB", "hwSvcCtrlWord"), ("HUAWEI-PWE3-MIB", "hwSvcVCCV"), ("HUAWEI-PWE3-MIB", "hwSvcBandWidth"), ("HUAWEI-PWE3-MIB", "hwSvcMaxAtmCells"), ("HUAWEI-PWE3-MIB", "hwSvcTnlPolicyName"), ("HUAWEI-PWE3-MIB", "hwSvcQoSBehaviorIndex"), ("HUAWEI-PWE3-MIB", "hwSvcPWTemplateName"), ("HUAWEI-PWE3-MIB", "hwSvcUpTime"), ("HUAWEI-PWE3-MIB", "hwSvcOAMSync"), ("HUAWEI-PWE3-MIB", "hwSvcForBfdIndex"), ("HUAWEI-PWE3-MIB", "hwSvcSecondary"), ("HUAWEI-PWE3-MIB", "hwSvcDelayTime"), ("HUAWEI-PWE3-MIB", "hwSvcReroutePolicy"), ("HUAWEI-PWE3-MIB", "hwSvcResumeTime"), ("HUAWEI-PWE3-MIB", "hwSvcRerouteReason"), ("HUAWEI-PWE3-MIB", "hwSvcLastRerouteTime"), ("HUAWEI-PWE3-MIB", "hwSvcManualSetFault"), ("HUAWEI-PWE3-MIB", "hwSvcActive"), ("HUAWEI-PWE3-MIB", "hwSvcUpStartTime"), ("HUAWEI-PWE3-MIB", "hwSvcUpSumTime"), ("HUAWEI-PWE3-MIB", "hwSvcAtmPackOvertime"), ("HUAWEI-PWE3-MIB", "hwSvcPwJitterBufferDepth"), ("HUAWEI-PWE3-MIB", "hwSvcPwTdmEncapsulationNum"), ("HUAWEI-PWE3-MIB", "hwSvcPwIdleCode"), ("HUAWEI-PWE3-MIB", "hwSvcPwRtpHeader"), ("HUAWEI-PWE3-MIB", "hwSvcRawOrTagged"), ("HUAWEI-PWE3-MIB", "hwSvcInterworkingType"), ("HUAWEI-PWE3-MIB", "hwSvcCir"), ("HUAWEI-PWE3-MIB", "hwSvcPir"), ("HUAWEI-PWE3-MIB", "hwSvcQosProfile"), ("HUAWEI-PWE3-MIB", "hwSvcRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcGroup = hwSvcGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcGroup.setDescription("The L2vpn's SVC group.")
hwSvcTnlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcTnlType"), ("HUAWEI-PWE3-MIB", "hwSvcTnlForBfdIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcTnlGroup = hwSvcTnlGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcTnlGroup.setDescription("The L2vpn's SVC Tunnel group.")
hwSvcStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsRcvBytes"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndPkts"), ("HUAWEI-PWE3-MIB", "hwSvcStatisticsSndBytes"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcStatisticsGroup = hwSvcStatisticsGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcStatisticsGroup.setDescription("The L2vpn's SVC Statistics group.")
hwSvcNotificationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcUpDownNotifEnable"), ("HUAWEI-PWE3-MIB", "hwSvcDeletedNotifEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcNotificationControlGroup = hwSvcNotificationControlGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcNotificationControlGroup.setDescription("The L2vpn SVC's Notification Control group.")
hwSvcStateChangeReasonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcStateChangeReason"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcStateChangeReasonGroup = hwSvcStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcStateChangeReasonGroup.setDescription("The L2vpn's SVc State Reason group.")
hwSvcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(("HUAWEI-PWE3-MIB", "hwSvcSwitchWtoP"), ("HUAWEI-PWE3-MIB", "hwSvcSwitchPtoW"), ("HUAWEI-PWE3-MIB", "hwSvcDown"), ("HUAWEI-PWE3-MIB", "hwSvcUp"), ("HUAWEI-PWE3-MIB", "hwSvcDeleted"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSvcNotificationGroup = hwSvcNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: hwSvcNotificationGroup.setDescription("The L2vpn's SVC Notification group.")
hwL2vpnPWTableMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4))
hwPWTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(("HUAWEI-PWE3-MIB", "hwPWInterfaceIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwPWTableGroup = hwPWTableGroup.setStatus('current')
if mibBuilder.loadTexts: hwPWTableGroup.setDescription('The PW Table Group.')
mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWVcVCCV=hwPWVcVCCV, hwPWVcUp=hwPWVcUp, hwL2VpnPwe3=hwL2VpnPwe3, hwSvcInboundLabel=hwSvcInboundLabel, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcInterworkingType=hwSvcInterworkingType, hwSvcTnlEntry=hwSvcTnlEntry, hwPWEntry=hwPWEntry, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcBackup=hwPWVcBackup, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcActive=hwPWVcActive, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWVcIfName=hwPWVcIfName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwSvcEntry=hwSvcEntry, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWVcRerouteReason=hwPWVcRerouteReason, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwSvcTnlType=hwSvcTnlType, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWVcUpStartTime=hwPWVcUpStartTime, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcOAMSync=hwSvcOAMSync, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwLdpPWVcUp=hwLdpPWVcUp, hwPWVcGroup=hwPWVcGroup, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwSvcTnlIndex=hwSvcTnlIndex, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwSvcGroup=hwSvcGroup, hwPWVcAcStatus=hwPWVcAcStatus, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcType=hwPWVcType, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwSvcStatus=hwSvcStatus, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwPWVcCfmMdName=hwPWVcCfmMdName, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateFrag=hwPWTemplateFrag, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcRowStatus=hwSvcRowStatus, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwPWRemoteVcTable=hwPWRemoteVcTable, hwSvcAcStatus=hwSvcAcStatus, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPWVcSwitchID=hwPWVcSwitchID, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcPir=hwPWVcPir, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcEntry=hwPWVcEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWVcStatus=hwPWVcStatus, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcMtu=hwPWVcMtu, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwSvcCtrlWord=hwSvcCtrlWord, hwSvcUpSumTime=hwSvcUpSumTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWTemplatePir=hwPWTemplatePir, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcUpTime=hwPWVcUpTime, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPWVcCtrlWord=hwPWVcCtrlWord, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwSvcActive=hwSvcActive, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPwe3MIBObjects=hwPwe3MIBObjects, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateGroup=hwPWTemplateGroup, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWVcID=hwPWVcID, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcBandWidth=hwSvcBandWidth, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwPWTemplateName=hwPWTemplateName, hwPWVcCir=hwPWVcCir, hwPWTableGroup=hwPWTableGroup, hwSvcTnlTable=hwSvcTnlTable, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWTableObjects=hwPWTableObjects, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwSvcQosProfile=hwSvcQosProfile, hwSvcUpTime=hwSvcUpTime, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwSvcDeleted=hwSvcDeleted, hwSvcRerouteReason=hwSvcRerouteReason, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPWRemoteVcType=hwPWRemoteVcType, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPWType=hwPWType, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcSwitchSign=hwPWVcSwitchSign, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVcGroupID=hwPWVcGroupID, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPwe3MIBTraps=hwPwe3MIBTraps, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwSvcResumeTime=hwSvcResumeTime, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcType=hwSvcType, hwSvcVCCV=hwSvcVCCV, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwSvcDelayTime=hwSvcDelayTime, hwSvcPir=hwSvcPir, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwPWVcTable=hwPWVcTable, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwLdpPWVcDown=hwLdpPWVcDown, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwPWVcTnlGroup=hwPWVcTnlGroup, hwSvcUp=hwSvcUp, hwSvcPeerAddrType=hwSvcPeerAddrType, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwL2Vpn=hwL2Vpn, hwPWVcInterworkingType=hwPWVcInterworkingType, hwPwe3Objects=hwPwe3Objects, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWOAMSync=hwPWOAMSync, hwPWVcTnlTable=hwPWVcTnlTable, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwSvcMtu=hwSvcMtu, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTrigger=hwPWVcTrigger, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcID=hwSvcID, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcIfIndex=hwSvcIfIndex, hwPWEthOamType=hwPWEthOamType, hwPWVcIfIndex=hwPWVcIfIndex, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwPWTemplateCir=hwPWTemplateCir, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcDeleted=hwPWVcDeleted, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcTnlType=hwPWVcTnlType, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcResumeTime=hwPWVcResumeTime, hwPWVcTemplateName=hwPWVcTemplateName, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwSvcPeerAddr=hwSvcPeerAddr, hwPWId=hwPWId, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcGroupID=hwSvcGroupID, hwPWRemoteVcID=hwPWRemoteVcID, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcBandWidth=hwPWVcBandWidth, hwPwVcNegotiateMode=hwPwVcNegotiateMode)
mibBuilder.exportSymbols("HUAWEI-PWE3-MIB", hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWVcDown=hwPWVcDown, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWVcVrID=hwPWVcVrID, hwPWVcSecondary=hwPWVcSecondary, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwSvcObjects=hwSvcObjects, hwSvcACOAMStatus=hwSvcACOAMStatus, hwSvcUpStartTime=hwSvcUpStartTime, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwPWTable=hwPWTable, hwSvcTable=hwSvcTable, hwPWTemplateTable=hwPWTemplateTable, hwSvcSecondary=hwSvcSecondary, hwPWPeerIp=hwPWPeerIp, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwSvcForBfdIndex=hwSvcForBfdIndex, hwSvcCir=hwSvcCir, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect, hwSvcDown=hwSvcDown, hwPWTemplateEntry=hwPWTemplateEntry)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, constraints_union, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint')
(hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm')
(hwl2_vpn_vc_encaps_type, hw_enable_value, hwl2_vpn_state_change_reason) = mibBuilder.importSymbols('HUAWEI-VPLS-EXT-MIB', 'HWL2VpnVcEncapsType', 'HWEnableValue', 'HWL2VpnStateChangeReason')
(interface_index_or_zero, if_name) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero', 'ifName')
(inet_address_type,) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType')
(enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime')
(iso, notification_type, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, module_identity, counter64, bits, time_ticks, gauge32, bits, object_identity, mib_identifier, unsigned32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'NotificationType', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'ModuleIdentity', 'Counter64', 'Bits', 'TimeTicks', 'Gauge32', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'Unsigned32', 'Counter32')
(display_string, textual_convention, row_status, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus', 'TruthValue')
hw_l2_vpn_pwe3 = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4))
if mibBuilder.loadTexts:
hwL2VpnPwe3.setLastUpdated('200704120900Z')
if mibBuilder.loadTexts:
hwL2VpnPwe3.setOrganization('Huawei Technologies Co., Ltd.')
if mibBuilder.loadTexts:
hwL2VpnPwe3.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China Zip:100085 Http://www.huawei.com E-mail:support@huawei.com')
if mibBuilder.loadTexts:
hwL2VpnPwe3.setDescription('The HUAWEI-PWE3-MIB contains objects to manage PWE3.')
class Hwldppwstatechangereason(TextualConvention, Integer32):
description = "The type indicates the reason of LDP PW VC's status change: LDP session down (1) AC interface down (2) PSN tunnel state down (3) Mapping message not received (4) PW interface parameter not match (5) Notification not forwarding (6) "
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))
named_values = named_values(('ldpSessionDown', 1), ('interfaceDown', 2), ('tunnelDown', 3), ('receivedNoMapping', 4), ('paraUnMatched', 5), ('notifiNotForward', 6))
hw_l2_vpn = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119))
hw_pwe3_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1))
hw_pwe3_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1))
hw_pw_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1))
if mibBuilder.loadTexts:
hwPWVcTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTable.setDescription('This table is the VC configuration table. Users can create or delete a VC by it.')
hw_pw_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'))
if mibBuilder.loadTexts:
hwPWVcEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcEntry.setDescription('Provides the information of a VC entry.')
hw_pw_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 1), unsigned32())
if mibBuilder.loadTexts:
hwPWVcID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hw_pw_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 2), hwl2_vpn_vc_encaps_type())
if mibBuilder.loadTexts:
hwPWVcType.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcType.setDescription('The type of the Virtual Circuit.This value indicate the service to be carried over this PW.')
hw_pw_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 3), inet_address_type().clone('ipv4')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hw_pw_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 4), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPeerAddr.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcPeerAddrType is 'unknown').")
hw_pw_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('backup', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.")
hw_pw_vc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 6), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcInboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hw_pw_vc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 7), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcOutboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hw_pw_vc_switch_sign = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('staticTostatic', 1), ('ldpTostatic', 2), ('ldpToldp', 3), ('upe', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcSwitchSign.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchSign.setDescription('The sign of switch.')
hw_pw_vc_switch_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 9), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the switch PW.")
hw_pw_vc_switch_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 10), inet_address_type().clone('ipv4')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchPeerAddrType.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchPeerAddrType.setDescription("Denotes the address type of the peer node of the switch PW. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hw_pw_vc_switch_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 11), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchPeerAddr.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchPeerAddr.setDescription("This object contain the value of the peer node address of the switch PW of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwPWVcSwitchPeerAddrType is 'unknown').")
hw_pw_vc_switch_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 12), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchInboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchInboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hw_pw_vc_switch_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 13), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchOutboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchOutboundLabel.setDescription('For ldp vc, the value will be created by system automatically.')
hw_pw_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 14), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcGroupID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if pwVcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.")
hw_pw_vc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 15), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hw_pw_vc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3), ('notify', 4), ('notifyDown', 5), ('downNotify', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcAcStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.")
hw_pw_vc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcACOAMStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.")
hw_pw_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcMtu.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcMtu.setDescription('If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.')
hw_pw_vc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 19), hw_enable_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcCtrlWord.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.')
hw_pw_vc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 20), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcVCCV.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcVCCV.setDescription('Indicates the optional VCCV capabilities of the PW. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).')
hw_pw_vc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 21), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcBandWidth.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcBandWidth.setDescription("This object indicates the bandwidth. '0' is the default value.")
hw_pw_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 22), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.')
hw_pw_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 23), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hw_pw_vc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 24), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently,can't support.Return the default value is '0'.")
hw_pw_vc_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcExplicitPathName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.")
hw_pw_vc_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 26), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcTemplateName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTemplateName.setDescription('Indicates the PW template index referenced.')
hw_pw_vc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 27), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSecondary.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSecondary.setDescription('Indicates whether or not the secondary PW is used.')
hw_pw_vc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 28), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcUpTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcUpTime.setDescription('Indicates the duration when the PW keeps Up for the last time, in seconds.')
hw_pwoam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 29), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWOAMSync.setStatus('current')
if mibBuilder.loadTexts:
hwPWOAMSync.setDescription('Denotes the AC and PSN are enable or not.')
hw_pwvc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 30), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVCForBfdIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVCForBfdIndex.setDescription('The index of PW for BFD.')
hw_pw_vc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 31), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcDelayTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcDelayTime.setDescription('The reroute delay time.')
hw_pw_vc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6), ('immediatelySwitch', 7)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcReroutePolicy.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcReroutePolicy.setDescription('Reroute policy.')
hw_pw_vc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 33), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcResumeTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcResumeTime.setDescription('The reroute resume time.')
hw_pw_vc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 34), hwl2_vpn_state_change_reason()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcRerouteReason.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcRerouteReason.setDescription('Last reroute reason.')
hw_pw_vc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 35), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcLastRerouteTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcLastRerouteTime.setDescription('Last reroute time.')
hw_pw_vc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 36), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcManualSetFault.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcManualSetFault.setDescription('Denotes the manual has been set fault or not.')
hw_pw_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 37), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcActive.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcActive.setDescription('Denotes the current vc is active or not.')
hw_pw_vc_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 38), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcVrIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcVrIfIndex.setDescription('Denotes the VRRP interface this PW binding to.')
hw_pw_vc_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 39), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcVrID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcVrID.setDescription('Denotes the VrID this PW binding to.')
hw_pwbfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 40), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWBFDDetectMultiplier.setStatus('current')
if mibBuilder.loadTexts:
hwPWBFDDetectMultiplier.setDescription('The multiple of detection time.')
hw_pwbfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 41), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWBFDMinReceiveInterval.setStatus('current')
if mibBuilder.loadTexts:
hwPWBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.')
hw_pwbfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 42), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWBFDMinTransmitInterval.setStatus('current')
if mibBuilder.loadTexts:
hwPWBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.')
hw_pw_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 43), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWDynamicBFDDetect.setStatus('current')
if mibBuilder.loadTexts:
hwPWDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.')
hw_pwbfd_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 44), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWBFDRemoteVcID.setStatus('current')
if mibBuilder.loadTexts:
hwPWBFDRemoteVcID.setDescription('In the multiple-hop model, the value of remote VC id.')
hw_pw_eth_oam_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ethOam1ag', 1), ('ethOam3ah', 2), ('noEthOamCfg', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWEthOamType.setStatus('current')
if mibBuilder.loadTexts:
hwPWEthOamType.setDescription('This value indicates the type of ETH OAM.')
hw_pw_cfm_ma_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 46), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWCfmMaIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWCfmMaIndex.setDescription('This value indicates the current CFM MA index.')
hw_pw_vc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 47), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcUpStartTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcUpStartTime.setDescription('Specifies the time this PW status was Up(1).')
hw_pw_vc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 48), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcUpSumTime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcUpSumTime.setDescription('Indicates the accumulated time when the VC is Up, in seconds.')
hw_pw_vc_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 49), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcIfName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcIfName.setDescription('Name of the interface (or the virtual interface) associated with the PW.')
hw_pw_vc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 51), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcRowStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.")
hw_pw_vc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 52), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hw_pw_vc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 53), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hw_pw_vc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 54), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hw_pw_vc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 55), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPwIdleCode.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPwIdleCode.setDescription('Specifies the PwIdleCode.')
hw_pw_vc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 56), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPwRtpHeader.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hw_pw_vc_switch_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 57), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchTnlPolicyName.setDescription('Indicates the switch tunnel policy name used.')
hw_pw_vc_cfm_md_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 58), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 4095), value_range_constraint(4294967295, 4294967295)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcCfmMdIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcCfmMdIndex.setDescription('This value indicates the current CFM MD index.')
hw_pw_vc_cfm_ma_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 59), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcCfmMaName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcCfmMaName.setDescription('This value indicates the current CFM MA name used.')
hw_pw_vc_cfm_md_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 60), octet_string().subtype(subtypeSpec=value_size_constraint(0, 43))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcCfmMdName.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcCfmMdName.setDescription('This value indicates the current CFM MD name used.')
hw_pw_vc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 61), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcRawOrTagged.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcRawOrTagged.setDescription('Specifies whether the raw or tagged is configured.')
hw_pw_vc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 62), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcInterworkingType.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcInterworkingType.setDescription('Specifies the interworking type of the VC entry.')
hw_pw_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 63), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcCir.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcCir.setDescription('Specifies the committed information rate, based on the VC entry.')
hw_pw_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 64), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcPir.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcPir.setDescription('Specifies the peak information rate, based on the VC entry.')
hw_pw_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 65), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcQosProfile.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcQosProfile.setDescription("Specifies the QoS profile's name, based on the VC entry.")
hw_pw_vc_switch_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 66), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchCir.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchCir.setDescription('Specifies the committed information rate, based on the switch VC entry.')
hw_pw_vc_switch_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 67), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchPir.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchPir.setDescription('Specifies the peak information rate, based on the switch VC entry.')
hw_pw_vc_switch_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 68), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchQosProfile.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchQosProfile.setDescription("Specifies the QoS profile's name, based on the switch VC entry.")
hw_pw_vc_trigger = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 69), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcTrigger.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTrigger.setDescription('Specifies whether the PW remote interface shutdown or not.')
hw_pw_vc_enable_acoam = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 70), enabled_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcEnableACOAM.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcEnableACOAM.setDescription('Specifies whether ACOAM detection and notification are all enabled or not.')
hw_pw_vc_switch_vr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 71), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchVrIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchVrIfIndex.setDescription('Denotes the VRRP interface the switch PW binding to.')
hw_pw_vc_switch_vr_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 72), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWVcSwitchVrID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchVrID.setDescription('Denotes the VrID the switch PW binding to.')
hw_pw_vc_qos_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 73), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcQosParaFromPWT.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcQosParaFromPWT.setDescription('This object indicates the configuration of the Qos parameters managed through command line or PW template.')
hw_pw_vc_bfd_para_from_pwt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 74), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cliOrMib', 1), ('pwTemplate', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcBfdParaFromPWT.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcBfdParaFromPWT.setDescription('This object indicates the configuration of the Bfd parameters managed through command line or PW template.')
hw_pw_vc_negotiate_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 75), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slaveOrMaster', 1), ('independent', 2), ('unknown', 3), ('frr', 4)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcNegotiateMode.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcNegotiateMode.setDescription('This object indicates the negotiation mode of the PW on the local node.')
hw_pw_vc_is_bypass = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 76), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcIsBypass.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcIsBypass.setDescription('This object indicates whether the PW is the bypass PW.')
hw_pw_vc_is_admin = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 77), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcIsAdmin.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcIsAdmin.setDescription('This object indicates whether the PW is the administrator PW.')
hw_pw_vc_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 78), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the service PW.')
hw_pw_vc_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 79), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the service PW.')
hw_pw_vc_switch_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 80), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch PW.')
hw_pw_vc_switch_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 81), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch PW.')
hw_pw_vc_switch_backup_admin_pw_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 82), interface_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupAdminPwIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupAdminPwIfIndex.setDescription('This object indicates the index of the interface on which the administrator PW resides after it is being tracked by the switch backup PW.')
hw_pw_vc_switch_backup_admin_pw_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupAdminPwLinkStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupAdminPwLinkStatus.setDescription('This object indicates the status of the administrator PW after it is being tracked by the switch backup PW.')
hw_pw_vc_switch_backup_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 84), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcId.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcId.setDescription('This object indicates the VC ID of the switch backup PW.')
hw_pw_vc_switch_backup_vc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 85), inet_address_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPeerAddrType.setDescription('This object indicates type of the IP address of the peer on the switch backup PW. Currently, only IPv4 addresss are supported.')
hw_pw_vc_switch_backup_vc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 86), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPeerAddr.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPeerAddr.setDescription('This object indicates the IP address of the peer on the switch backup PW.')
hw_pw_vc_switch_backup_vc_receive_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 87), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcReceiveLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcReceiveLabel.setDescription('This object indicates the inbound label of the switch backup VC. For a static VC, the value of the inbound label ranges from 16 to 1023. For a dynamic VC, the inbound label is automatically generated by the system.')
hw_pw_vc_switch_backup_vc_send_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 88), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcSendLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcSendLabel.setDescription('This object indicates the outbound label of the switch backup VC. For a static VC, the value of the outbound label ranges from 0 to 1048575. For a dynamic VC, the outbound label is automatically generated by the system.')
hw_pw_vc_switch_backup_vc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 89), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcTnlPolicyName.setDescription('This object indicates the name of the tunnel policy of the switch backup VC.')
hw_pw_vc_switch_backup_vc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 90), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcCir.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcCir.setDescription('This object indicates the CIR of the switch backup VC.')
hw_pw_vc_switch_backup_vc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 91), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPir.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcPir.setDescription('This object indicates the PIR of the switch backup VC.')
hw_pw_vc_switch_backup_vc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 92), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcQosProfile.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcQosProfile.setDescription('This object indicates the name of the QoS profile of the switch backup VC.')
hw_pw_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 93), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3), ('bypass', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSlaveMasterMode.setDescription('This object indicates whether the status of the VC is master or slave.')
hw_pw_vc_switch_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 94), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch VC is master or slave.')
hw_pw_vc_switch_backup_vc_slave_master_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 95), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcSlaveMasterMode.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcSlaveMasterMode.setDescription('This object indicates whether the status of the switch backup VC is master or slave.')
hw_pw_vc_switch_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 96), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchVcActive.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchVcActive.setDescription('This object indicates whether the status of the switch VC is active or not.')
hw_pw_vc_switch_backup_vc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 97), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcActive.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcActive.setDescription('This object indicates whether the status of the switch backup VC is active or not.')
hw_pw_vc_switch_cw_trans = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 98), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchCwTrans.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchCwTrans.setDescription('This object indicates whether the SPE support Control Word Transparent or not,default is false.')
hw_pw_vc_switch_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 99), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchVcServiceName.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchVcServiceName.setDescription('This object indicates the service name of the switch VC.')
hw_pw_vc_switch_backup_vc_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 1, 1, 100), octet_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcServiceName.setStatus('current')
if mibBuilder.loadTexts:
hwPwVcSwitchBackupVcServiceName.setDescription('This object indicates the service name of the switch backup VC.')
hw_pw_vc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2))
if mibBuilder.loadTexts:
hwPWVcTnlTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlTable.setDescription('This table is used to search the tunnel index of a VC.')
hw_pw_vc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcTnlIndex'))
if mibBuilder.loadTexts:
hwPWVcTnlEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlEntry.setDescription('Provides the information of a VC tunnel entry.')
hw_pw_vc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 1), unsigned32())
if mibBuilder.loadTexts:
hwPWVcTnlIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlIndex.setDescription('This object indicates the tunnel index of the VC.')
hw_pw_vc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTnlType.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlType.setDescription('This object indicates the tunnel type.')
hw_pw_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWTnlForBfdIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWTnlForBfdIndex.setDescription('This object indicates the index of LSP for BFD.')
hw_pw_vc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3))
if mibBuilder.loadTexts:
hwPWVcStatisticsTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsTable.setDescription("This table contains the Pwe3's VC packets statistics.")
hw_pw_vc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'))
if mibBuilder.loadTexts:
hwPWVcStatisticsEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsEntry.setDescription("Provides the information of the Pwe3's VC packets statistics.")
hw_pw_vc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcStatisticsRcvPkts.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsRcvPkts.setDescription('The total number of packets received on this VC.')
hw_pw_vc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcStatisticsRcvBytes.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsRcvBytes.setDescription('The total number of bytes received on this VC.')
hw_pw_vc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcStatisticsSndPkts.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsSndPkts.setDescription('The total number of packets sent on this VC.')
hw_pw_vc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 3, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcStatisticsSndBytes.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsSndBytes.setDescription('The total number of bytes sent on the VC.')
hw_pw_remote_vc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4))
if mibBuilder.loadTexts:
hwPWRemoteVcTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcTable.setDescription('This table provides remote PW information for each local PW.')
hw_pw_remote_vc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'))
if mibBuilder.loadTexts:
hwPWRemoteVcEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcEntry.setDescription('An entry in this table is created by the agent for every PW.')
hw_pw_remote_vc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcID.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcID.setDescription("Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element' of the remote PW.")
hw_pw_remote_vc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 2), hwl2_vpn_vc_encaps_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcType.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcType.setDescription('This value indicate the service to be carried over the remote PW.')
hw_pw_remote_vc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcStatus.setDescription('Indicates the forwarding status of the remote VC.')
hw_pw_remote_vc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcGroupID.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcGroupID.setDescription('Indicates the Group ID field of the remote PW. Currently, this value always be zero.')
hw_pw_remote_vc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 5), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcMtu.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcMtu.setDescription('Indicates the supported MTU size of the remote PW.')
hw_pw_remote_vc_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 6), hw_enable_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcCtrlword.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcCtrlword.setDescription('Indicates the control word capability of the remote PW.')
hw_pw_remote_vc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcMaxAtmCells.setDescription('Indicates the max cell supported of the remote PW when vctype is atm.')
hw_pw_remote_vc_notif = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 4, 1, 8), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWRemoteVcNotif.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcNotif.setDescription('Indicates notification is supported by the remote PW.')
hw_pw_vc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 5), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwPWVcSwitchNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchNotifEnable.setDescription('If this object is set to enable(1), then it enables the emission of hwPWVcSwitchWtoP and hwPWVcSwitchPtoW notifications; otherwise these notifications are not emitted. The default value is disable (2).')
hw_pw_vc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 6), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwPWVcUpDownNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).')
hw_pw_vc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 7), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwPWVcDeletedNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).')
hw_pw_vc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 8), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
hwPWVcStateChangeReason.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.')
hw_pw_vc_switch_rmt_id = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 9), unsigned32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
hwPWVcSwitchRmtID.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchRmtID.setDescription('This object indicates the VC ID of PW switch between working PW and protect PW .')
hw_ldp_pw_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 10), hw_ldp_pw_state_change_reason()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
hwLdpPWStateChangeReason.setStatus('current')
if mibBuilder.loadTexts:
hwLdpPWStateChangeReason.setDescription("This object indicates the reason of LDP PW VC's state change.")
hw_pw_vc_tdm_perf_current_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11))
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentTable.setDescription('This table provides per TDM PW performance information. The contents of this table entry are reset to zero and gotten new information every 15 minutes.')
hw_pw_vc_tdm_perf_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWVcID'), (0, 'HUAWEI-PWE3-MIB', 'hwPWVcType'))
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentEntry.setDescription('An entry in this table is created by the agent for every TDM PW entry.')
hw_pw_vc_tdm_perf_current_missing_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 1), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMissingPkts.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMissingPkts.setDescription('Number of missing packets (as detected via control word sequence number gaps).')
hw_pw_vc_tdm_perf_current_jtr_bfr_overruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentJtrBfrOverruns.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentJtrBfrOverruns.setDescription('Number of times the jitter buffer was overrun.')
hw_pw_vc_tdm_perf_current_jtr_bfr_underruns = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentJtrBfrUnderruns.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentJtrBfrUnderruns.setDescription('Number of times a packet needed to be played out and the jitter buffer was empty.')
hw_pw_vc_tdm_perf_current_mis_order_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMisOrderDropped.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMisOrderDropped.setDescription('Number of packets detected out of order (via control word sequence numbers) that could not be re-ordered or could not fit in the jitter buffer.')
hw_pw_vc_tdm_perf_current_malformed_pkt = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMalformedPkt.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentMalformedPkt.setDescription("Number of packets detected with unexpected size or bad headers' stack.")
hw_pw_vc_tdm_perf_current_e_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentESs.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentESs.setDescription('The counter associated with the number of Error Seconds encountered. Any malformed packet, sequence error, LOPS, and the like are considered as Error Seconds.')
hw_pw_vc_tdm_perf_current_se_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentSESs.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentSESs.setDescription('The counter associated with the number of Severely Error Seconds encountered.')
hw_pw_vc_tdm_perf_current_ua_ss = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 1, 11, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentUASs.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentUASs.setDescription('The counter associated with the number of Unavailable Seconds encountered. Any consecutive ten seconds of SES are counted as one Unavailable Seconds (UAS).')
hw_pwe3_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2))
hw_pw_vc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'))
if mibBuilder.loadTexts:
hwPWVcSwitchWtoP.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchWtoP.setDescription('This notification is generated when switch from working PW to protect PW happens.')
hw_pw_vc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'))
if mibBuilder.loadTexts:
hwPWVcSwitchPtoW.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcSwitchPtoW.setDescription('This notification is generated when switch from protect PW to working PW happens.')
hw_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName'))
if mibBuilder.loadTexts:
hwPWVcDown.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcDown.setDescription("This notification indicates the VC's state changes to down.")
hw_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName'))
if mibBuilder.loadTexts:
hwPWVcUp.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcUp.setDescription("This notification indicates the VC's state changes to up.")
hw_pw_vc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'))
if mibBuilder.loadTexts:
hwPWVcDeleted.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcDeleted.setDescription('This notification indicates the VC is deleted.')
hw_pw_vc_backup = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('SNMPv2-MIB', 'sysUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'))
if mibBuilder.loadTexts:
hwPWVcBackup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcBackup.setDescription("This notification indicates the VC's state changes to backup.")
hw_ldp_pw_vc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason'))
if mibBuilder.loadTexts:
hwLdpPWVcDown.setStatus('current')
if mibBuilder.loadTexts:
hwLdpPWVcDown.setDescription("This notification indicates the LDP PW VC's state changes to down.")
hw_ldp_pw_vc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason'))
if mibBuilder.loadTexts:
hwLdpPWVcUp.setStatus('current')
if mibBuilder.loadTexts:
hwLdpPWVcUp.setDescription("This notification indicates the Ldp PW VC's state changes to up.")
hw_svc_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3))
hw_svc_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1))
if mibBuilder.loadTexts:
hwSvcTable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTable.setDescription('This table is the SVC configuration table. Users can create or delete a SVC by it.')
hw_svc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex'))
if mibBuilder.loadTexts:
hwSvcEntry.setStatus('current')
if mibBuilder.loadTexts:
hwSvcEntry.setDescription('Provides the information of a SVC entry.')
hw_svc_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 1), interface_index_or_zero())
if mibBuilder.loadTexts:
hwSvcIfIndex.setStatus('current')
if mibBuilder.loadTexts:
hwSvcIfIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hw_svc_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 2), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcID.setStatus('current')
if mibBuilder.loadTexts:
hwSvcID.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hw_svc_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 3), hwl2_vpn_vc_encaps_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcType.setStatus('current')
if mibBuilder.loadTexts:
hwSvcType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.')
hw_svc_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 4), inet_address_type().clone('ipv4')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPeerAddrType.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hw_svc_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 5), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPeerAddr.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPeerAddr.setDescription("This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable (hwSvcPeerAddrType is 'unknown').")
hw_svc_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcStatus.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatus.setDescription("Indicates the status of the PW in the local node. Currently, can't support 'plugout'.")
hw_svc_inbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcInboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwSvcInboundLabel.setDescription('This object indicates the inbound label.')
hw_svc_outbound_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 8), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcOutboundLabel.setStatus('current')
if mibBuilder.loadTexts:
hwSvcOutboundLabel.setDescription('This object indicates the outbound label.')
hw_svc_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcGroupID.setStatus('current')
if mibBuilder.loadTexts:
hwSvcGroupID.setDescription("Used in the Group ID field sent to the peer PWES within the maintenance protocol used for PW setup. Applicable if SvcOwner equal 'pwIdFecSignaling' or 'l2tpControlProtocol', should be set to zero otherwise. Currently, this value always be zero.")
hw_svc_ac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('plugout', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcAcStatus.setStatus('current')
if mibBuilder.loadTexts:
hwSvcAcStatus.setDescription("Local AC status. Currently, can't support 'plugout'.")
hw_svc_acoam_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcACOAMStatus.setStatus('current')
if mibBuilder.loadTexts:
hwSvcACOAMStatus.setDescription("Denotes the AC's protocol is operational or not.")
hw_svc_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(46, 9600)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcMtu.setStatus('current')
if mibBuilder.loadTexts:
hwSvcMtu.setDescription("If not equal zero, the optional Mtu object in the signaling protocol will be sent with this value, representing the locally supported MTU size over the interface (or the virtual interface) associated with the PW.Currently, can't support.'0' is the default value.")
hw_svc_ctrl_word = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 13), hw_enable_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcCtrlWord.setStatus('current')
if mibBuilder.loadTexts:
hwSvcCtrlWord.setDescription('If signaling is used for PW establishment, this object indicates the status of the control word negotiation, and in both signaling or manual configuration indicates if CW is to be present or not for this PW.')
hw_svc_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 14), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcVCCV.setStatus('current')
if mibBuilder.loadTexts:
hwSvcVCCV.setDescription('Indicates the optional VCCV capabilities of the SVC. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|cvLspping(4)|cvBfd(5) or ccAlert(1)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|cvLspping(4)|cvBfd(5).')
hw_svc_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcBandWidth.setStatus('current')
if mibBuilder.loadTexts:
hwSvcBandWidth.setDescription("This object indicates the bandwidth.Currently, can't support.'0' is the default value.")
hw_svc_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts:
hwSvcMaxAtmCells.setDescription('Indicates the max cell supported when vc type is atm.')
hw_svc_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 17), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hw_svc_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 18), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts:
hwSvcQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented. Currently, can't support.'0' is the default value.")
hw_svc_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 19), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPWTemplateName.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPWTemplateName.setDescription('Indicates the PW template index referenced.')
hw_svc_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 20), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcUpTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcUpTime.setDescription('Indicates the duration when the SVC keeps Up for the last time, in seconds.')
hw_svc_oam_sync = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 21), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcOAMSync.setStatus('current')
if mibBuilder.loadTexts:
hwSvcOAMSync.setDescription('Denotes the AC and PSN are enable or not.')
hw_svc_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 22), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcForBfdIndex.setStatus('current')
if mibBuilder.loadTexts:
hwSvcForBfdIndex.setDescription("The index of PW for BFD.Currently, can't support.Return the default value is '0'.")
hw_svc_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 23), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcSecondary.setStatus('current')
if mibBuilder.loadTexts:
hwSvcSecondary.setDescription("Indicates whether or not the secondary PW is used.Currently, can't support.Return the default value is 'false'.")
hw_svc_delay_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 24), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcDelayTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcDelayTime.setDescription("The reroute delay time.Currently, can't support.Return the default value is '0'.")
hw_svc_reroute_policy = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('delay', 1), ('immediately', 2), ('never', 3), ('none', 4), ('err', 5), ('invalid', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcReroutePolicy.setStatus('current')
if mibBuilder.loadTexts:
hwSvcReroutePolicy.setDescription("Reroute policy.Currently, can't support.Return the default value is 'invalid(6)'.")
hw_svc_resume_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 26), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcResumeTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcResumeTime.setDescription("The reroute resume time.Currently, can't support.Return the default value is '0'.")
hw_svc_reroute_reason = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 27), hwl2_vpn_state_change_reason()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcRerouteReason.setStatus('current')
if mibBuilder.loadTexts:
hwSvcRerouteReason.setDescription("Last reroute reason.Currently, can't support.Return the default value is 'invalidReason(1)'.")
hw_svc_last_reroute_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 28), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcLastRerouteTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcLastRerouteTime.setDescription("Last reroute time.Currently, can't support.Return the default value is '0'.")
hw_svc_manual_set_fault = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 29), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcManualSetFault.setStatus('current')
if mibBuilder.loadTexts:
hwSvcManualSetFault.setDescription("Denotes the manual has been set fault or not.Currently, can't support.Return the default value is 'false'.")
hw_svc_active = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 30), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcActive.setStatus('current')
if mibBuilder.loadTexts:
hwSvcActive.setDescription("Denotes the current vc is active or not.Currently, can't support.Return the default value is 'false'.")
hw_svc_up_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 31), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcUpStartTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcUpStartTime.setDescription('Specifies the time this PW status was Up(1).')
hw_svc_up_sum_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 32), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcUpSumTime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcUpSumTime.setDescription('Indicates the accumulated time when the SVC is Up, in seconds.')
hw_svc_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 33), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts:
hwSvcAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hw_svc_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 34), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hw_svc_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 35), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hw_svc_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 36), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPwIdleCode.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPwIdleCode.setDescription('Specifies the PwIdleCode.')
hw_svc_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 37), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPwRtpHeader.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hw_svc_raw_or_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('raw', 1), ('tagged', 2), ('rawTagNotConfiged', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcRawOrTagged.setStatus('current')
if mibBuilder.loadTexts:
hwSvcRawOrTagged.setDescription('Specifies whether the VLAN tag of the SVC entry is attached or stripped.')
hw_svc_interworking_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ipInterWorking', 1), ('ipLayer2', 2), ('ipUnknown', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcInterworkingType.setStatus('current')
if mibBuilder.loadTexts:
hwSvcInterworkingType.setDescription('Specifies the interworking type of the SVC entry.')
hw_svc_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 40), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcCir.setStatus('current')
if mibBuilder.loadTexts:
hwSvcCir.setDescription('Specifies the committed information rate, based on the SVC entry.')
hw_svc_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 41), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcPir.setStatus('current')
if mibBuilder.loadTexts:
hwSvcPir.setDescription('Specifies the peak information rate, based on the SVC entry.')
hw_svc_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 42), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcQosProfile.setStatus('current')
if mibBuilder.loadTexts:
hwSvcQosProfile.setDescription("Specifies the QoS profile's name, based on the SVC entry.")
hw_svc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 1, 1, 51), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwSvcRowStatus.setStatus('current')
if mibBuilder.loadTexts:
hwSvcRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden. Not support modifying configuration.")
hw_svc_tnl_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2))
if mibBuilder.loadTexts:
hwSvcTnlTable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlTable.setDescription('This table is used to search the tunnel index of a SVC.')
hw_svc_tnl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex'), (0, 'HUAWEI-PWE3-MIB', 'hwSvcTnlIndex'))
if mibBuilder.loadTexts:
hwSvcTnlEntry.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlEntry.setDescription('Provides the information of a SVC tunnel entry.')
hw_svc_tnl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 1), unsigned32())
if mibBuilder.loadTexts:
hwSvcTnlIndex.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlIndex.setDescription('This object indicates the tunnel index of the SVC.')
hw_svc_tnl_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lsp', 1), ('gre', 2), ('ipsec', 3), ('crLsp', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcTnlType.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlType.setDescription('This object indicates the tunnel type.')
hw_svc_tnl_for_bfd_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcTnlForBfdIndex.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlForBfdIndex.setDescription("This object indicates the index of LSP for BFD. Currently, can't support.Return the default value is '0'.")
hw_svc_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3))
if mibBuilder.loadTexts:
hwSvcStatisticsTable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsTable.setDescription("This table contains the L2vpn's SVC packets statistics.")
hw_svc_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwSvcIfIndex'))
if mibBuilder.loadTexts:
hwSvcStatisticsEntry.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsEntry.setDescription("Provides the information of the L2VPN's SVC packets Statistics.")
hw_svc_statistics_rcv_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcStatisticsRcvPkts.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsRcvPkts.setDescription('The total number of packets received on this SVC.')
hw_svc_statistics_rcv_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcStatisticsRcvBytes.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsRcvBytes.setDescription('The total number of bytes received on this SVC.')
hw_svc_statistics_snd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcStatisticsSndPkts.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsSndPkts.setDescription('The total number of packets sent on this SVC.')
hw_svc_statistics_snd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 3, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwSvcStatisticsSndBytes.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsSndBytes.setDescription('The total number of bytes sent on the SVC.')
hw_svc_switch_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 4), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSvcSwitchNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcSwitchNotifEnable.setDescription("If this object is set to enable(1), then it enables the emission of hwSvcSwitchWtoP and hwSvcSwitchPtoW notifications; otherwise these notifications are not emitted.Currently, can't support. The default value is disable (2).")
hw_svc_up_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 5), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSvcUpDownNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcUpDownNotifEnable.setDescription('This object indicates the enable sign of PW VC state change notification. The default value is disable (2).')
hw_svc_deleted_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 6), hw_enable_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSvcDeletedNotifEnable.setStatus('current')
if mibBuilder.loadTexts:
hwSvcDeletedNotifEnable.setDescription('This object indicates the enable sign of PW VC deletion notification. The default value is disable (2).')
hw_svc_state_change_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 3, 7), hwl2_vpn_state_change_reason()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
hwSvcStateChangeReason.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStateChangeReason.setDescription('This object indicates the reason of PE VC state change.')
hw_l2vpn_svc_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4))
hw_svc_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
hwSvcSwitchWtoP.setStatus('current')
if mibBuilder.loadTexts:
hwSvcSwitchWtoP.setDescription("This notification is generated when switch from working PW to protect PW happens.Currently, can't support.")
hw_svc_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'))
if mibBuilder.loadTexts:
hwSvcSwitchPtoW.setStatus('current')
if mibBuilder.loadTexts:
hwSvcSwitchPtoW.setDescription("This notification is generated when switch from protect PW to working PW happens.Currently, can't support.")
hw_svc_down = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName'))
if mibBuilder.loadTexts:
hwSvcDown.setStatus('current')
if mibBuilder.loadTexts:
hwSvcDown.setDescription("This notification indicates the SVC's state changes to down.")
hw_svc_up = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'), ('IF-MIB', 'ifName'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName'))
if mibBuilder.loadTexts:
hwSvcUp.setStatus('current')
if mibBuilder.loadTexts:
hwSvcUp.setDescription("This notification indicates the SVC's state changes to up.")
hw_svc_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 4, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'))
if mibBuilder.loadTexts:
hwSvcDeleted.setStatus('current')
if mibBuilder.loadTexts:
hwSvcDeleted.setDescription('This notification indicates the SVC is deleted.')
hw_pw_template_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5))
if mibBuilder.loadTexts:
hwPWTemplateTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateTable.setDescription('This table specifies information for configuring and status monitoring to PW tempalte.')
hw_pw_template_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWTemplateName'))
if mibBuilder.loadTexts:
hwPWTemplateEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateEntry.setDescription('A row in this table represents a pseudo wire (PW) template. It is indexed by hwPWCmdTemplateIndex, which uniquely identifying a singular tempalte.')
hw_pw_template_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 19)))
if mibBuilder.loadTexts:
hwPWTemplateName.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateName.setDescription("The name of the PW template. Set by the operator to indicate the protocol responsible for establishing this PW. The value 'static' is used in all cases where no maintenance protocol (PW signaling) is used to set-up the PW, i.e. require configuration of entries in the PW tables including PW labels, etc. The value 'ldp' is used in case of signaling with the PWid FEC element with LDP signaling. The value 'rsvp' indicate the use of rsvp control protocol.")
hw_pw_template_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 2), inet_address_type().clone('ipv4')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePeerAddrType.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePeerAddrType.setDescription("Denotes the address type of the peer node. It should be set to 'unknown' if PE/PW maintenance protocol is not used and the address is unknown. Currently, support 'ipv4' only.")
hw_pw_template_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePeerAddr.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePeerAddr.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. ')
hw_pw_template_ctrlword = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 4), hw_enable_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateCtrlword.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateCtrlword.setDescription('Indicates the control word capability of the switch PW.')
hw_pw_template_vccv = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 5), bits().clone(namedValues=named_values(('ccCw', 0), ('ccAlert', 1), ('ccLabel', 2), ('cvIcmpping', 3), ('cvLspping', 4), ('cvBfd', 5), ('ccTtl', 6)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateVCCV.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateVCCV.setDescription('Indicates the optional VCCV capabilities of the PW template. According to whether the control word is enabled, the value can be ccCw(0)|ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5) or ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5). The default value is ccAlert(1)|ccTtl(6)|cvLspping(4)|cvBfd(5).')
hw_pw_template_frag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 6), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateFrag.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateFrag.setDescription('Indicates whether or not fragmentaion is supported.')
hw_pw_template_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 32000000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWTemplateBandwidth.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateBandwidth.setDescription("Indicates the bandwitdh when signaling protocol is rsvp. Currently, can't support.'0' is the default value.")
hw_pw_template_tnl_policy_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 39))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateTnlPolicyName.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateTnlPolicyName.setDescription('Indicates the tunnel policy name used.')
hw_pw_template_qo_s_behavior_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 9), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateQoSBehaviorIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateQoSBehaviorIndex.setDescription("Indicates the traffic behavior Index when QOS is implemented.Currently, can't support.'0' is the default value.")
hw_pw_template_explicit_path_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateExplicitPathName.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateExplicitPathName.setDescription("Indicates the explicit path name set by the operator.Currently, can't support.")
hw_pw_template_bfd_detect_multiplier = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 11), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 50)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateBFDDetectMultiplier.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateBFDDetectMultiplier.setDescription('The multiple of detection time.')
hw_pw_template_bfd_min_receive_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 12), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateBFDMinReceiveInterval.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateBFDMinReceiveInterval.setDescription('The interval of bfd messages to be received.')
hw_pw_template_bfd_min_transmit_interval = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 13), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 1000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateBFDMinTransmitInterval.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateBFDMinTransmitInterval.setDescription('The interval of bfd messages to be sent.')
hw_pw_template_dynamic_bfd_detect = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 14), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateDynamicBFDDetect.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateDynamicBFDDetect.setDescription('This value indicates the capacitability to support dynamic BFD detect.')
hw_pw_template_max_atm_cells = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateMaxAtmCells.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateMaxAtmCells.setDescription('Specifies the MaxAtmCells.')
hw_pw_template_atm_pack_overtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 16), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 50000)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateAtmPackOvertime.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateAtmPackOvertime.setDescription('Specifies the AtmPackOvertime.')
hw_pw_template_pw_jitter_buffer_depth = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePwJitterBufferDepth.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePwJitterBufferDepth.setDescription('Specifies the PwJitterBufferDepth.')
hw_pw_template_pw_tdm_encapsulation_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePwTdmEncapsulationNum.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePwTdmEncapsulationNum.setDescription('Specifies the PwTdmEncapsulationNum.')
hw_pw_template_pw_idle_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 19), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 255), value_range_constraint(65535, 65535)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePwIdleCode.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePwIdleCode.setDescription('Specifies the PwIdleCode.')
hw_pw_template_pw_rtp_header = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 20), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePwRtpHeader.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePwRtpHeader.setDescription('Specifies the PwRtpHeader.')
hw_pw_template_pw_cc_seq_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 21), hw_enable_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePwCCSeqEnable.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePwCCSeqEnable.setDescription('Specifies the CC Sequence is enable or not.')
hw_pw_template_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 22), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateCir.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateCir.setDescription('Specifies the committed information rate, based on the PW template entry.')
hw_pw_template_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 23), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplatePir.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplatePir.setDescription('Specifies the peak information rate, based on the PW template entry.')
hw_pw_template_qos_profile = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateQosProfile.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateQosProfile.setDescription("Specifies the QoS profile's name, based on the PW template entry.")
hw_pw_template_flow_label = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 25), enabled_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateFlowLabel.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateFlowLabel.setDescription('The value of this object identifies whether the PW FlowLabel is enabled.')
hw_pw_template_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 5, 1, 51), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hwPWTemplateRowStatus.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateRowStatus.setDescription("RowStatus for this Table. Restriction: The row must be created by 'createAndGo' handle only. Handle 'createAndWait' is forbidden.")
hw_pw_template_mib_traps = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6))
hw_pw_template_cannot_deleted = notification_type((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 6, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplateName'))
if mibBuilder.loadTexts:
hwPWTemplateCannotDeleted.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateCannotDeleted.setDescription('This notification indicates the PWTemplate cannot be deleted.')
hw_pw_table_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7))
hw_pw_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1))
if mibBuilder.loadTexts:
hwPWTable.setStatus('current')
if mibBuilder.loadTexts:
hwPWTable.setDescription('This table indicates a PW, that is Static PW or LDP PW')
hw_pw_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1)).setIndexNames((0, 'HUAWEI-PWE3-MIB', 'hwPWId'), (0, 'HUAWEI-PWE3-MIB', 'hwPWType'), (0, 'HUAWEI-PWE3-MIB', 'hwPWPeerIp'))
if mibBuilder.loadTexts:
hwPWEntry.setStatus('current')
if mibBuilder.loadTexts:
hwPWEntry.setDescription('Provides the information of a VC key entry.')
hw_pw_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 1), unsigned32())
if mibBuilder.loadTexts:
hwPWId.setStatus('current')
if mibBuilder.loadTexts:
hwPWId.setDescription("Index for the conceptual row identifying a PW within this PW Emulation table.Used in the outgoing PW ID field within the 'Virtual Circuit FEC Element'.")
hw_pw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 2), hwl2_vpn_vc_encaps_type())
if mibBuilder.loadTexts:
hwPWType.setStatus('current')
if mibBuilder.loadTexts:
hwPWType.setDescription('Index for the conceptual row identifying a PW within this PW Emulation table.This value indicate the service to be carried over this PW.')
hw_pw_peer_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 3), ip_address())
if mibBuilder.loadTexts:
hwPWPeerIp.setStatus('current')
if mibBuilder.loadTexts:
hwPWPeerIp.setDescription('This object contain the value of the peer node address of the PW/PE maintenance protocol entity. This object SHOULD contain a value of all zeroes if not applicable.')
hw_pw_interface_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 1, 7, 1, 1, 4), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hwPWInterfaceIndex.setStatus('current')
if mibBuilder.loadTexts:
hwPWInterfaceIndex.setDescription('Index of the interface (or the virtual interface) associated with the PW.')
hw_pwe3_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3))
hw_pwe3_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1))
hw_pwe3_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 1, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsGroup'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateGroup'), ('HUAWEI-PWE3-MIB', 'hwPWNotificationControlGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReasonGroup'), ('HUAWEI-PWE3-MIB', 'hwPWVcNotificationGroup'), ('HUAWEI-PWE3-MIB', 'hwPWTableGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pwe3_mib_compliance = hwPwe3MIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
hwPwe3MIBCompliance.setDescription('The compliance statement for systems supporting the HUAWEI-PWE3-MIB.')
hw_pwe3_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2))
hw_pw_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchSign'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchID'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwPWVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWVcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwPWVcVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWVcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwPWVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWVcTemplateName'), ('HUAWEI-PWE3-MIB', 'hwPWVcSecondary'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpTime'), ('HUAWEI-PWE3-MIB', 'hwPWOAMSync'), ('HUAWEI-PWE3-MIB', 'hwPWVCForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwPWVcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwPWVcActive'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcVrID'), ('HUAWEI-PWE3-MIB', 'hwPWBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWBFDRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWEthOamType'), ('HUAWEI-PWE3-MIB', 'hwPWCfmMaIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwPWVcIfName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRowStatus'), ('HUAWEI-PWE3-MIB', 'hwPWVcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWVcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMaName'), ('HUAWEI-PWE3-MIB', 'hwPWVcCfmMdName'), ('HUAWEI-PWE3-MIB', 'hwPWVcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwPWVcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwPWVcCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchCir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPir'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWVcTrigger'), ('HUAWEI-PWE3-MIB', 'hwPWVcEnableACOAM'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchVrID'), ('HUAWEI-PWE3-MIB', 'hwPWVcQosParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPWVcBfdParaFromPWT'), ('HUAWEI-PWE3-MIB', 'hwPwVcNegotiateMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsBypass'), ('HUAWEI-PWE3-MIB', 'hwPwVcIsAdmin'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwIfIndex'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupAdminPwLinkStatus'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcId'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcReceiveLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSendLabel'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcCir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcPir'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPwVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcSlaveMasterMode'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcActive'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchCwTrans'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchVcServiceName'), ('HUAWEI-PWE3-MIB', 'hwPwVcSwitchBackupVcServiceName'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_group = hwPWVcGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcGroup.setDescription("The Pwe3's VC group.")
hw_pw_vc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTnlType'), ('HUAWEI-PWE3-MIB', 'hwPWTnlForBfdIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_tnl_group = hwPWVcTnlGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTnlGroup.setDescription("The PWE3's VC Tunnel group.")
hw_pw_vc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcStatisticsSndBytes'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_statistics_group = hwPWVcStatisticsGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStatisticsGroup.setDescription("The PWE3's VC Statistics group.")
hw_pw_remote_vc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWRemoteVcID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcType'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcStatus'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcGroupID'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMtu'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWRemoteVcNotif'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_remote_vc_group = hwPWRemoteVcGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWRemoteVcGroup.setDescription("The PWE3's Remote VC group.")
hw_pw_template_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePeerAddr'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCtrlword'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateVCCV'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFrag'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBandwidth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateExplicitPathName'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDDetectMultiplier'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinReceiveInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateBFDMinTransmitInterval'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateDynamicBFDDetect'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePwCCSeqEnable'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateCir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplatePir'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateQosProfile'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateFlowLabel'), ('HUAWEI-PWE3-MIB', 'hwPWTemplateRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_template_group = hwPWTemplateGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWTemplateGroup.setDescription("The PWE3's Template group.")
hw_pw_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeletedNotifEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_notification_control_group = hwPWNotificationControlGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWNotificationControlGroup.setDescription("The PWE3's Notification Control group.")
hw_pw_vc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 7)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcStateChangeReason'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchRmtID'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_state_change_reason_group = hwPWVcStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcStateChangeReasonGroup.setDescription("The PWE3's Vc State Reason group.")
hw_pw_vc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 8)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwPWVcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwPWVcUp'), ('HUAWEI-PWE3-MIB', 'hwPWVcDeleted'), ('HUAWEI-PWE3-MIB', 'hwPWVcBackup'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcDown'), ('HUAWEI-PWE3-MIB', 'hwLdpPWVcUp'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_notification_group = hwPWVcNotificationGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcNotificationGroup.setDescription("The PWE3's VC Notification group.")
hw_ldp_pw_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 9)).setObjects(('HUAWEI-PWE3-MIB', 'hwLdpPWStateChangeReason'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_ldp_pw_state_change_reason_group = hwLdpPWStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts:
hwLdpPWStateChangeReasonGroup.setDescription('The LDP PW VC State Reason group.')
hw_pw_vc_tdm_perf_current_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 2, 10)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMissingPkts'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrOverruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentJtrBfrUnderruns'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMisOrderDropped'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentMalformedPkt'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentSESs'), ('HUAWEI-PWE3-MIB', 'hwPWVcTDMPerfCurrentUASs'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_vc_tdm_perf_current_group = hwPWVcTDMPerfCurrentGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWVcTDMPerfCurrentGroup.setDescription("The PWE3's VC TDM performance information group.")
hw_l2vpn_svc_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3))
hw_svc_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcID'), ('HUAWEI-PWE3-MIB', 'hwSvcType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddrType'), ('HUAWEI-PWE3-MIB', 'hwSvcPeerAddr'), ('HUAWEI-PWE3-MIB', 'hwSvcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcInboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcOutboundLabel'), ('HUAWEI-PWE3-MIB', 'hwSvcGroupID'), ('HUAWEI-PWE3-MIB', 'hwSvcAcStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcACOAMStatus'), ('HUAWEI-PWE3-MIB', 'hwSvcMtu'), ('HUAWEI-PWE3-MIB', 'hwSvcCtrlWord'), ('HUAWEI-PWE3-MIB', 'hwSvcVCCV'), ('HUAWEI-PWE3-MIB', 'hwSvcBandWidth'), ('HUAWEI-PWE3-MIB', 'hwSvcMaxAtmCells'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlPolicyName'), ('HUAWEI-PWE3-MIB', 'hwSvcQoSBehaviorIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcPWTemplateName'), ('HUAWEI-PWE3-MIB', 'hwSvcUpTime'), ('HUAWEI-PWE3-MIB', 'hwSvcOAMSync'), ('HUAWEI-PWE3-MIB', 'hwSvcForBfdIndex'), ('HUAWEI-PWE3-MIB', 'hwSvcSecondary'), ('HUAWEI-PWE3-MIB', 'hwSvcDelayTime'), ('HUAWEI-PWE3-MIB', 'hwSvcReroutePolicy'), ('HUAWEI-PWE3-MIB', 'hwSvcResumeTime'), ('HUAWEI-PWE3-MIB', 'hwSvcRerouteReason'), ('HUAWEI-PWE3-MIB', 'hwSvcLastRerouteTime'), ('HUAWEI-PWE3-MIB', 'hwSvcManualSetFault'), ('HUAWEI-PWE3-MIB', 'hwSvcActive'), ('HUAWEI-PWE3-MIB', 'hwSvcUpStartTime'), ('HUAWEI-PWE3-MIB', 'hwSvcUpSumTime'), ('HUAWEI-PWE3-MIB', 'hwSvcAtmPackOvertime'), ('HUAWEI-PWE3-MIB', 'hwSvcPwJitterBufferDepth'), ('HUAWEI-PWE3-MIB', 'hwSvcPwTdmEncapsulationNum'), ('HUAWEI-PWE3-MIB', 'hwSvcPwIdleCode'), ('HUAWEI-PWE3-MIB', 'hwSvcPwRtpHeader'), ('HUAWEI-PWE3-MIB', 'hwSvcRawOrTagged'), ('HUAWEI-PWE3-MIB', 'hwSvcInterworkingType'), ('HUAWEI-PWE3-MIB', 'hwSvcCir'), ('HUAWEI-PWE3-MIB', 'hwSvcPir'), ('HUAWEI-PWE3-MIB', 'hwSvcQosProfile'), ('HUAWEI-PWE3-MIB', 'hwSvcRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_group = hwSvcGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcGroup.setDescription("The L2vpn's SVC group.")
hw_svc_tnl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 2)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcTnlType'), ('HUAWEI-PWE3-MIB', 'hwSvcTnlForBfdIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_tnl_group = hwSvcTnlGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcTnlGroup.setDescription("The L2vpn's SVC Tunnel group.")
hw_svc_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 3)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsRcvBytes'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndPkts'), ('HUAWEI-PWE3-MIB', 'hwSvcStatisticsSndBytes'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_statistics_group = hwSvcStatisticsGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStatisticsGroup.setDescription("The L2vpn's SVC Statistics group.")
hw_svc_notification_control_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 4)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcUpDownNotifEnable'), ('HUAWEI-PWE3-MIB', 'hwSvcDeletedNotifEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_notification_control_group = hwSvcNotificationControlGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcNotificationControlGroup.setDescription("The L2vpn SVC's Notification Control group.")
hw_svc_state_change_reason_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 5)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcStateChangeReason'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_state_change_reason_group = hwSvcStateChangeReasonGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcStateChangeReasonGroup.setDescription("The L2vpn's SVc State Reason group.")
hw_svc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 3, 6)).setObjects(('HUAWEI-PWE3-MIB', 'hwSvcSwitchWtoP'), ('HUAWEI-PWE3-MIB', 'hwSvcSwitchPtoW'), ('HUAWEI-PWE3-MIB', 'hwSvcDown'), ('HUAWEI-PWE3-MIB', 'hwSvcUp'), ('HUAWEI-PWE3-MIB', 'hwSvcDeleted'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_svc_notification_group = hwSvcNotificationGroup.setStatus('current')
if mibBuilder.loadTexts:
hwSvcNotificationGroup.setDescription("The L2vpn's SVC Notification group.")
hw_l2vpn_pw_table_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4))
hw_pw_table_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 119, 4, 3, 4, 1)).setObjects(('HUAWEI-PWE3-MIB', 'hwPWInterfaceIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_pw_table_group = hwPWTableGroup.setStatus('current')
if mibBuilder.loadTexts:
hwPWTableGroup.setDescription('The PW Table Group.')
mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwPWTemplateVCCV=hwPWTemplateVCCV, hwPWVcVCCV=hwPWVcVCCV, hwPWVcUp=hwPWVcUp, hwL2VpnPwe3=hwL2VpnPwe3, hwSvcInboundLabel=hwSvcInboundLabel, hwPwVcSwitchAdminPwIfIndex=hwPwVcSwitchAdminPwIfIndex, hwPWVcQosProfile=hwPWVcQosProfile, hwSvcInterworkingType=hwSvcInterworkingType, hwSvcTnlEntry=hwSvcTnlEntry, hwPWEntry=hwPWEntry, HWLdpPwStateChangeReason=HWLdpPwStateChangeReason, hwPWVcTDMPerfCurrentMissingPkts=hwPWVcTDMPerfCurrentMissingPkts, hwPWVcBackup=hwPWVcBackup, hwSvcStateChangeReason=hwSvcStateChangeReason, hwPWTemplatePwTdmEncapsulationNum=hwPWTemplatePwTdmEncapsulationNum, hwPWVcActive=hwPWVcActive, hwPWVcExplicitPathName=hwPWVcExplicitPathName, hwPWVcIfName=hwPWVcIfName, hwPWTemplateAtmPackOvertime=hwPWTemplateAtmPackOvertime, hwPWTemplatePwCCSeqEnable=hwPWTemplatePwCCSeqEnable, hwSvcEntry=hwSvcEntry, hwPWTemplateTnlPolicyName=hwPWTemplateTnlPolicyName, hwPWVCForBfdIndex=hwPWVCForBfdIndex, hwPWVcTnlEntry=hwPWVcTnlEntry, hwSvcStatisticsTable=hwSvcStatisticsTable, hwPWTemplateBFDDetectMultiplier=hwPWTemplateBFDDetectMultiplier, hwSvcStatisticsRcvBytes=hwSvcStatisticsRcvBytes, hwPWVcRerouteReason=hwPWVcRerouteReason, hwSvcSwitchWtoP=hwSvcSwitchWtoP, hwPWVcQoSBehaviorIndex=hwPWVcQoSBehaviorIndex, hwSvcTnlType=hwSvcTnlType, hwL2vpnSvcMIBTraps=hwL2vpnSvcMIBTraps, hwPWVcUpStartTime=hwPWVcUpStartTime, hwPwVcSwitchVcActive=hwPwVcSwitchVcActive, hwSvcOAMSync=hwSvcOAMSync, hwSvcLastRerouteTime=hwSvcLastRerouteTime, hwPWVcCfmMdIndex=hwPWVcCfmMdIndex, hwPWVcPwIdleCode=hwPWVcPwIdleCode, hwPWVcSwitchVrID=hwPWVcSwitchVrID, hwPWTemplatePwJitterBufferDepth=hwPWTemplatePwJitterBufferDepth, hwPWVcPwTdmEncapsulationNum=hwPWVcPwTdmEncapsulationNum, hwLdpPWVcUp=hwLdpPWVcUp, hwPWVcGroup=hwPWVcGroup, hwPWRemoteVcMtu=hwPWRemoteVcMtu, hwSvcStatisticsSndBytes=hwSvcStatisticsSndBytes, hwSvcTnlIndex=hwSvcTnlIndex, hwPwVcSwitchBackupVcActive=hwPwVcSwitchBackupVcActive, hwPWRemoteVcGroup=hwPWRemoteVcGroup, hwSvcGroup=hwSvcGroup, hwPWVcAcStatus=hwPWVcAcStatus, hwPWRemoteVcCtrlword=hwPWRemoteVcCtrlword, hwPWVcUpDownNotifEnable=hwPWVcUpDownNotifEnable, hwSvcNotificationGroup=hwSvcNotificationGroup, hwPWVcType=hwPWVcType, hwPWVcSwitchInboundLabel=hwPWVcSwitchInboundLabel, hwPWVcStatisticsRcvPkts=hwPWVcStatisticsRcvPkts, hwSvcStatus=hwSvcStatus, hwSvcDeletedNotifEnable=hwSvcDeletedNotifEnable, hwSvcStatisticsSndPkts=hwSvcStatisticsSndPkts, hwPWBFDDetectMultiplier=hwPWBFDDetectMultiplier, hwPWVcCfmMdName=hwPWVcCfmMdName, hwPWVcManualSetFault=hwPWVcManualSetFault, hwPwVcSlaveMasterMode=hwPwVcSlaveMasterMode, hwPWTemplateFrag=hwPWTemplateFrag, hwPWVcTDMPerfCurrentMalformedPkt=hwPWVcTDMPerfCurrentMalformedPkt, hwSvcRowStatus=hwSvcRowStatus, hwSvcNotificationControlGroup=hwSvcNotificationControlGroup, hwPwVcSwitchBackupVcCir=hwPwVcSwitchBackupVcCir, hwPWRemoteVcTable=hwPWRemoteVcTable, hwSvcAcStatus=hwSvcAcStatus, hwPWVcTDMPerfCurrentUASs=hwPWVcTDMPerfCurrentUASs, PYSNMP_MODULE_ID=hwL2VpnPwe3, hwSvcStatisticsEntry=hwSvcStatisticsEntry, hwPWVcSwitchID=hwPWVcSwitchID, hwSvcPWTemplateName=hwSvcPWTemplateName, hwPWVcSwitchPir=hwPWVcSwitchPir, hwPwVcSwitchCwTrans=hwPwVcSwitchCwTrans, hwPWBFDMinReceiveInterval=hwPWBFDMinReceiveInterval, hwPWVcSwitchPeerAddrType=hwPWVcSwitchPeerAddrType, hwPWVcSwitchTnlPolicyName=hwPWVcSwitchTnlPolicyName, hwPWVcPir=hwPWVcPir, hwPwVcAdminPwIfIndex=hwPwVcAdminPwIfIndex, hwSvcQoSBehaviorIndex=hwSvcQoSBehaviorIndex, hwPWVcEntry=hwPWVcEntry, hwPwVcIsBypass=hwPwVcIsBypass, hwPWVcStatus=hwPWVcStatus, hwPWVcReroutePolicy=hwPWVcReroutePolicy, hwPWVcMtu=hwPWVcMtu, hwPWVcLastRerouteTime=hwPWVcLastRerouteTime, hwPwVcSwitchBackupVcPeerAddrType=hwPwVcSwitchBackupVcPeerAddrType, hwSvcCtrlWord=hwSvcCtrlWord, hwSvcUpSumTime=hwSvcUpSumTime, hwSvcPwTdmEncapsulationNum=hwSvcPwTdmEncapsulationNum, hwSvcRawOrTagged=hwSvcRawOrTagged, hwPWTemplateExplicitPathName=hwPWTemplateExplicitPathName, hwPWVcNotificationGroup=hwPWVcNotificationGroup, hwPWTemplatePir=hwPWTemplatePir, hwPWTemplateMaxAtmCells=hwPWTemplateMaxAtmCells, hwPWRemoteVcMaxAtmCells=hwPWRemoteVcMaxAtmCells, hwPwVcAdminPwLinkStatus=hwPwVcAdminPwLinkStatus, hwPWTemplatePeerAddrType=hwPWTemplatePeerAddrType, hwPWInterfaceIndex=hwPWInterfaceIndex, hwPWVcPeerAddrType=hwPWVcPeerAddrType, hwPWVcVrIfIndex=hwPWVcVrIfIndex, hwPWTemplateDynamicBFDDetect=hwPWTemplateDynamicBFDDetect, hwPWVcEnableACOAM=hwPWVcEnableACOAM, hwPwVcSwitchBackupVcReceiveLabel=hwPwVcSwitchBackupVcReceiveLabel, hwPWTemplateBandwidth=hwPWTemplateBandwidth, hwPWVcUpTime=hwPWVcUpTime, hwPwVcSwitchBackupAdminPwLinkStatus=hwPwVcSwitchBackupAdminPwLinkStatus, hwPWVcStatisticsTable=hwPWVcStatisticsTable, hwPWVcTnlIndex=hwPWVcTnlIndex, hwPWVcStatisticsSndPkts=hwPWVcStatisticsSndPkts, hwPWVcCtrlWord=hwPWVcCtrlWord, hwLdpPWStateChangeReasonGroup=hwLdpPWStateChangeReasonGroup, hwPWTemplateQosProfile=hwPWTemplateQosProfile, hwPwVcSwitchBackupVcId=hwPwVcSwitchBackupVcId, hwSvcActive=hwSvcActive, hwPWVcTDMPerfCurrentEntry=hwPWVcTDMPerfCurrentEntry, hwSvcPwRtpHeader=hwSvcPwRtpHeader, hwPwe3MIBObjects=hwPwe3MIBObjects, hwSvcUpDownNotifEnable=hwSvcUpDownNotifEnable, hwPWTemplateGroup=hwPWTemplateGroup, hwSvcReroutePolicy=hwSvcReroutePolicy, hwSvcPwJitterBufferDepth=hwSvcPwJitterBufferDepth, hwLdpPWStateChangeReason=hwLdpPWStateChangeReason, hwPWTemplatePwIdleCode=hwPWTemplatePwIdleCode, hwPWVcID=hwPWVcID, hwPWVcTnlPolicyName=hwPWVcTnlPolicyName, hwPWVcTDMPerfCurrentESs=hwPWVcTDMPerfCurrentESs, hwPWTemplateBFDMinTransmitInterval=hwPWTemplateBFDMinTransmitInterval, hwSvcStateChangeReasonGroup=hwSvcStateChangeReasonGroup, hwPwVcSwitchBackupVcSendLabel=hwPwVcSwitchBackupVcSendLabel, hwPWTnlForBfdIndex=hwPWTnlForBfdIndex, hwSvcBandWidth=hwSvcBandWidth, hwPWVcTDMPerfCurrentMisOrderDropped=hwPWVcTDMPerfCurrentMisOrderDropped, hwPWTemplateName=hwPWTemplateName, hwPWVcCir=hwPWVcCir, hwPWTableGroup=hwPWTableGroup, hwSvcTnlTable=hwSvcTnlTable, hwPWVcOutboundLabel=hwPWVcOutboundLabel, hwPWTableObjects=hwPWTableObjects, hwPWRemoteVcGroupID=hwPWRemoteVcGroupID, hwPWVcStateChangeReason=hwPWVcStateChangeReason, hwSvcQosProfile=hwSvcQosProfile, hwSvcUpTime=hwSvcUpTime, hwSvcPwIdleCode=hwSvcPwIdleCode, hwPWVcSwitchRmtID=hwPWVcSwitchRmtID, hwPWVcInboundLabel=hwPWVcInboundLabel, hwPWVcBfdParaFromPWT=hwPWVcBfdParaFromPWT, hwPWVcSwitchNotifEnable=hwPWVcSwitchNotifEnable, hwSvcDeleted=hwSvcDeleted, hwSvcRerouteReason=hwSvcRerouteReason, hwPWVcQosParaFromPWT=hwPWVcQosParaFromPWT, hwPWRemoteVcType=hwPWRemoteVcType, hwPWVcRowStatus=hwPWVcRowStatus, hwPWVcRawOrTagged=hwPWVcRawOrTagged, hwPWTemplateMIBTraps=hwPWTemplateMIBTraps, hwPWVcACOAMStatus=hwPWVcACOAMStatus, hwPWBFDMinTransmitInterval=hwPWBFDMinTransmitInterval, hwPWVcSwitchQosProfile=hwPWVcSwitchQosProfile, hwPWVcSwitchVrIfIndex=hwPWVcSwitchVrIfIndex, hwPWType=hwPWType, hwPwVcSwitchBackupVcPir=hwPwVcSwitchBackupVcPir, hwPWVcSwitchSign=hwPWVcSwitchSign, hwPwVcSwitchBackupVcQosProfile=hwPwVcSwitchBackupVcQosProfile, hwPWTemplateFlowLabel=hwPWTemplateFlowLabel, hwPWVcTDMPerfCurrentJtrBfrOverruns=hwPWVcTDMPerfCurrentJtrBfrOverruns, hwPWVcGroupID=hwPWVcGroupID, hwPWVcUpSumTime=hwPWVcUpSumTime, hwPwe3MIBTraps=hwPwe3MIBTraps, hwPWVcTDMPerfCurrentTable=hwPWVcTDMPerfCurrentTable, hwSvcResumeTime=hwSvcResumeTime, hwPwVcSwitchBackupAdminPwIfIndex=hwPwVcSwitchBackupAdminPwIfIndex, hwPWTemplateRowStatus=hwPWTemplateRowStatus, hwPwe3MIBGroups=hwPwe3MIBGroups, hwSvcType=hwSvcType, hwSvcVCCV=hwSvcVCCV, hwPWVcStatisticsSndBytes=hwPWVcStatisticsSndBytes, hwSvcDelayTime=hwSvcDelayTime, hwSvcPir=hwSvcPir, hwPWVcPwRtpHeader=hwPWVcPwRtpHeader, hwPWRemoteVcNotif=hwPWRemoteVcNotif, hwPWTemplateQoSBehaviorIndex=hwPWTemplateQoSBehaviorIndex, hwL2vpnPWTableMIBGroups=hwL2vpnPWTableMIBGroups, hwPWVcTable=hwPWVcTable, hwPwVcSwitchAdminPwLinkStatus=hwPwVcSwitchAdminPwLinkStatus, hwPWRemoteVcEntry=hwPWRemoteVcEntry, hwLdpPWVcDown=hwLdpPWVcDown, hwSvcAtmPackOvertime=hwSvcAtmPackOvertime, hwPwe3MIBCompliance=hwPwe3MIBCompliance, hwPWVcPwJitterBufferDepth=hwPWVcPwJitterBufferDepth, hwPWVcSwitchCir=hwPWVcSwitchCir, hwPwVcSwitchVcServiceName=hwPwVcSwitchVcServiceName, hwPWTemplateBFDMinReceiveInterval=hwPWTemplateBFDMinReceiveInterval, hwPWVcDelayTime=hwPWVcDelayTime, hwSvcStatisticsGroup=hwSvcStatisticsGroup, hwPWVcTnlGroup=hwPWVcTnlGroup, hwSvcUp=hwSvcUp, hwSvcPeerAddrType=hwSvcPeerAddrType, hwPWVcStatisticsGroup=hwPWVcStatisticsGroup, hwPwe3MIBCompliances=hwPwe3MIBCompliances, hwL2Vpn=hwL2Vpn, hwPWVcInterworkingType=hwPWVcInterworkingType, hwPwe3Objects=hwPwe3Objects, hwPWVcSwitchPeerAddr=hwPWVcSwitchPeerAddr, hwPwVcIsAdmin=hwPwVcIsAdmin, hwPWOAMSync=hwPWOAMSync, hwPWVcTnlTable=hwPWVcTnlTable, hwSvcOutboundLabel=hwSvcOutboundLabel, hwPWTemplatePeerAddr=hwPWTemplatePeerAddr, hwPWVcMaxAtmCells=hwPWVcMaxAtmCells, hwPWVcCfmMaName=hwPWVcCfmMaName, hwPwVcSwitchBackupVcServiceName=hwPwVcSwitchBackupVcServiceName, hwPWVcStatisticsRcvBytes=hwPWVcStatisticsRcvBytes, hwSvcMtu=hwSvcMtu, hwSvcTnlForBfdIndex=hwSvcTnlForBfdIndex, hwPWVcTDMPerfCurrentGroup=hwPWVcTDMPerfCurrentGroup, hwPWBFDRemoteVcID=hwPWBFDRemoteVcID, hwPWVcTrigger=hwPWVcTrigger, hwSvcSwitchPtoW=hwSvcSwitchPtoW, hwPwVcSwitchBackupVcSlaveMasterMode=hwPwVcSwitchBackupVcSlaveMasterMode, hwPwe3MIBConformance=hwPwe3MIBConformance, hwSvcID=hwSvcID, hwPWTemplatePwRtpHeader=hwPWTemplatePwRtpHeader, hwSvcMaxAtmCells=hwSvcMaxAtmCells, hwSvcIfIndex=hwSvcIfIndex, hwPWEthOamType=hwPWEthOamType, hwPWVcIfIndex=hwPWVcIfIndex, hwSvcTnlPolicyName=hwSvcTnlPolicyName, hwPWTemplateCir=hwPWTemplateCir, hwPWVcStatisticsEntry=hwPWVcStatisticsEntry, hwPWVcDeleted=hwPWVcDeleted, hwPWRemoteVcStatus=hwPWRemoteVcStatus, hwPWVcTnlType=hwPWVcTnlType, hwSvcTnlGroup=hwSvcTnlGroup, hwPWVcResumeTime=hwPWVcResumeTime, hwPWVcTemplateName=hwPWVcTemplateName, hwPWVcSwitchOutboundLabel=hwPWVcSwitchOutboundLabel, hwSvcPeerAddr=hwSvcPeerAddr, hwPWId=hwPWId, hwPwVcSwitchVcSlaveMasterMode=hwPwVcSwitchVcSlaveMasterMode, hwPWCfmMaIndex=hwPWCfmMaIndex, hwPWTemplateCannotDeleted=hwPWTemplateCannotDeleted, hwPWVcSwitchPtoW=hwPWVcSwitchPtoW, hwPWVcAtmPackOvertime=hwPWVcAtmPackOvertime, hwPWVcSwitchWtoP=hwPWVcSwitchWtoP, hwPWTemplateCtrlword=hwPWTemplateCtrlword, hwPWVcTDMPerfCurrentJtrBfrUnderruns=hwPWVcTDMPerfCurrentJtrBfrUnderruns, hwSvcGroupID=hwSvcGroupID, hwPWRemoteVcID=hwPWRemoteVcID, hwPWVcDeletedNotifEnable=hwPWVcDeletedNotifEnable, hwPWVcBandWidth=hwPWVcBandWidth, hwPwVcNegotiateMode=hwPwVcNegotiateMode)
mibBuilder.exportSymbols('HUAWEI-PWE3-MIB', hwSvcSwitchNotifEnable=hwSvcSwitchNotifEnable, hwSvcStatisticsRcvPkts=hwSvcStatisticsRcvPkts, hwPWVcDown=hwPWVcDown, hwPWVcTDMPerfCurrentSESs=hwPWVcTDMPerfCurrentSESs, hwPWVcStateChangeReasonGroup=hwPWVcStateChangeReasonGroup, hwPWVcPeerAddr=hwPWVcPeerAddr, hwPWVcVrID=hwPWVcVrID, hwPWVcSecondary=hwPWVcSecondary, hwPwVcSwitchBackupVcPeerAddr=hwPwVcSwitchBackupVcPeerAddr, hwPWNotificationControlGroup=hwPWNotificationControlGroup, hwSvcManualSetFault=hwSvcManualSetFault, hwSvcObjects=hwSvcObjects, hwSvcACOAMStatus=hwSvcACOAMStatus, hwSvcUpStartTime=hwSvcUpStartTime, hwPwVcSwitchBackupVcTnlPolicyName=hwPwVcSwitchBackupVcTnlPolicyName, hwPWTable=hwPWTable, hwSvcTable=hwSvcTable, hwPWTemplateTable=hwPWTemplateTable, hwSvcSecondary=hwSvcSecondary, hwPWPeerIp=hwPWPeerIp, hwL2vpnSvcMIBGroups=hwL2vpnSvcMIBGroups, hwSvcForBfdIndex=hwSvcForBfdIndex, hwSvcCir=hwSvcCir, hwPWDynamicBFDDetect=hwPWDynamicBFDDetect, hwSvcDown=hwSvcDown, hwPWTemplateEntry=hwPWTemplateEntry) |
""" Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class headers(object):
def __init__(self):
self.data = {
"category" : {
"change-management-info" : {
"info" : {
"Accept" : "application/vnd.akamai.cps.change-management-info.v3+json"
},
"update" : {
"Accept" : "application/vnd.akamai.cps.change-id.v1+json",
"Content-Type" : "application/vnd.akamai.cps.acknowledgement-with-hash.v1+json"
},
"deloyment-info" : {
"Accept" : "application/vnd.akamai.cps.deployment.v1+json"
}
},
"lets-encrypt-challenges" : {
"info" : {
"Accept" : "application/vnd.akamai.cps.dv-challenges.v1+json"
},
"update" : {
"Accept" : "application/vnd.akamai.cps.change-id.v1+json",
"Content-Type" : "application/vnd.akamai.cps.acknowledgement.v1+json"
}
},
"post-verification-warnings" : {
"info" : {
"Accept" : "application/vnd.akamai.cps.warnings.v1+json"
},
"update" : {
"Accept" : "application/vnd.akamai.cps.change-id.v1+json",
"Content-Type" : "application/vnd.akamai.cps.acknowledgement.v1+json"
}
},
"pre-verification-warnings" : {
"info" : {
"Accept" : "application/vnd.akamai.cps.warnings.v1+json"
},
"update" : {
"Accept" : "application/vnd.akamai.cps.change-id.v1+json",
"Content-Type" : "application/vnd.akamai.cps.acknowledgement.v1+json"
}
},
"third-party-csr" : {
"info" : {
"Accept" : "application/vnd.akamai.cps.csr.v1+json"
},
"update" : {
"Accept" : "application/vnd.akamai.cps.change-id.v1+json",
"Content-Type" : "application/vnd.akamai.cps.certificate-and-trust-chain.v1+json"
}
}
}
}
| """ Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class Headers(object):
def __init__(self):
self.data = {'category': {'change-management-info': {'info': {'Accept': 'application/vnd.akamai.cps.change-management-info.v3+json'}, 'update': {'Accept': 'application/vnd.akamai.cps.change-id.v1+json', 'Content-Type': 'application/vnd.akamai.cps.acknowledgement-with-hash.v1+json'}, 'deloyment-info': {'Accept': 'application/vnd.akamai.cps.deployment.v1+json'}}, 'lets-encrypt-challenges': {'info': {'Accept': 'application/vnd.akamai.cps.dv-challenges.v1+json'}, 'update': {'Accept': 'application/vnd.akamai.cps.change-id.v1+json', 'Content-Type': 'application/vnd.akamai.cps.acknowledgement.v1+json'}}, 'post-verification-warnings': {'info': {'Accept': 'application/vnd.akamai.cps.warnings.v1+json'}, 'update': {'Accept': 'application/vnd.akamai.cps.change-id.v1+json', 'Content-Type': 'application/vnd.akamai.cps.acknowledgement.v1+json'}}, 'pre-verification-warnings': {'info': {'Accept': 'application/vnd.akamai.cps.warnings.v1+json'}, 'update': {'Accept': 'application/vnd.akamai.cps.change-id.v1+json', 'Content-Type': 'application/vnd.akamai.cps.acknowledgement.v1+json'}}, 'third-party-csr': {'info': {'Accept': 'application/vnd.akamai.cps.csr.v1+json'}, 'update': {'Accept': 'application/vnd.akamai.cps.change-id.v1+json', 'Content-Type': 'application/vnd.akamai.cps.certificate-and-trust-chain.v1+json'}}}} |
#**kwagrs use for complex agrument like dictionary store string values
def func(**kwargs):
for key, value in kwargs.items():
print("{} : {} ".format(key,value))
dict = {"Manish":"Male","Rashmi":"Female"}
func(**dict)
| def func(**kwargs):
for (key, value) in kwargs.items():
print('{} : {} '.format(key, value))
dict = {'Manish': 'Male', 'Rashmi': 'Female'}
func(**dict) |
nome1 = 'Felipe'
nome2 = 'Schmaedecke'
for n in nome1:
if n not in nome2:
print(n, end=' ')
for n in nome2:
if n not in nome1:
print(n, end=' ')
| nome1 = 'Felipe'
nome2 = 'Schmaedecke'
for n in nome1:
if n not in nome2:
print(n, end=' ')
for n in nome2:
if n not in nome1:
print(n, end=' ') |
#The code is to take in numbers which are even and odd in the provided set
even_numbers = []
odd_numbers = []
for number in range(0,1001):
if number % 2 == 0:
even_numbers.append(number)
else:
odd_numbers.append(number)
print(even_numbers)
print("\n")
print("\n")
print(odd_numbers) | even_numbers = []
odd_numbers = []
for number in range(0, 1001):
if number % 2 == 0:
even_numbers.append(number)
else:
odd_numbers.append(number)
print(even_numbers)
print('\n')
print('\n')
print(odd_numbers) |
#
# PySNMP MIB module AC-ANALOG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AC-ANALOG-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:54:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection")
audioCodes, acProducts, acBoardMibs, acGeneric, acRegistrations = mibBuilder.importSymbols("AUDIOCODES-TYPES-MIB", "audioCodes", "acProducts", "acBoardMibs", "acGeneric", "acRegistrations")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Unsigned32, IpAddress, TimeTicks, NotificationType, ObjectIdentity, Bits, Counter32, iso, ModuleIdentity, MibIdentifier, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter64, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "TimeTicks", "NotificationType", "ObjectIdentity", "Bits", "Counter32", "iso", "ModuleIdentity", "MibIdentifier", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter64", "enterprises")
DateAndTime, TextualConvention, TAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TextualConvention", "TAddress", "DisplayString")
acAnalog = ModuleIdentity((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8))
if mibBuilder.loadTexts: acAnalog.setLastUpdated('200911181414Z')
if mibBuilder.loadTexts: acAnalog.setOrganization('AudioCodes Ltd')
acAnalogConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1))
acAnalogConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1))
acAnalogMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1))
acAnalogMiscCurrentDisconnectDuration = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(200, 1500))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogMiscCurrentDisconnectDuration.setStatus('current')
acAnalogMiscFlashHookPeriod = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(25, 3000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogMiscFlashHookPeriod.setStatus('current')
acAnalogMiscGroundKeyDetection = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogMiscGroundKeyDetection.setStatus('current')
acAuxiliaryFiles = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2))
acAuxiliaryFilesFxsCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAuxiliaryFilesFxsCoefficients.setStatus('current')
acAuxiliaryFilesFxoCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAuxiliaryFilesFxoCoefficients.setStatus('current')
acAnalogFxoConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2))
acAnalogFxo = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1))
acAnalogFxoFarEndDisconnectType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectType.setStatus('current')
acAnalogFxoCountryCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(66, 70))).clone(namedValues=NamedValues(("europe", 66), ("unitedStates", 70)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoCountryCoefficients.setStatus('current')
acAnalogFxoDCRemover = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoDCRemover.setStatus('current')
acAnalogFxoFarEndDisconnectToneTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21), )
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneTable.setStatus('current')
acAnalogFxoFarEndDisconnectToneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxoFarEndDisconnectToneIndex"))
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneEntry.setStatus('current')
acAnalogFxoFarEndDisconnectToneRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneRowStatus.setStatus('current')
acAnalogFxoFarEndDisconnectToneAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 0))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneAction.setStatus('current')
acAnalogFxoFarEndDisconnectToneActionResult = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 0))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneActionResult.setStatus('current')
acAnalogFxoFarEndDisconnectToneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneIndex.setStatus('current')
acAnalogFxoFarEndDisconnectToneType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 298, 299))).clone(namedValues=NamedValues(("acNullTone", 0), ("acDialTone", 1), ("acRingingTone", 2), ("acBusyTone", 3), ("acCongestionTone", 4), ("acSpecialInfoTone", 5), ("acWarningTone", 6), ("acReorderTone", 7), ("acConfirmationTone", 8), ("acWaitingTone", 9), ("acCallProgressCo1Tone", 10), ("acCallProgressCo2Tone", 11), ("acOldMilliwattTone", 12), ("acNewMilliwattTone", 13), ("acMessageWaitingIndicator", 14), ("acStutterDialTone", 15), ("acStutterOffHookWarningTone", 16), ("acWaitingTone1", 17), ("acComfortTone", 18), ("acNAKTone", 19), ("acVacantNumberTone", 20), ("acSpecialConditionTone", 21), ("acDialTone2", 22), ("acOnHoldTone", 23), ("acCallTransferDialTone", 24), ("acCallForwardTone", 25), ("acCreditCardServiceTone", 26), ("acSpecialRecallDialTone", 27), ("acAlertingTone", 28), ("acNetworkCongestionTone", 29), ("acWaitingTone2", 30), ("acWaitingTone3", 31), ("acWaitingTone4", 32), ("acConfEnterTone", 33), ("acConfExitTone", 34), ("acConfLockTone", 35), ("acConfUnlockTone", 36), ("acConfTimeLimitTone", 37), ("acPayphoneRecognitionTone", 38), ("acCallerWaitingTone", 39), ("acCNGFaxTone", 40), ("acPrecConfNotifyType", 41), ("acPresConfNotifyType", 42), ("acPrecPreemptType", 43), ("acPrecRTType", 44), ("acR15reqOfANItone", 45), ("acCo1Tone", 200), ("acCo2Tone", 201), ("acPlayRecordBeepTone", 202), ("acTrunkTestingTestProgressTone", 203), ("acTrunkTestingTestTone", 204), ("acTrunkTestingGuardTone", 205), ("acFSKTrunkTestingTone", 206), ("acGeneralTrunkTestingTone1", 207), ("acGeneralTrunkTestingTone2", 208), ("acGeneralTrunkTestingTone3", 209), ("acSpecialInfoToneFirst", 210), ("acSpecialInfoToneSecond", 211), ("acSpecialInfoToneThird", 212), ("acTTYTone", 213), ("acTT904ContinuityTone", 214), ("acTTMilliwattLossMeasureTone", 215), ("acCarrierDialTone", 216), ("acCarrierAnswerTone", 217), ("acCarrierChargingTone", 218), ("acLongDistanceIndicatorTone", 219), ("acSTUModemFirstTone", 298), ("acSTUModemSecondTone", 299)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoFarEndDisconnectToneType.setStatus('current')
acAnalogFxsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3))
acAnalogFxs = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1))
acAnalogFxsPolarityReversalType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("soft", 0), ("hard", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsPolarityReversalType.setStatus('current')
acAnalogFxsMeteringType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("mt12kHz", 0), ("mt16kHz", 1), ("mtPolarityReversal", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsMeteringType.setStatus('current')
acAnalogFxsLifeLineType = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("acLifeLineType-Hardware-Only", 0), ("acLifeLineTypeHardware-And-Link-Detection", 1), ("acLifeLineType-Hardware-And-Link-And-Network-Detection", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsLifeLineType.setStatus('current')
acAnalogFxsMinFlashHookTime = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(25, 300))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsMinFlashHookTime.setStatus('current')
acAnalogFxsCallerIDTimingMode = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsCallerIDTimingMode.setStatus('current')
acAnalogFxsBellcoreCallerIDTypeOneSubStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("bellcore-Between-Rings", 0), ("bellcore-Not-Ring-Related", 1), ("bellcore-Before-Ring-RP-AS", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsBellcoreCallerIDTypeOneSubStandard.setStatus('current')
acAnalogFxsETSICallerIDTypeOneSubStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("eTSI-Between-Rings", 0), ("eTSI-Before-Ring-DT-AS", 1), ("eTSI-Before-Ring-RP-AS", 2), ("eTSI-Before-Ring-LR-DT-AS", 3), ("eTSI-Not-Ring-Related-DT-AS", 4), ("eTSI-Not-Ring-Related-RP-AS", 5), ("eTSI-Not-Ring-Related-LR-DT-AS", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsETSICallerIDTypeOneSubStandard.setStatus('current')
acAnalogFxsETSIVMWITypeOneStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("eTSI-VMWI-Between-Rings", 0), ("eTSI-VMWI-Before-Ring-DT-AS", 1), ("eTSI-VMWI-Before-Ring-RP-AS", 2), ("eTSI-VMWI-Before-Ring-LR-DT-AS", 3), ("eTSI-VMWI-Not-Ring-Related-DT-AS", 4), ("eTSI-VMWI-Not-Ring-Related-RP-AS", 5), ("eTSI-VMWI-Not-Ring-Related-LR-DT-AS", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsETSIVMWITypeOneStandard.setStatus('current')
acAnalogFxsBellcoreVMWITypeOneStandard = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("bellcore-VMWI-Between-Rings", 0), ("bellcore-VMWI-Not-Ring-Related", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsBellcoreVMWITypeOneStandard.setStatus('current')
acAnalogFxsDisableAutoCalibration = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 10), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsDisableAutoCalibration.setStatus('current')
acAnalogFxsExternalLifeLinePorts = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsExternalLifeLinePorts.setStatus('current')
acAnalogFxsCountryCoefficients = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(66, 70))).clone(namedValues=NamedValues(("europe", 66), ("unitedStates", 70)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsCountryCoefficients.setStatus('current')
acAnalogFxsTTXVoltageLevel = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(-1, 0, 1, 2))).clone(namedValues=NamedValues(("notAvailable", -1), ("ttxVoltageLevel0V", 0), ("ttxVoltageLevel05", 1), ("ttxVoltageLevel1V", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsTTXVoltageLevel.setStatus('current')
acAnalogStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2))
acAnalogStatusMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1))
acAnalogStatusMiscFxsOrFxo = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fXO", 0), ("fXS", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogStatusMiscFxsOrFxo.setStatus('current')
acAnalogStatusMiscBoardTemperature = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogStatusMiscBoardTemperature.setStatus('current')
acAnalogStatusMiscAnalogChannelsCount = MibScalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogStatusMiscAnalogChannelsCount.setStatus('current')
acAnalogFxsFxo = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20))
acAnalogFxsFxoTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1), )
if mibBuilder.loadTexts: acAnalogFxsFxoTable.setStatus('current')
acAnalogFxsFxoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxsFxoIndex"))
if mibBuilder.loadTexts: acAnalogFxsFxoEntry.setStatus('current')
acAnalogFxsFxoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24)))
if mibBuilder.loadTexts: acAnalogFxsFxoIndex.setStatus('current')
acAnalogFxsFxoType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("fXO", 0), ("fXS", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsFxoType.setStatus('current')
acAnalogFxsFxoChipRevNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsFxoChipRevNum.setStatus('current')
acAnalogFxsFxoHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsFxoHookState.setStatus('current')
acAnalogAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3))
acAnalogFxoAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1))
acAnalogFxoLineTestTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1), )
if mibBuilder.loadTexts: acAnalogFxoLineTestTable.setStatus('current')
acAnalogFxoLineTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxoLineTestIndex"))
if mibBuilder.loadTexts: acAnalogFxoLineTestEntry.setStatus('current')
acAnalogFxoLineTestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24)))
if mibBuilder.loadTexts: acAnalogFxoLineTestIndex.setStatus('current')
acAnalogFxoLineTestActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("noTestActivated", 0), ("runLineTest", 1), ("lineTestDone", 2), ("testFailed", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxoLineTestActivate.setStatus('current')
acAnalogFxoLineTestHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestHookState.setStatus('current')
acAnalogFxoLineTestPolarityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normalPolarity", 1), ("reversePolarity", 2), ("notAvailable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestPolarityStatus.setStatus('current')
acAnalogFxoLineTestLineConnectionStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lineDisconnected", 1), ("lineConnected", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestLineConnectionStatus.setStatus('current')
acAnalogFxoLineTestLineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestLineCurrent.setStatus('current')
acAnalogFxoLineTestLineVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-128, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestLineVoltage.setStatus('current')
acAnalogFxoLineTestRingState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestRingState.setStatus('current')
acAnalogFxoLineTestLinePolarity = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("positive", 1), ("negative", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestLinePolarity.setStatus('current')
acAnalogFxoLineTestMwiState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestMwiState.setStatus('current')
acAnalogFxoLineTestLastCurrentDisconnectDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxoLineTestLastCurrentDisconnectDuration.setStatus('current')
acAnalogFxsAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2))
acAnalogFxsLineTestTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1), )
if mibBuilder.loadTexts: acAnalogFxsLineTestTable.setStatus('current')
acAnalogFxsLineTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogFxsLineTestIndex"))
if mibBuilder.loadTexts: acAnalogFxsLineTestEntry.setStatus('current')
acAnalogFxsLineTestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 24)))
if mibBuilder.loadTexts: acAnalogFxsLineTestIndex.setStatus('current')
acAnalogFxsLineTestActivate = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("noTestActivated", 0), ("runLineTest", 1), ("lineTestDone", 2), ("testFailed", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogFxsLineTestActivate.setStatus('current')
acAnalogFxsLineTestHookState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("onHookState", 1), ("offHookState", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestHookState.setStatus('current')
acAnalogFxsLineTestRingState = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("offRingState", 1), ("onRingState", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestRingState.setStatus('current')
acAnalogFxsLineTestPolarityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normalPolarity", 1), ("reversePolarity", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestPolarityStatus.setStatus('current')
acAnalogFxsLineTestMessageWaitingIndication = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noWaitingMessage", 1), ("waitingMessage", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestMessageWaitingIndication.setStatus('current')
acAnalogFxsLineTestLineCurrentReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 3000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestLineCurrentReading.setStatus('current')
acAnalogFxsLineTestLineVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-6000, 6000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestLineVoltageReading.setStatus('current')
acAnalogFxsLineTestAnalogVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(300, 340))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestAnalogVoltageReading.setStatus('current')
acAnalogFxsLineTestRingVoltageReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-13000, 13000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestRingVoltageReading.setStatus('current')
acAnalogFxsLineTestLongLineCurrentReading = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogFxsLineTestLongLineCurrentReading.setStatus('current')
acAnalogCommonAction = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3))
acAnalogCommonChannelTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1), )
if mibBuilder.loadTexts: acAnalogCommonChannelTable.setStatus('current')
acAnalogCommonChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogCommonChannelIndex"))
if mibBuilder.loadTexts: acAnalogCommonChannelEntry.setStatus('current')
acAnalogCommonChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000)))
if mibBuilder.loadTexts: acAnalogCommonChannelIndex.setStatus('current')
acAnalogCommonChannelAction = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noAction", 0), ("reset", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: acAnalogCommonChannelAction.setStatus('current')
acAnalogLegs = MibIdentifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21))
acAnalogLegsTable = MibTable((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1), )
if mibBuilder.loadTexts: acAnalogLegsTable.setStatus('current')
acAnalogLegsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1), ).setIndexNames((0, "AC-ANALOG-MIB", "acAnalogLegsLegIndex"))
if mibBuilder.loadTexts: acAnalogLegsEntry.setStatus('current')
acAnalogLegsLegIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000)))
if mibBuilder.loadTexts: acAnalogLegsLegIndex.setStatus('current')
acAnalogLegsCallIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 5000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsCallIndex.setStatus('current')
acAnalogLegsAnalogType = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("fxs", 1), ("fxo", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsAnalogType.setStatus('current')
acAnalogLegsEchoCanceller = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsEchoCanceller.setStatus('current')
acAnalogLegsHighPassFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsHighPassFilter.setStatus('current')
acAnalogLegsDTMFDetection = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsDTMFDetection.setStatus('current')
acAnalogLegsVoiceVolume = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsVoiceVolume.setStatus('current')
acAnalogLegsInputGain = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20000))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsInputGain.setStatus('current')
acAnalogLegsLegName = MibTableColumn((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 9), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: acAnalogLegsLegName.setStatus('current')
mibBuilder.exportSymbols("AC-ANALOG-MIB", acAnalogFxoFarEndDisconnectToneEntry=acAnalogFxoFarEndDisconnectToneEntry, acAnalogLegsLegIndex=acAnalogLegsLegIndex, acAnalogFxsFxoType=acAnalogFxsFxoType, acAnalogConfig=acAnalogConfig, acAnalogLegsCallIndex=acAnalogLegsCallIndex, acAnalogFxoFarEndDisconnectToneTable=acAnalogFxoFarEndDisconnectToneTable, acAnalogStatusMiscAnalogChannelsCount=acAnalogStatusMiscAnalogChannelsCount, acAnalogFxsCountryCoefficients=acAnalogFxsCountryCoefficients, acAnalogLegs=acAnalogLegs, acAnalogFxsConfig=acAnalogFxsConfig, acAnalogFxsLineTestActivate=acAnalogFxsLineTestActivate, acAnalogFxsETSIVMWITypeOneStandard=acAnalogFxsETSIVMWITypeOneStandard, acAnalogMiscCurrentDisconnectDuration=acAnalogMiscCurrentDisconnectDuration, acAnalogFxsFxoEntry=acAnalogFxsFxoEntry, acAuxiliaryFilesFxsCoefficients=acAuxiliaryFilesFxsCoefficients, acAnalogFxsLineTestEntry=acAnalogFxsLineTestEntry, acAnalogFxsLineTestLineCurrentReading=acAnalogFxsLineTestLineCurrentReading, acAnalogFxoConfig=acAnalogFxoConfig, acAnalog=acAnalog, acAnalogFxsTTXVoltageLevel=acAnalogFxsTTXVoltageLevel, acAnalogMisc=acAnalogMisc, acAnalogFxsFxoTable=acAnalogFxsFxoTable, acAnalogFxsMinFlashHookTime=acAnalogFxsMinFlashHookTime, acAnalogLegsAnalogType=acAnalogLegsAnalogType, acAnalogFxoLineTestLinePolarity=acAnalogFxoLineTestLinePolarity, acAnalogFxoLineTestEntry=acAnalogFxoLineTestEntry, acAnalogLegsTable=acAnalogLegsTable, acAnalogLegsEchoCanceller=acAnalogLegsEchoCanceller, acAnalogFxsLineTestLongLineCurrentReading=acAnalogFxsLineTestLongLineCurrentReading, acAuxiliaryFiles=acAuxiliaryFiles, acAnalogFxsFxoChipRevNum=acAnalogFxsFxoChipRevNum, acAnalogFxoFarEndDisconnectToneActionResult=acAnalogFxoFarEndDisconnectToneActionResult, acAnalogFxoLineTestIndex=acAnalogFxoLineTestIndex, acAnalogFxsExternalLifeLinePorts=acAnalogFxsExternalLifeLinePorts, acAnalogFxsLineTestPolarityStatus=acAnalogFxsLineTestPolarityStatus, acAnalogFxsLineTestLineVoltageReading=acAnalogFxsLineTestLineVoltageReading, acAnalogConfiguration=acAnalogConfiguration, acAnalogAction=acAnalogAction, acAnalogFxs=acAnalogFxs, acAnalogCommonChannelTable=acAnalogCommonChannelTable, acAnalogFxsLifeLineType=acAnalogFxsLifeLineType, acAnalogStatusMiscBoardTemperature=acAnalogStatusMiscBoardTemperature, acAnalogMiscGroundKeyDetection=acAnalogMiscGroundKeyDetection, acAnalogFxoLineTestLineConnectionStatus=acAnalogFxoLineTestLineConnectionStatus, acAnalogLegsVoiceVolume=acAnalogLegsVoiceVolume, acAnalogFxsLineTestRingState=acAnalogFxsLineTestRingState, acAnalogFxsLineTestIndex=acAnalogFxsLineTestIndex, acAnalogFxsFxo=acAnalogFxsFxo, acAnalogCommonChannelAction=acAnalogCommonChannelAction, acAnalogFxoLineTestMwiState=acAnalogFxoLineTestMwiState, acAnalogFxsLineTestMessageWaitingIndication=acAnalogFxsLineTestMessageWaitingIndication, acAnalogFxsPolarityReversalType=acAnalogFxsPolarityReversalType, acAnalogLegsEntry=acAnalogLegsEntry, acAuxiliaryFilesFxoCoefficients=acAuxiliaryFilesFxoCoefficients, acAnalogFxoLineTestActivate=acAnalogFxoLineTestActivate, acAnalogFxoCountryCoefficients=acAnalogFxoCountryCoefficients, acAnalogStatus=acAnalogStatus, acAnalogFxsETSICallerIDTypeOneSubStandard=acAnalogFxsETSICallerIDTypeOneSubStandard, acAnalogFxoFarEndDisconnectToneAction=acAnalogFxoFarEndDisconnectToneAction, acAnalogFxsLineTestRingVoltageReading=acAnalogFxsLineTestRingVoltageReading, acAnalogFxsLineTestHookState=acAnalogFxsLineTestHookState, acAnalogFxsFxoHookState=acAnalogFxsFxoHookState, acAnalogFxsDisableAutoCalibration=acAnalogFxsDisableAutoCalibration, acAnalogFxsLineTestTable=acAnalogFxsLineTestTable, acAnalogFxoLineTestRingState=acAnalogFxoLineTestRingState, acAnalogFxoLineTestTable=acAnalogFxoLineTestTable, acAnalogLegsHighPassFilter=acAnalogLegsHighPassFilter, acAnalogFxsFxoIndex=acAnalogFxsFxoIndex, acAnalogFxo=acAnalogFxo, acAnalogFxsCallerIDTimingMode=acAnalogFxsCallerIDTimingMode, acAnalogStatusMisc=acAnalogStatusMisc, acAnalogLegsLegName=acAnalogLegsLegName, acAnalogFxoLineTestHookState=acAnalogFxoLineTestHookState, acAnalogFxoLineTestLineCurrent=acAnalogFxoLineTestLineCurrent, acAnalogFxoLineTestLastCurrentDisconnectDuration=acAnalogFxoLineTestLastCurrentDisconnectDuration, acAnalogFxsAction=acAnalogFxsAction, acAnalogFxsMeteringType=acAnalogFxsMeteringType, acAnalogFxsBellcoreVMWITypeOneStandard=acAnalogFxsBellcoreVMWITypeOneStandard, acAnalogLegsInputGain=acAnalogLegsInputGain, acAnalogCommonChannelIndex=acAnalogCommonChannelIndex, acAnalogFxoFarEndDisconnectType=acAnalogFxoFarEndDisconnectType, acAnalogFxsLineTestAnalogVoltageReading=acAnalogFxsLineTestAnalogVoltageReading, acAnalogFxoAction=acAnalogFxoAction, acAnalogFxoFarEndDisconnectToneIndex=acAnalogFxoFarEndDisconnectToneIndex, acAnalogFxoFarEndDisconnectToneType=acAnalogFxoFarEndDisconnectToneType, acAnalogLegsDTMFDetection=acAnalogLegsDTMFDetection, acAnalogFxoFarEndDisconnectToneRowStatus=acAnalogFxoFarEndDisconnectToneRowStatus, acAnalogMiscFlashHookPeriod=acAnalogMiscFlashHookPeriod, acAnalogFxoLineTestPolarityStatus=acAnalogFxoLineTestPolarityStatus, acAnalogStatusMiscFxsOrFxo=acAnalogStatusMiscFxsOrFxo, PYSNMP_MODULE_ID=acAnalog, acAnalogCommonAction=acAnalogCommonAction, acAnalogFxoLineTestLineVoltage=acAnalogFxoLineTestLineVoltage, acAnalogFxsBellcoreCallerIDTypeOneSubStandard=acAnalogFxsBellcoreCallerIDTypeOneSubStandard, acAnalogFxoDCRemover=acAnalogFxoDCRemover, acAnalogCommonChannelEntry=acAnalogCommonChannelEntry)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(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')
(audio_codes, ac_products, ac_board_mibs, ac_generic, ac_registrations) = mibBuilder.importSymbols('AUDIOCODES-TYPES-MIB', 'audioCodes', 'acProducts', 'acBoardMibs', 'acGeneric', 'acRegistrations')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(unsigned32, ip_address, time_ticks, notification_type, object_identity, bits, counter32, iso, module_identity, mib_identifier, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, counter64, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'TimeTicks', 'NotificationType', 'ObjectIdentity', 'Bits', 'Counter32', 'iso', 'ModuleIdentity', 'MibIdentifier', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Counter64', 'enterprises')
(date_and_time, textual_convention, t_address, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'TextualConvention', 'TAddress', 'DisplayString')
ac_analog = module_identity((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8))
if mibBuilder.loadTexts:
acAnalog.setLastUpdated('200911181414Z')
if mibBuilder.loadTexts:
acAnalog.setOrganization('AudioCodes Ltd')
ac_analog_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1))
ac_analog_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1))
ac_analog_misc = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1))
ac_analog_misc_current_disconnect_duration = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(200, 1500))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogMiscCurrentDisconnectDuration.setStatus('current')
ac_analog_misc_flash_hook_period = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(25, 3000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogMiscFlashHookPeriod.setStatus('current')
ac_analog_misc_ground_key_detection = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogMiscGroundKeyDetection.setStatus('current')
ac_auxiliary_files = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2))
ac_auxiliary_files_fxs_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAuxiliaryFilesFxsCoefficients.setStatus('current')
ac_auxiliary_files_fxo_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 1, 2, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAuxiliaryFilesFxoCoefficients.setStatus('current')
ac_analog_fxo_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2))
ac_analog_fxo = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1))
ac_analog_fxo_far_end_disconnect_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectType.setStatus('current')
ac_analog_fxo_country_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(66, 70))).clone(namedValues=named_values(('europe', 66), ('unitedStates', 70)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoCountryCoefficients.setStatus('current')
ac_analog_fxo_dc_remover = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoDCRemover.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21))
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneTable.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxoFarEndDisconnectToneIndex'))
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneEntry.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneRowStatus.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_action = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 0))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneAction.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_action_result = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 0))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneActionResult.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneIndex.setStatus('current')
ac_analog_fxo_far_end_disconnect_tone_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 2, 1, 21, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 298, 299))).clone(namedValues=named_values(('acNullTone', 0), ('acDialTone', 1), ('acRingingTone', 2), ('acBusyTone', 3), ('acCongestionTone', 4), ('acSpecialInfoTone', 5), ('acWarningTone', 6), ('acReorderTone', 7), ('acConfirmationTone', 8), ('acWaitingTone', 9), ('acCallProgressCo1Tone', 10), ('acCallProgressCo2Tone', 11), ('acOldMilliwattTone', 12), ('acNewMilliwattTone', 13), ('acMessageWaitingIndicator', 14), ('acStutterDialTone', 15), ('acStutterOffHookWarningTone', 16), ('acWaitingTone1', 17), ('acComfortTone', 18), ('acNAKTone', 19), ('acVacantNumberTone', 20), ('acSpecialConditionTone', 21), ('acDialTone2', 22), ('acOnHoldTone', 23), ('acCallTransferDialTone', 24), ('acCallForwardTone', 25), ('acCreditCardServiceTone', 26), ('acSpecialRecallDialTone', 27), ('acAlertingTone', 28), ('acNetworkCongestionTone', 29), ('acWaitingTone2', 30), ('acWaitingTone3', 31), ('acWaitingTone4', 32), ('acConfEnterTone', 33), ('acConfExitTone', 34), ('acConfLockTone', 35), ('acConfUnlockTone', 36), ('acConfTimeLimitTone', 37), ('acPayphoneRecognitionTone', 38), ('acCallerWaitingTone', 39), ('acCNGFaxTone', 40), ('acPrecConfNotifyType', 41), ('acPresConfNotifyType', 42), ('acPrecPreemptType', 43), ('acPrecRTType', 44), ('acR15reqOfANItone', 45), ('acCo1Tone', 200), ('acCo2Tone', 201), ('acPlayRecordBeepTone', 202), ('acTrunkTestingTestProgressTone', 203), ('acTrunkTestingTestTone', 204), ('acTrunkTestingGuardTone', 205), ('acFSKTrunkTestingTone', 206), ('acGeneralTrunkTestingTone1', 207), ('acGeneralTrunkTestingTone2', 208), ('acGeneralTrunkTestingTone3', 209), ('acSpecialInfoToneFirst', 210), ('acSpecialInfoToneSecond', 211), ('acSpecialInfoToneThird', 212), ('acTTYTone', 213), ('acTT904ContinuityTone', 214), ('acTTMilliwattLossMeasureTone', 215), ('acCarrierDialTone', 216), ('acCarrierAnswerTone', 217), ('acCarrierChargingTone', 218), ('acLongDistanceIndicatorTone', 219), ('acSTUModemFirstTone', 298), ('acSTUModemSecondTone', 299)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoFarEndDisconnectToneType.setStatus('current')
ac_analog_fxs_config = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3))
ac_analog_fxs = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1))
ac_analog_fxs_polarity_reversal_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('soft', 0), ('hard', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsPolarityReversalType.setStatus('current')
ac_analog_fxs_metering_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('mt12kHz', 0), ('mt16kHz', 1), ('mtPolarityReversal', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsMeteringType.setStatus('current')
ac_analog_fxs_life_line_type = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('acLifeLineType-Hardware-Only', 0), ('acLifeLineTypeHardware-And-Link-Detection', 1), ('acLifeLineType-Hardware-And-Link-And-Network-Detection', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsLifeLineType.setStatus('current')
ac_analog_fxs_min_flash_hook_time = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(25, 300))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsMinFlashHookTime.setStatus('current')
ac_analog_fxs_caller_id_timing_mode = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsCallerIDTimingMode.setStatus('current')
ac_analog_fxs_bellcore_caller_id_type_one_sub_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('bellcore-Between-Rings', 0), ('bellcore-Not-Ring-Related', 1), ('bellcore-Before-Ring-RP-AS', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsBellcoreCallerIDTypeOneSubStandard.setStatus('current')
ac_analog_fxs_etsi_caller_id_type_one_sub_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('eTSI-Between-Rings', 0), ('eTSI-Before-Ring-DT-AS', 1), ('eTSI-Before-Ring-RP-AS', 2), ('eTSI-Before-Ring-LR-DT-AS', 3), ('eTSI-Not-Ring-Related-DT-AS', 4), ('eTSI-Not-Ring-Related-RP-AS', 5), ('eTSI-Not-Ring-Related-LR-DT-AS', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsETSICallerIDTypeOneSubStandard.setStatus('current')
ac_analog_fxs_etsivmwi_type_one_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('eTSI-VMWI-Between-Rings', 0), ('eTSI-VMWI-Before-Ring-DT-AS', 1), ('eTSI-VMWI-Before-Ring-RP-AS', 2), ('eTSI-VMWI-Before-Ring-LR-DT-AS', 3), ('eTSI-VMWI-Not-Ring-Related-DT-AS', 4), ('eTSI-VMWI-Not-Ring-Related-RP-AS', 5), ('eTSI-VMWI-Not-Ring-Related-LR-DT-AS', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsETSIVMWITypeOneStandard.setStatus('current')
ac_analog_fxs_bellcore_vmwi_type_one_standard = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('bellcore-VMWI-Between-Rings', 0), ('bellcore-VMWI-Not-Ring-Related', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsBellcoreVMWITypeOneStandard.setStatus('current')
ac_analog_fxs_disable_auto_calibration = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 10), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsDisableAutoCalibration.setStatus('current')
ac_analog_fxs_external_life_line_ports = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsExternalLifeLinePorts.setStatus('current')
ac_analog_fxs_country_coefficients = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(66, 70))).clone(namedValues=named_values(('europe', 66), ('unitedStates', 70)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsCountryCoefficients.setStatus('current')
ac_analog_fxs_ttx_voltage_level = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 1, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(-1, 0, 1, 2))).clone(namedValues=named_values(('notAvailable', -1), ('ttxVoltageLevel0V', 0), ('ttxVoltageLevel05', 1), ('ttxVoltageLevel1V', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsTTXVoltageLevel.setStatus('current')
ac_analog_status = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2))
ac_analog_status_misc = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1))
ac_analog_status_misc_fxs_or_fxo = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('fXO', 0), ('fXS', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogStatusMiscFxsOrFxo.setStatus('current')
ac_analog_status_misc_board_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogStatusMiscBoardTemperature.setStatus('current')
ac_analog_status_misc_analog_channels_count = mib_scalar((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogStatusMiscAnalogChannelsCount.setStatus('current')
ac_analog_fxs_fxo = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20))
ac_analog_fxs_fxo_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1))
if mibBuilder.loadTexts:
acAnalogFxsFxoTable.setStatus('current')
ac_analog_fxs_fxo_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxsFxoIndex'))
if mibBuilder.loadTexts:
acAnalogFxsFxoEntry.setStatus('current')
ac_analog_fxs_fxo_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24)))
if mibBuilder.loadTexts:
acAnalogFxsFxoIndex.setStatus('current')
ac_analog_fxs_fxo_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('fXO', 0), ('fXS', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsFxoType.setStatus('current')
ac_analog_fxs_fxo_chip_rev_num = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsFxoChipRevNum.setStatus('current')
ac_analog_fxs_fxo_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 20, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsFxoHookState.setStatus('current')
ac_analog_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3))
ac_analog_fxo_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1))
ac_analog_fxo_line_test_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1))
if mibBuilder.loadTexts:
acAnalogFxoLineTestTable.setStatus('current')
ac_analog_fxo_line_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxoLineTestIndex'))
if mibBuilder.loadTexts:
acAnalogFxoLineTestEntry.setStatus('current')
ac_analog_fxo_line_test_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24)))
if mibBuilder.loadTexts:
acAnalogFxoLineTestIndex.setStatus('current')
ac_analog_fxo_line_test_activate = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('noTestActivated', 0), ('runLineTest', 1), ('lineTestDone', 2), ('testFailed', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxoLineTestActivate.setStatus('current')
ac_analog_fxo_line_test_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestHookState.setStatus('current')
ac_analog_fxo_line_test_polarity_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('normalPolarity', 1), ('reversePolarity', 2), ('notAvailable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestPolarityStatus.setStatus('current')
ac_analog_fxo_line_test_line_connection_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lineDisconnected', 1), ('lineConnected', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestLineConnectionStatus.setStatus('current')
ac_analog_fxo_line_test_line_current = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-1, 24))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestLineCurrent.setStatus('current')
ac_analog_fxo_line_test_line_voltage = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(-128, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestLineVoltage.setStatus('current')
ac_analog_fxo_line_test_ring_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestRingState.setStatus('current')
ac_analog_fxo_line_test_line_polarity = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('positive', 1), ('negative', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestLinePolarity.setStatus('current')
ac_analog_fxo_line_test_mwi_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestMwiState.setStatus('current')
ac_analog_fxo_line_test_last_current_disconnect_duration = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 1, 1, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxoLineTestLastCurrentDisconnectDuration.setStatus('current')
ac_analog_fxs_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2))
ac_analog_fxs_line_test_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1))
if mibBuilder.loadTexts:
acAnalogFxsLineTestTable.setStatus('current')
ac_analog_fxs_line_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogFxsLineTestIndex'))
if mibBuilder.loadTexts:
acAnalogFxsLineTestEntry.setStatus('current')
ac_analog_fxs_line_test_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 24)))
if mibBuilder.loadTexts:
acAnalogFxsLineTestIndex.setStatus('current')
ac_analog_fxs_line_test_activate = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('noTestActivated', 0), ('runLineTest', 1), ('lineTestDone', 2), ('testFailed', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogFxsLineTestActivate.setStatus('current')
ac_analog_fxs_line_test_hook_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('onHookState', 1), ('offHookState', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestHookState.setStatus('current')
ac_analog_fxs_line_test_ring_state = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('offRingState', 1), ('onRingState', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestRingState.setStatus('current')
ac_analog_fxs_line_test_polarity_status = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normalPolarity', 1), ('reversePolarity', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestPolarityStatus.setStatus('current')
ac_analog_fxs_line_test_message_waiting_indication = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noWaitingMessage', 1), ('waitingMessage', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestMessageWaitingIndication.setStatus('current')
ac_analog_fxs_line_test_line_current_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 3000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestLineCurrentReading.setStatus('current')
ac_analog_fxs_line_test_line_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(-6000, 6000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestLineVoltageReading.setStatus('current')
ac_analog_fxs_line_test_analog_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(300, 340))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestAnalogVoltageReading.setStatus('current')
ac_analog_fxs_line_test_ring_voltage_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(-13000, 13000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestRingVoltageReading.setStatus('current')
ac_analog_fxs_line_test_long_line_current_reading = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 2, 1, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogFxsLineTestLongLineCurrentReading.setStatus('current')
ac_analog_common_action = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3))
ac_analog_common_channel_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1))
if mibBuilder.loadTexts:
acAnalogCommonChannelTable.setStatus('current')
ac_analog_common_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogCommonChannelIndex'))
if mibBuilder.loadTexts:
acAnalogCommonChannelEntry.setStatus('current')
ac_analog_common_channel_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000)))
if mibBuilder.loadTexts:
acAnalogCommonChannelIndex.setStatus('current')
ac_analog_common_channel_action = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 3, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noAction', 0), ('reset', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
acAnalogCommonChannelAction.setStatus('current')
ac_analog_legs = mib_identifier((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21))
ac_analog_legs_table = mib_table((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1))
if mibBuilder.loadTexts:
acAnalogLegsTable.setStatus('current')
ac_analog_legs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1)).setIndexNames((0, 'AC-ANALOG-MIB', 'acAnalogLegsLegIndex'))
if mibBuilder.loadTexts:
acAnalogLegsEntry.setStatus('current')
ac_analog_legs_leg_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000)))
if mibBuilder.loadTexts:
acAnalogLegsLegIndex.setStatus('current')
ac_analog_legs_call_index = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 5000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsCallIndex.setStatus('current')
ac_analog_legs_analog_type = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('fxs', 1), ('fxo', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsAnalogType.setStatus('current')
ac_analog_legs_echo_canceller = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsEchoCanceller.setStatus('current')
ac_analog_legs_high_pass_filter = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsHighPassFilter.setStatus('current')
ac_analog_legs_dtmf_detection = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsDTMFDetection.setStatus('current')
ac_analog_legs_voice_volume = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsVoiceVolume.setStatus('current')
ac_analog_legs_input_gain = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20000))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsInputGain.setStatus('current')
ac_analog_legs_leg_name = mib_table_column((1, 3, 6, 1, 4, 1, 5003, 9, 10, 8, 2, 21, 1, 1, 9), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
acAnalogLegsLegName.setStatus('current')
mibBuilder.exportSymbols('AC-ANALOG-MIB', acAnalogFxoFarEndDisconnectToneEntry=acAnalogFxoFarEndDisconnectToneEntry, acAnalogLegsLegIndex=acAnalogLegsLegIndex, acAnalogFxsFxoType=acAnalogFxsFxoType, acAnalogConfig=acAnalogConfig, acAnalogLegsCallIndex=acAnalogLegsCallIndex, acAnalogFxoFarEndDisconnectToneTable=acAnalogFxoFarEndDisconnectToneTable, acAnalogStatusMiscAnalogChannelsCount=acAnalogStatusMiscAnalogChannelsCount, acAnalogFxsCountryCoefficients=acAnalogFxsCountryCoefficients, acAnalogLegs=acAnalogLegs, acAnalogFxsConfig=acAnalogFxsConfig, acAnalogFxsLineTestActivate=acAnalogFxsLineTestActivate, acAnalogFxsETSIVMWITypeOneStandard=acAnalogFxsETSIVMWITypeOneStandard, acAnalogMiscCurrentDisconnectDuration=acAnalogMiscCurrentDisconnectDuration, acAnalogFxsFxoEntry=acAnalogFxsFxoEntry, acAuxiliaryFilesFxsCoefficients=acAuxiliaryFilesFxsCoefficients, acAnalogFxsLineTestEntry=acAnalogFxsLineTestEntry, acAnalogFxsLineTestLineCurrentReading=acAnalogFxsLineTestLineCurrentReading, acAnalogFxoConfig=acAnalogFxoConfig, acAnalog=acAnalog, acAnalogFxsTTXVoltageLevel=acAnalogFxsTTXVoltageLevel, acAnalogMisc=acAnalogMisc, acAnalogFxsFxoTable=acAnalogFxsFxoTable, acAnalogFxsMinFlashHookTime=acAnalogFxsMinFlashHookTime, acAnalogLegsAnalogType=acAnalogLegsAnalogType, acAnalogFxoLineTestLinePolarity=acAnalogFxoLineTestLinePolarity, acAnalogFxoLineTestEntry=acAnalogFxoLineTestEntry, acAnalogLegsTable=acAnalogLegsTable, acAnalogLegsEchoCanceller=acAnalogLegsEchoCanceller, acAnalogFxsLineTestLongLineCurrentReading=acAnalogFxsLineTestLongLineCurrentReading, acAuxiliaryFiles=acAuxiliaryFiles, acAnalogFxsFxoChipRevNum=acAnalogFxsFxoChipRevNum, acAnalogFxoFarEndDisconnectToneActionResult=acAnalogFxoFarEndDisconnectToneActionResult, acAnalogFxoLineTestIndex=acAnalogFxoLineTestIndex, acAnalogFxsExternalLifeLinePorts=acAnalogFxsExternalLifeLinePorts, acAnalogFxsLineTestPolarityStatus=acAnalogFxsLineTestPolarityStatus, acAnalogFxsLineTestLineVoltageReading=acAnalogFxsLineTestLineVoltageReading, acAnalogConfiguration=acAnalogConfiguration, acAnalogAction=acAnalogAction, acAnalogFxs=acAnalogFxs, acAnalogCommonChannelTable=acAnalogCommonChannelTable, acAnalogFxsLifeLineType=acAnalogFxsLifeLineType, acAnalogStatusMiscBoardTemperature=acAnalogStatusMiscBoardTemperature, acAnalogMiscGroundKeyDetection=acAnalogMiscGroundKeyDetection, acAnalogFxoLineTestLineConnectionStatus=acAnalogFxoLineTestLineConnectionStatus, acAnalogLegsVoiceVolume=acAnalogLegsVoiceVolume, acAnalogFxsLineTestRingState=acAnalogFxsLineTestRingState, acAnalogFxsLineTestIndex=acAnalogFxsLineTestIndex, acAnalogFxsFxo=acAnalogFxsFxo, acAnalogCommonChannelAction=acAnalogCommonChannelAction, acAnalogFxoLineTestMwiState=acAnalogFxoLineTestMwiState, acAnalogFxsLineTestMessageWaitingIndication=acAnalogFxsLineTestMessageWaitingIndication, acAnalogFxsPolarityReversalType=acAnalogFxsPolarityReversalType, acAnalogLegsEntry=acAnalogLegsEntry, acAuxiliaryFilesFxoCoefficients=acAuxiliaryFilesFxoCoefficients, acAnalogFxoLineTestActivate=acAnalogFxoLineTestActivate, acAnalogFxoCountryCoefficients=acAnalogFxoCountryCoefficients, acAnalogStatus=acAnalogStatus, acAnalogFxsETSICallerIDTypeOneSubStandard=acAnalogFxsETSICallerIDTypeOneSubStandard, acAnalogFxoFarEndDisconnectToneAction=acAnalogFxoFarEndDisconnectToneAction, acAnalogFxsLineTestRingVoltageReading=acAnalogFxsLineTestRingVoltageReading, acAnalogFxsLineTestHookState=acAnalogFxsLineTestHookState, acAnalogFxsFxoHookState=acAnalogFxsFxoHookState, acAnalogFxsDisableAutoCalibration=acAnalogFxsDisableAutoCalibration, acAnalogFxsLineTestTable=acAnalogFxsLineTestTable, acAnalogFxoLineTestRingState=acAnalogFxoLineTestRingState, acAnalogFxoLineTestTable=acAnalogFxoLineTestTable, acAnalogLegsHighPassFilter=acAnalogLegsHighPassFilter, acAnalogFxsFxoIndex=acAnalogFxsFxoIndex, acAnalogFxo=acAnalogFxo, acAnalogFxsCallerIDTimingMode=acAnalogFxsCallerIDTimingMode, acAnalogStatusMisc=acAnalogStatusMisc, acAnalogLegsLegName=acAnalogLegsLegName, acAnalogFxoLineTestHookState=acAnalogFxoLineTestHookState, acAnalogFxoLineTestLineCurrent=acAnalogFxoLineTestLineCurrent, acAnalogFxoLineTestLastCurrentDisconnectDuration=acAnalogFxoLineTestLastCurrentDisconnectDuration, acAnalogFxsAction=acAnalogFxsAction, acAnalogFxsMeteringType=acAnalogFxsMeteringType, acAnalogFxsBellcoreVMWITypeOneStandard=acAnalogFxsBellcoreVMWITypeOneStandard, acAnalogLegsInputGain=acAnalogLegsInputGain, acAnalogCommonChannelIndex=acAnalogCommonChannelIndex, acAnalogFxoFarEndDisconnectType=acAnalogFxoFarEndDisconnectType, acAnalogFxsLineTestAnalogVoltageReading=acAnalogFxsLineTestAnalogVoltageReading, acAnalogFxoAction=acAnalogFxoAction, acAnalogFxoFarEndDisconnectToneIndex=acAnalogFxoFarEndDisconnectToneIndex, acAnalogFxoFarEndDisconnectToneType=acAnalogFxoFarEndDisconnectToneType, acAnalogLegsDTMFDetection=acAnalogLegsDTMFDetection, acAnalogFxoFarEndDisconnectToneRowStatus=acAnalogFxoFarEndDisconnectToneRowStatus, acAnalogMiscFlashHookPeriod=acAnalogMiscFlashHookPeriod, acAnalogFxoLineTestPolarityStatus=acAnalogFxoLineTestPolarityStatus, acAnalogStatusMiscFxsOrFxo=acAnalogStatusMiscFxsOrFxo, PYSNMP_MODULE_ID=acAnalog, acAnalogCommonAction=acAnalogCommonAction, acAnalogFxoLineTestLineVoltage=acAnalogFxoLineTestLineVoltage, acAnalogFxsBellcoreCallerIDTypeOneSubStandard=acAnalogFxsBellcoreCallerIDTypeOneSubStandard, acAnalogFxoDCRemover=acAnalogFxoDCRemover, acAnalogCommonChannelEntry=acAnalogCommonChannelEntry) |
#!/usr/bin/env python
def get_help_data_12575():
"""
Sensor Inventory help.
Data store of information to be presented when a help request is made for port 12576.
Returns a list of dictionaries associated with various requests supported on that port.
"""
help_data = [
{
'root': 'parameter',
'endpoint': 'parameter/{id}',
'method': 'GET',
'permission_required': False,
'description': 'Retrieve information for a Preload Parameter given its identifier.',
'data_required': True,
'data_format': [
{ 'name': 'id',
'type': 'int',
'description': 'The Parameter identifier.',
'valid_values': None,
'default': None
}],
'samples': [{
'sample_request': 'parameter/100',
'sample_response': {
"name" : "ass_sig_wave_period",
"display_name" : "Auto-Spectrum Statistics - Significant Wave Period",
"standard_name" : None,
"description" : None,
"id" : 100,
"data_product_identifier" : None,
"precision" : 4,
"fill_value" : {
"value" : "-9999999"
},
"unit" : {
"value" : "s"
},
"data_level" : None,
"code_set" : None,
"value_encoding" : {
"value" : "float32"
},
"parameter_type" : {
"value" : "quantity"
},
"parameter_function" : None,
"data_product_type" : None,
"dimensions" : [ ],
"parameter_function_map" : None
}
}]
},
{
'root': 'stream',
'endpoint': 'stream/{id}',
'method': 'GET',
'permission_required': False,
'description': 'Retrieve information for a Preload Stream given its identifier. ' +
'The sample has an abbreviated set of parameters displayed.',
'data_required': True,
'data_format': [
{ 'name': 'id',
'type': 'int',
'description': 'The Stream identifier.',
'valid_values': None,
'default': None
}
],
'samples': [{
'sample_request': 'stream/506',
'sample_response': {
"name" : "cg_cpm_eng_cpm",
"id" : 506,
"time_parameter" : 7,
"binsize_minutes" : 20160,
"stream_type" : {
"value" : "Engineering"
},
"stream_content" : {
"value" : "CPM Controller Status Data"
},
"description" : None,
"parameters" : [ {
"name" : "time",
"display_name" : "Time, UTC",
"standard_name" : "time",
"description" : "Time, UTC",
"id" : 7,
"data_product_identifier" : None,
"precision" : 0,
"fill_value" : {
"value" : "-9999999"
},
"unit" : {
"value" : "seconds since 1900-01-01"
},
"data_level" : None,
"code_set" : None,
"value_encoding" : {
"value" : "float64"
},
"parameter_type" : {
"value" : "quantity"
},
"parameter_function" : None,
"data_product_type" : None,
"dimensions" : [ ],
"parameter_function_map" : None
}],
"dependencies" : [ ]
}
}]
},
{
'root': 'stream',
'endpoint': 'stream/byname/{name}',
'method': 'GET',
'permission_required': False,
'description': 'Retrieve information for a Preload Stream given its name. ' +
'The sample has an abbreviated set of parameters displayed.',
'data_required': True,
'data_format': [
{ 'name': 'name',
'type': 'str',
'description': 'Preload Stream name.',
'valid_values': None,
'default': None
}
],
'samples': [{
'sample_request': 'stream/byname/cg_cpm_eng_cpm',
'sample_response': {
"name" : "cg_cpm_eng_cpm",
"id" : 506,
"time_parameter" : 7,
"binsize_minutes" : 20160,
"stream_type" : {
"value" : "Engineering"
},
"stream_content" : {
"value" : "CPM Controller Status Data"
},
"description" : None,
"parameters" : [ {
"name" : "time",
"display_name" : "Time, UTC",
"standard_name" : "time",
"description" : "Time, UTC",
"id" : 7,
"data_product_identifier" : None,
"precision" : 0,
"fill_value" : {
"value" : "-9999999"
},
"unit" : {
"value" : "seconds since 1900-01-01"
},
"data_level" : None,
"code_set" : None,
"value_encoding" : {
"value" : "float64"
},
"parameter_type" : {
"value" : "quantity"
},
"parameter_function" : None,
"data_product_type" : None,
"dimensions" : [ ],
"parameter_function_map" : None
}],
"dependencies" : [ ]
}
}]
}
]
return help_data
| def get_help_data_12575():
"""
Sensor Inventory help.
Data store of information to be presented when a help request is made for port 12576.
Returns a list of dictionaries associated with various requests supported on that port.
"""
help_data = [{'root': 'parameter', 'endpoint': 'parameter/{id}', 'method': 'GET', 'permission_required': False, 'description': 'Retrieve information for a Preload Parameter given its identifier.', 'data_required': True, 'data_format': [{'name': 'id', 'type': 'int', 'description': 'The Parameter identifier.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'parameter/100', 'sample_response': {'name': 'ass_sig_wave_period', 'display_name': 'Auto-Spectrum Statistics - Significant Wave Period', 'standard_name': None, 'description': None, 'id': 100, 'data_product_identifier': None, 'precision': 4, 'fill_value': {'value': '-9999999'}, 'unit': {'value': 's'}, 'data_level': None, 'code_set': None, 'value_encoding': {'value': 'float32'}, 'parameter_type': {'value': 'quantity'}, 'parameter_function': None, 'data_product_type': None, 'dimensions': [], 'parameter_function_map': None}}]}, {'root': 'stream', 'endpoint': 'stream/{id}', 'method': 'GET', 'permission_required': False, 'description': 'Retrieve information for a Preload Stream given its identifier. ' + 'The sample has an abbreviated set of parameters displayed.', 'data_required': True, 'data_format': [{'name': 'id', 'type': 'int', 'description': 'The Stream identifier.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'stream/506', 'sample_response': {'name': 'cg_cpm_eng_cpm', 'id': 506, 'time_parameter': 7, 'binsize_minutes': 20160, 'stream_type': {'value': 'Engineering'}, 'stream_content': {'value': 'CPM Controller Status Data'}, 'description': None, 'parameters': [{'name': 'time', 'display_name': 'Time, UTC', 'standard_name': 'time', 'description': 'Time, UTC', 'id': 7, 'data_product_identifier': None, 'precision': 0, 'fill_value': {'value': '-9999999'}, 'unit': {'value': 'seconds since 1900-01-01'}, 'data_level': None, 'code_set': None, 'value_encoding': {'value': 'float64'}, 'parameter_type': {'value': 'quantity'}, 'parameter_function': None, 'data_product_type': None, 'dimensions': [], 'parameter_function_map': None}], 'dependencies': []}}]}, {'root': 'stream', 'endpoint': 'stream/byname/{name}', 'method': 'GET', 'permission_required': False, 'description': 'Retrieve information for a Preload Stream given its name. ' + 'The sample has an abbreviated set of parameters displayed.', 'data_required': True, 'data_format': [{'name': 'name', 'type': 'str', 'description': 'Preload Stream name.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'stream/byname/cg_cpm_eng_cpm', 'sample_response': {'name': 'cg_cpm_eng_cpm', 'id': 506, 'time_parameter': 7, 'binsize_minutes': 20160, 'stream_type': {'value': 'Engineering'}, 'stream_content': {'value': 'CPM Controller Status Data'}, 'description': None, 'parameters': [{'name': 'time', 'display_name': 'Time, UTC', 'standard_name': 'time', 'description': 'Time, UTC', 'id': 7, 'data_product_identifier': None, 'precision': 0, 'fill_value': {'value': '-9999999'}, 'unit': {'value': 'seconds since 1900-01-01'}, 'data_level': None, 'code_set': None, 'value_encoding': {'value': 'float64'}, 'parameter_type': {'value': 'quantity'}, 'parameter_function': None, 'data_product_type': None, 'dimensions': [], 'parameter_function_map': None}], 'dependencies': []}}]}]
return help_data |
# -*- coding: utf-8 -*-
"""
File processing
@author: Dazhuang
"""
def insert_line(lines):
lines.insert(0, "Blowin' in the wind\n")
lines.insert(1, "Bob Dylan\n\n")
lines.append("\n\n1962 by Warner Bros. Inc.")
return ''.join(lines)
with open('Blowing in the wind.txt', 'r+') as f:
lines = f.readlines()
string = insert_line(lines)
print(string)
f.seek(0)
f.write(string) | """
File processing
@author: Dazhuang
"""
def insert_line(lines):
lines.insert(0, "Blowin' in the wind\n")
lines.insert(1, 'Bob Dylan\n\n')
lines.append('\n\n1962 by Warner Bros. Inc.')
return ''.join(lines)
with open('Blowing in the wind.txt', 'r+') as f:
lines = f.readlines()
string = insert_line(lines)
print(string)
f.seek(0)
f.write(string) |
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print(f"You have {cheese_count} cheeses")
print(f"You have {boxes_of_crackers} boxes of crackers")
print("That's a lot")
print("Get a blanket\n")
print("We can just give the function numbers directly")
cheese_and_crackers(20, 30)
print("Or, we can use variables from our script")
amount_of_cheese = 10
amount_of_crackers = 50
cheese_and_crackers(amount_of_cheese, amount_of_crackers)
print("We can even do math inside too: ")
cheese_and_crackers(10 + 20, 5 + 6)
print("And we can combine the two, variables and math: ")
cheese_and_crackers(amount_of_cheese + 100, amount_of_crackers + 1000)
| def cheese_and_crackers(cheese_count, boxes_of_crackers):
print(f'You have {cheese_count} cheeses')
print(f'You have {boxes_of_crackers} boxes of crackers')
print("That's a lot")
print('Get a blanket\n')
print('We can just give the function numbers directly')
cheese_and_crackers(20, 30)
print('Or, we can use variables from our script')
amount_of_cheese = 10
amount_of_crackers = 50
cheese_and_crackers(amount_of_cheese, amount_of_crackers)
print('We can even do math inside too: ')
cheese_and_crackers(10 + 20, 5 + 6)
print('And we can combine the two, variables and math: ')
cheese_and_crackers(amount_of_cheese + 100, amount_of_crackers + 1000) |
class Solution:
def rob(self, nums):
n = len(nums)
if n == 1:
return nums[0]
dpa = [0] * (n + 1)
dpb = [0] * (n + 1)
for i in range(2, n + 1):
dpa[i] = max(dpa[i - 1], dpa[i - 2] + nums[i - 2])
dpb[i] = max(dpb[i - 1], dpb[i - 2] + nums[i - 1])
return max(dpa[n], dpb[n])
if __name__ == "__main__":
solution = Solution()
print(solution.rob([2,3,2]))
print(solution.rob([1,2,3,1]))
| class Solution:
def rob(self, nums):
n = len(nums)
if n == 1:
return nums[0]
dpa = [0] * (n + 1)
dpb = [0] * (n + 1)
for i in range(2, n + 1):
dpa[i] = max(dpa[i - 1], dpa[i - 2] + nums[i - 2])
dpb[i] = max(dpb[i - 1], dpb[i - 2] + nums[i - 1])
return max(dpa[n], dpb[n])
if __name__ == '__main__':
solution = solution()
print(solution.rob([2, 3, 2]))
print(solution.rob([1, 2, 3, 1])) |
# !/usr/bin/env python3
# -*- coding:utf-8 -*-
__author__ = 'Zhiquan Wang'
__date__ = '2018/8/15 10:44'
class MessageType(object):
login_request = u'LoginRequest'
login_reply = u'LoginReply'
attack_request = u'AttackRequest'
attack_reply = u'AttackReply'
game_info = u'GameInfo'
class JsonAttribute(object):
msg_type = u'msg_type'
# LoginRequest
lr_usr_name = u'usr_name'
# LoginReply
lre_login_id = u'login_id'
# AttackRequest
ar_player_id = u'player_id'
ar_target_x = u'target_x'
ar_target_y = u'target_y'
# AttackReply
ap_is_suc = u'is_suc'
# GameInfo
gi_map_info = u'map_info'
gi_round = u'round'
gi_per_pos = u'per_pos'
# pfRule
pfr_max_round = u'max_round'
pfr_map_height = u'map_height'
pfr_map_width = u'map_width'
pfr_player_num = u'player_num'
pfr_empty_grid_time = u'empty_grid_time'
pfr_player_grid_time = u'player_grid_time'
# pfMap
pfm_height = u'height'
pfm_width = u'width'
pfm_grid_map = u'grid_map'
# pfGrid
pfg_type = u'type'
pfg_attribution = u'attribution'
pfg_value = u'value'
| __author__ = 'Zhiquan Wang'
__date__ = '2018/8/15 10:44'
class Messagetype(object):
login_request = u'LoginRequest'
login_reply = u'LoginReply'
attack_request = u'AttackRequest'
attack_reply = u'AttackReply'
game_info = u'GameInfo'
class Jsonattribute(object):
msg_type = u'msg_type'
lr_usr_name = u'usr_name'
lre_login_id = u'login_id'
ar_player_id = u'player_id'
ar_target_x = u'target_x'
ar_target_y = u'target_y'
ap_is_suc = u'is_suc'
gi_map_info = u'map_info'
gi_round = u'round'
gi_per_pos = u'per_pos'
pfr_max_round = u'max_round'
pfr_map_height = u'map_height'
pfr_map_width = u'map_width'
pfr_player_num = u'player_num'
pfr_empty_grid_time = u'empty_grid_time'
pfr_player_grid_time = u'player_grid_time'
pfm_height = u'height'
pfm_width = u'width'
pfm_grid_map = u'grid_map'
pfg_type = u'type'
pfg_attribution = u'attribution'
pfg_value = u'value' |
#!/usr/bin/python3
# Because I decided to use the ThreadingMixIn in the HTTPServer
# we will need to persist the data on disk...
# DB_FILE = ':memory:'
DB_FILE = 'db.sqlite3'
| db_file = 'db.sqlite3' |
"""
Variables Globales.
Elle permettent de rendre le code plus digeste.
On pourrais en theorie les remplaces par leurs nombres respectif mais ce serais illisible.
"""
NULL = (0)
BOAT = (1)
DESTROYED = (2)
HIT_SUCCESS = (3)
HIT_MISS = (4)
DIRECTION_UP = (5)
DIRECTION_DOWN = (6)
DIRECTION_LEFT = (7)
DIRECTION_RIGHT = (8)
BOAT_CARRIER = (9) #Porte-Avion (5 cases)
BOAT_BATTLESHIP = (10) #Croiseur (4 cases)
BOAT_CRUISER = (11) #Contre-Torpilleur (3 cases)
BOAT_SUBMARINE = (12) #Sous-Marin (3 cases)
BOAT_DESTROYER = (13) #Torpilleur (2 cases)
PLAYER_1 = (14)
PLAYER_2 = (15)
HIT_DESTROYED = (16)
"""
Les regles.
Pas tres utiles, mais elle permettents une plus grande simplicite
"""
class Rules():
def __init__(self):
self.carrier_count = 1
self.battleship_count = 1
self.cruiser_count = 1
self.submarine_count = 1
self.destroyer_count = 1
"""
Definit la limite de bateau d'un type.
"""
def set_boat_limit(self, boat_type, count):
if (boat_type == BOAT_CARRIER):
self.carrier_count = count
elif (boat_type == BOAT_BATTLESHIP):
self.battleship_count = count
elif (boat_type == BOAT_CRUISER):
self.cruiser_count = count
elif (boat_type == BOAT_SUBMARINE):
self.submarine_count = count
elif (boat_type == BOAT_DESTROYER):
self.destroyer_count = count
"""
Recupere le nombre maximum de bateau d'un type.
"""
def get_boat_limit(self, boat_type):
if (boat_type == BOAT_CARRIER):
return self.carrier_count
elif (boat_type == BOAT_BATTLESHIP):
return self.battleship_count
elif (boat_type == BOAT_CRUISER):
return self.cruiser_count
elif (boat_type == BOAT_SUBMARINE):
return self.submarine_count
elif (boat_type == BOAT_DESTROYER):
return self.destroyer_count
else:
return 0
class Player():
def __init__(self, rules = Rules()):
self.grid = [[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL]]
self.opponent_grid = [[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL],
[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL]]
self.rules = rules
self.carrier_placed = 0
self.battleship_placed = 0
self.cruiser_placed = 0
self.submarine_placed = 0
self.destroyer_placed = 0
self.carrier_pos = []
self.battleship_pos = []
self.cruiser_pos = []
self.submarine_pos = []
self.destroyer_pos = []
"""
Place un bataux a la position ciblee.
"""
def place_boat(self, position, boat_type, direction):
if not self.can_place_boat_at(position, boat_type, direction):
return
size = 0
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
if boat_type == BOAT_CARRIER:
size = 5
self.carrier_pos.append((position, direction))
self.carrier_placed += 1
elif boat_type == BOAT_BATTLESHIP:
size = 4
self.battleship_pos.append((position, direction))
self.battleship_placed += 1
elif boat_type == BOAT_CRUISER:
size = 3
self.cruiser_pos.append((position, direction))
self.cruiser_placed += 1
elif boat_type == BOAT_SUBMARINE:
size = 3
self.submarine_pos.append((position, direction))
self.submarine_placed += 1
elif boat_type == BOAT_DESTROYER:
size = 2
self.destroyer_pos.append((position, direction))
self.destroyer_placed += 1
for i in range(0, size):
target = (position[0] + (x_offset * i), position[1] + (y_offset * i))
self.grid[target[0]][target[1]] = BOAT
"""
Recupere le nombre de bateaux d'un type places.
"""
def get_boat_count(self, boat_type):
if (boat_type == BOAT_CARRIER):
return self.carrier_placed
elif (boat_type == BOAT_BATTLESHIP):
return self.battleship_placed
elif (boat_type == BOAT_CRUISER):
return self.cruiser_placed
elif (boat_type == BOAT_SUBMARINE):
return self.submarine_placed
elif (boat_type == BOAT_DESTROYER):
return self.destroyer_placed
else:
return 0
"""
Verifie que l'on peut bien placer un bateau la ou on veut
"""
def can_place_boat_at(self, position, boat_type, direction):
if (self.rules.get_boat_limit(boat_type) <= self.get_boat_count(boat_type)):
return False
size = 0
if boat_type == BOAT_CARRIER:
size = 5
elif boat_type == BOAT_BATTLESHIP:
size = 4
elif boat_type == BOAT_CRUISER or boat_type == BOAT_SUBMARINE:
size = 3
elif boat_type == BOAT_DESTROYER:
size = 2
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
for i in range(0, size):
target = (position[0] + (x_offset * i), position[1] + (y_offset * i))
if not self.can_place_at(target):
return False
return True
"""
Verifie que la case ciblee est vide.
"""
def can_place_at(self, position):
if len(position) != 2:
return False
if position[0] < 0 or position[0] > 9:
return False
if position[1] < 0 or position[1] > 9:
return False
return self.grid[position[0]][position[1]] == NULL
"""
A L'ATTAQUE!
Plus serieusement cette fonction permet d'attaquer une case.
"""
def attack(self, other, position = (0, 0)):
if len(position) != 2:
return
if position[0] < 0 or position[0] > 9:
return
if position[1] < 0 or position[1] > 9:
return
attack = other.handle_attack(position)
print(attack)
if attack[0] == HIT_DESTROYED:
for loc in attack[1]:
self.opponent_grid[loc[0]][loc[1]] = HIT_DESTROYED
else:
self.opponent_grid[position[0]][position[1]] = attack[0]
for row in self.opponent_grid:
print(row)
"""
On gere l'attaque du cote de la personne qui se fait attaquer.
"""
def handle_attack(self, position):
if len(position) != 2:
return
if position[0] < 0 or position[0] > 9:
return
if position[1] < 0 or position[1] > 9:
return
if (self.grid[position[0]][position[1]] == BOAT):
self.grid[position[0]][position[1]] = DESTROYED
#Carrier
for pos in self.carrier_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True;
isContained = False
locs = []
for i in range(0, 5):
newLoc = (location[0] + (x_offset * i), location[1] + (y_offset * i))
if newLoc == position:
isContained = True
locs.append(newLoc)
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False;
if destroyed and isContained:
return (HIT_DESTROYED, locs)
#Battleship
for pos in self.battleship_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True;
isContained = False
locs = []
for i in range(0, 4):
newLoc = (location[0] + (x_offset * i), location[1] + (y_offset * i))
locs.append(newLoc)
if newLoc == position:
isContained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False;
if destroyed and isContained:
return (HIT_DESTROYED, locs)
#Cruiser
for pos in self.cruiser_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True;
isContained = False
locs = []
for i in range(0, 3):
newLoc = (location[0] + (x_offset * i), location[1] + (y_offset * i))
locs.append(newLoc)
if newLoc == position:
isContained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False;
if destroyed and isContained:
return (HIT_DESTROYED, locs)
#Submarine
for pos in self.submarine_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True;
isContained = False
locs = []
for i in range(0, 3):
newLoc = (location[0] + (x_offset * i), location[1] + (y_offset * i))
locs.append(newLoc)
if newLoc == position:
isContained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False;
if destroyed and isContained:
return (HIT_DESTROYED, locs)
#Destroyer
for pos in self.destroyer_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True;
isContained = False
locs = []
for i in range(0, 2):
newLoc = (location[0] + (x_offset * i), location[1] + (y_offset * i))
locs.append(newLoc)
if newLoc == position:
isContained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False;
if destroyed and isContained:
return (HIT_DESTROYED, locs)
return (HIT_SUCCESS, [])
else:
return (HIT_MISS, [])
"""
Cette fonction est utilisee une seule fois mais le code est tellement moche que c'est deja trop.
Elle sert a verifier si le 2nd joueur peut commencer a placer ses bateaux.
"""
def should_switch(self):
carrier_left = self.rules.get_boat_limit(BOAT_CARRIER) - self.carrier_placed
battleship_left = self.rules.get_boat_limit(BOAT_BATTLESHIP) - self.battleship_placed
cruiser_left = self.rules.get_boat_limit(BOAT_CRUISER) - self.cruiser_placed
destroyer_left = self.rules.get_boat_limit(BOAT_DESTROYER) - self.destroyer_placed
submarine_left = self.rules.get_boat_limit(BOAT_SUBMARINE) - self.submarine_placed
return carrier_left <= 0 and battleship_left <= 0 and cruiser_left <= 0 and destroyer_left <= 0 and submarine_left <= 0
"""
Pour savoir si on a gagne, il vaut mieux savoir s'il reste des bateaux a l'adversaire.
Parce que si on ne sait pas, on peut pas gagner.
"""
def has_boat_left(self):
for x in range(len(self.grid)):
for y in range(len(self.grid[x])):
if self.grid[x][y] == BOAT:
return True
return False
def __str__(self):
grid = ""
for i in self.grid:
grid += str(i) + "\n"
grid += "\n"
for i in self.opponent_grid:
grid += str(i) + "\n"
return grid
| """
Variables Globales.
Elle permettent de rendre le code plus digeste.
On pourrais en theorie les remplaces par leurs nombres respectif mais ce serais illisible.
"""
null = 0
boat = 1
destroyed = 2
hit_success = 3
hit_miss = 4
direction_up = 5
direction_down = 6
direction_left = 7
direction_right = 8
boat_carrier = 9
boat_battleship = 10
boat_cruiser = 11
boat_submarine = 12
boat_destroyer = 13
player_1 = 14
player_2 = 15
hit_destroyed = 16
'\nLes regles.\nPas tres utiles, mais elle permettents une plus grande simplicite\n'
class Rules:
def __init__(self):
self.carrier_count = 1
self.battleship_count = 1
self.cruiser_count = 1
self.submarine_count = 1
self.destroyer_count = 1
"\n Definit la limite de bateau d'un type.\n "
def set_boat_limit(self, boat_type, count):
if boat_type == BOAT_CARRIER:
self.carrier_count = count
elif boat_type == BOAT_BATTLESHIP:
self.battleship_count = count
elif boat_type == BOAT_CRUISER:
self.cruiser_count = count
elif boat_type == BOAT_SUBMARINE:
self.submarine_count = count
elif boat_type == BOAT_DESTROYER:
self.destroyer_count = count
"\n Recupere le nombre maximum de bateau d'un type.\n "
def get_boat_limit(self, boat_type):
if boat_type == BOAT_CARRIER:
return self.carrier_count
elif boat_type == BOAT_BATTLESHIP:
return self.battleship_count
elif boat_type == BOAT_CRUISER:
return self.cruiser_count
elif boat_type == BOAT_SUBMARINE:
return self.submarine_count
elif boat_type == BOAT_DESTROYER:
return self.destroyer_count
else:
return 0
class Player:
def __init__(self, rules=rules()):
self.grid = [[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL]]
self.opponent_grid = [[NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL], [NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL]]
self.rules = rules
self.carrier_placed = 0
self.battleship_placed = 0
self.cruiser_placed = 0
self.submarine_placed = 0
self.destroyer_placed = 0
self.carrier_pos = []
self.battleship_pos = []
self.cruiser_pos = []
self.submarine_pos = []
self.destroyer_pos = []
'\n Place un bataux a la position ciblee.\n '
def place_boat(self, position, boat_type, direction):
if not self.can_place_boat_at(position, boat_type, direction):
return
size = 0
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
if boat_type == BOAT_CARRIER:
size = 5
self.carrier_pos.append((position, direction))
self.carrier_placed += 1
elif boat_type == BOAT_BATTLESHIP:
size = 4
self.battleship_pos.append((position, direction))
self.battleship_placed += 1
elif boat_type == BOAT_CRUISER:
size = 3
self.cruiser_pos.append((position, direction))
self.cruiser_placed += 1
elif boat_type == BOAT_SUBMARINE:
size = 3
self.submarine_pos.append((position, direction))
self.submarine_placed += 1
elif boat_type == BOAT_DESTROYER:
size = 2
self.destroyer_pos.append((position, direction))
self.destroyer_placed += 1
for i in range(0, size):
target = (position[0] + x_offset * i, position[1] + y_offset * i)
self.grid[target[0]][target[1]] = BOAT
"\n Recupere le nombre de bateaux d'un type places.\n "
def get_boat_count(self, boat_type):
if boat_type == BOAT_CARRIER:
return self.carrier_placed
elif boat_type == BOAT_BATTLESHIP:
return self.battleship_placed
elif boat_type == BOAT_CRUISER:
return self.cruiser_placed
elif boat_type == BOAT_SUBMARINE:
return self.submarine_placed
elif boat_type == BOAT_DESTROYER:
return self.destroyer_placed
else:
return 0
"\n Verifie que l'on peut bien placer un bateau la ou on veut\n "
def can_place_boat_at(self, position, boat_type, direction):
if self.rules.get_boat_limit(boat_type) <= self.get_boat_count(boat_type):
return False
size = 0
if boat_type == BOAT_CARRIER:
size = 5
elif boat_type == BOAT_BATTLESHIP:
size = 4
elif boat_type == BOAT_CRUISER or boat_type == BOAT_SUBMARINE:
size = 3
elif boat_type == BOAT_DESTROYER:
size = 2
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
for i in range(0, size):
target = (position[0] + x_offset * i, position[1] + y_offset * i)
if not self.can_place_at(target):
return False
return True
'\n Verifie que la case ciblee est vide.\n '
def can_place_at(self, position):
if len(position) != 2:
return False
if position[0] < 0 or position[0] > 9:
return False
if position[1] < 0 or position[1] > 9:
return False
return self.grid[position[0]][position[1]] == NULL
"\n A L'ATTAQUE!\n Plus serieusement cette fonction permet d'attaquer une case.\n "
def attack(self, other, position=(0, 0)):
if len(position) != 2:
return
if position[0] < 0 or position[0] > 9:
return
if position[1] < 0 or position[1] > 9:
return
attack = other.handle_attack(position)
print(attack)
if attack[0] == HIT_DESTROYED:
for loc in attack[1]:
self.opponent_grid[loc[0]][loc[1]] = HIT_DESTROYED
else:
self.opponent_grid[position[0]][position[1]] = attack[0]
for row in self.opponent_grid:
print(row)
"\n On gere l'attaque du cote de la personne qui se fait attaquer.\n "
def handle_attack(self, position):
if len(position) != 2:
return
if position[0] < 0 or position[0] > 9:
return
if position[1] < 0 or position[1] > 9:
return
if self.grid[position[0]][position[1]] == BOAT:
self.grid[position[0]][position[1]] = DESTROYED
for pos in self.carrier_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True
is_contained = False
locs = []
for i in range(0, 5):
new_loc = (location[0] + x_offset * i, location[1] + y_offset * i)
if newLoc == position:
is_contained = True
locs.append(newLoc)
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False
if destroyed and isContained:
return (HIT_DESTROYED, locs)
for pos in self.battleship_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True
is_contained = False
locs = []
for i in range(0, 4):
new_loc = (location[0] + x_offset * i, location[1] + y_offset * i)
locs.append(newLoc)
if newLoc == position:
is_contained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False
if destroyed and isContained:
return (HIT_DESTROYED, locs)
for pos in self.cruiser_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True
is_contained = False
locs = []
for i in range(0, 3):
new_loc = (location[0] + x_offset * i, location[1] + y_offset * i)
locs.append(newLoc)
if newLoc == position:
is_contained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False
if destroyed and isContained:
return (HIT_DESTROYED, locs)
for pos in self.submarine_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True
is_contained = False
locs = []
for i in range(0, 3):
new_loc = (location[0] + x_offset * i, location[1] + y_offset * i)
locs.append(newLoc)
if newLoc == position:
is_contained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False
if destroyed and isContained:
return (HIT_DESTROYED, locs)
for pos in self.destroyer_pos:
location = pos[0]
direction = pos[1]
x_offset = 0
y_offset = 0
if direction == DIRECTION_UP:
y_offset = -1
elif direction == DIRECTION_DOWN:
y_offset = 1
elif direction == DIRECTION_LEFT:
x_offset = -1
elif direction == DIRECTION_RIGHT:
x_offset = 1
destroyed = True
is_contained = False
locs = []
for i in range(0, 2):
new_loc = (location[0] + x_offset * i, location[1] + y_offset * i)
locs.append(newLoc)
if newLoc == position:
is_contained = True
if not self.grid[newLoc[0]][newLoc[1]] == DESTROYED:
destroyed = False
if destroyed and isContained:
return (HIT_DESTROYED, locs)
return (HIT_SUCCESS, [])
else:
return (HIT_MISS, [])
"\n Cette fonction est utilisee une seule fois mais le code est tellement moche que c'est deja trop.\n Elle sert a verifier si le 2nd joueur peut commencer a placer ses bateaux.\n "
def should_switch(self):
carrier_left = self.rules.get_boat_limit(BOAT_CARRIER) - self.carrier_placed
battleship_left = self.rules.get_boat_limit(BOAT_BATTLESHIP) - self.battleship_placed
cruiser_left = self.rules.get_boat_limit(BOAT_CRUISER) - self.cruiser_placed
destroyer_left = self.rules.get_boat_limit(BOAT_DESTROYER) - self.destroyer_placed
submarine_left = self.rules.get_boat_limit(BOAT_SUBMARINE) - self.submarine_placed
return carrier_left <= 0 and battleship_left <= 0 and (cruiser_left <= 0) and (destroyer_left <= 0) and (submarine_left <= 0)
"\n Pour savoir si on a gagne, il vaut mieux savoir s'il reste des bateaux a l'adversaire.\n Parce que si on ne sait pas, on peut pas gagner.\n "
def has_boat_left(self):
for x in range(len(self.grid)):
for y in range(len(self.grid[x])):
if self.grid[x][y] == BOAT:
return True
return False
def __str__(self):
grid = ''
for i in self.grid:
grid += str(i) + '\n'
grid += '\n'
for i in self.opponent_grid:
grid += str(i) + '\n'
return grid |
class Solution:
def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]:
d = {}
def dfs(node, level):
if level not in d:
d[level] = []
d[level].append(node.val)
if node.left:
dfs(node.left, level + 1)
if node.right:
dfs(node.right, level + 1)
if root:
dfs(root, 1)
res = []
for i in d:
if i % 2 == 0:
d[i] = d[i][::-1]
res.append(d[i])
return res
| class Solution:
def zigzag_level_order(self, root: TreeNode) -> List[List[int]]:
d = {}
def dfs(node, level):
if level not in d:
d[level] = []
d[level].append(node.val)
if node.left:
dfs(node.left, level + 1)
if node.right:
dfs(node.right, level + 1)
if root:
dfs(root, 1)
res = []
for i in d:
if i % 2 == 0:
d[i] = d[i][::-1]
res.append(d[i])
return res |
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# Find the sum of all the primes below two million.
# Primes are hard....recycle code from problem 7...
n = 2
limit = 1000
primes = []
prime = 0
primeSum = 0
while prime <= limit:
for i in range(2,n):
if (n % i) == 0:
break
else:
primes.append(n)
prime = n
primeSum += n
n += 1
print("THE LAST PRIME ADDED WAS: " + str(prime))
print("SO I'LL JUST GO AHEAD AND SUBTRACT THE LAST ENTRY...")
print("THE SUM OF THE PRIMES IS: " + str(primeSum - primes[-1]))
| n = 2
limit = 1000
primes = []
prime = 0
prime_sum = 0
while prime <= limit:
for i in range(2, n):
if n % i == 0:
break
else:
primes.append(n)
prime = n
prime_sum += n
n += 1
print('THE LAST PRIME ADDED WAS: ' + str(prime))
print("SO I'LL JUST GO AHEAD AND SUBTRACT THE LAST ENTRY...")
print('THE SUM OF THE PRIMES IS: ' + str(primeSum - primes[-1])) |
"""
Sharingan project
We will try to find your visible basic footprint from social media as much as possible
"""
| """
Sharingan project
We will try to find your visible basic footprint from social media as much as possible
""" |
# String Literals
hello_world = "Hello, World"
hello_world_two = " Hello World "
print(hello_world[1])
print(hello_world[0:5])
# Length of the string
print(len(hello_world))
# Strip
print(hello_world_two)
print(hello_world_two.strip())
# Lower
print(hello_world.lower())
# Upper
print(hello_world.upper())
# Replace
print(hello_world.replace("H", "J"))
# Split
print(hello_world.split(",")) | hello_world = 'Hello, World'
hello_world_two = ' Hello World '
print(hello_world[1])
print(hello_world[0:5])
print(len(hello_world))
print(hello_world_two)
print(hello_world_two.strip())
print(hello_world.lower())
print(hello_world.upper())
print(hello_world.replace('H', 'J'))
print(hello_world.split(',')) |
"""
This program calculates an exponential using the fast exponential algorithm.
"""
def fast_exponential(base: int, exponent: int) -> int:
if not isinstance(base, int):
raise ValueError("Invalid Base")
if not isinstance(exponent, int):
raise ValueError("Invalid Exponent")
if exponent < 0:
# perform exponential for negative exponent
return 1 / fast_exponential(base, -exponent)
if base == 0:
return 0
if exponent == 0:
return 1
if exponent == 1:
return base
if exponent % 2 == 0:
return fast_exponential(base, exponent//2)**2
else:
return base * fast_exponential(base, (exponent-1)//2)**2
| """
This program calculates an exponential using the fast exponential algorithm.
"""
def fast_exponential(base: int, exponent: int) -> int:
if not isinstance(base, int):
raise value_error('Invalid Base')
if not isinstance(exponent, int):
raise value_error('Invalid Exponent')
if exponent < 0:
return 1 / fast_exponential(base, -exponent)
if base == 0:
return 0
if exponent == 0:
return 1
if exponent == 1:
return base
if exponent % 2 == 0:
return fast_exponential(base, exponent // 2) ** 2
else:
return base * fast_exponential(base, (exponent - 1) // 2) ** 2 |
# -*- coding: utf-8 -*-
#
# Copyright 2014 Jaime Gil de Sagredo Luna
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The `errors` module contains all exceptions used by Booby."""
class BoobyError(Exception):
"""Base class for all Booby exceptions."""
pass
class FieldError(BoobyError):
"""This exception is used as an equivalent to :class:`AttributeError`
for :mod:`fields`.
"""
pass
class ValidationError(BoobyError):
"""This exception should be raised when a `value` doesn't validate.
See :mod:`validators`.
"""
pass
class EncodeError(BoobyError):
pass
class DecodeError(BoobyError):
pass
| """The `errors` module contains all exceptions used by Booby."""
class Boobyerror(Exception):
"""Base class for all Booby exceptions."""
pass
class Fielderror(BoobyError):
"""This exception is used as an equivalent to :class:`AttributeError`
for :mod:`fields`.
"""
pass
class Validationerror(BoobyError):
"""This exception should be raised when a `value` doesn't validate.
See :mod:`validators`.
"""
pass
class Encodeerror(BoobyError):
pass
class Decodeerror(BoobyError):
pass |
#Needs more comments
#Node class
class Node:
def __init__(self, data, next=None):
self.data = data
self.next = next
def getData(self):
return self.data
#Adjanceny List graph implementation
class ALGraph:
#initialize list
def __init__(self):
self.table = []
#add a vertex to the graph
def insertVertex(self, data):
temp = Node(data)
self.table.append(temp)
#search the graph for a certain vertex, returns the List index of the target
def search(self, target):
counter = 0
for i in self.table:
if i.data == target:
return counter
counter += 1
return None
#links
def adjacentTo(self, vertex, neighbor):
tableIndex = self.search(vertex)
neighborNode = Node(neighbor)
curr = self.table[tableIndex]
while curr.next != None:
curr = curr.next
curr.next = neighborNode
def pointUndirected(self, vertex, neighbor):
self.adjacentTo(vertex, neighbor)
self.adjacentTo(neighbor, vertex)
def pointDirected(self, vertex, neighbor):
self.adjacentTo(vertex, neighbor)
def printGraph(self):
for node in self.table:
curr = node
while(curr != None):
print(curr.data, end="->")
curr = curr.next
print()
test = ALGraph()
test.insertVertex('A')
test.insertVertex('B')
test.insertVertex('C')
test.insertVertex('D')
test.insertVertex('E')
test.pointUndirected('A', 'B')
test.pointUndirected('A', 'C')
test.pointUndirected('B', 'D')
test.pointUndirected('D', 'E')
test.pointUndirected('C', 'E')
test.pointUndirected('B', 'E')
test.printGraph()
| class Node:
def __init__(self, data, next=None):
self.data = data
self.next = next
def get_data(self):
return self.data
class Algraph:
def __init__(self):
self.table = []
def insert_vertex(self, data):
temp = node(data)
self.table.append(temp)
def search(self, target):
counter = 0
for i in self.table:
if i.data == target:
return counter
counter += 1
return None
def adjacent_to(self, vertex, neighbor):
table_index = self.search(vertex)
neighbor_node = node(neighbor)
curr = self.table[tableIndex]
while curr.next != None:
curr = curr.next
curr.next = neighborNode
def point_undirected(self, vertex, neighbor):
self.adjacentTo(vertex, neighbor)
self.adjacentTo(neighbor, vertex)
def point_directed(self, vertex, neighbor):
self.adjacentTo(vertex, neighbor)
def print_graph(self):
for node in self.table:
curr = node
while curr != None:
print(curr.data, end='->')
curr = curr.next
print()
test = al_graph()
test.insertVertex('A')
test.insertVertex('B')
test.insertVertex('C')
test.insertVertex('D')
test.insertVertex('E')
test.pointUndirected('A', 'B')
test.pointUndirected('A', 'C')
test.pointUndirected('B', 'D')
test.pointUndirected('D', 'E')
test.pointUndirected('C', 'E')
test.pointUndirected('B', 'E')
test.printGraph() |
"""
Name: polynom.py
Goal: operations with of polynoms
Author: HOUNSI madouvi antoine-sebastien
Date: 8/03/2022
"""
class Polynom:
def mult(self, P1, P2):
""" Multiplication between P1 and P2 """
maxArray = [x for x in P1]
minArray = [x for x in P2]
if len(P1) == 1 or len(P2) == 1:
if len(P1) == 1:
return [P1[0] * x for x in P2]
else:
return [P2[0] * x for x in P1]
diffLength = len(P1) - len(P2)
if diffLength > 0:
maxArray = [x for x in P1]
minArray = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
elif diffLength < 0:
minArray = [x for x in P1]
maxArray = [x for x in P2]
maxArray.index(2)
for i in range(abs(diffLength)):
minArray.append(0)
minArray.append(0)
maxArray.append(0)
result = list()
length = len(maxArray)
for i in range(length):
cpt = 0
for j in range(i + 1):
val = maxArray[j] * minArray[i - j]
cpt += val
result.append(cpt)
return result
def add(self, P1, P2, neg=False):
"""Addition between P1 and P2"""
maxArray = [x for x in P1]
minArray = [x for x in P2]
diffLength = len(P1) - len(P2)
if diffLength > 0:
maxArray = [x for x in P1]
minArray = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
elif diffLength < 0:
minArray = [x for x in P1]
maxArray = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
result = list()
length = len(maxArray)
for i in range(length):
result.append(maxArray[i] + minArray[i])
return result
def build(self, tab):
str = ""
# print(tab)
# tab = [round(x, 10) for x in tab]
length = len(tab)
for i in range(length):
if i == 0:
if tab[i] > 0:
str += "({0})".format(tab[i])
elif tab[i] < 0:
str += "-({0})".format(-tab[i])
elif i == 1:
if tab[i] > 0:
str += "+({0}*x)".format(tab[i])
elif tab[i] < 0:
str += "-({0}*x)".format(-tab[i])
else:
if tab[i] > 0:
str += "+({0}*x**{1})".format(tab[i], i)
elif tab[i] < 0:
str += "-({0}*x**{1})".format(-tab[i], i)
return str
def div(self, P1, P2):
"""Euclidian division between P1 and P2"""
p1 = Polynom().mult([1], [0 / -2, 1 / -2])
p2 = Polynom().mult(p1, [-1 / -3, 1 / -3])
p3 = Polynom().mult(p2, [-2 / -4, 1 / -4])
if __name__ == "__main__":
print(p1)
print(Polynom().build(p1))
| """
Name: polynom.py
Goal: operations with of polynoms
Author: HOUNSI madouvi antoine-sebastien
Date: 8/03/2022
"""
class Polynom:
def mult(self, P1, P2):
""" Multiplication between P1 and P2 """
max_array = [x for x in P1]
min_array = [x for x in P2]
if len(P1) == 1 or len(P2) == 1:
if len(P1) == 1:
return [P1[0] * x for x in P2]
else:
return [P2[0] * x for x in P1]
diff_length = len(P1) - len(P2)
if diffLength > 0:
max_array = [x for x in P1]
min_array = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
elif diffLength < 0:
min_array = [x for x in P1]
max_array = [x for x in P2]
maxArray.index(2)
for i in range(abs(diffLength)):
minArray.append(0)
minArray.append(0)
maxArray.append(0)
result = list()
length = len(maxArray)
for i in range(length):
cpt = 0
for j in range(i + 1):
val = maxArray[j] * minArray[i - j]
cpt += val
result.append(cpt)
return result
def add(self, P1, P2, neg=False):
"""Addition between P1 and P2"""
max_array = [x for x in P1]
min_array = [x for x in P2]
diff_length = len(P1) - len(P2)
if diffLength > 0:
max_array = [x for x in P1]
min_array = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
elif diffLength < 0:
min_array = [x for x in P1]
max_array = [x for x in P2]
for i in range(abs(diffLength)):
minArray.append(0)
result = list()
length = len(maxArray)
for i in range(length):
result.append(maxArray[i] + minArray[i])
return result
def build(self, tab):
str = ''
length = len(tab)
for i in range(length):
if i == 0:
if tab[i] > 0:
str += '({0})'.format(tab[i])
elif tab[i] < 0:
str += '-({0})'.format(-tab[i])
elif i == 1:
if tab[i] > 0:
str += '+({0}*x)'.format(tab[i])
elif tab[i] < 0:
str += '-({0}*x)'.format(-tab[i])
elif tab[i] > 0:
str += '+({0}*x**{1})'.format(tab[i], i)
elif tab[i] < 0:
str += '-({0}*x**{1})'.format(-tab[i], i)
return str
def div(self, P1, P2):
"""Euclidian division between P1 and P2"""
p1 = polynom().mult([1], [0 / -2, 1 / -2])
p2 = polynom().mult(p1, [-1 / -3, 1 / -3])
p3 = polynom().mult(p2, [-2 / -4, 1 / -4])
if __name__ == '__main__':
print(p1)
print(polynom().build(p1)) |
"""
Calculate minimum steps of raffle shuffle (alternating shuffle)
of a deck of cards to get to max degree of disorder.
Disorder of a = sum(abs(i-a[i]) for i in range(...))
"""
def steps(n):
deck = [*range(n)]
p = []
for _ in range(n):
deck = deck[::2] + deck[1::2]
p += sum(abs(i-deck[i]) for i in range(n)),
return p.index(max(p))
print(*(steps(i) for i in range(2, 30)))
| """
Calculate minimum steps of raffle shuffle (alternating shuffle)
of a deck of cards to get to max degree of disorder.
Disorder of a = sum(abs(i-a[i]) for i in range(...))
"""
def steps(n):
deck = [*range(n)]
p = []
for _ in range(n):
deck = deck[::2] + deck[1::2]
p += (sum((abs(i - deck[i]) for i in range(n))),)
return p.index(max(p))
print(*(steps(i) for i in range(2, 30))) |
FLOWERS = r"""
vVVVv vVVVv
(___) vVVVv (___) vVVVv
~Y~ (___) ~Y~ (___)
\| \~Y~/ \| \~Y~/
\\|// \\|// \\|// \\|//
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"""
SAMPLE = r"""
.--. _____ _
.'_\/_'. / ____| | |
'. /\ .' | (___ __ _ _ __ ___ _ __ | | ___
"||" \___ \ / _` | '_ ` _ \| '_ \| |/ _ \
|| /\ ____) | (_| | | | | | | |_) | | __/
/\ ||//\) |_____/ \__,_|_| |_| |_| .__/|_|\___|
(/\\||/ |_|
______\||/___________________________________________
"""
FENCE = r"""
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_
-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_
-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-
|_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
"""
TRACTOR_SMALL = r"""
______
|o | !
__ |:`_|---'-.
|__|______.-/ _ \-----.|
(o)(o)------'\ _ / ( )
"""
TRACTOR_WITH_SILO_LINE = r"""
____
/____\
______ | |
|o | ! | |
__ |:`_|---'-. | |
|__|______.-/ _ \-----.| |______|
(o)(o)------'\ _ / ( ) | |
"""
ROOSTER = r"""
_ m
,`.\/'>
(`\<_/`
`<<
"""
PIG = r"""
.-~~~~-. |\\_
@_/ / oo\_
| \ \ _(")
\ /-| ||'--'
\_\ \_\\
"""
SMALL_PIG = r"""
@___,__
( ^'_]
//-\\'
^^ ^^
"""
FENCE_SEP = r"""
|---||---|---|---|---|---|---|---|
"""
BUSH_SEP = r"""\\|// \\|// \\|// \\|// \\|//
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"""
WATERING_CAN = r"""
______
_ ,',----.`.
'.`-. .-' '----. ||
`.`-'--------| ;;
`.|--------|//
\ /
'--------'
"""
WORKER_M = r""" 0
/|\
/'\ """
WORKER_F = r""" 0
/w\
/ \ """
WORKER_X = r""" 0
/w\
/'\ """
| flowers = '\n \n vVVVv vVVVv \n (___) vVVVv (___) vVVVv\n ~Y~ (___) ~Y~ (___)\n \\| \\~Y~/ \\| \\~Y~/\n \\\\|// \\\\|// \\\\|// \\\\|//\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n'
sample = '\n .--. _____ _ \n .\'_\\/_\'. / ____| | | \n \'. /\\ .\' | (___ __ _ _ __ ___ _ __ | | ___ \n "||" \\___ \\ / _` | \'_ ` _ \\| \'_ \\| |/ _ \\ \n || /\\ ____) | (_| | | | | | | |_) | | __/\n /\\ ||//\\) |_____/ \\__,_|_| |_| |_| .__/|_|\\___|\n (/\\\\||/ |_| \n______\\||/___________________________________________ \n'
fence = '\n _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_\n-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-\n | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |\n_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_\n-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-| |-\n |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| |_| \n,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n\n'
tractor_small = " \n ______\n |o | !\n __ |:`_|---'-.\n |__|______.-/ _ \\-----.| \n (o)(o)------'\\ _ / ( ) \n "
tractor_with_silo_line = " \n ____\n /____\\\n ______ | |\n |o | ! | | \n __ |:`_|---'-. | |\n |__|______.-/ _ \\-----.| |______|\n (o)(o)------'\\ _ / ( ) | |\n "
rooster = "\n _ m\n ,`.\\/'>\n (`\\<_/`\n `<<\n"
pig = '\n\n .-~~~~-. |\\\\_\n @_/ / oo\\_\n | \\ \\ _(")\n \\ /-| ||\'--\'\n \\_\\ \\_\\\\\n\n'
small_pig = "\n @___,__\n ( ^'_]\n //-\\\\'\n ^^ ^^\n"
fence_sep = '\n|---||---|---|---|---|---|---|---|\n'
bush_sep = '\\\\|// \\\\|// \\\\|// \\\\|// \\\\|//\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'
watering_can = "\n ______ \n _ ,',----.`. \n'.`-. .-' '----. || \n `.`-'--------| ;; \n `.|--------|// \n \\ / \n '--------' \n"
worker_m = " 0 \n/|\\\n/'\\ "
worker_f = ' 0 \n/w\\ \n/ \\ '
worker_x = " 0 \n/w\\ \n/'\\ " |
s = float(input('Digite o salario do funcionario: R$ '))
if s>1250:
print('Quem ganhava R${} passa a ganhar R${:.2f} agora.'.format(s,s+(s*10/100)))
else:
print('Quem ganhava R${} passa a ganhar R${:.2f} agora'.format(s,s+(s*15/100)))
| s = float(input('Digite o salario do funcionario: R$ '))
if s > 1250:
print('Quem ganhava R${} passa a ganhar R${:.2f} agora.'.format(s, s + s * 10 / 100))
else:
print('Quem ganhava R${} passa a ganhar R${:.2f} agora'.format(s, s + s * 15 / 100)) |
# Data Type in Python is an attribute of data which tells the interpreter how the programmer intends to use the data
# There are three numeric data types in Python:
# Integers
# Integers (e.g. 2, 4, 20)
# - Boolean (e.g. False and True, acting like 0 and 1)
# Floating Point Numbers (e.g. 3.0, 5.2)
# Complex Numbers (e.g. 1+j, 2+9j)
# Integers (represents a whole number, positive or negative, without decimals and have no value limit)
positive_integer = 34
negative_integer = -3237937
big_integer = 62733287329879274032843048
print(positive_integer)
print(negative_integer)
print(big_integer)
print("**********************************************************")
# Boolean (represents the truth values False and True and is a subtype of the Integer type)
myBooleanValue1 = True
myBooleanValue2 = False
print(myBooleanValue1)
print(myBooleanValue2)
print("**********************************************************")
# Conversion of Boolean to String
print(type(str(myBooleanValue1)))
print(type(str(myBooleanValue2)))
print("**********************************************************")
# Floats (represents a number, positive or negative, containing one or more decimals)
myFloatValue1 = 3.2
myFloatValue2 = -91.9
myFloatValue3 = float(3.4) # using the "float" function
myScientificFloatValue1 = 35e3 # small "e"
myScientificFloatValue2 = 2E8 # big "E"
print(myFloatValue1)
print(myFloatValue2)
print(myFloatValue3)
print(myScientificFloatValue1)
print(myScientificFloatValue2)
print("**********************************************************")
# Complex Numbers
myComplexValue1 = 3 + 9j
myComplexValue2 = 2 - 3j
print(myComplexValue1)
print(myComplexValue2)
print("**********************************************************")
| positive_integer = 34
negative_integer = -3237937
big_integer = 62733287329879274032843048
print(positive_integer)
print(negative_integer)
print(big_integer)
print('**********************************************************')
my_boolean_value1 = True
my_boolean_value2 = False
print(myBooleanValue1)
print(myBooleanValue2)
print('**********************************************************')
print(type(str(myBooleanValue1)))
print(type(str(myBooleanValue2)))
print('**********************************************************')
my_float_value1 = 3.2
my_float_value2 = -91.9
my_float_value3 = float(3.4)
my_scientific_float_value1 = 35000.0
my_scientific_float_value2 = 200000000.0
print(myFloatValue1)
print(myFloatValue2)
print(myFloatValue3)
print(myScientificFloatValue1)
print(myScientificFloatValue2)
print('**********************************************************')
my_complex_value1 = 3 + 9j
my_complex_value2 = 2 - 3j
print(myComplexValue1)
print(myComplexValue2)
print('**********************************************************') |
class Quadrilatero:
def __init__(self, lado1, lado2):
self.__lado1 = lado1
self.__lado2 = lado2
def retangulo():
pass
def retangulo():
pass
def retangulo():
pass | class Quadrilatero:
def __init__(self, lado1, lado2):
self.__lado1 = lado1
self.__lado2 = lado2
def retangulo():
pass
def retangulo():
pass
def retangulo():
pass |
#creating a node
class Node:
def __init__(self,data):
self.value=data
self.left=None
self.right=None
#function to check if the tree is a mirror image of another tree
def isMirror(troot1, troot2):
if troot1 == None and troot2 == None:
return True;
if (troot1 != None and troot2 != None):
if troot1.value == troot2.value:
return (isMirror(troot1.left, troot2.right)and isMirror(troot1.right, troot2.left))
return False;
#main
root = Node(5)
root.left = Node(3)
root.right = Node(3)
root.left.left = Node(2)
root.left.right = Node(7)
root.right.left = Node(7)
root.right.right = Node(2)
if isMirror(root,root) == True: #passing the same roots
print("Yes!! It is a Symmetric Tree")
else:
print("Not a Symmetric Tree")
| class Node:
def __init__(self, data):
self.value = data
self.left = None
self.right = None
def is_mirror(troot1, troot2):
if troot1 == None and troot2 == None:
return True
if troot1 != None and troot2 != None:
if troot1.value == troot2.value:
return is_mirror(troot1.left, troot2.right) and is_mirror(troot1.right, troot2.left)
return False
root = node(5)
root.left = node(3)
root.right = node(3)
root.left.left = node(2)
root.left.right = node(7)
root.right.left = node(7)
root.right.right = node(2)
if is_mirror(root, root) == True:
print('Yes!! It is a Symmetric Tree')
else:
print('Not a Symmetric Tree') |
# pylint: skip-file
# pylint: disable=too-many-instance-attributes
class GcloudResourceBuilder(object):
''' Class to wrap the gcloud deployment manager '''
# pylint allows 5
# pylint: disable=too-many-arguments
def __init__(self,
clusterid,
project,
region,
zone,
verbose=False):
''' Constructor for gcloud resource '''
#super(GcloudDeploymentManager, self).__init__()
self.clusterid = clusterid
self.project = project
self.region = region
self.zone = zone
self.verbose = verbose
def build_instance_resources(self,
names,
mtype,
metadata,
tags,
disk_info,
network_info,
provisioning=False,
service_accounts=None,
):
'''build instance resources and return them in a list'''
results = []
for _name in names:
disks = [Disk(_name + '-' + disk['name'],
self.project,
self.zone,
disk['size'],
disk.get('disk_type', 'pd-standard'),
boot=disk.get('boot', False),
device_name=disk['device_name'],
image=disk.get('image', None),
labels=disk.get('labels', None),
label_finger_print=disk.get('label_finger_print', None),
index=disk.get('index', None)) for disk in disk_info]
inst_disks = []
for disk in disks:
inst_disks.append(disk.get_supplement_disk())
results.append(disk)
nics = []
for nic in network_info:
_nic = NetworkInterface(_name + 'nic',
self.project,
self.zone,
nic['network'],
nic['subnetwork'],
nic.get('access_config_name', None),
nic.get('access_config_type', None))
nics.append(_nic.get_instance_interface())
if provisioning:
metadata['new_provision'] = 'True'
inst = VMInstance(_name,
self.project,
self.zone,
mtype,
metadata,
tags,
inst_disks,
nics,
service_accounts)
results.append(inst)
return results
def build_health_check(self, rname, desc, interval, h_thres, port, timeout, unh_thres, req_path):
'''create health check resource'''
return HealthCheck(rname,
self.project,
self.zone,
desc,
interval,
h_thres,
port,
timeout,
unh_thres,
req_path)
def build_subnetwork(self, rname, ip_cidr_range, region, network):
'''build subnetwork and return it'''
return Subnetwork(rname, self.project, self.zone, ip_cidr_range, region, network)
def build_target_pool(self, rname, desc, region, checks, instances, affin=None):
'''build target pool resource and return it'''
return TargetPool(rname, self.project, self.zone, desc, region, checks, instances, affin)
def build_network(self, rname, desc, auto_create=False):
'''build network resource and return it'''
return Network(rname, self.project, self.zone, desc, auto_create)
def build_address(self, rname, desc, region):
'''build address resource and return it'''
return Address(rname, self.project, self.zone, desc, region)
def build_forwarding_rules(self, rules):
'''build forwarding rule resources and return them'''
resources = []
for rule in rules:
resources.append(ForwardingRule(rule['name'], self.project, self.zone,
rule['description'], rule['IPAddress'],
rule['IPProtocol'], rule['region'],
rule['portRange'], rule['target']))
return resources
def build_firewall_rules(self, rules):
'''build firewall resources and return them'''
resources = []
for rule in rules:
resources.append(FirewallRule(rule['name'], self.project, self.zone,
rule['description'], rule['network'],
rule['allowed'], rule.get('targetTags', []),
rule['sourceRanges']))
return resources
def build_disks(self, disks):
'''build disk resources and return it'''
results = []
for disk in disks:
results.append(Disk(disk['name'],
self.project,
self.zone,
disk['size'],
disk.get('disk_type', 'pd-standard'),
boot=disk.get('boot', False),
device_name=disk['device_name'],
image=disk.get('image', None),
labels=disk.get('labels', None),
label_finger_print=disk.get('label_finger_print', None)
))
return results
def build_pv_disks(self, disk_size_info):
'''build disk resources for pvs and return them
disk_size_count:
- size: 1
count: 5
- size: 5
- count: 10
'''
results = []
for size_count in disk_size_info:
size = size_count['size']
count = size_count['count']
d_type = size_count.get('disk_type', 'pd-standard')
for idx in range(1, int(count) + 1):
results.append(Disk('pv-%s-%dg-%d' % (self.project, size, idx),
self.project,
self.zone,
size,
disk_type=d_type,
boot=False,
device_name='pv_%dg%d' % (size, idx),
image=None,
labels={'purpose': 'customer-persistent-volume',
'clusterid': self.project,
'snaphost': 'daily',
},
))
return results
def build_storage_buckets(self, bucket_names):
''' create the resource for storage buckets'''
results = []
for b_name in bucket_names:
results.append(Bucket(b_name, self.project, self.zone))
return results
| class Gcloudresourcebuilder(object):
""" Class to wrap the gcloud deployment manager """
def __init__(self, clusterid, project, region, zone, verbose=False):
""" Constructor for gcloud resource """
self.clusterid = clusterid
self.project = project
self.region = region
self.zone = zone
self.verbose = verbose
def build_instance_resources(self, names, mtype, metadata, tags, disk_info, network_info, provisioning=False, service_accounts=None):
"""build instance resources and return them in a list"""
results = []
for _name in names:
disks = [disk(_name + '-' + disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None), index=disk.get('index', None)) for disk in disk_info]
inst_disks = []
for disk in disks:
inst_disks.append(disk.get_supplement_disk())
results.append(disk)
nics = []
for nic in network_info:
_nic = network_interface(_name + 'nic', self.project, self.zone, nic['network'], nic['subnetwork'], nic.get('access_config_name', None), nic.get('access_config_type', None))
nics.append(_nic.get_instance_interface())
if provisioning:
metadata['new_provision'] = 'True'
inst = vm_instance(_name, self.project, self.zone, mtype, metadata, tags, inst_disks, nics, service_accounts)
results.append(inst)
return results
def build_health_check(self, rname, desc, interval, h_thres, port, timeout, unh_thres, req_path):
"""create health check resource"""
return health_check(rname, self.project, self.zone, desc, interval, h_thres, port, timeout, unh_thres, req_path)
def build_subnetwork(self, rname, ip_cidr_range, region, network):
"""build subnetwork and return it"""
return subnetwork(rname, self.project, self.zone, ip_cidr_range, region, network)
def build_target_pool(self, rname, desc, region, checks, instances, affin=None):
"""build target pool resource and return it"""
return target_pool(rname, self.project, self.zone, desc, region, checks, instances, affin)
def build_network(self, rname, desc, auto_create=False):
"""build network resource and return it"""
return network(rname, self.project, self.zone, desc, auto_create)
def build_address(self, rname, desc, region):
"""build address resource and return it"""
return address(rname, self.project, self.zone, desc, region)
def build_forwarding_rules(self, rules):
"""build forwarding rule resources and return them"""
resources = []
for rule in rules:
resources.append(forwarding_rule(rule['name'], self.project, self.zone, rule['description'], rule['IPAddress'], rule['IPProtocol'], rule['region'], rule['portRange'], rule['target']))
return resources
def build_firewall_rules(self, rules):
"""build firewall resources and return them"""
resources = []
for rule in rules:
resources.append(firewall_rule(rule['name'], self.project, self.zone, rule['description'], rule['network'], rule['allowed'], rule.get('targetTags', []), rule['sourceRanges']))
return resources
def build_disks(self, disks):
"""build disk resources and return it"""
results = []
for disk in disks:
results.append(disk(disk['name'], self.project, self.zone, disk['size'], disk.get('disk_type', 'pd-standard'), boot=disk.get('boot', False), device_name=disk['device_name'], image=disk.get('image', None), labels=disk.get('labels', None), label_finger_print=disk.get('label_finger_print', None)))
return results
def build_pv_disks(self, disk_size_info):
"""build disk resources for pvs and return them
disk_size_count:
- size: 1
count: 5
- size: 5
- count: 10
"""
results = []
for size_count in disk_size_info:
size = size_count['size']
count = size_count['count']
d_type = size_count.get('disk_type', 'pd-standard')
for idx in range(1, int(count) + 1):
results.append(disk('pv-%s-%dg-%d' % (self.project, size, idx), self.project, self.zone, size, disk_type=d_type, boot=False, device_name='pv_%dg%d' % (size, idx), image=None, labels={'purpose': 'customer-persistent-volume', 'clusterid': self.project, 'snaphost': 'daily'}))
return results
def build_storage_buckets(self, bucket_names):
""" create the resource for storage buckets"""
results = []
for b_name in bucket_names:
results.append(bucket(b_name, self.project, self.zone))
return results |
"""
0758. Bold Words in String
Easy
Given a set of keywords words and a string S, make all appearances of all keywords in S bold. Any letters between <b> and </b> tags become bold.
The returned string should use the least number of tags possible, and of course the tags should form a valid combination.
For example, given that words = ["ab", "bc"] and S = "aabcd", we should return "a<b>abc</b>d". Note that returning "a<b>a<b>b</b>c</b>d" would use more tags, so it is incorrect.
Constraints:
words has length in range [0, 50].
words[i] has length in range [1, 10].
S has length in range [0, 500].
All characters in words[i] and S are lowercase letters.
Note: This question is the same as 616: https://leetcode.com/problems/add-bold-tag-in-string/
"""
class Solution:
def boldWords(self, words: List[str], S: str) -> str:
n = len(S)
b = [False] * n
for w in words:
t = S.find(w)
length = len(w)
while t > -1:
for i in range(t, t + length):
b[i] = True
t = S.find(w, t + 1)
res = ''
i = 0
while i < n:
if b[i]:
res += r'<b>'
while i < n and b[i]:
res += S[i]
i += 1
res += r'</b>'
else:
res += S[i]
i += 1
return res
| """
0758. Bold Words in String
Easy
Given a set of keywords words and a string S, make all appearances of all keywords in S bold. Any letters between <b> and </b> tags become bold.
The returned string should use the least number of tags possible, and of course the tags should form a valid combination.
For example, given that words = ["ab", "bc"] and S = "aabcd", we should return "a<b>abc</b>d". Note that returning "a<b>a<b>b</b>c</b>d" would use more tags, so it is incorrect.
Constraints:
words has length in range [0, 50].
words[i] has length in range [1, 10].
S has length in range [0, 500].
All characters in words[i] and S are lowercase letters.
Note: This question is the same as 616: https://leetcode.com/problems/add-bold-tag-in-string/
"""
class Solution:
def bold_words(self, words: List[str], S: str) -> str:
n = len(S)
b = [False] * n
for w in words:
t = S.find(w)
length = len(w)
while t > -1:
for i in range(t, t + length):
b[i] = True
t = S.find(w, t + 1)
res = ''
i = 0
while i < n:
if b[i]:
res += '<b>'
while i < n and b[i]:
res += S[i]
i += 1
res += '</b>'
else:
res += S[i]
i += 1
return res |
# Outputs strings with inverted commas
# Author: Isabella Doyle
message = 'John said "hi", I said "bye.'
print(message) | message = 'John said "hi", I said "bye.'
print(message) |
# 000758_02_02_ifStatements.py
print("000758_02_02_ifStatements:01")
if 10 > 5:
print("10 greater than 5")
print("Program ended")
print("")
print("000758_02_02_ifStatements:02:nested")
num = 12
if num > 5:
print("Bigger than 5")
if num <= 47:
print("Between 5 and 47")
print("")
print("000758_02_02_ifStatements:q.03:nested")
num = 7
if num > 3:
print("3")
if num < 5:
print("5")
if num == 7:
print("7")
print("")
print("000758_02_02_ifStatements:q.03:nested:reorganized ")
num = 7
if num > 3:
print("3")
if num < 5:
print("5")
if num == 7:
print("7")
print("")
num = 7
if num > 3:
print("3")
if num < 5:
print("5")
if num == 7:
print("7")
| print('000758_02_02_ifStatements:01')
if 10 > 5:
print('10 greater than 5')
print('Program ended')
print('')
print('000758_02_02_ifStatements:02:nested')
num = 12
if num > 5:
print('Bigger than 5')
if num <= 47:
print('Between 5 and 47')
print('')
print('000758_02_02_ifStatements:q.03:nested')
num = 7
if num > 3:
print('3')
if num < 5:
print('5')
if num == 7:
print('7')
print('')
print('000758_02_02_ifStatements:q.03:nested:reorganized ')
num = 7
if num > 3:
print('3')
if num < 5:
print('5')
if num == 7:
print('7')
print('')
num = 7
if num > 3:
print('3')
if num < 5:
print('5')
if num == 7:
print('7') |
PREFIX = "/api"
CORS_POLICY = {"origins": ("*",), "max_age": 3600}
class Base:
def __init__(self, request, context=None):
self.request = request
@property
def _index(self):
return self.request.registry.settings["pyfapi.es.index"]
def _result(self, result):
return {"result": result, "error": ""}
def _error(self, error):
return {"result": {}, "error": error}
| prefix = '/api'
cors_policy = {'origins': ('*',), 'max_age': 3600}
class Base:
def __init__(self, request, context=None):
self.request = request
@property
def _index(self):
return self.request.registry.settings['pyfapi.es.index']
def _result(self, result):
return {'result': result, 'error': ''}
def _error(self, error):
return {'result': {}, 'error': error} |
# Exer 8
# # Creating a list of nice places to visit
places_to_visit = ['island', 'australia', 'cananda', 'thailand']
print(places_to_visit)
# putting the list into alphabetic order
print(sorted(places_to_visit))
# putting the list back to its original order
print(places_to_visit)
# putting the list backwards
places_to_visit.reverse()
print(places_to_visit)
# putting the list into alphabetic order permanently
places_to_visit.sort()
# printing list length
print(len(places_to_visit))
| places_to_visit = ['island', 'australia', 'cananda', 'thailand']
print(places_to_visit)
print(sorted(places_to_visit))
print(places_to_visit)
places_to_visit.reverse()
print(places_to_visit)
places_to_visit.sort()
print(len(places_to_visit)) |
def print_matrix(matrix):
for row in matrix:
for elem in row:
print(elem, end='\t')
print()
print(__name__)
if __name__ == "__main__":
print("Something to run as stand alone script")
| def print_matrix(matrix):
for row in matrix:
for elem in row:
print(elem, end='\t')
print()
print(__name__)
if __name__ == '__main__':
print('Something to run as stand alone script') |
"""
In a given integer array nums, there is always exactly one largest element.
Find whether the largest element in the array is at least twice as much as every other number in the array.
If it is, return the index of the largest element, otherwise return -1.
Example 1:
Input: nums = [3, 6, 1, 0]
Output: 1
Explanation: 6 is the largest integer, and for every other number in the array x,
6 is more than twice as big as x. The index of value 6 is 1, so we return 1.
Example 2:
Input: nums = [1, 2, 3, 4]
Output: -1
Explanation: 4 isn't at least as big as twice the value of 3, so we return -1.
Note:
nums will have a length in the range [1, 50].
Every nums[i] will be an integer in the range [0, 99].
"""
class Solution(object):
def dominantIndex(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) < 2:
return 0
ns = sorted(nums)
if ns[-1] < ns[-2] * 2:
return -1
for i, n in enumerate(nums):
if n == ns[-1]:
return i
| """
In a given integer array nums, there is always exactly one largest element.
Find whether the largest element in the array is at least twice as much as every other number in the array.
If it is, return the index of the largest element, otherwise return -1.
Example 1:
Input: nums = [3, 6, 1, 0]
Output: 1
Explanation: 6 is the largest integer, and for every other number in the array x,
6 is more than twice as big as x. The index of value 6 is 1, so we return 1.
Example 2:
Input: nums = [1, 2, 3, 4]
Output: -1
Explanation: 4 isn't at least as big as twice the value of 3, so we return -1.
Note:
nums will have a length in the range [1, 50].
Every nums[i] will be an integer in the range [0, 99].
"""
class Solution(object):
def dominant_index(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) < 2:
return 0
ns = sorted(nums)
if ns[-1] < ns[-2] * 2:
return -1
for (i, n) in enumerate(nums):
if n == ns[-1]:
return i |
class Solution:
"""
https://leetcode.com/problems/reverse-words-in-a-string-iii/
Given a string, you need to reverse the order of characters in each
word within a sentence while still preserving whitespace and
initial word order.
Example 1:
Input: "Let's take LeetCode contest"
Output: "s'teL ekat edoCteeL tsetnoc"
Note:
In the string, each word is separated by single space and there
will not be any extra space in the string.
"""
@staticmethod
def reverseWords(s):
"""
:type s: str
:rtype: str
"""
return ' '.join(word[::-1] for word in s.split())
| class Solution:
"""
https://leetcode.com/problems/reverse-words-in-a-string-iii/
Given a string, you need to reverse the order of characters in each
word within a sentence while still preserving whitespace and
initial word order.
Example 1:
Input: "Let's take LeetCode contest"
Output: "s'teL ekat edoCteeL tsetnoc"
Note:
In the string, each word is separated by single space and there
will not be any extra space in the string.
"""
@staticmethod
def reverse_words(s):
"""
:type s: str
:rtype: str
"""
return ' '.join((word[::-1] for word in s.split())) |
#!/usr/bin/env python3
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
__all__ = [
'datastructures',
'exception',
'funcs',
'info',
'kprobe',
'prog',
'socket_filter',
'tc',
'util',
]
| __all__ = ['datastructures', 'exception', 'funcs', 'info', 'kprobe', 'prog', 'socket_filter', 'tc', 'util'] |
l=[]
print(l)
l.append(10)
print(l)
l.append(11)
print(l) | l = []
print(l)
l.append(10)
print(l)
l.append(11)
print(l) |
# coding = utf-8
# @time : 2019/6/30 6:41 PM
# @author : alchemistlee
# @fileName: filter_long_tk.py
# @abstract:
if __name__ == '__main__':
input_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-.test'
input_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-.test'
out_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-filter3.test'
out_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-filter3.test'
with open(input_zh,'r') as i_zh, open(input_en,'r') as i_en, open(out_zh,'w') as o_zh, open(out_en, 'w') as o_en:
for row_zh, row_en in zip(i_zh, i_en):
zh_toks = row_zh.split()
if len(zh_toks) > 100:
continue
o_zh.write(row_zh.strip()+'\n')
o_en.write(row_en.strip()+'\n')
| if __name__ == '__main__':
input_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-.test'
input_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-.test'
out_zh = '/root/workspace/translate_data/my_corpus_v6.zh-cut.processed6-bpe-v6-2-filter3.test'
out_en = '/root/workspace/translate_data/my_corpus_v6.en.tok.processed6-bpe-v6-2-filter3.test'
with open(input_zh, 'r') as i_zh, open(input_en, 'r') as i_en, open(out_zh, 'w') as o_zh, open(out_en, 'w') as o_en:
for (row_zh, row_en) in zip(i_zh, i_en):
zh_toks = row_zh.split()
if len(zh_toks) > 100:
continue
o_zh.write(row_zh.strip() + '\n')
o_en.write(row_en.strip() + '\n') |
#
# @lc app=leetcode id=677 lang=python3
#
# [677] Map Sum Pairs
#
# @lc code=start
class MapSum:
def __init__(self):
"""
Initialize your data structure here.
"""
self.d = {}
def insert(self, key, val):
self.d[key] = val
def sum(self, prefix):
return sum(self.d[i] for i in self.d if i.startswith(prefix))
# Your MapSum object will be instantiated and called as such:
# obj = MapSum()
# obj.insert(key,val)
# param_2 = obj.sum(prefix)
# @lc code=end
| class Mapsum:
def __init__(self):
"""
Initialize your data structure here.
"""
self.d = {}
def insert(self, key, val):
self.d[key] = val
def sum(self, prefix):
return sum((self.d[i] for i in self.d if i.startswith(prefix))) |
#
# PySNMP MIB module Fore-frs-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-frs-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:04:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
frameInternetworking, = mibBuilder.importSymbols("Fore-Common-MIB", "frameInternetworking")
InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter32, Bits, IpAddress, Counter64, Gauge32, Integer32, ObjectIdentity, Unsigned32, NotificationType, MibIdentifier, TimeTicks, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter32", "Bits", "IpAddress", "Counter64", "Gauge32", "Integer32", "ObjectIdentity", "Unsigned32", "NotificationType", "MibIdentifier", "TimeTicks", "ModuleIdentity")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
foreFrameRelayModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 326, 1, 16, 1))
if mibBuilder.loadTexts: foreFrameRelayModule.setLastUpdated('9705011044-0400')
if mibBuilder.loadTexts: foreFrameRelayModule.setOrganization('FORE')
frextDlcmiTable = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1), )
if mibBuilder.loadTexts: frextDlcmiTable.setStatus('current')
frextDlcmiEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1), ).setIndexNames((0, "Fore-frs-MIB", "frextDlcmiServiceIfIndex"))
if mibBuilder.loadTexts: frextDlcmiEntry.setStatus('current')
frextDlcmiServiceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiServiceIfIndex.setStatus('current')
frextDlcmiProfileLmiIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiProfileLmiIndex.setStatus('current')
frextDlcmiProfileServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiProfileServiceIndex.setStatus('current')
frextDlcmiStatsMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiStatsMonitor.setStatus('current')
frextDlcmiStatsEnabledTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 5), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiStatsEnabledTimeStamp.setStatus('current')
frextDlcmiLmiDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiDlci.setStatus('current')
frextDlcmiLmiFlowControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiLmiFlowControl.setStatus('current')
frextDlcmiRAControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiRAControl.setStatus('current')
frextDlcmiLmiBandwidthControl = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextDlcmiLmiBandwidthControl.setStatus('current')
frextDlcmiRxAbortedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRxAbortedFrames.setStatus('current')
frextDlcmiRcvCrcErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRcvCrcErrors.setStatus('current')
frextDlcmiRcvShortFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRcvShortFrames.setStatus('current')
frextDlcmiRcvLongFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRcvLongFrames.setStatus('current')
frextDlcmiRcvInvalidDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRcvInvalidDLCI.setStatus('current')
frextDlcmiRcvUnknownErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiRcvUnknownErrs.setStatus('current')
frextDlcmiLmiTxStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiTxStatusResponses.setStatus('current')
frextDlcmiLmiTxFullStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusResponses.setStatus('current')
frextDlcmiLmiTxStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiTxStatusEnquiries.setStatus('current')
frextDlcmiLmiTxFullStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiTxFullStatusEnquiries.setStatus('current')
frextDlcmiLmiRxStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiRxStatusResponses.setStatus('current')
frextDlcmiLmiRxFullStatusResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusResponses.setStatus('current')
frextDlcmiLmiRxStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiRxStatusEnquiries.setStatus('current')
frextDlcmiLmiRxFullStatusEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiRxFullStatusEnquiries.setStatus('current')
frextDlcmiLmiUnknownMessagesRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiUnknownMessagesRcvd.setStatus('current')
frextDlcmiLmiStatusLostSequences = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiStatusLostSequences.setStatus('current')
frextDlcmiLmiStatusEnqLostSequences = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiStatusEnqLostSequences.setStatus('current')
frextDlcmiLmiMissingStatEnquiries = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiMissingStatEnquiries.setStatus('current')
frextDlcmiLmiUnexpectedPVCStatMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedPVCStatMsg.setStatus('current')
frextDlcmiLmiUnexpectedDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiUnexpectedDLCI.setStatus('current')
frextDlcmiLmiStatEnqRatePlus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiStatEnqRatePlus.setStatus('current')
frextDlcmiLmiInvInfoFrame = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiInvInfoFrame.setStatus('current')
frextDlcmiLmiInvFrameHdr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiInvFrameHdr.setStatus('current')
frextDlcmiLmiNoIERepType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiNoIERepType.setStatus('current')
frextDlcmiLmiNoIEKeepAlive = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiNoIEKeepAlive.setStatus('current')
frextDlcmiLmiMissingResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiMissingResponses.setStatus('current')
frextDlcmiLmiUnsuppIERcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiLmiUnsuppIERcvd.setStatus('current')
frextDlcmiPvccs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 37), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextDlcmiPvccs.setStatus('current')
frextCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2), )
if mibBuilder.loadTexts: frextCircuitTable.setStatus('current')
frextCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1), ).setIndexNames((0, "Fore-frs-MIB", "frextCircuitServiceIfIndex"), (0, "Fore-frs-MIB", "frextCircuitDlci"))
if mibBuilder.loadTexts: frextCircuitEntry.setStatus('current')
frextCircuitServiceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitServiceIfIndex.setStatus('current')
frextCircuitDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitDlci.setStatus('current')
frextCircuitName = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextCircuitName.setStatus('current')
frextCircuitProfileFrRateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextCircuitProfileFrRateIndex.setStatus('current')
frextCircuitREMonitor = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("standard", 2))).clone('none')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: frextCircuitREMonitor.setStatus('current')
frextCircuitRateFallbacks = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRateFallbacks.setStatus('current')
frextCircuitRateFallforwards = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRateFallforwards.setStatus('current')
frextCircuitEgFramesDroppedQueueFull = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitEgFramesDroppedQueueFull.setStatus('current')
frextCircuitNormalSentFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitNormalSentFrames.setStatus('current')
frextCircuitNormalSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitNormalSentOctets.setStatus('current')
frextCircuitExcessSentOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitExcessSentOctets.setStatus('current')
frextCircuitHeldBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitHeldBuffers.setStatus('current')
frextCircuitOctetsOnQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitOctetsOnQueue.setStatus('current')
frextCircuitBuffersOnQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitBuffersOnQueue.setStatus('current')
frextCircuitRxMonNormalFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonNormalFrames.setStatus('current')
frextCircuitRxMonNormalOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonNormalOctets.setStatus('current')
frextCircuitRxMonExcessOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonExcessOctets.setStatus('current')
frextCircuitRxMonDroppedOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonDroppedOctets.setStatus('current')
frextCircuitRxMonDroppedDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEFrames.setStatus('current')
frextCircuitRxMonDroppedDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonDroppedDEOctets.setStatus('current')
frextCircuitRxMonDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonDEOctets.setStatus('current')
frextCircuitRxMonSetDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonSetDEFrames.setStatus('current')
frextCircuitRxMonSetDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRxMonSetDEOctets.setStatus('current')
frextCircuitRecvdBECNS = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRecvdBECNS.setStatus('current')
frextCircuitRecvdFECNS = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frextCircuitRecvdFECNS.setStatus('current')
frsOamF5Table = MibTable((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3), )
if mibBuilder.loadTexts: frsOamF5Table.setStatus('current')
frsOamF5Entry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1), ).setIndexNames((0, "Fore-frs-MIB", "frsOamF5AtmIf"), (0, "Fore-frs-MIB", "frsOamF5AtmVpi"), (0, "Fore-frs-MIB", "frsOamF5AtmVci"))
if mibBuilder.loadTexts: frsOamF5Entry.setStatus('current')
frsOamF5AtmIf = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5AtmIf.setStatus('current')
frsOamF5AtmVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5AtmVpi.setStatus('current')
frsOamF5AtmVci = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5AtmVci.setStatus('current')
frsOamF5AISRxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5AISRxCounter.setStatus('current')
frsOamF5AISTxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5AISTxCounter.setStatus('current')
frsOamF5RDIRxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5RDIRxCounter.setStatus('current')
frsOamF5RDITxCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: frsOamF5RDITxCounter.setStatus('current')
mibBuilder.exportSymbols("Fore-frs-MIB", frextDlcmiLmiUnsuppIERcvd=frextDlcmiLmiUnsuppIERcvd, frextCircuitRxMonNormalOctets=frextCircuitRxMonNormalOctets, frsOamF5AtmIf=frsOamF5AtmIf, frextCircuitNormalSentFrames=frextCircuitNormalSentFrames, frextDlcmiLmiStatEnqRatePlus=frextDlcmiLmiStatEnqRatePlus, frextCircuitRateFallforwards=frextCircuitRateFallforwards, frextCircuitOctetsOnQueue=frextCircuitOctetsOnQueue, frextCircuitHeldBuffers=frextCircuitHeldBuffers, frextDlcmiLmiMissingResponses=frextDlcmiLmiMissingResponses, frextDlcmiLmiUnexpectedDLCI=frextDlcmiLmiUnexpectedDLCI, frextDlcmiLmiInvInfoFrame=frextDlcmiLmiInvInfoFrame, frextDlcmiLmiTxFullStatusResponses=frextDlcmiLmiTxFullStatusResponses, frsOamF5AISRxCounter=frsOamF5AISRxCounter, frextCircuitRxMonDroppedOctets=frextCircuitRxMonDroppedOctets, frextCircuitEntry=frextCircuitEntry, frextDlcmiProfileServiceIndex=frextDlcmiProfileServiceIndex, frextDlcmiLmiNoIERepType=frextDlcmiLmiNoIERepType, frextDlcmiServiceIfIndex=frextDlcmiServiceIfIndex, frextCircuitRxMonExcessOctets=frextCircuitRxMonExcessOctets, frextCircuitREMonitor=frextCircuitREMonitor, frextDlcmiEntry=frextDlcmiEntry, frextDlcmiRcvShortFrames=frextDlcmiRcvShortFrames, frsOamF5Table=frsOamF5Table, frsOamF5Entry=frsOamF5Entry, frextCircuitDlci=frextCircuitDlci, frextDlcmiRcvUnknownErrs=frextDlcmiRcvUnknownErrs, frextDlcmiPvccs=frextDlcmiPvccs, PYSNMP_MODULE_ID=foreFrameRelayModule, frextDlcmiRcvInvalidDLCI=frextDlcmiRcvInvalidDLCI, frsOamF5RDITxCounter=frsOamF5RDITxCounter, frextCircuitRecvdFECNS=frextCircuitRecvdFECNS, frextDlcmiLmiDlci=frextDlcmiLmiDlci, frextDlcmiLmiStatusEnqLostSequences=frextDlcmiLmiStatusEnqLostSequences, frsOamF5AtmVpi=frsOamF5AtmVpi, foreFrameRelayModule=foreFrameRelayModule, frextDlcmiRAControl=frextDlcmiRAControl, frextCircuitRxMonDroppedDEFrames=frextCircuitRxMonDroppedDEFrames, frextCircuitTable=frextCircuitTable, frextDlcmiLmiRxStatusResponses=frextDlcmiLmiRxStatusResponses, frsOamF5AtmVci=frsOamF5AtmVci, frextCircuitRxMonSetDEOctets=frextCircuitRxMonSetDEOctets, frextDlcmiLmiRxStatusEnquiries=frextDlcmiLmiRxStatusEnquiries, frsOamF5AISTxCounter=frsOamF5AISTxCounter, frsOamF5RDIRxCounter=frsOamF5RDIRxCounter, frextCircuitRateFallbacks=frextCircuitRateFallbacks, frextDlcmiTable=frextDlcmiTable, frextCircuitRecvdBECNS=frextCircuitRecvdBECNS, frextDlcmiLmiRxFullStatusEnquiries=frextDlcmiLmiRxFullStatusEnquiries, frextCircuitNormalSentOctets=frextCircuitNormalSentOctets, frextCircuitRxMonDroppedDEOctets=frextCircuitRxMonDroppedDEOctets, frextDlcmiLmiStatusLostSequences=frextDlcmiLmiStatusLostSequences, frextDlcmiLmiInvFrameHdr=frextDlcmiLmiInvFrameHdr, frextDlcmiLmiMissingStatEnquiries=frextDlcmiLmiMissingStatEnquiries, frextDlcmiRxAbortedFrames=frextDlcmiRxAbortedFrames, frextDlcmiLmiTxFullStatusEnquiries=frextDlcmiLmiTxFullStatusEnquiries, frextDlcmiLmiBandwidthControl=frextDlcmiLmiBandwidthControl, frextDlcmiProfileLmiIndex=frextDlcmiProfileLmiIndex, frextCircuitName=frextCircuitName, frextCircuitRxMonDEOctets=frextCircuitRxMonDEOctets, frextCircuitEgFramesDroppedQueueFull=frextCircuitEgFramesDroppedQueueFull, frextDlcmiLmiRxFullStatusResponses=frextDlcmiLmiRxFullStatusResponses, frextDlcmiStatsEnabledTimeStamp=frextDlcmiStatsEnabledTimeStamp, frextDlcmiRcvCrcErrors=frextDlcmiRcvCrcErrors, frextDlcmiLmiTxStatusEnquiries=frextDlcmiLmiTxStatusEnquiries, frextDlcmiRcvLongFrames=frextDlcmiRcvLongFrames, frextDlcmiLmiNoIEKeepAlive=frextDlcmiLmiNoIEKeepAlive, frextCircuitBuffersOnQueue=frextCircuitBuffersOnQueue, frextDlcmiLmiTxStatusResponses=frextDlcmiLmiTxStatusResponses, frextDlcmiLmiFlowControl=frextDlcmiLmiFlowControl, frextCircuitExcessSentOctets=frextCircuitExcessSentOctets, frextCircuitRxMonSetDEFrames=frextCircuitRxMonSetDEFrames, frextCircuitProfileFrRateIndex=frextCircuitProfileFrRateIndex, frextCircuitRxMonNormalFrames=frextCircuitRxMonNormalFrames, frextDlcmiLmiUnexpectedPVCStatMsg=frextDlcmiLmiUnexpectedPVCStatMsg, frextCircuitServiceIfIndex=frextCircuitServiceIfIndex, frextDlcmiLmiUnknownMessagesRcvd=frextDlcmiLmiUnknownMessagesRcvd, frextDlcmiStatsMonitor=frextDlcmiStatsMonitor)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(frame_internetworking,) = mibBuilder.importSymbols('Fore-Common-MIB', 'frameInternetworking')
(interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter32, bits, ip_address, counter64, gauge32, integer32, object_identity, unsigned32, notification_type, mib_identifier, time_ticks, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter32', 'Bits', 'IpAddress', 'Counter64', 'Gauge32', 'Integer32', 'ObjectIdentity', 'Unsigned32', 'NotificationType', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
fore_frame_relay_module = module_identity((1, 3, 6, 1, 4, 1, 326, 1, 16, 1))
if mibBuilder.loadTexts:
foreFrameRelayModule.setLastUpdated('9705011044-0400')
if mibBuilder.loadTexts:
foreFrameRelayModule.setOrganization('FORE')
frext_dlcmi_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1))
if mibBuilder.loadTexts:
frextDlcmiTable.setStatus('current')
frext_dlcmi_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frextDlcmiServiceIfIndex'))
if mibBuilder.loadTexts:
frextDlcmiEntry.setStatus('current')
frext_dlcmi_service_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiServiceIfIndex.setStatus('current')
frext_dlcmi_profile_lmi_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiProfileLmiIndex.setStatus('current')
frext_dlcmi_profile_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiProfileServiceIndex.setStatus('current')
frext_dlcmi_stats_monitor = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiStatsMonitor.setStatus('current')
frext_dlcmi_stats_enabled_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 5), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiStatsEnabledTimeStamp.setStatus('current')
frext_dlcmi_lmi_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiDlci.setStatus('current')
frext_dlcmi_lmi_flow_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiLmiFlowControl.setStatus('current')
frext_dlcmi_ra_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiRAControl.setStatus('current')
frext_dlcmi_lmi_bandwidth_control = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextDlcmiLmiBandwidthControl.setStatus('current')
frext_dlcmi_rx_aborted_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRxAbortedFrames.setStatus('current')
frext_dlcmi_rcv_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRcvCrcErrors.setStatus('current')
frext_dlcmi_rcv_short_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRcvShortFrames.setStatus('current')
frext_dlcmi_rcv_long_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRcvLongFrames.setStatus('current')
frext_dlcmi_rcv_invalid_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRcvInvalidDLCI.setStatus('current')
frext_dlcmi_rcv_unknown_errs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiRcvUnknownErrs.setStatus('current')
frext_dlcmi_lmi_tx_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiTxStatusResponses.setStatus('current')
frext_dlcmi_lmi_tx_full_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiTxFullStatusResponses.setStatus('current')
frext_dlcmi_lmi_tx_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiTxStatusEnquiries.setStatus('current')
frext_dlcmi_lmi_tx_full_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiTxFullStatusEnquiries.setStatus('current')
frext_dlcmi_lmi_rx_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiRxStatusResponses.setStatus('current')
frext_dlcmi_lmi_rx_full_status_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiRxFullStatusResponses.setStatus('current')
frext_dlcmi_lmi_rx_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiRxStatusEnquiries.setStatus('current')
frext_dlcmi_lmi_rx_full_status_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiRxFullStatusEnquiries.setStatus('current')
frext_dlcmi_lmi_unknown_messages_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiUnknownMessagesRcvd.setStatus('current')
frext_dlcmi_lmi_status_lost_sequences = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiStatusLostSequences.setStatus('current')
frext_dlcmi_lmi_status_enq_lost_sequences = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiStatusEnqLostSequences.setStatus('current')
frext_dlcmi_lmi_missing_stat_enquiries = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiMissingStatEnquiries.setStatus('current')
frext_dlcmi_lmi_unexpected_pvc_stat_msg = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiUnexpectedPVCStatMsg.setStatus('current')
frext_dlcmi_lmi_unexpected_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiUnexpectedDLCI.setStatus('current')
frext_dlcmi_lmi_stat_enq_rate_plus = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiStatEnqRatePlus.setStatus('current')
frext_dlcmi_lmi_inv_info_frame = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiInvInfoFrame.setStatus('current')
frext_dlcmi_lmi_inv_frame_hdr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiInvFrameHdr.setStatus('current')
frext_dlcmi_lmi_no_ie_rep_type = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiNoIERepType.setStatus('current')
frext_dlcmi_lmi_no_ie_keep_alive = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiNoIEKeepAlive.setStatus('current')
frext_dlcmi_lmi_missing_responses = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiMissingResponses.setStatus('current')
frext_dlcmi_lmi_unsupp_ie_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiLmiUnsuppIERcvd.setStatus('current')
frext_dlcmi_pvccs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 1, 1, 37), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextDlcmiPvccs.setStatus('current')
frext_circuit_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2))
if mibBuilder.loadTexts:
frextCircuitTable.setStatus('current')
frext_circuit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frextCircuitServiceIfIndex'), (0, 'Fore-frs-MIB', 'frextCircuitDlci'))
if mibBuilder.loadTexts:
frextCircuitEntry.setStatus('current')
frext_circuit_service_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitServiceIfIndex.setStatus('current')
frext_circuit_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitDlci.setStatus('current')
frext_circuit_name = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextCircuitName.setStatus('current')
frext_circuit_profile_fr_rate_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextCircuitProfileFrRateIndex.setStatus('current')
frext_circuit_re_monitor = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('none', 1), ('standard', 2))).clone('none')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
frextCircuitREMonitor.setStatus('current')
frext_circuit_rate_fallbacks = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRateFallbacks.setStatus('current')
frext_circuit_rate_fallforwards = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRateFallforwards.setStatus('current')
frext_circuit_eg_frames_dropped_queue_full = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitEgFramesDroppedQueueFull.setStatus('current')
frext_circuit_normal_sent_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitNormalSentFrames.setStatus('current')
frext_circuit_normal_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitNormalSentOctets.setStatus('current')
frext_circuit_excess_sent_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitExcessSentOctets.setStatus('current')
frext_circuit_held_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitHeldBuffers.setStatus('current')
frext_circuit_octets_on_queue = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitOctetsOnQueue.setStatus('current')
frext_circuit_buffers_on_queue = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitBuffersOnQueue.setStatus('current')
frext_circuit_rx_mon_normal_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonNormalFrames.setStatus('current')
frext_circuit_rx_mon_normal_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonNormalOctets.setStatus('current')
frext_circuit_rx_mon_excess_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonExcessOctets.setStatus('current')
frext_circuit_rx_mon_dropped_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonDroppedOctets.setStatus('current')
frext_circuit_rx_mon_dropped_de_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonDroppedDEFrames.setStatus('current')
frext_circuit_rx_mon_dropped_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonDroppedDEOctets.setStatus('current')
frext_circuit_rx_mon_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonDEOctets.setStatus('current')
frext_circuit_rx_mon_set_de_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonSetDEFrames.setStatus('current')
frext_circuit_rx_mon_set_de_octets = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRxMonSetDEOctets.setStatus('current')
frext_circuit_recvd_becns = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRecvdBECNS.setStatus('current')
frext_circuit_recvd_fecns = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 2, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frextCircuitRecvdFECNS.setStatus('current')
frs_oam_f5_table = mib_table((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3))
if mibBuilder.loadTexts:
frsOamF5Table.setStatus('current')
frs_oam_f5_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1)).setIndexNames((0, 'Fore-frs-MIB', 'frsOamF5AtmIf'), (0, 'Fore-frs-MIB', 'frsOamF5AtmVpi'), (0, 'Fore-frs-MIB', 'frsOamF5AtmVci'))
if mibBuilder.loadTexts:
frsOamF5Entry.setStatus('current')
frs_oam_f5_atm_if = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5AtmIf.setStatus('current')
frs_oam_f5_atm_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5AtmVpi.setStatus('current')
frs_oam_f5_atm_vci = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5AtmVci.setStatus('current')
frs_oam_f5_ais_rx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5AISRxCounter.setStatus('current')
frs_oam_f5_ais_tx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5AISTxCounter.setStatus('current')
frs_oam_f5_rdi_rx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5RDIRxCounter.setStatus('current')
frs_oam_f5_rdi_tx_counter = mib_table_column((1, 3, 6, 1, 4, 1, 326, 1, 16, 1, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
frsOamF5RDITxCounter.setStatus('current')
mibBuilder.exportSymbols('Fore-frs-MIB', frextDlcmiLmiUnsuppIERcvd=frextDlcmiLmiUnsuppIERcvd, frextCircuitRxMonNormalOctets=frextCircuitRxMonNormalOctets, frsOamF5AtmIf=frsOamF5AtmIf, frextCircuitNormalSentFrames=frextCircuitNormalSentFrames, frextDlcmiLmiStatEnqRatePlus=frextDlcmiLmiStatEnqRatePlus, frextCircuitRateFallforwards=frextCircuitRateFallforwards, frextCircuitOctetsOnQueue=frextCircuitOctetsOnQueue, frextCircuitHeldBuffers=frextCircuitHeldBuffers, frextDlcmiLmiMissingResponses=frextDlcmiLmiMissingResponses, frextDlcmiLmiUnexpectedDLCI=frextDlcmiLmiUnexpectedDLCI, frextDlcmiLmiInvInfoFrame=frextDlcmiLmiInvInfoFrame, frextDlcmiLmiTxFullStatusResponses=frextDlcmiLmiTxFullStatusResponses, frsOamF5AISRxCounter=frsOamF5AISRxCounter, frextCircuitRxMonDroppedOctets=frextCircuitRxMonDroppedOctets, frextCircuitEntry=frextCircuitEntry, frextDlcmiProfileServiceIndex=frextDlcmiProfileServiceIndex, frextDlcmiLmiNoIERepType=frextDlcmiLmiNoIERepType, frextDlcmiServiceIfIndex=frextDlcmiServiceIfIndex, frextCircuitRxMonExcessOctets=frextCircuitRxMonExcessOctets, frextCircuitREMonitor=frextCircuitREMonitor, frextDlcmiEntry=frextDlcmiEntry, frextDlcmiRcvShortFrames=frextDlcmiRcvShortFrames, frsOamF5Table=frsOamF5Table, frsOamF5Entry=frsOamF5Entry, frextCircuitDlci=frextCircuitDlci, frextDlcmiRcvUnknownErrs=frextDlcmiRcvUnknownErrs, frextDlcmiPvccs=frextDlcmiPvccs, PYSNMP_MODULE_ID=foreFrameRelayModule, frextDlcmiRcvInvalidDLCI=frextDlcmiRcvInvalidDLCI, frsOamF5RDITxCounter=frsOamF5RDITxCounter, frextCircuitRecvdFECNS=frextCircuitRecvdFECNS, frextDlcmiLmiDlci=frextDlcmiLmiDlci, frextDlcmiLmiStatusEnqLostSequences=frextDlcmiLmiStatusEnqLostSequences, frsOamF5AtmVpi=frsOamF5AtmVpi, foreFrameRelayModule=foreFrameRelayModule, frextDlcmiRAControl=frextDlcmiRAControl, frextCircuitRxMonDroppedDEFrames=frextCircuitRxMonDroppedDEFrames, frextCircuitTable=frextCircuitTable, frextDlcmiLmiRxStatusResponses=frextDlcmiLmiRxStatusResponses, frsOamF5AtmVci=frsOamF5AtmVci, frextCircuitRxMonSetDEOctets=frextCircuitRxMonSetDEOctets, frextDlcmiLmiRxStatusEnquiries=frextDlcmiLmiRxStatusEnquiries, frsOamF5AISTxCounter=frsOamF5AISTxCounter, frsOamF5RDIRxCounter=frsOamF5RDIRxCounter, frextCircuitRateFallbacks=frextCircuitRateFallbacks, frextDlcmiTable=frextDlcmiTable, frextCircuitRecvdBECNS=frextCircuitRecvdBECNS, frextDlcmiLmiRxFullStatusEnquiries=frextDlcmiLmiRxFullStatusEnquiries, frextCircuitNormalSentOctets=frextCircuitNormalSentOctets, frextCircuitRxMonDroppedDEOctets=frextCircuitRxMonDroppedDEOctets, frextDlcmiLmiStatusLostSequences=frextDlcmiLmiStatusLostSequences, frextDlcmiLmiInvFrameHdr=frextDlcmiLmiInvFrameHdr, frextDlcmiLmiMissingStatEnquiries=frextDlcmiLmiMissingStatEnquiries, frextDlcmiRxAbortedFrames=frextDlcmiRxAbortedFrames, frextDlcmiLmiTxFullStatusEnquiries=frextDlcmiLmiTxFullStatusEnquiries, frextDlcmiLmiBandwidthControl=frextDlcmiLmiBandwidthControl, frextDlcmiProfileLmiIndex=frextDlcmiProfileLmiIndex, frextCircuitName=frextCircuitName, frextCircuitRxMonDEOctets=frextCircuitRxMonDEOctets, frextCircuitEgFramesDroppedQueueFull=frextCircuitEgFramesDroppedQueueFull, frextDlcmiLmiRxFullStatusResponses=frextDlcmiLmiRxFullStatusResponses, frextDlcmiStatsEnabledTimeStamp=frextDlcmiStatsEnabledTimeStamp, frextDlcmiRcvCrcErrors=frextDlcmiRcvCrcErrors, frextDlcmiLmiTxStatusEnquiries=frextDlcmiLmiTxStatusEnquiries, frextDlcmiRcvLongFrames=frextDlcmiRcvLongFrames, frextDlcmiLmiNoIEKeepAlive=frextDlcmiLmiNoIEKeepAlive, frextCircuitBuffersOnQueue=frextCircuitBuffersOnQueue, frextDlcmiLmiTxStatusResponses=frextDlcmiLmiTxStatusResponses, frextDlcmiLmiFlowControl=frextDlcmiLmiFlowControl, frextCircuitExcessSentOctets=frextCircuitExcessSentOctets, frextCircuitRxMonSetDEFrames=frextCircuitRxMonSetDEFrames, frextCircuitProfileFrRateIndex=frextCircuitProfileFrRateIndex, frextCircuitRxMonNormalFrames=frextCircuitRxMonNormalFrames, frextDlcmiLmiUnexpectedPVCStatMsg=frextDlcmiLmiUnexpectedPVCStatMsg, frextCircuitServiceIfIndex=frextCircuitServiceIfIndex, frextDlcmiLmiUnknownMessagesRcvd=frextDlcmiLmiUnknownMessagesRcvd, frextDlcmiStatsMonitor=frextDlcmiStatsMonitor) |
## pure function: has no side effect and returns a value based on their arguments
def pure_function(x,y):
temp = x + 2*y
return temp / y + 2*x
##impure function
some_list = []
def impure(arg):
some_list.append(arg) | def pure_function(x, y):
temp = x + 2 * y
return temp / y + 2 * x
some_list = []
def impure(arg):
some_list.append(arg) |
# coding: utf-8
"""
sentry_riemann
"""
VERSION = '0.0.4'
| """
sentry_riemann
"""
version = '0.0.4' |
class Solution(object):
def brokenCalc(self, X, Y):
res = 0
while Y > X:
res += Y % 2 + 1
Y = Y // 2 if Y % 2 == 0 else (Y + 1)//2
return res + X - Y
def main():
startValue = 2
target = 3
startValue = 5
target = 8
startValue = 3
target = 10
startValue = 1
target = 1000000000
startValue = 1000000000
target = 1
obj = Solution()
return obj.brokenCalc(startValue, target)
if __name__ == "__main__":
print(main())
| class Solution(object):
def broken_calc(self, X, Y):
res = 0
while Y > X:
res += Y % 2 + 1
y = Y // 2 if Y % 2 == 0 else (Y + 1) // 2
return res + X - Y
def main():
start_value = 2
target = 3
start_value = 5
target = 8
start_value = 3
target = 10
start_value = 1
target = 1000000000
start_value = 1000000000
target = 1
obj = solution()
return obj.brokenCalc(startValue, target)
if __name__ == '__main__':
print(main()) |
'''
Created on Nov 14, 2017
@author: jschm
'''
class Fraction(object):
'''Defines an immutable rational number with common arithmetic operations.
'''
def __init__(self, numerator=0, denominator=1):
#default values for fraction is 0
'''Constructs a rational number (fraction) initialized to zero or a user
specified value.
Args:
numerator: the numerator of the fraction. (Default is 0).
denominator: the denominator of the fraction (Default is 1).
Raises:
ZeroDivisionError: if the user tries to construct a fraction with
the denominator 0.
'''
# The denominator cannot be zero.
if denominator == 0:
raise ZeroDivisionError("Denominator cannot be zero.")
# If the rational number is zero, set the denominator to 1.
if numerator == 0:
self.__numerator = 0
self.__denominator = 1
# Otherwise, store the rational number in reduced form.
else:
# Determine the sign.
if numerator * denominator < 0:
sign = -1
else:
sign = 1
# Reduce to smallest form.
a = abs(numerator)
b = abs(denominator)
while a % b != 0:
temp_a = a
a = b
b = temp_a % b
#b is greatest common divisor
self.__numerator = abs(numerator) // b * sign
self.__denominator = abs(denominator) // b
def __eq__(self, other):
'''Determines if this fraction is equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if the fractions are equal, False otherwise
'''
#don't put any characters after backslash
return self.__numerator == other.__numerator and \
self.__denominator == other.__denominator
def __add__(self, other):
'''Adds a fraction to this fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the addition
'''
num = (self.__numerator * other.__denominator + self.__denominator * other.__numerator)
den = (self.__denominator * other.__denominator)
return Fraction(num, den)
def __sub__(self, other):
'''Subtracts a fraction from this fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the subtraction
'''
num = (self.__numerator * other.__denominator - self.__denominator * other.__numerator)
den = (self.__denominator * other.__denominator)
return Fraction(num, den)
def __mul__(self, other):
'''Multiplies this fraction by another fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the multiplication
'''
num = (self.__numerator * other.__numerator)
den = (self.__denominator * other.__denominator)
return Fraction(num, den)
def __truediv__(self, other):
#have to use self as first argument
#one slash, not 2 slashes - __floordiv__
'''Divides this fraction by another fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the division
'''
num = (self.__numerator * other.__denominator)
den = (self.__denominator * other.__numerator)
return Fraction(num, den)
def __lt__(self, other):
'''Determines if this fraction is less than another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is less than the other, False otherwise
'''
return self.__numerator * other.__denominator < \
self.__denominator * other.__numerator
def __ne__(self, other):
'''Determines if this fraction is not equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if the fractions are not equal, False otherwise
'''
return not self == other
def __le__(self, other):
'''Determines if this fraction is less than or equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is less than or equal to the other, False
otherwise
'''
return not other < self
def __gt__(self, other):
'''Determines if this fraction is greater than another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is greater than the other, False otherwise
'''
return other < self
def __ge__(self, other):
'''Determines if this fraction is greater than or equal to another
fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is greater than or equal to the other, False
otherwise
'''
return not self < other
def __float__(self):
'''Converts a fraction to a floating-point number.
Returns:
the floating-point value of this fraction
'''
return float(self.__numerator) / self.__denominator
def __repr__(self):
'''Gets an official string representation of the fraction.
Returns:
a string in the format Fraction(numerator, denominator)
'''
#using name of the class without writing it
return self.__class__.__name__ + '(' + str(self.__numerator) +',' + str(self.__denominator) + ')'
def __str__(self):
'''Gets a user-friendly string representation of the fraction.
Returns:
a string in the format numerator/denominator
'''
return str(self.__numerator) + '/' + str(self.__denominator)
if __name__ == '__main__':
f = Fraction(1, 2)
g = Fraction(4,8)
print(f,g)
print(Fraction(1,2) * Fraction(3,5))
print(Fraction(20,5) / Fraction(2,1))
print(f == g)
print(f <= g)
print(f < g)
print(f >= g)
print(f > g)
h = Fraction(1,3)
print(repr(h))
print(h)
print(float(h))
print(Fraction.__init__.__doc__) #prints doc string
lst = [Fraction(2,5), Fraction(1,2), Fraction(1,6), Fraction(1,3)]
lst.sort() #uses our revised functions
print(lst)
print(h)
h._Fraction__numerator = 3
print(h) #it is not private? code is broken - name mangling (python does not allow for private stuff)
"""Encapsulation - within the class, we've enclosed all the member variables and methods
needed to perform the required functionality"""
| """
Created on Nov 14, 2017
@author: jschm
"""
class Fraction(object):
"""Defines an immutable rational number with common arithmetic operations.
"""
def __init__(self, numerator=0, denominator=1):
"""Constructs a rational number (fraction) initialized to zero or a user
specified value.
Args:
numerator: the numerator of the fraction. (Default is 0).
denominator: the denominator of the fraction (Default is 1).
Raises:
ZeroDivisionError: if the user tries to construct a fraction with
the denominator 0.
"""
if denominator == 0:
raise zero_division_error('Denominator cannot be zero.')
if numerator == 0:
self.__numerator = 0
self.__denominator = 1
else:
if numerator * denominator < 0:
sign = -1
else:
sign = 1
a = abs(numerator)
b = abs(denominator)
while a % b != 0:
temp_a = a
a = b
b = temp_a % b
self.__numerator = abs(numerator) // b * sign
self.__denominator = abs(denominator) // b
def __eq__(self, other):
"""Determines if this fraction is equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if the fractions are equal, False otherwise
"""
return self.__numerator == other.__numerator and self.__denominator == other.__denominator
def __add__(self, other):
"""Adds a fraction to this fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the addition
"""
num = self.__numerator * other.__denominator + self.__denominator * other.__numerator
den = self.__denominator * other.__denominator
return fraction(num, den)
def __sub__(self, other):
"""Subtracts a fraction from this fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the subtraction
"""
num = self.__numerator * other.__denominator - self.__denominator * other.__numerator
den = self.__denominator * other.__denominator
return fraction(num, den)
def __mul__(self, other):
"""Multiplies this fraction by another fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the multiplication
"""
num = self.__numerator * other.__numerator
den = self.__denominator * other.__denominator
return fraction(num, den)
def __truediv__(self, other):
"""Divides this fraction by another fraction.
Args:
other: the right-hand side fraction
Returns:
a new Fraction object resulting from the division
"""
num = self.__numerator * other.__denominator
den = self.__denominator * other.__numerator
return fraction(num, den)
def __lt__(self, other):
"""Determines if this fraction is less than another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is less than the other, False otherwise
"""
return self.__numerator * other.__denominator < self.__denominator * other.__numerator
def __ne__(self, other):
"""Determines if this fraction is not equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if the fractions are not equal, False otherwise
"""
return not self == other
def __le__(self, other):
"""Determines if this fraction is less than or equal to another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is less than or equal to the other, False
otherwise
"""
return not other < self
def __gt__(self, other):
"""Determines if this fraction is greater than another fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is greater than the other, False otherwise
"""
return other < self
def __ge__(self, other):
"""Determines if this fraction is greater than or equal to another
fraction.
Args:
other: the right-hand side fraction
Returns:
True if this fraction is greater than or equal to the other, False
otherwise
"""
return not self < other
def __float__(self):
"""Converts a fraction to a floating-point number.
Returns:
the floating-point value of this fraction
"""
return float(self.__numerator) / self.__denominator
def __repr__(self):
"""Gets an official string representation of the fraction.
Returns:
a string in the format Fraction(numerator, denominator)
"""
return self.__class__.__name__ + '(' + str(self.__numerator) + ',' + str(self.__denominator) + ')'
def __str__(self):
"""Gets a user-friendly string representation of the fraction.
Returns:
a string in the format numerator/denominator
"""
return str(self.__numerator) + '/' + str(self.__denominator)
if __name__ == '__main__':
f = fraction(1, 2)
g = fraction(4, 8)
print(f, g)
print(fraction(1, 2) * fraction(3, 5))
print(fraction(20, 5) / fraction(2, 1))
print(f == g)
print(f <= g)
print(f < g)
print(f >= g)
print(f > g)
h = fraction(1, 3)
print(repr(h))
print(h)
print(float(h))
print(Fraction.__init__.__doc__)
lst = [fraction(2, 5), fraction(1, 2), fraction(1, 6), fraction(1, 3)]
lst.sort()
print(lst)
print(h)
h._Fraction__numerator = 3
print(h)
"Encapsulation - within the class, we've enclosed all the member variables and methods\nneeded to perform the required functionality" |
"""
The dictionaries are blocks and they the present by '{}' , inside every block is
represented by two elements, one key and one value, separated by ':' and with ','
separated every block
Example: name = {key1:value1, key2:value2,.......}
And inside the values you can have tuple, list, numbers, strings, all types of data
"""
Users = {"name": "Carlos", "surname": "Perez", "years": 20}
"""
values() is a method that return all values that has the dictionaries
keys() is a method that return all keys that has the dictionaries
"""
print(Users.values())
print(Users.keys())
"""
If you need a values specific, you can used the method get() and inside specific the key
"""
print(Users.get("name"))
"""
clear() is a method for empty the dictionaries
copy() is a method for copied the block of a dictionaries in other dictionaries
"""
UsersCopy = Users.copy()
print(UsersCopy)
Users.clear()
print(Users)
"""
update() is a method for update the dictionaries, you can add a new block placing
other key or change the value of a block, placing the same key
"""
UserNewData = {"name": "Andres"}
UsersCopy.update(UserNewData)
print(UsersCopy)
| """
The dictionaries are blocks and they the present by '{}' , inside every block is
represented by two elements, one key and one value, separated by ':' and with ','
separated every block
Example: name = {key1:value1, key2:value2,.......}
And inside the values you can have tuple, list, numbers, strings, all types of data
"""
users = {'name': 'Carlos', 'surname': 'Perez', 'years': 20}
'\nvalues() is a method that return all values that has the dictionaries\nkeys() is a method that return all keys that has the dictionaries\n'
print(Users.values())
print(Users.keys())
'\nIf you need a values specific, you can used the method get() and inside specific the key\n'
print(Users.get('name'))
'\nclear() is a method for empty the dictionaries\ncopy() is a method for copied the block of a dictionaries in other dictionaries\n'
users_copy = Users.copy()
print(UsersCopy)
Users.clear()
print(Users)
'\nupdate() is a method for update the dictionaries, you can add a new block placing \nother key or change the value of a block, placing the same key\n'
user_new_data = {'name': 'Andres'}
UsersCopy.update(UserNewData)
print(UsersCopy) |
'''
Created on Nov 22, 2010
@author: johantenbroeke
'''
| """
Created on Nov 22, 2010
@author: johantenbroeke
""" |
# First we'll start an undo action, then Ctrl-Z will undo the actions of the whole script
editor.beginUndoAction()
# Do a Python regular expression replace, full support of Python regular expressions
# This replaces any three uppercase letters that are repeated,
# so ABDABD, DEFDEF or DGBDGB etc. the first 3 characters,
# so ABD, DEF and DGB in these cases.
editor.rereplace(r"([A-Z]{3})\1", r"\1")
# Do a multi-line Python regular expression replace.
# This example replaces any <br/> that is followed by another on the next line (with optional spaces in between), with a single one
editor.rereplace(r"<br/>\s*\r\n\s*<br/>", "<br/>\r\n")
# End the undo action, so Ctrl-Z will undo the above two actions
editor.endUndoAction() | editor.beginUndoAction()
editor.rereplace('([A-Z]{3})\\1', '\\1')
editor.rereplace('<br/>\\s*\\r\\n\\s*<br/>', '<br/>\r\n')
editor.endUndoAction() |
"""Define function to sort and merge an unsorted array."""
def mergesort(arr):
"""Define merge sort."""
left = arr[:len(arr)//2]
right = arr[len(arr)//2:]
if len(left) > 1:
left = mergesort(left)
if len(right) > 1:
right = mergesort(right)
lst = []
i, j = 0, 0
while i < len(left) and j < len(right):
if left[i] < right[j]:
lst.append(left[i])
i += 1
elif left[i] > right[j]:
lst.append(right[j])
j += 1
else:
lst.append(left[i])
lst.append(right[j])
i += 1
j += 1
for _ in range(i, len(left)):
lst.append(left[_])
for _ in range(j, len(right)):
lst.append(right[_])
return lst
| """Define function to sort and merge an unsorted array."""
def mergesort(arr):
"""Define merge sort."""
left = arr[:len(arr) // 2]
right = arr[len(arr) // 2:]
if len(left) > 1:
left = mergesort(left)
if len(right) > 1:
right = mergesort(right)
lst = []
(i, j) = (0, 0)
while i < len(left) and j < len(right):
if left[i] < right[j]:
lst.append(left[i])
i += 1
elif left[i] > right[j]:
lst.append(right[j])
j += 1
else:
lst.append(left[i])
lst.append(right[j])
i += 1
j += 1
for _ in range(i, len(left)):
lst.append(left[_])
for _ in range(j, len(right)):
lst.append(right[_])
return lst |
class Product(object):
def __init__(self, product_name:str, global_id, price, description="") -> None:
self.product_id = global_id
self.product_name = product_name
self.description = description
self.price = price
print("created product {0.product_name}".format(self))
def __str__(self) -> str:
return "{0.product_id}: {0.product_name}, ${0.price}".format(self) | class Product(object):
def __init__(self, product_name: str, global_id, price, description='') -> None:
self.product_id = global_id
self.product_name = product_name
self.description = description
self.price = price
print('created product {0.product_name}'.format(self))
def __str__(self) -> str:
return '{0.product_id}: {0.product_name}, ${0.price}'.format(self) |
# Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17
num = int(input("Enter number: "))
def bubbles_sum(num):
sum = 0
for a in range(1, num + 1):
sum = sum + a
if (a % 3 == 0 or a % 5 == 0) :
sum = sum + a
print(sum)
| num = int(input('Enter number: '))
def bubbles_sum(num):
sum = 0
for a in range(1, num + 1):
sum = sum + a
if a % 3 == 0 or a % 5 == 0:
sum = sum + a
print(sum) |
# The channel to send the log messages to
CHANNEL_NAME = "voice-log"
# The bot token
BOT_TOKEN = "NDI3NTIyNzMxNjgxsasdsagsadshvbn,.fgsfgjfkLHEGROoAxA"
| channel_name = 'voice-log'
bot_token = 'NDI3NTIyNzMxNjgxsasdsagsadshvbn,.fgsfgjfkLHEGROoAxA' |
"""Contains some global switches"""
# Master switches: turn them on (True) to immediately switch phase
master_proceed_to_day = False
master_proceed_to_dawn = False
master_proceed_to_night = False
master_proceed_to_nomination = False
def init_switches():
"""Initialize (reset) these global switches"""
global master_proceed_to_day
global master_proceed_to_night
global master_proceed_to_dawn
global master_proceed_to_nomination
master_proceed_to_day = False
master_proceed_to_dawn = False
master_proceed_to_night = False
master_proceed_to_nomination = False
| """Contains some global switches"""
master_proceed_to_day = False
master_proceed_to_dawn = False
master_proceed_to_night = False
master_proceed_to_nomination = False
def init_switches():
"""Initialize (reset) these global switches"""
global master_proceed_to_day
global master_proceed_to_night
global master_proceed_to_dawn
global master_proceed_to_nomination
master_proceed_to_day = False
master_proceed_to_dawn = False
master_proceed_to_night = False
master_proceed_to_nomination = False |
# use the function blackbox(lst) that is already defined
lst = ["a", "b", "c"]
blackbox_lst = blackbox(lst)
print("modifies" if id(lst) == id(blackbox_lst) else "new")
| lst = ['a', 'b', 'c']
blackbox_lst = blackbox(lst)
print('modifies' if id(lst) == id(blackbox_lst) else 'new') |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 22 17:46:31 2022
@author: victor
"""
bikes = []
bikes.append('trek')
bikes.append('giant')
bikes.append('redline')
print(bikes) | """
Created on Sat Jan 22 17:46:31 2022
@author: victor
"""
bikes = []
bikes.append('trek')
bikes.append('giant')
bikes.append('redline')
print(bikes) |
expected_output = {
"instance": {
"default": {
"vrf": {
"EVPN-BGP-Table": {
"address_family": {
"l2vpn evpn": {
"prefixes": {
"[3][40.0.0.3:164][0][32][40.0.0.7]/17": {
"table_version": "234",
"nlri_data": {
"route-type": "3",
"rd": "40.0.0.3:164",
"eti": "0",
"ip_len": "32",
"orig_rtr_id": "40.0.0.7",
"subnet": "17"
},
"available_path": "1",
"best_path": "1",
"paths": "1 available, best #1, table EVPN-BGP-Table",
"index": {
1: {
"next_hop": "40.0.0.3",
"gateway": "20.0.102.3",
"originator": "20.0.102.3",
"next_hop_via": "default",
"update_group": 13,
"localpref": 100,
"origin_codes": "i",
"status_codes": "*>",
"refresh_epoch": 1,
"route_info": "Local",
"route_status": "Received from a RR-client",
"ext_community": "RT:10:23000 ENCAP:8",
"pmsi": {
"tun_type": "IR",
"vni": "22993",
"tun_id": {
"tun_endpoint": "40.0.0.3"
}
},
"recipient_pathid": "0",
"transfer_pathid": "0x0"
}
}
}
}
}
}
}
}
}
}
} | expected_output = {'instance': {'default': {'vrf': {'EVPN-BGP-Table': {'address_family': {'l2vpn evpn': {'prefixes': {'[3][40.0.0.3:164][0][32][40.0.0.7]/17': {'table_version': '234', 'nlri_data': {'route-type': '3', 'rd': '40.0.0.3:164', 'eti': '0', 'ip_len': '32', 'orig_rtr_id': '40.0.0.7', 'subnet': '17'}, 'available_path': '1', 'best_path': '1', 'paths': '1 available, best #1, table EVPN-BGP-Table', 'index': {1: {'next_hop': '40.0.0.3', 'gateway': '20.0.102.3', 'originator': '20.0.102.3', 'next_hop_via': 'default', 'update_group': 13, 'localpref': 100, 'origin_codes': 'i', 'status_codes': '*>', 'refresh_epoch': 1, 'route_info': 'Local', 'route_status': 'Received from a RR-client', 'ext_community': 'RT:10:23000 ENCAP:8', 'pmsi': {'tun_type': 'IR', 'vni': '22993', 'tun_id': {'tun_endpoint': '40.0.0.3'}}, 'recipient_pathid': '0', 'transfer_pathid': '0x0'}}}}}}}}}}} |
"""Generated config, with scaler.
Date: 2022-01-09
Change: f = 48, n = 128 with relative error constrain in 1e-3.
added zero_mask = 1e-10.
The scaler directly save the reciprocal, have some problems in the round of its reciprocal.
The error evaluation method changed for both plain-text and cipher-text.
"""
sigmoid_config = {
'breaks': [-50.0, -23.02086353302002, -23.00117015838623, -23.00114631652832, -22.96290397644043, -22.962876223027706, -22.96287603676319, -22.926005721092224, -22.92600553482771, -22.890446335077286, -22.89044614881277, -22.87312988191843, -22.873129695653915, -22.65625, -22.0703125, -21.875, -21.58203125, -21.484375, -21.2890625, -21.19140625, -20.8984375, -20.80078125, -20.751953125, -20.703125, -19.53125, -18.75, -17.96875, -17.1875, -16.40625, -15.625, -14.84375, -14.0625, -13.28125, -12.5, -11.71875, -10.9375, -10.15625, -9.375, -8.59375, -7.8125, -7.03125, -6.25, -5.46875, -4.6875, -3.90625, -3.125, -1.5625, 0.0, 1.5625, 3.125, 6.25, 25.0, 50.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[0.00398701932, 0.000319266006, 8.35443e-06, 7.1561e-08, ],
[-0.004609651251, -0.003382475498, -0.00025153453, -4.956335e-06, ],
[2.443568924838, 0.015237808418, -0.001071448385, 0.000125385714, ],
[0.109202026501, 0.006502759379, -3.3997035e-05, -4.830837e-06, ],
[0.003795294665, 0.000181086613, -3.283487e-06, -2.09687e-07, ],
[807.928583923834, 35.184100261716, 0.0, 0.0, ],
[0.110513329528, 0.006205912744, -6.7637124e-05, -5.62464e-06, ],
[0.000461372626, 0.0, 0.0, 0.0, ],
[0.015608644171, -0.005850463733, -0.000578002143, -1.2823834e-05, ],
[805.386981669484, 35.184394910007, 0.0, 0.0, ],
[0.148682338328, 0.006361740552, -0.000277233065, -1.1896364e-05, ],
[804.77772113169, 35.184394910007, 0.0, 0.0, ],
[0.02791734738, -0.003836235541, -0.000471549938, -1.0991296e-05, ],
[1.857777565079, 0.238340934316, 0.010212548128, 0.000146128887, ],
[0.183683186621, 0.009219303994, -0.000239946464, -1.2814192e-05, ],
[-0.438302705956, -0.08047002275, -0.004541200393, -8.1431103e-05, ],
[0.29047867927, 0.015596861543, -0.000332010523, -2.0149644e-05, ],
[-0.173396062055, -0.051915677482, -0.00360236141, -7.288212e-05, ],
[0.204347665331, -0.002770333895, -0.001485267861, -4.2722338e-05, ],
[3.130668565602, 0.407751898633, 0.017709607313, 0.000256412379, ],
[0.384060633392, 0.008786069493, -0.001604814706, -5.5215687e-05, ],
[0.464459025844, 0.017578793894, -0.001316670973, -5.2751809e-05, ],
[0.569795445652, 0.030454984429, -0.000809457046, -4.642299e-05, ],
[12.393312855154, 1.752391686569, 0.08278736893, 0.001306472968, ],
[28.35849717192, 4.203208499893, 0.208210086966, 0.00344625708, ],
[54.369315319399, 8.373855128197, 0.431137690337, 0.007418494544, ],
[106.117212273805, 17.033761401987, 0.914253961424, 0.016403284022, ],
[203.576816649827, 34.089925468572, 1.909332507378, 0.035756466888, ],
[389.26651982389, 68.137969500417, 3.990563669718, 0.078166831121, ],
[737.580312820157, 135.200790536874, 8.295043663876, 0.170272633304, ],
[1391.676395525416, 267.776804046227, 17.253271595774, 0.372068675205, ],
[2606.241464359107, 527.673828575312, 35.793791267158, 0.813011364004, ],
[4841.078174045158, 1034.124008207964, 74.056460334491, 1.776753583626, ],
[8908.600625741838, 2013.714664426048, 152.709552606543, 3.88219350237, ],
[16225.279258744256, 3893.726410122101, 313.764635055505, 8.482161990765, ],
[29193.556836921845, 7464.727582505348, 641.616673476718, 18.517802201465, ],
[51856.35172915142, 14187.01071688224, 1306.456354574977, 40.441446289881, ],
[90712.37062726509, 26676.77622353886, 2645.108377415158, 88.282102487219, ],
[155890.6643892056, 49539.76281835047, 5319.389388136198, 192.591491716634, ],
[262293.74270467437, 90611.3062693571, 10606.36320720412, 419.55195362967, ],
[430018.15811611747, 162575.87036799625, 20904.72515598179, 911.072215600344, ],
[682128.9810741317, 284317.88470148906, 40514.99844996233, 1964.771183079816, ],
[1035639.4459240435, 479463.8025506491, 76457.60547223434, 4173.520460766672, ],
[1479035.5923163493, 764945.084830472, 137806.89037193387, 8573.788756959639, ],
[1934390.314777591, 1115975.2676433255, 228179.66341296295, 16343.780890003678, ],
[2271477.582305388, 1442688.3819854176, 334189.02979225264, 27858.42056965208, ],
[2098807.2574304864, 1069197.0761318174, 55190.12954996164, -43418.866480025245, ],
[2095489.338059525, 1069197.0761290812, -55190.12954666437, -43418.866481168065, ],
[1922819.0128503852, 1442688.3824313267, -334189.0299862884, 27858.42059717758, ],
[2824875.51285168, 675885.8621337626, -114551.63971729192, 6608.706941762957, ],
[4172121.7922186563, 4160.245603410802, -247.810517087053, 4.722093547679, ],
[4194296.5954582347, -2.082612e-06, 1.62989e-07, -2.231e-09, ],
],
},
tanh_config = {
'breaks': [-50.0, -6.25, -0.78125, 0.0, 0.78125, 6.25, 50.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[-4194045.93541855, 81.04725611976, 10.463138575184, 0.704258478102, 0.026889953954, 0.00058642039, 6.804412e-06, 3.2576e-08, ],
[810126.6458983729, 7340700.604237439, 4704475.711939846, 1691640.5294427716, 365946.0693131795, 47378.83112188167, 3387.321196714939, 102.931349820303, ],
[0.947596785746, 4194387.117002231, 2081.209567983285, -1378059.7058902322, 98674.32465989991, 827618.6436768449, 400058.05869667773, 50783.229858411, ],
[-0.947567793221, 4194387.11483649, -2081.171600424905, -1378059.9775897914, -98673.36544149525, 827616.8732579398, -400056.4212395759, 50782.631016997955, ],
[-810130.6685373887, 7340712.763415546, -4704490.067068877, 1691649.1859599578, -365948.9786652053, 47379.3814831848, -3387.375931182968, 102.933573951061, ],
[4194045.935418548, 81.047256119806, -10.463138575191, 0.704258478103, -0.026889953954, 0.00058642039, -6.804412e-06, 3.2576e-08, ],
],
},
soft_plus_config = {
'breaks': [-20.0, -18.359375, -17.8125, -15.625, -13.4375, -11.25, -9.0625, -6.875, -4.6875, -2.5, -0.3125, 1.875, 6.25, 50.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[101.990248984024, 17.483235392741, 0.975152586375, 0.011170665848, -0.000640822284, -1.5474678e-05, ],
[25.942501887721, 2.120761240954, -0.036904826627, -0.003617744719, 0.000172668934, 7.923789e-06, ],
[1569.738573465028, 392.841311731982, 38.939569792452, 1.903103355115, 0.045588812843, 0.000424320654, ],
[10221.802869958385, 3036.975886093738, 361.071894491868, 21.446173115814, 0.63552374276, 0.007505662736, ],
[35603.079414978376, 11513.08770106031, 1471.231413480248, 92.182707733191, 2.800074890892, 0.032344003442, ],
[160671.3536358581, 62520.46925517268, 9691.474227099754, 743.850983797148, 28.057479690946, 0.411475235179, ],
[850748.4860730075, 446968.1223768878, 95799.79790873424, 10434.720040596265, 575.956571969616, 12.857823670119, ],
[2017144.149192322, 1321353.4391367515, 359524.95696972066, 50428.121673075984, 3624.368593631209, 106.255849052987, ],
[3020298.4292094633, 2379721.317270482, 811342.251332228, 148011.1516516293, 14286.954017588305, 577.647131251679, ],
[2908418.620371011, 2103977.837523053, 538379.745870657, 11767.887577989604, -20028.24621414198, -2906.476283611212, ],
[2906969.2484707027, 2097924.7410250027, 530800.4184051917, -16987.819649040128, -10739.172346407797, 0.0, ],
[2965004.3617158523, 1903118.0684465575, 756597.1504591476, -131632.224789337, 11908.853608537796, -443.192632294796, ],
[24159.949877974494, 4189189.7498553684, 397.81890063514, -14.455954764833, 0.247787205621, -0.001617694049, ],
],
},
snormal_dis_config = {
'breaks': [-5.0, -4.6875, -4.375, -3.75, -2.5, 0.0, 2.5, 3.75, 4.375, 5.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[31304.26993311414, 9130.16546364382, -1844.81978546199, -526.011308571866, 57.353080900898, 3.321006341503, -4.109487312933, -0.428353097768, ],
[119974.45879010632, 47580.55647943287, -3015.990590286581, -973.360778760376, 1237.486873833178, 395.014415959766, 40.071459102838, 1.196160897825, ],
[1421717.3776566053, 1031307.6043607326, 164737.01107375935, -32690.584175583015, -4606.937267693005, 3142.278139580568, 790.535586663009, 52.788095666519, ],
[3715122.932142754, 3333883.0658577476, 747774.7420066955, -182179.35601190457, -110575.30925502056, -16986.67754749418, -561.753626667674, 48.16881980522, ],
[1673533.3800128698, 7411.481525721444, -784376.7411539048, 152324.44435410656, 430386.40876365715, 167337.49911572924, 23090.286085915846, 666.100152429783, ],
[1673533.3803870187, -7411.48957529468, -784376.6992619456, -152324.5346228467, 430386.50553242775, -167337.5536508544, 23090.30154824131, -666.101891074295, ],
[3640594.2065956094, -3132256.5349616604, 520370.44485455274, 321617.2842362122, -160977.95331293883, 27757.15588128624, -1824.147188080396, 14.536518568956, ],
[1208675.669925383, -866707.8277553315, 150582.63085789658, 11919.162975807238, 2713.91449180321, -3907.342025584125, 774.706793877178, -47.624175447624, ],
[225060.34561747377, -97200.35296877172, -19012.206481532394, 14740.852669650061, -1187.682098772117, -482.91270246705, 101.88771139137, -5.720905524657, ],
],
},
scauchy_dis_config = {
'breaks': [-50.0, -12.5, -3.125, -1.5625, 0.0, 1.5625, 6.25, 12.5, 50.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[97248.63341904456, 20083.36092359592, 1985.328816334903, 116.357674006848, 4.321683011041, 0.102959390815, 0.001526833252, 1.2840302e-05, 4.6793e-08, ],
[1162592.4394692497, 900485.853088537, 340969.43715777266, 77509.8644109634, 11255.412887364964, 1054.029274259123, 61.672238047634, 2.051949837655, 0.029644529004, ],
[2033913.8648985175, 2389334.78350175, 1528516.9888125868, 700668.1347334182, 263499.160313978, 80707.98933717232, 17719.89760418472, 2336.449711275477, 135.58988093684, ],
[1335167.9660587362, 5267.286636123638, -1253148.882543776, 538806.0458725075, 3158496.1042466583, 3365195.2714636633, 1752385.860870584, 466963.69493033673, 50876.2343621253, ],
[1335167.96863223, -5267.407738641146, -1253147.517000925, -538812.473993154, 3158511.554611758, -3365215.854591981, 1752401.2352791475, -466969.7200421834, 50877.198380017595, ],
[2059118.043569359, -2409667.139443788, 1456407.699712485, -550726.0489455989, 137310.53922303024, -22631.072310798772, 2376.727085525736, -144.194508047845, 3.84762307433, ],
[479604.8745796233, -217577.14889334625, 44443.91061381256, -4584.46291565951, 157.824615827344, 15.116009722535, -1.97120617861, 0.087607464233, -0.00145258403, ],
[96819.04716239087, -19948.14008432831, 1967.32555219075, -115.032286206253, 4.262592212067, -0.101322959424, 0.001499293141, -1.2582302e-05, 4.5761e-08, ],
],
},
gamma_dis_config = {
'breaks': [0.0, 2.5, 5.0, 10.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[27.778670375448, 4370493.675291532, -4365291.05201621, 2167206.1260501323, -699253.2175441002, 155609.89788421427, -22192.3371535075, 1519.839684014879, ],
[798245.3159432518, 2472434.6691442183, -2354423.9968063263, 917561.614169512, -199389.27033708373, 25543.657383226317, -1818.33352599695, 55.783331926126, ],
[4461288.157574071, -2513362.898088136, 612925.1338774561, -82651.58685956625, 6510.418496914853, -287.752446254029, 5.985938119069, -0.028147716533, ],
],
},
sexp_dis_config = {
'breaks': [1e-05, 0.31250968749999997, 2.5000074999999997, 5.000005, 7.5000025, 10.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[4193364.7574642934, -4157887.3704455155, 1796903.7881006491, 0.0, 0.0, 0.0, ],
[4189712.6596682654, -4163925.9690107177, 2020635.6658743396, -602775.1929061551, 108273.33405801615, -8968.256777581586, ],
[3544591.3264654144, -2952946.301988507, 1066196.3636716001, -205316.2116045786, 20776.88833314614, -872.822702581336, ],
[1781678.9951623098, -1117221.369676658, 289279.3399066672, -38419.914571291985, 2603.771010084266, -71.732986127335, ],
[573976.5559249318, -279374.46842363675, 55251.428167102706, -5534.823818602391, 280.220142642649, -5.725620461664, ],
],
},
chi_square_config = {
'breaks': [0.0, 0.78125, 3.125, 6.25, 9.375, 12.5, 15.625, 18.75, 21.875, 25.0, 28.125, 31.25, 35.9375, 37.5, 39.0625, 42.1875, 43.75, 46.09375, 47.265625, 47.65625, 47.8515625, 48.046875, 49.21875, 50.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[2.633441150834, 1092728.9144141169, -545481.3827921028, 133341.74702396255, -17860.708524061814, ],
[19113.198247381682, 1030861.0442907239, -468582.0444834488, 87993.01136196367, -6650.871566929995, ],
[551187.2275055703, 385613.4849649353, -163674.79991835158, 21294.81684114599, -961.228131802494, ],
[1624339.441034664, -339721.9720143102, 22679.589341669634, -246.164578373642, -17.553125051984, ],
[1876716.0995595504, -461669.6276171044, 44674.10928103387, -2002.503525663182, 34.87074068853, ],
[1396628.1536118898, -309130.2230161316, 26442.366404456392, -1030.960874220241, 15.394606022949, ],
[803048.2287268342, -155755.10674898268, 11548.437974838385, -386.773274301008, 4.924355347912, ],
[388757.230944264, -66355.70888842308, 4303.331635308104, -125.431726925591, 1.384189721931, ],
[167601.0515877717, -25447.677607674636, 1462.732158532948, -37.675127480918, 0.366487061576, ],
[63114.682330625576, -8569.204305638894, 439.37469704111, -10.074389618197, 0.08709216139, ],
[21689.031920045098, -2654.822462991433, 122.509408784946, -2.52439491857, 0.019587488472, ],
[6557.667075833707, -725.863031075515, 30.249125998658, -0.5622300182, 0.003930983085, ],
[164.717815387793, -3.662838482048, -0.367322737727, 0.015032798448, -0.000153354373, ],
[93.578321649794, -2.42028813585, -0.162017454274, 0.006827318496, -6.8125109e-05, ],
[418.767571815519, -38.491868800087, 1.33023200346, -0.02047990636, 0.000118492219, ],
[29.39151117008, -1.755300811364, 0.030351463853, -3.5752273e-05, -2.097012e-06, ],
[50.510267214252, -4.074983181051, 0.123253745211, -0.001655791098, 8.332248e-06, ],
[6.345810039409, -0.350025288389, 0.005575013118, -5.541983e-06, -3.34293e-07, ],
[0.355807867984, -0.014772520498, 0.00036417105, -8.342798e-06, 8.2672e-08, ],
[0.079911567574, 0.005672092545, -0.000238430799, 1.38746e-07, 3.4626e-08, ],
[0.234371388425, 0.034594471822, -0.002477441427, 5.0188312e-05, -3.26901e-07, ],
[0.92465180232, 0.006132369987, -0.002508207143, 6.3562473e-05, -4.6485e-07, ],
[0.99339365892, -0.025508747209, -0.000744989288, 2.8791656e-05, -2.32589e-07, ],
],
},
slog_dis_config = {
'breaks': [0.001, 0.0022206420898437497, 0.005882568359375, 0.040060546875, 0.1572421875, 1.2509375, 5.00075, 10.0005, 20.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[0.268626462114, -1175.322435991052, 2086915.8118898626, -1861216224.7804956, 753737048776.9146, 0.0, 0.0, 0.0, ],
[-4.017171180823, 3872.335253195195, 642862.6598793622, -2289145194.2375584, 1048043128944.0438, -42204023033820.9, 0.0, 0.0, ],
[-916.909970836132, 568734.4835124938, -145531775.45853516, 17816966566.259033, -437578342697.19763, 5200615954744.682, -25956540754680.117, 0.0, ],
[88677.84013405546, -11238694.421728892, 546463980.4795989, -5366724537.81832, 28977360342.438774, -92939497805.85388, 160845353115.72794, -108356412192.32516, ],
[-1366725.4544273522, 35080284.704431385, -118514860.12695184, 214550352.55726737, -238770767.85162464, 162641519.9148953, -62130989.8920718, 10184500.096544107, ],
[4915442.06884933, -5445579.99049578, 3068014.287737718, -1068728.9057128155, 238873.04358133572, -33415.457416519406, 2666.426128012068, -92.677074524944, ],
[2172029.495401563, -1418118.9298525134, 434370.3094184368, -78174.94994270892, 8750.367131815334, -601.717127220767, 23.351852536198, -0.392492299234, ],
[566190.3710634038, -209511.98409202718, 35161.3715728029, -3396.672848478098, 201.401683126878, -7.270930099694, 0.147195944012, -0.001284382678, ],
],
},
reciprocal_config = {
'breaks': [1e-05, 1.0727595761345585e-05, 1.1455191522691167e-05, 1.2910383045382332e-05, 1.4365574568073499e-05, 1.5820766090764666e-05, 1.727595761345583e-05, 1.8731149136146995e-05, 2.164153218152933e-05, 2.4551915226911662e-05, 2.7462298272293992e-05, 3.0372681317676325e-05, 3.328306436305866e-05, 4.4924596544587984e-05, 5.656612872611732e-05, 7.984919308917597e-05, 0.00010313225745223464, 0.0001264153218152933, 0.00014969838617835197, 0.00019626451490446927, 0.00024283064363058658, 0.0002893967723567039, 0.0003825290298089385, 0.0005687935447134078, 0.000755058059617877, 0.0009413225745223462, 0.0011275870894268156, 0.001500116119235754, 0.0018726451490446924, 0.002245174178853631, 0.002990232238471508, 0.003735290298089385, 0.004480348357707262, 0.005970464476943016, 0.008950696715414524, 0.011930928953886033, 0.014911161192357542, 0.01789139343082905, 0.023851857907772066, 0.02981232238471508, 0.0357727868616581, 0.04769371581554413, 0.0715355737233162, 0.09537743163108826, 0.11921928953886032, 0.1430611474466324, 0.19074486326217652, 0.23842857907772064, 0.2861122948932648, 0.381479726524353, 0.5722145897865296, 0.7629494530487061, 1.1444191795730592, 1.5258889060974121, 2.2888283591461183, 3.051767812194824, 6.103525624389649, 9.155283436584472, 12.207041248779298, 18.31055687316895, 24.414072497558596, 36.621103746337894, 48.82813499511719, 97.65625999023437, 146.48438498535157, 195.31250998046875, 292.9687599707031, 390.6250099609375, 781.2500099218751, 1171.8750098828127, 1562.5000098437501, 2343.7500097656252, 3125.0000096875, 6250.000009375, 9375.0000090625, 12500.000008750001, 18750.000008125004, 25000.000007500003, 37500.000006250004, 50000.000005, 75000.0000025, 87500.00000125001, 100000.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[1214848305201.7212, -1.1726175021863675e+17, 3.7719172330132954e+21, 0.0, ],
[1135067767149.0073, -1.0236924063621528e+17, 3.076821157374724e+21, 0.0, ],
[1034639238440.2142, -8.5013176464605e+16, 2.32675958220783e+21, 0.0, ],
[923916702238.2401, -6.780114081398221e+16, 1.6575704308591333e+21, 0.0, ],
[834625529784.4006, -5.533505341471934e+16, 1.222321204806124e+21, 0.0, ],
[761087120022.1727, -4.601716534457355e+16, 9.270768758998886e+20, 0.0, ],
[699467689173.8698, -3.88698264416475e+16, 7.19770543010074e+20, 0.0, ],
[624919327864.6323, -3.100369813020414e+16, 5.121872698607899e+20, 0.0, ],
[545846649207.2183, -2.365998201672148e+16, 3.415788826842872e+20, 0.0, ],
[484563947718.2919, -1.864870553331774e+16, 2.390849742977128e+20, 0.0, ],
[435668041872.8745, -1.5076835876799296e+16, 1.7382926289623145e+20, 0.0, ],
[395744655418.059, -1.2441350109558014e+16, 1.3032167744002246e+20, 0.0, ],
[433807307180.66315, -1.6771223034780776e+16, 2.8724647613555356e+20, -1.83904142289776e+24, ],
[332780975171.7099, -9882410408571190.0, 1.3018487612612487e+20, -6.419024811178374e+23, ],
[249582927729.615, -5545615624566329.0, 5.453308489413506e+19, -2.0025278239473964e+23, ],
[184857408409.9937, -3048082795019133.0, 2.22852795386553e+19, -6.0957962449103176e+22, ],
[146923264876.5295, -1927119505425625.5, 1.1217621852588933e+19, -2.4450240852089985e+22, ],
[121952047914.95476, -1328329695346346.5, 6.423863148464207e+18, -1.1637915372956364e+22, ],
[97866458121.68951, -854078618021366.9, 3.304008079042826e+18, -4.780625268936685e+21, ],
[76844381560.47073, -527097754273004.75, 1.6042939407275036e+18, -1.8281298285779165e+21, ],
[63284510011.637596, -357674764737716.44, 8.974673456440484e+17, -8.4353589328015e+20, ],
[50417451722.47956, -226632331059323.06, 4.5151540491469357e+17, -3.3639923698694075e+20, ],
[35957455256.58562, -114946300440941.16, 1.623981842486456e+17, -8.556464405434568e+19, ],
[25597088402.53554, -58412225839135.836, 5.907306166399155e+16, -2.2339335182340452e+19, ],
[19898613589.70386, -35339575208248.94, 2.784598230247185e+16, -8.213787717481314e+18, ],
[16283600889.486416, -23679144817850.81, 1.5285962690313482e+16, -3.696119716467635e+18, ],
[12897918385.70013, -14830045297332.854, 7556464048147028.0, -1.4396960916661842e+18, ],
[10009021895.759388, -8941078010902.893, 3543576383428429.0, -5.25732060415756e+17, ],
[8181660824.292896, -5977823526747.435, 1938880186054058.5, -2.3554852191102733e+17, ],
[6474096226.651072, -3736385371039.796, 955581368496632.8, -9.13797768392177e+16, ],
[5019575068.292841, -2248722730118.6396, 446944866647957.44, -3.325356442569236e+16, ],
[4100866197.2357106, -1501788706260.6936, 244143872857263.0, -1.4866264827703008e+16, ],
[3243369549.145814, -937737440654.8092, 120144705208591.86, -5755586122700288.0, ],
[2294356414.664274, -467881653543.9552, 42158964274085.13, -1416355592706204.8, ],
[1623269828.1805296, -234891510207.94733, 15061908401411.326, -361120198130006.06, ],
[1257733259.0418537, -141180792034.89288, 7030857671436.026, -131070142502106.73, ],
[1027108083.0408603, -94208054109.11949, 3835851538441.582, -58499574399535.16, ],
[812031755.4214405, -58780146101.66049, 1885485273287.6787, -22613797507881.88, ],
[629103856.3656212, -35321784434.630844, 879848642648.5188, -8204186027217.122, ],
[513711869.80238444, -23566474819.65455, 479922598999.8428, -3660704084411.957, ],
[406115161.67893225, -14702203003.390936, 235857580936.91092, -1414733125330.8018, ],
[287145121.4881742, -7328429805.452841, 82640531249.98502, -347454375022.0402, ],
[203082409.8565995, -3676447012.5617747, 29492950085.99371, -88463694254.62822, ],
[157320466.87547022, -2208858811.3929977, 13759266945.734987, -32083696775.96685, ],
[128457622.91012286, -1473584168.2328494, 7503974155.046968, -14312790746.9261, ],
[101547414.69153644, -919223841.3690333, 3687291183.8983016, -5530321606.418934, ],
[78663955.72269376, -552266874.2642107, 1720151679.0648403, -2005608621.6891162, ],
[64231264.76572271, -368424151.6847547, 938104000.7680513, -894685614.849884, ],
[50775258.94795117, -229819964.4003704, 460953405.3410016, -345686980.5560453, ],
[35898625.827740006, -114541514.27543631, 161480441.84307322, -84878698.27466165, ],
[25388017.297504853, -57456741.300646536, 57621800.728921734, -21606744.87199083, ],
[17949508.746989015, -28635999.75656981, 20185708.216685258, -5305146.1426766105, ],
[12694106.167835038, -14364405.377651522, 7202890.119223511, -1350462.688238372, ],
[8974803.38633344, -7159077.675340518, 2523254.3853634074, -331578.75150387816, ],
[6347077.228802648, -3591128.5851397156, 900371.4792873418, -84405.1909881744, ],
[3883943.146521119, -1325461.4724356544, 197649.8234867383, -10873.444182561774, ],
[2243710.031715976, -447445.9967070064, 39426.32833293847, -1295.250339730292, ],
[1586773.8710038532, -224446.8238585654, 14068.425039578748, -329.711537175173, ],
[1121855.7814935807, -111861.65096726571, 4928.301014271693, -80.953363389819, ],
[793387.3167701394, -56111.7597367675, 1758.555650399108, -20.607010338639, ],
[560928.0789783113, -27965.431398902678, 616.038239636852, -5.059591884258, ],
[396693.7506751451, -14027.94644155921, 219.8196087988, -1.287939333991, ],
[242747.0049307499, -5177.607288408621, 48.254673258057, -0.165917042613, ],
[140232.0568260839, -1747.84038162402, 9.625605044631, -0.019764051351, ],
[99173.45564041885, -876.746969419574, 3.434683243725, -0.005031016638, ],
[70116.03098505261, -436.960127229206, 1.203200761117, -0.001235253387, ],
[49586.72854752321, -219.186748739082, 0.429335424113, -0.000314438558, ],
[30343.37965829213, -80.900135066137, 0.094247445105, -4.0507111e-05, ],
[17529.00817095287, -27.310009264045, 0.018800013237, -4.825209e-06, ],
[12396.68310550891, -13.699173936784, 0.006708367573, -1.228276e-06, ],
[8764.5072674914, -6.827507283297, 0.002350004218, -3.01576e-07, ],
[6198.336504560807, -3.424787899638, 0.000838543896, -7.6767e-08, ],
[3792.880995880726, -1.264036807841, 0.000184070975, -9.889e-09, ],
[2191.112274199987, -0.426713529058, 3.6718083e-05, -1.178e-09, ],
[1549.750722987758, -0.214095317269, 1.3106478e-05, -3e-10, ],
[1096.952247626264, -0.106950838807, 4.607339e-06, -7.4e-11, ],
[777.460136258028, -0.053881248262, 1.654716e-06, -1.9e-11, ],
[559.645007917267, -0.027827535868, 6.11074e-07, -5e-12, ],
[373.221419571156, -0.012398055232, 1.8223e-07, -1e-12, ],
[205.363276649164, -0.00332413008, 1.779e-08, 0.0, ],
[155.314246541756, -0.001914806752, 7.86e-09, 0.0, ],
[134.508750860544, -0.001436589214, 5.11e-09, 0.0, ],
],
},
func_sqrt_config = {
'breaks': [1e-05, 2.164153218152933e-05, 3.328306436305866e-05, 0.00010313225745223464, 0.0003825290298089385, 0.001500116119235754, 0.005970464476943016, 0.023851857907772066, 0.09537743163108826, 0.381479726524353, 1.5258889060974121, 3.051767812194824, 6.103525624389649, 12.207041248779298, 24.414072497558596, 48.82813499511719, 97.65625999023437, 195.31250998046875, 390.6250099609375, 781.2500099218751, 1562.5000098437501, 3125.0000096875, 6250.000009375, 12500.000008750001, 25000.000007500003, 50000.000005, 100000.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.60718e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 5.899382e-06, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.000133487768, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.003020483497, ],
],
'coeffA': [
[6087.910008000412, 806670578.0734799, -8653686004226.553, 0.0, 0.0, ],
[8171.21797943674, 604109148.1665217, -3687851762744.753, 0.0, 0.0, ],
[10182.584790670635, 500285782.8155899, -2610996141480.068, 7848463135519062.0, 0.0, ],
[18847.727982598903, 269181067.6290992, -402305769971.454, 342153175562074.94, 0.0, ],
[36874.74801490772, 137394595.18648067, -53303552697.465836, 11722041982805.848, 0.0, ],
[63875.0675036597, 81243211.8323662, -12246872544.72834, 1406578316151.286, -69037902436265.23, ],
[127562.9832354304, 40678055.35278445, -1536924822.06809, 44232420855.43458, -543912908102.1798, ],
[255032.24777690784, 20346105.918614928, -192306022.7686363, 1384438736.904362, -4258277745.4704275, ],
[510017.61820003367, 10173938.433720784, -24044210.27647331, 43280732.28136732, -33285322.291408498, ],
[1020011.7952173861, 5087079.924153827, -3005712.5097418283, 1352655.916783002, -260075.8292175082, ],
[1692159.6696493637, 3098755.2841766533, -699881.5910587178, 124813.04853557886, -9811.461488348765, ],
[2393072.202723289, 2191153.542146234, -247446.40146300496, 22064.169094807177, -867.225978137874, ],
[3384313.2073925077, 1549380.4117955733, -87485.66182447817, 3900.441717429753, -76.652965111606, ],
[4786140.080081948, 1095577.7479335656, -30930.881822571235, 689.508277878265, -6.775243615287, ],
[6768623.12273683, 774690.5780275554, -10935.723289833188, 121.889089123498, -0.598853228913, ],
[9572278.011501513, 547788.9952693733, -3866.362762028228, 21.547156914181, -0.052931669623, ],
[13537244.57738656, 387345.33616976056, -1366.965904372728, 3.809036297159, -0.004678544693, ],
[19144554.908571858, 273894.51337321516, -483.295427493586, 0.6733488421, -0.000413528829, ],
[27074488.535208836, 193672.672457932, -170.870749479676, 0.119032397413, -3.6551136e-05, ],
[38289108.04590936, 136947.263011236, -60.411936770362, 0.02104215612, -3.230695e-06, ],
[54148970.22213954, 96836.34850722857, -21.358851799828, 0.003719764764, -2.85556e-07, ],
[76578130.68216178, 68473.7081388537, -7.551517437059, 0.000657571041, -2.524e-08, ],
[108298695.04328549, 48417.83570473754, -2.669800497596, 0.000116238604, -2.04e-09, ],
[153070905.49426642, 34256.001331673455, -0.945522627109, 2.0606287e-05, -8e-12, ],
[247809860.0169848, 20708.084443096737, -0.189014151239, 1.01824e-06, 0.0, ],
[350456064.8803675, 14642.82693697629, -0.066826594066, 1.80001e-07, 0.0, ],
],
},
func_log_config = {
'breaks': [1e-05, 2.164153218152933e-05, 3.328306436305866e-05, 5.656612872611732e-05, 0.00010313225745223464, 0.00019626451490446927, 0.0003825290298089385, 0.000755058059617877, 0.001500116119235754, 0.002990232238471508, 0.005970464476943016, 0.011930928953886033, 0.023851857907772066, 0.04769371581554413, 0.09537743163108826, 0.19074486326217652, 0.381479726524353, 0.7629494530487061, 0.9536843163108826, 1.1444191795730592, 3.051767812194824, 6.103525624389649, 12.207041248779298, 24.414072497558596, 48.82813499511719, 97.65625999023437, 195.31250998046875, 390.6250099609375, 781.2500099218751, 1562.5000098437501, 3125.0000096875, 6250.000009375, 12500.000008750001, 25000.000007500003, 50000.000005, 100000.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.244446e-06, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.1702877e-05, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.00037591392, ],
],
'coeffA': [
[-52907053.3045768, 554553863780.7839, -8905895621876480.0, 0.0, 0.0, ],
[-50422688.6381559, 309883064726.99286, -2835734590041575.0, 0.0, 0.0, ],
[-49803838.16343454, 287254943815.1977, -3246175253784058.5, 1.6145071290316872e+19, 0.0, ],
[-47426743.40076958, 162745338395.53778, -1039039657857159.8, 2.9117842886391793e+18, 0.0, ],
[-44814214.37720375, 87212018647.7152, -297817124138036.56, 4.456130710021452e+17, 0.0, ],
[-42063189.662707984, 45235225498.05543, -80033296736474.42, 6.198002158756902e+16, 0.0, ],
[-39236492.50062724, 23049120381.059166, -20766581879536.742, 8185027439644241.0, 0.0, ],
[-37425253.15901713, 15567664233.638752, -10692683575157.012, 4296634858971709.5, -7.193659113579882e+17, ],
[-34538681.5061307, 7821824209.159908, -2698987254734.0093, 544777830605097.44, -4.5810839640771816e+16, ],
[-31641805.98102574, 3920483377.9127536, -678010034800.1215, 68585422486020.67, -2890232433176117.0, ],
[-28739746.13294046, 1962643555.8745673, -169912665840.36423, 8603910538442.83, -181492515586615.56, ],
[-25835086.44801704, 981923398.3475907, -42529579342.841484, 1077416613472.3837, -11370057413736.934, ],
[-22929124.97508764, 491112264.25358987, -10638831095.250317, 134797796220.59602, -711467273997.1382, ],
[-20022512.040494416, 245593795.2497136, -2660512949.3026605, 16857277134.570581, -44492945509.4718, ],
[-17115573.207356904, 122806316.31796865, -665228926.4476411, 2107631928.0102031, -2781629638.484502, ],
[-14208471.338917349, 61405512.64114904, -166319817.40497124, 263483509.6372729, -173877496.40379688, ],
[-11301287.767603613, 30703343.434013497, -41581523.53558351, 32937278.885669306, -10868142.852881767, ],
[-9402678.505221475, 19643965.89592554, -17226558.165984664, 8939710.934655428, -1954491.0447710238, ],
[-8558114.346234925, 16064958.347902356, -11526537.362982642, 4896345.566269092, -876652.1313933254, ],
[-6064262.567726699, 8748236.541592587, -3330755.912324062, 732478.1879922964, -66338.68968723173, ],
[-2579564.545375263, 3837982.356228537, -649732.8307702426, 64333.778327958426, -2653.526527654393, ],
[327695.17549985193, 1918993.4983586718, -162433.59535260298, 8041.750708322973, -165.846179546145, ],
[3234957.479452729, 959497.3261013938, -40608.44703090038, 1005.220604862897, -10.36541020031, ],
[6142221.035866809, 479748.81013977714, -10152.117900540805, 125.652688158264, -0.647838901299, ],
[9049485.321816122, 239874.4373968575, -2538.030149555125, 15.706592195852, -0.040489952289, ],
[11956749.793250307, 119937.2296833339, -634.507652342515, 1.963324551918, -0.002530622914, ],
[14864014.433238434, 59968.61795596701, -158.626929410987, 0.245415606498, -0.000158163964, ],
[17771279.369304083, 29984.30841914865, -39.656730854532, 0.030676949064, -9.885247e-06, ],
[20678544.120356895, 14992.154596675364, -9.914183223197, 0.003834618927, -6.17828e-07, ],
[23585815.81089784, 7496.065039027543, -2.47853769745, 0.000479325022, -3.8614e-08, ],
[26493244.634272583, 3747.885396141649, -0.619585772235, 5.9908597e-05, -2.413e-09, ],
[29399197.779824484, 1874.531192611712, -0.154993747405, 7.495606e-06, -1.51e-10, ],
[32194344.898805153, 962.41615521808, -0.040827690483, 1.012075e-06, -2e-12, ],
[36270094.35686787, 350.149243450115, -0.004789457388, 2.8642e-08, 0.0, ],
[39177359.21527551, 175.074621774201, -0.001197364348, 3.58e-09, 0.0, ],
],
},
func_exp_config = {
'breaks': [-10.0, -7.5, -5.0, 0.0, 2.5, 5.0, 7.5, 10.0],
'scaler': [
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, ],
],
'coeffA': [
[526952.2236450694, 247495.47145293362, 51015.33095497295, 7447.281491148959, 1097.510263564984, 142.092043351885, 11.974457047043, 0.548200730254, 0.010355932269, ],
[775084.8766015827, 33752.70090109223, -179080.789804224, -59704.04657927617, -5222.771272765303, 755.861943742096, 202.609535057021, 16.556411699872, 0.486267137349, ],
[4194247.734624573, 4193367.576124194, 2092860.1099856922, 690577.6781143154, 165863.70720933672, 29418.57274474665, 3664.512625284119, 283.083987752937, 10.055028216333, ],
[4194299.566074874, 4194188.758756912, 2098087.7434277167, 695606.5097762228, 181297.2991822334, 27911.819635815176, 10252.73388052373, -741.719121318769, 378.292902135551, ],
[-24208208.45235331, 59483065.98257767, -41621895.13667925, 17833594.620398935, -2618780.848042712, -241461.34205112996, 208304.99786753883, -33565.73686248778, 2353.898908294744, ],
[9140274074.888178, -6747428730.014044, 1371393490.868318, 160474494.1885468, -100673575.46956167, 12395200.535052016, 161347.02048750856, -136454.43010849901, 8193.722920803822, ],
[-3163405651011.4004, 2545761880832.431, -828521098478.8964, 132028912101.65466, -8244745581.355271, -492194575.1655775, 119541063.1983122, -7774674.699008414, 184939.6771912824, ],
],
},
| """Generated config, with scaler.
Date: 2022-01-09
Change: f = 48, n = 128 with relative error constrain in 1e-3.
added zero_mask = 1e-10.
The scaler directly save the reciprocal, have some problems in the round of its reciprocal.
The error evaluation method changed for both plain-text and cipher-text.
"""
sigmoid_config = ({'breaks': [-50.0, -23.02086353302002, -23.00117015838623, -23.00114631652832, -22.96290397644043, -22.962876223027706, -22.96287603676319, -22.926005721092224, -22.92600553482771, -22.890446335077286, -22.89044614881277, -22.87312988191843, -22.873129695653915, -22.65625, -22.0703125, -21.875, -21.58203125, -21.484375, -21.2890625, -21.19140625, -20.8984375, -20.80078125, -20.751953125, -20.703125, -19.53125, -18.75, -17.96875, -17.1875, -16.40625, -15.625, -14.84375, -14.0625, -13.28125, -12.5, -11.71875, -10.9375, -10.15625, -9.375, -8.59375, -7.8125, -7.03125, -6.25, -5.46875, -4.6875, -3.90625, -3.125, -1.5625, 0.0, 1.5625, 3.125, 6.25, 25.0, 50.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[0.00398701932, 0.000319266006, 8.35443e-06, 7.1561e-08], [-0.004609651251, -0.003382475498, -0.00025153453, -4.956335e-06], [2.443568924838, 0.015237808418, -0.001071448385, 0.000125385714], [0.109202026501, 0.006502759379, -3.3997035e-05, -4.830837e-06], [0.003795294665, 0.000181086613, -3.283487e-06, -2.09687e-07], [807.928583923834, 35.184100261716, 0.0, 0.0], [0.110513329528, 0.006205912744, -6.7637124e-05, -5.62464e-06], [0.000461372626, 0.0, 0.0, 0.0], [0.015608644171, -0.005850463733, -0.000578002143, -1.2823834e-05], [805.386981669484, 35.184394910007, 0.0, 0.0], [0.148682338328, 0.006361740552, -0.000277233065, -1.1896364e-05], [804.77772113169, 35.184394910007, 0.0, 0.0], [0.02791734738, -0.003836235541, -0.000471549938, -1.0991296e-05], [1.857777565079, 0.238340934316, 0.010212548128, 0.000146128887], [0.183683186621, 0.009219303994, -0.000239946464, -1.2814192e-05], [-0.438302705956, -0.08047002275, -0.004541200393, -8.1431103e-05], [0.29047867927, 0.015596861543, -0.000332010523, -2.0149644e-05], [-0.173396062055, -0.051915677482, -0.00360236141, -7.288212e-05], [0.204347665331, -0.002770333895, -0.001485267861, -4.2722338e-05], [3.130668565602, 0.407751898633, 0.017709607313, 0.000256412379], [0.384060633392, 0.008786069493, -0.001604814706, -5.5215687e-05], [0.464459025844, 0.017578793894, -0.001316670973, -5.2751809e-05], [0.569795445652, 0.030454984429, -0.000809457046, -4.642299e-05], [12.393312855154, 1.752391686569, 0.08278736893, 0.001306472968], [28.35849717192, 4.203208499893, 0.208210086966, 0.00344625708], [54.369315319399, 8.373855128197, 0.431137690337, 0.007418494544], [106.117212273805, 17.033761401987, 0.914253961424, 0.016403284022], [203.576816649827, 34.089925468572, 1.909332507378, 0.035756466888], [389.26651982389, 68.137969500417, 3.990563669718, 0.078166831121], [737.580312820157, 135.200790536874, 8.295043663876, 0.170272633304], [1391.676395525416, 267.776804046227, 17.253271595774, 0.372068675205], [2606.241464359107, 527.673828575312, 35.793791267158, 0.813011364004], [4841.078174045158, 1034.124008207964, 74.056460334491, 1.776753583626], [8908.600625741838, 2013.714664426048, 152.709552606543, 3.88219350237], [16225.279258744256, 3893.726410122101, 313.764635055505, 8.482161990765], [29193.556836921845, 7464.727582505348, 641.616673476718, 18.517802201465], [51856.35172915142, 14187.01071688224, 1306.456354574977, 40.441446289881], [90712.37062726509, 26676.77622353886, 2645.108377415158, 88.282102487219], [155890.6643892056, 49539.76281835047, 5319.389388136198, 192.591491716634], [262293.74270467437, 90611.3062693571, 10606.36320720412, 419.55195362967], [430018.15811611747, 162575.87036799625, 20904.72515598179, 911.072215600344], [682128.9810741317, 284317.88470148906, 40514.99844996233, 1964.771183079816], [1035639.4459240435, 479463.8025506491, 76457.60547223434, 4173.520460766672], [1479035.5923163493, 764945.084830472, 137806.89037193387, 8573.788756959639], [1934390.314777591, 1115975.2676433255, 228179.66341296295, 16343.780890003678], [2271477.582305388, 1442688.3819854176, 334189.02979225264, 27858.42056965208], [2098807.2574304864, 1069197.0761318174, 55190.12954996164, -43418.866480025245], [2095489.338059525, 1069197.0761290812, -55190.12954666437, -43418.866481168065], [1922819.0128503852, 1442688.3824313267, -334189.0299862884, 27858.42059717758], [2824875.51285168, 675885.8621337626, -114551.63971729192, 6608.706941762957], [4172121.7922186563, 4160.245603410802, -247.810517087053, 4.722093547679], [4194296.5954582347, -2.082612e-06, 1.62989e-07, -2.231e-09]]},)
tanh_config = ({'breaks': [-50.0, -6.25, -0.78125, 0.0, 0.78125, 6.25, 50.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[-4194045.93541855, 81.04725611976, 10.463138575184, 0.704258478102, 0.026889953954, 0.00058642039, 6.804412e-06, 3.2576e-08], [810126.6458983729, 7340700.604237439, 4704475.711939846, 1691640.5294427716, 365946.0693131795, 47378.83112188167, 3387.321196714939, 102.931349820303], [0.947596785746, 4194387.117002231, 2081.209567983285, -1378059.7058902322, 98674.32465989991, 827618.6436768449, 400058.05869667773, 50783.229858411], [-0.947567793221, 4194387.11483649, -2081.171600424905, -1378059.9775897914, -98673.36544149525, 827616.8732579398, -400056.4212395759, 50782.631016997955], [-810130.6685373887, 7340712.763415546, -4704490.067068877, 1691649.1859599578, -365948.9786652053, 47379.3814831848, -3387.375931182968, 102.933573951061], [4194045.935418548, 81.047256119806, -10.463138575191, 0.704258478103, -0.026889953954, 0.00058642039, -6.804412e-06, 3.2576e-08]]},)
soft_plus_config = ({'breaks': [-20.0, -18.359375, -17.8125, -15.625, -13.4375, -11.25, -9.0625, -6.875, -4.6875, -2.5, -0.3125, 1.875, 6.25, 50.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[101.990248984024, 17.483235392741, 0.975152586375, 0.011170665848, -0.000640822284, -1.5474678e-05], [25.942501887721, 2.120761240954, -0.036904826627, -0.003617744719, 0.000172668934, 7.923789e-06], [1569.738573465028, 392.841311731982, 38.939569792452, 1.903103355115, 0.045588812843, 0.000424320654], [10221.802869958385, 3036.975886093738, 361.071894491868, 21.446173115814, 0.63552374276, 0.007505662736], [35603.079414978376, 11513.08770106031, 1471.231413480248, 92.182707733191, 2.800074890892, 0.032344003442], [160671.3536358581, 62520.46925517268, 9691.474227099754, 743.850983797148, 28.057479690946, 0.411475235179], [850748.4860730075, 446968.1223768878, 95799.79790873424, 10434.720040596265, 575.956571969616, 12.857823670119], [2017144.149192322, 1321353.4391367515, 359524.95696972066, 50428.121673075984, 3624.368593631209, 106.255849052987], [3020298.4292094633, 2379721.317270482, 811342.251332228, 148011.1516516293, 14286.954017588305, 577.647131251679], [2908418.620371011, 2103977.837523053, 538379.745870657, 11767.887577989604, -20028.24621414198, -2906.476283611212], [2906969.2484707027, 2097924.7410250027, 530800.4184051917, -16987.819649040128, -10739.172346407797, 0.0], [2965004.3617158523, 1903118.0684465575, 756597.1504591476, -131632.224789337, 11908.853608537796, -443.192632294796], [24159.949877974494, 4189189.7498553684, 397.81890063514, -14.455954764833, 0.247787205621, -0.001617694049]]},)
snormal_dis_config = ({'breaks': [-5.0, -4.6875, -4.375, -3.75, -2.5, 0.0, 2.5, 3.75, 4.375, 5.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[31304.26993311414, 9130.16546364382, -1844.81978546199, -526.011308571866, 57.353080900898, 3.321006341503, -4.109487312933, -0.428353097768], [119974.45879010632, 47580.55647943287, -3015.990590286581, -973.360778760376, 1237.486873833178, 395.014415959766, 40.071459102838, 1.196160897825], [1421717.3776566053, 1031307.6043607326, 164737.01107375935, -32690.584175583015, -4606.937267693005, 3142.278139580568, 790.535586663009, 52.788095666519], [3715122.932142754, 3333883.0658577476, 747774.7420066955, -182179.35601190457, -110575.30925502056, -16986.67754749418, -561.753626667674, 48.16881980522], [1673533.3800128698, 7411.481525721444, -784376.7411539048, 152324.44435410656, 430386.40876365715, 167337.49911572924, 23090.286085915846, 666.100152429783], [1673533.3803870187, -7411.48957529468, -784376.6992619456, -152324.5346228467, 430386.50553242775, -167337.5536508544, 23090.30154824131, -666.101891074295], [3640594.2065956094, -3132256.5349616604, 520370.44485455274, 321617.2842362122, -160977.95331293883, 27757.15588128624, -1824.147188080396, 14.536518568956], [1208675.669925383, -866707.8277553315, 150582.63085789658, 11919.162975807238, 2713.91449180321, -3907.342025584125, 774.706793877178, -47.624175447624], [225060.34561747377, -97200.35296877172, -19012.206481532394, 14740.852669650061, -1187.682098772117, -482.91270246705, 101.88771139137, -5.720905524657]]},)
scauchy_dis_config = ({'breaks': [-50.0, -12.5, -3.125, -1.5625, 0.0, 1.5625, 6.25, 12.5, 50.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[97248.63341904456, 20083.36092359592, 1985.328816334903, 116.357674006848, 4.321683011041, 0.102959390815, 0.001526833252, 1.2840302e-05, 4.6793e-08], [1162592.4394692497, 900485.853088537, 340969.43715777266, 77509.8644109634, 11255.412887364964, 1054.029274259123, 61.672238047634, 2.051949837655, 0.029644529004], [2033913.8648985175, 2389334.78350175, 1528516.9888125868, 700668.1347334182, 263499.160313978, 80707.98933717232, 17719.89760418472, 2336.449711275477, 135.58988093684], [1335167.9660587362, 5267.286636123638, -1253148.882543776, 538806.0458725075, 3158496.1042466583, 3365195.2714636633, 1752385.860870584, 466963.69493033673, 50876.2343621253], [1335167.96863223, -5267.407738641146, -1253147.517000925, -538812.473993154, 3158511.554611758, -3365215.854591981, 1752401.2352791475, -466969.7200421834, 50877.198380017595], [2059118.043569359, -2409667.139443788, 1456407.699712485, -550726.0489455989, 137310.53922303024, -22631.072310798772, 2376.727085525736, -144.194508047845, 3.84762307433], [479604.8745796233, -217577.14889334625, 44443.91061381256, -4584.46291565951, 157.824615827344, 15.116009722535, -1.97120617861, 0.087607464233, -0.00145258403], [96819.04716239087, -19948.14008432831, 1967.32555219075, -115.032286206253, 4.262592212067, -0.101322959424, 0.001499293141, -1.2582302e-05, 4.5761e-08]]},)
gamma_dis_config = ({'breaks': [0.0, 2.5, 5.0, 10.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[27.778670375448, 4370493.675291532, -4365291.05201621, 2167206.1260501323, -699253.2175441002, 155609.89788421427, -22192.3371535075, 1519.839684014879], [798245.3159432518, 2472434.6691442183, -2354423.9968063263, 917561.614169512, -199389.27033708373, 25543.657383226317, -1818.33352599695, 55.783331926126], [4461288.157574071, -2513362.898088136, 612925.1338774561, -82651.58685956625, 6510.418496914853, -287.752446254029, 5.985938119069, -0.028147716533]]},)
sexp_dis_config = ({'breaks': [1e-05, 0.31250968749999997, 2.5000074999999997, 5.000005, 7.5000025, 10.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[4193364.7574642934, -4157887.3704455155, 1796903.7881006491, 0.0, 0.0, 0.0], [4189712.6596682654, -4163925.9690107177, 2020635.6658743396, -602775.1929061551, 108273.33405801615, -8968.256777581586], [3544591.3264654144, -2952946.301988507, 1066196.3636716001, -205316.2116045786, 20776.88833314614, -872.822702581336], [1781678.9951623098, -1117221.369676658, 289279.3399066672, -38419.914571291985, 2603.771010084266, -71.732986127335], [573976.5559249318, -279374.46842363675, 55251.428167102706, -5534.823818602391, 280.220142642649, -5.725620461664]]},)
chi_square_config = ({'breaks': [0.0, 0.78125, 3.125, 6.25, 9.375, 12.5, 15.625, 18.75, 21.875, 25.0, 28.125, 31.25, 35.9375, 37.5, 39.0625, 42.1875, 43.75, 46.09375, 47.265625, 47.65625, 47.8515625, 48.046875, 49.21875, 50.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[2.633441150834, 1092728.9144141169, -545481.3827921028, 133341.74702396255, -17860.708524061814], [19113.198247381682, 1030861.0442907239, -468582.0444834488, 87993.01136196367, -6650.871566929995], [551187.2275055703, 385613.4849649353, -163674.79991835158, 21294.81684114599, -961.228131802494], [1624339.441034664, -339721.9720143102, 22679.589341669634, -246.164578373642, -17.553125051984], [1876716.0995595504, -461669.6276171044, 44674.10928103387, -2002.503525663182, 34.87074068853], [1396628.1536118898, -309130.2230161316, 26442.366404456392, -1030.960874220241, 15.394606022949], [803048.2287268342, -155755.10674898268, 11548.437974838385, -386.773274301008, 4.924355347912], [388757.230944264, -66355.70888842308, 4303.331635308104, -125.431726925591, 1.384189721931], [167601.0515877717, -25447.677607674636, 1462.732158532948, -37.675127480918, 0.366487061576], [63114.682330625576, -8569.204305638894, 439.37469704111, -10.074389618197, 0.08709216139], [21689.031920045098, -2654.822462991433, 122.509408784946, -2.52439491857, 0.019587488472], [6557.667075833707, -725.863031075515, 30.249125998658, -0.5622300182, 0.003930983085], [164.717815387793, -3.662838482048, -0.367322737727, 0.015032798448, -0.000153354373], [93.578321649794, -2.42028813585, -0.162017454274, 0.006827318496, -6.8125109e-05], [418.767571815519, -38.491868800087, 1.33023200346, -0.02047990636, 0.000118492219], [29.39151117008, -1.755300811364, 0.030351463853, -3.5752273e-05, -2.097012e-06], [50.510267214252, -4.074983181051, 0.123253745211, -0.001655791098, 8.332248e-06], [6.345810039409, -0.350025288389, 0.005575013118, -5.541983e-06, -3.34293e-07], [0.355807867984, -0.014772520498, 0.00036417105, -8.342798e-06, 8.2672e-08], [0.079911567574, 0.005672092545, -0.000238430799, 1.38746e-07, 3.4626e-08], [0.234371388425, 0.034594471822, -0.002477441427, 5.0188312e-05, -3.26901e-07], [0.92465180232, 0.006132369987, -0.002508207143, 6.3562473e-05, -4.6485e-07], [0.99339365892, -0.025508747209, -0.000744989288, 2.8791656e-05, -2.32589e-07]]},)
slog_dis_config = ({'breaks': [0.001, 0.0022206420898437497, 0.005882568359375, 0.040060546875, 0.1572421875, 1.2509375, 5.00075, 10.0005, 20.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[0.268626462114, -1175.322435991052, 2086915.8118898626, -1861216224.7804956, 753737048776.9146, 0.0, 0.0, 0.0], [-4.017171180823, 3872.335253195195, 642862.6598793622, -2289145194.2375584, 1048043128944.0438, -42204023033820.9, 0.0, 0.0], [-916.909970836132, 568734.4835124938, -145531775.45853516, 17816966566.259033, -437578342697.19763, 5200615954744.682, -25956540754680.117, 0.0], [88677.84013405546, -11238694.421728892, 546463980.4795989, -5366724537.81832, 28977360342.438774, -92939497805.85388, 160845353115.72794, -108356412192.32516], [-1366725.4544273522, 35080284.704431385, -118514860.12695184, 214550352.55726737, -238770767.85162464, 162641519.9148953, -62130989.8920718, 10184500.096544107], [4915442.06884933, -5445579.99049578, 3068014.287737718, -1068728.9057128155, 238873.04358133572, -33415.457416519406, 2666.426128012068, -92.677074524944], [2172029.495401563, -1418118.9298525134, 434370.3094184368, -78174.94994270892, 8750.367131815334, -601.717127220767, 23.351852536198, -0.392492299234], [566190.3710634038, -209511.98409202718, 35161.3715728029, -3396.672848478098, 201.401683126878, -7.270930099694, 0.147195944012, -0.001284382678]]},)
reciprocal_config = ({'breaks': [1e-05, 1.0727595761345585e-05, 1.1455191522691167e-05, 1.2910383045382332e-05, 1.4365574568073499e-05, 1.5820766090764666e-05, 1.727595761345583e-05, 1.8731149136146995e-05, 2.164153218152933e-05, 2.4551915226911662e-05, 2.7462298272293992e-05, 3.0372681317676325e-05, 3.328306436305866e-05, 4.4924596544587984e-05, 5.656612872611732e-05, 7.984919308917597e-05, 0.00010313225745223464, 0.0001264153218152933, 0.00014969838617835197, 0.00019626451490446927, 0.00024283064363058658, 0.0002893967723567039, 0.0003825290298089385, 0.0005687935447134078, 0.000755058059617877, 0.0009413225745223462, 0.0011275870894268156, 0.001500116119235754, 0.0018726451490446924, 0.002245174178853631, 0.002990232238471508, 0.003735290298089385, 0.004480348357707262, 0.005970464476943016, 0.008950696715414524, 0.011930928953886033, 0.014911161192357542, 0.01789139343082905, 0.023851857907772066, 0.02981232238471508, 0.0357727868616581, 0.04769371581554413, 0.0715355737233162, 0.09537743163108826, 0.11921928953886032, 0.1430611474466324, 0.19074486326217652, 0.23842857907772064, 0.2861122948932648, 0.381479726524353, 0.5722145897865296, 0.7629494530487061, 1.1444191795730592, 1.5258889060974121, 2.2888283591461183, 3.051767812194824, 6.103525624389649, 9.155283436584472, 12.207041248779298, 18.31055687316895, 24.414072497558596, 36.621103746337894, 48.82813499511719, 97.65625999023437, 146.48438498535157, 195.31250998046875, 292.9687599707031, 390.6250099609375, 781.2500099218751, 1171.8750098828127, 1562.5000098437501, 2343.7500097656252, 3125.0000096875, 6250.000009375, 9375.0000090625, 12500.000008750001, 18750.000008125004, 25000.000007500003, 37500.000006250004, 50000.000005, 75000.0000025, 87500.00000125001, 100000.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[1214848305201.7212, -1.1726175021863675e+17, 3.7719172330132954e+21, 0.0], [1135067767149.0073, -1.0236924063621528e+17, 3.076821157374724e+21, 0.0], [1034639238440.2142, -8.5013176464605e+16, 2.32675958220783e+21, 0.0], [923916702238.2401, -6.780114081398221e+16, 1.6575704308591333e+21, 0.0], [834625529784.4006, -5.533505341471934e+16, 1.222321204806124e+21, 0.0], [761087120022.1727, -4.601716534457355e+16, 9.270768758998886e+20, 0.0], [699467689173.8698, -3.88698264416475e+16, 7.19770543010074e+20, 0.0], [624919327864.6323, -3.100369813020414e+16, 5.121872698607899e+20, 0.0], [545846649207.2183, -2.365998201672148e+16, 3.415788826842872e+20, 0.0], [484563947718.2919, -1.864870553331774e+16, 2.390849742977128e+20, 0.0], [435668041872.8745, -1.5076835876799296e+16, 1.7382926289623145e+20, 0.0], [395744655418.059, -1.2441350109558014e+16, 1.3032167744002246e+20, 0.0], [433807307180.66315, -1.6771223034780776e+16, 2.8724647613555356e+20, -1.83904142289776e+24], [332780975171.7099, -9882410408571190.0, 1.3018487612612487e+20, -6.419024811178374e+23], [249582927729.615, -5545615624566329.0, 5.453308489413506e+19, -2.0025278239473964e+23], [184857408409.9937, -3048082795019133.0, 2.22852795386553e+19, -6.0957962449103176e+22], [146923264876.5295, -1927119505425625.5, 1.1217621852588933e+19, -2.4450240852089985e+22], [121952047914.95476, -1328329695346346.5, 6.423863148464207e+18, -1.1637915372956364e+22], [97866458121.68951, -854078618021366.9, 3.304008079042826e+18, -4.780625268936685e+21], [76844381560.47073, -527097754273004.75, 1.6042939407275036e+18, -1.8281298285779165e+21], [63284510011.637596, -357674764737716.44, 8.974673456440484e+17, -8.4353589328015e+20], [50417451722.47956, -226632331059323.06, 4.5151540491469357e+17, -3.3639923698694075e+20], [35957455256.58562, -114946300440941.16, 1.623981842486456e+17, -8.556464405434568e+19], [25597088402.53554, -58412225839135.836, 5.907306166399155e+16, -2.2339335182340452e+19], [19898613589.70386, -35339575208248.94, 2.784598230247185e+16, -8.213787717481314e+18], [16283600889.486416, -23679144817850.81, 1.5285962690313482e+16, -3.696119716467635e+18], [12897918385.70013, -14830045297332.854, 7556464048147028.0, -1.4396960916661842e+18], [10009021895.759388, -8941078010902.893, 3543576383428429.0, -5.25732060415756e+17], [8181660824.292896, -5977823526747.435, 1938880186054058.5, -2.3554852191102733e+17], [6474096226.651072, -3736385371039.796, 955581368496632.8, -9.13797768392177e+16], [5019575068.292841, -2248722730118.6396, 446944866647957.44, -3.325356442569236e+16], [4100866197.2357106, -1501788706260.6936, 244143872857263.0, -1.4866264827703008e+16], [3243369549.145814, -937737440654.8092, 120144705208591.86, -5755586122700288.0], [2294356414.664274, -467881653543.9552, 42158964274085.13, -1416355592706204.8], [1623269828.1805296, -234891510207.94733, 15061908401411.326, -361120198130006.06], [1257733259.0418537, -141180792034.89288, 7030857671436.026, -131070142502106.73], [1027108083.0408603, -94208054109.11949, 3835851538441.582, -58499574399535.16], [812031755.4214405, -58780146101.66049, 1885485273287.6787, -22613797507881.88], [629103856.3656212, -35321784434.630844, 879848642648.5188, -8204186027217.122], [513711869.80238444, -23566474819.65455, 479922598999.8428, -3660704084411.957], [406115161.67893225, -14702203003.390936, 235857580936.91092, -1414733125330.8018], [287145121.4881742, -7328429805.452841, 82640531249.98502, -347454375022.0402], [203082409.8565995, -3676447012.5617747, 29492950085.99371, -88463694254.62822], [157320466.87547022, -2208858811.3929977, 13759266945.734987, -32083696775.96685], [128457622.91012286, -1473584168.2328494, 7503974155.046968, -14312790746.9261], [101547414.69153644, -919223841.3690333, 3687291183.8983016, -5530321606.418934], [78663955.72269376, -552266874.2642107, 1720151679.0648403, -2005608621.6891162], [64231264.76572271, -368424151.6847547, 938104000.7680513, -894685614.849884], [50775258.94795117, -229819964.4003704, 460953405.3410016, -345686980.5560453], [35898625.827740006, -114541514.27543631, 161480441.84307322, -84878698.27466165], [25388017.297504853, -57456741.300646536, 57621800.728921734, -21606744.87199083], [17949508.746989015, -28635999.75656981, 20185708.216685258, -5305146.1426766105], [12694106.167835038, -14364405.377651522, 7202890.119223511, -1350462.688238372], [8974803.38633344, -7159077.675340518, 2523254.3853634074, -331578.75150387816], [6347077.228802648, -3591128.5851397156, 900371.4792873418, -84405.1909881744], [3883943.146521119, -1325461.4724356544, 197649.8234867383, -10873.444182561774], [2243710.031715976, -447445.9967070064, 39426.32833293847, -1295.250339730292], [1586773.8710038532, -224446.8238585654, 14068.425039578748, -329.711537175173], [1121855.7814935807, -111861.65096726571, 4928.301014271693, -80.953363389819], [793387.3167701394, -56111.7597367675, 1758.555650399108, -20.607010338639], [560928.0789783113, -27965.431398902678, 616.038239636852, -5.059591884258], [396693.7506751451, -14027.94644155921, 219.8196087988, -1.287939333991], [242747.0049307499, -5177.607288408621, 48.254673258057, -0.165917042613], [140232.0568260839, -1747.84038162402, 9.625605044631, -0.019764051351], [99173.45564041885, -876.746969419574, 3.434683243725, -0.005031016638], [70116.03098505261, -436.960127229206, 1.203200761117, -0.001235253387], [49586.72854752321, -219.186748739082, 0.429335424113, -0.000314438558], [30343.37965829213, -80.900135066137, 0.094247445105, -4.0507111e-05], [17529.00817095287, -27.310009264045, 0.018800013237, -4.825209e-06], [12396.68310550891, -13.699173936784, 0.006708367573, -1.228276e-06], [8764.5072674914, -6.827507283297, 0.002350004218, -3.01576e-07], [6198.336504560807, -3.424787899638, 0.000838543896, -7.6767e-08], [3792.880995880726, -1.264036807841, 0.000184070975, -9.889e-09], [2191.112274199987, -0.426713529058, 3.6718083e-05, -1.178e-09], [1549.750722987758, -0.214095317269, 1.3106478e-05, -3e-10], [1096.952247626264, -0.106950838807, 4.607339e-06, -7.4e-11], [777.460136258028, -0.053881248262, 1.654716e-06, -1.9e-11], [559.645007917267, -0.027827535868, 6.11074e-07, -5e-12], [373.221419571156, -0.012398055232, 1.8223e-07, -1e-12], [205.363276649164, -0.00332413008, 1.779e-08, 0.0], [155.314246541756, -0.001914806752, 7.86e-09, 0.0], [134.508750860544, -0.001436589214, 5.11e-09, 0.0]]},)
func_sqrt_config = ({'breaks': [1e-05, 2.164153218152933e-05, 3.328306436305866e-05, 0.00010313225745223464, 0.0003825290298089385, 0.001500116119235754, 0.005970464476943016, 0.023851857907772066, 0.09537743163108826, 0.381479726524353, 1.5258889060974121, 3.051767812194824, 6.103525624389649, 12.207041248779298, 24.414072497558596, 48.82813499511719, 97.65625999023437, 195.31250998046875, 390.6250099609375, 781.2500099218751, 1562.5000098437501, 3125.0000096875, 6250.000009375, 12500.000008750001, 25000.000007500003, 50000.000005, 100000.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.60718e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 5.899382e-06], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.000133487768], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.003020483497]], 'coeffA': [[6087.910008000412, 806670578.0734799, -8653686004226.553, 0.0, 0.0], [8171.21797943674, 604109148.1665217, -3687851762744.753, 0.0, 0.0], [10182.584790670635, 500285782.8155899, -2610996141480.068, 7848463135519062.0, 0.0], [18847.727982598903, 269181067.6290992, -402305769971.454, 342153175562074.94, 0.0], [36874.74801490772, 137394595.18648067, -53303552697.465836, 11722041982805.848, 0.0], [63875.0675036597, 81243211.8323662, -12246872544.72834, 1406578316151.286, -69037902436265.23], [127562.9832354304, 40678055.35278445, -1536924822.06809, 44232420855.43458, -543912908102.1798], [255032.24777690784, 20346105.918614928, -192306022.7686363, 1384438736.904362, -4258277745.4704275], [510017.61820003367, 10173938.433720784, -24044210.27647331, 43280732.28136732, -33285322.291408498], [1020011.7952173861, 5087079.924153827, -3005712.5097418283, 1352655.916783002, -260075.8292175082], [1692159.6696493637, 3098755.2841766533, -699881.5910587178, 124813.04853557886, -9811.461488348765], [2393072.202723289, 2191153.542146234, -247446.40146300496, 22064.169094807177, -867.225978137874], [3384313.2073925077, 1549380.4117955733, -87485.66182447817, 3900.441717429753, -76.652965111606], [4786140.080081948, 1095577.7479335656, -30930.881822571235, 689.508277878265, -6.775243615287], [6768623.12273683, 774690.5780275554, -10935.723289833188, 121.889089123498, -0.598853228913], [9572278.011501513, 547788.9952693733, -3866.362762028228, 21.547156914181, -0.052931669623], [13537244.57738656, 387345.33616976056, -1366.965904372728, 3.809036297159, -0.004678544693], [19144554.908571858, 273894.51337321516, -483.295427493586, 0.6733488421, -0.000413528829], [27074488.535208836, 193672.672457932, -170.870749479676, 0.119032397413, -3.6551136e-05], [38289108.04590936, 136947.263011236, -60.411936770362, 0.02104215612, -3.230695e-06], [54148970.22213954, 96836.34850722857, -21.358851799828, 0.003719764764, -2.85556e-07], [76578130.68216178, 68473.7081388537, -7.551517437059, 0.000657571041, -2.524e-08], [108298695.04328549, 48417.83570473754, -2.669800497596, 0.000116238604, -2.04e-09], [153070905.49426642, 34256.001331673455, -0.945522627109, 2.0606287e-05, -8e-12], [247809860.0169848, 20708.084443096737, -0.189014151239, 1.01824e-06, 0.0], [350456064.8803675, 14642.82693697629, -0.066826594066, 1.80001e-07, 0.0]]},)
func_log_config = ({'breaks': [1e-05, 2.164153218152933e-05, 3.328306436305866e-05, 5.656612872611732e-05, 0.00010313225745223464, 0.00019626451490446927, 0.0003825290298089385, 0.000755058059617877, 0.001500116119235754, 0.002990232238471508, 0.005970464476943016, 0.011930928953886033, 0.023851857907772066, 0.04769371581554413, 0.09537743163108826, 0.19074486326217652, 0.381479726524353, 0.7629494530487061, 0.9536843163108826, 1.1444191795730592, 3.051767812194824, 6.103525624389649, 12.207041248779298, 24.414072497558596, 48.82813499511719, 97.65625999023437, 195.31250998046875, 390.6250099609375, 781.2500099218751, 1562.5000098437501, 3125.0000096875, 6250.000009375, 12500.000008750001, 25000.000007500003, 50000.000005, 100000.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.0], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 1.244446e-06], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.1702877e-05], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 0.00037591392]], 'coeffA': [[-52907053.3045768, 554553863780.7839, -8905895621876480.0, 0.0, 0.0], [-50422688.6381559, 309883064726.99286, -2835734590041575.0, 0.0, 0.0], [-49803838.16343454, 287254943815.1977, -3246175253784058.5, 1.6145071290316872e+19, 0.0], [-47426743.40076958, 162745338395.53778, -1039039657857159.8, 2.9117842886391793e+18, 0.0], [-44814214.37720375, 87212018647.7152, -297817124138036.56, 4.456130710021452e+17, 0.0], [-42063189.662707984, 45235225498.05543, -80033296736474.42, 6.198002158756902e+16, 0.0], [-39236492.50062724, 23049120381.059166, -20766581879536.742, 8185027439644241.0, 0.0], [-37425253.15901713, 15567664233.638752, -10692683575157.012, 4296634858971709.5, -7.193659113579882e+17], [-34538681.5061307, 7821824209.159908, -2698987254734.0093, 544777830605097.44, -4.5810839640771816e+16], [-31641805.98102574, 3920483377.9127536, -678010034800.1215, 68585422486020.67, -2890232433176117.0], [-28739746.13294046, 1962643555.8745673, -169912665840.36423, 8603910538442.83, -181492515586615.56], [-25835086.44801704, 981923398.3475907, -42529579342.841484, 1077416613472.3837, -11370057413736.934], [-22929124.97508764, 491112264.25358987, -10638831095.250317, 134797796220.59602, -711467273997.1382], [-20022512.040494416, 245593795.2497136, -2660512949.3026605, 16857277134.570581, -44492945509.4718], [-17115573.207356904, 122806316.31796865, -665228926.4476411, 2107631928.0102031, -2781629638.484502], [-14208471.338917349, 61405512.64114904, -166319817.40497124, 263483509.6372729, -173877496.40379688], [-11301287.767603613, 30703343.434013497, -41581523.53558351, 32937278.885669306, -10868142.852881767], [-9402678.505221475, 19643965.89592554, -17226558.165984664, 8939710.934655428, -1954491.0447710238], [-8558114.346234925, 16064958.347902356, -11526537.362982642, 4896345.566269092, -876652.1313933254], [-6064262.567726699, 8748236.541592587, -3330755.912324062, 732478.1879922964, -66338.68968723173], [-2579564.545375263, 3837982.356228537, -649732.8307702426, 64333.778327958426, -2653.526527654393], [327695.17549985193, 1918993.4983586718, -162433.59535260298, 8041.750708322973, -165.846179546145], [3234957.479452729, 959497.3261013938, -40608.44703090038, 1005.220604862897, -10.36541020031], [6142221.035866809, 479748.81013977714, -10152.117900540805, 125.652688158264, -0.647838901299], [9049485.321816122, 239874.4373968575, -2538.030149555125, 15.706592195852, -0.040489952289], [11956749.793250307, 119937.2296833339, -634.507652342515, 1.963324551918, -0.002530622914], [14864014.433238434, 59968.61795596701, -158.626929410987, 0.245415606498, -0.000158163964], [17771279.369304083, 29984.30841914865, -39.656730854532, 0.030676949064, -9.885247e-06], [20678544.120356895, 14992.154596675364, -9.914183223197, 0.003834618927, -6.17828e-07], [23585815.81089784, 7496.065039027543, -2.47853769745, 0.000479325022, -3.8614e-08], [26493244.634272583, 3747.885396141649, -0.619585772235, 5.9908597e-05, -2.413e-09], [29399197.779824484, 1874.531192611712, -0.154993747405, 7.495606e-06, -1.51e-10], [32194344.898805153, 962.41615521808, -0.040827690483, 1.012075e-06, -2e-12], [36270094.35686787, 350.149243450115, -0.004789457388, 2.8642e-08, 0.0], [39177359.21527551, 175.074621774201, -0.001197364348, 3.58e-09, 0.0]]},)
func_exp_config = ({'breaks': [-10.0, -7.5, -5.0, 0.0, 2.5, 5.0, 7.5, 10.0], 'scaler': [[2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07], [2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07, 2.38419e-07]], 'coeffA': [[526952.2236450694, 247495.47145293362, 51015.33095497295, 7447.281491148959, 1097.510263564984, 142.092043351885, 11.974457047043, 0.548200730254, 0.010355932269], [775084.8766015827, 33752.70090109223, -179080.789804224, -59704.04657927617, -5222.771272765303, 755.861943742096, 202.609535057021, 16.556411699872, 0.486267137349], [4194247.734624573, 4193367.576124194, 2092860.1099856922, 690577.6781143154, 165863.70720933672, 29418.57274474665, 3664.512625284119, 283.083987752937, 10.055028216333], [4194299.566074874, 4194188.758756912, 2098087.7434277167, 695606.5097762228, 181297.2991822334, 27911.819635815176, 10252.73388052373, -741.719121318769, 378.292902135551], [-24208208.45235331, 59483065.98257767, -41621895.13667925, 17833594.620398935, -2618780.848042712, -241461.34205112996, 208304.99786753883, -33565.73686248778, 2353.898908294744], [9140274074.888178, -6747428730.014044, 1371393490.868318, 160474494.1885468, -100673575.46956167, 12395200.535052016, 161347.02048750856, -136454.43010849901, 8193.722920803822], [-3163405651011.4004, 2545761880832.431, -828521098478.8964, 132028912101.65466, -8244745581.355271, -492194575.1655775, 119541063.1983122, -7774674.699008414, 184939.6771912824]]},) |
def get_colnames(score: str):
colnames = {
"charlson": {
"aids": "AIDS or HIV",
"ami": "acute myocardial infarction",
"canc": "cancer any malignancy",
"cevd": "cerebrovascular disease",
"chf": "congestive heart failure",
"copd": "chronic obstructive pulmonary disease",
"dementia": "dementia",
"diab": "diabetes without complications",
"diabwc": "diabetes with complications",
"hp": "hemiplegia or paraplegia",
"metacanc": "metastatic solid tumour",
"mld": "mild liver disease",
"msld": "moderate or severe liver disease",
"pud": "peptic ulcer disease",
"pvd": "peripheral vascular disease",
"rend": "renal disease",
"rheumd": "rheumatoid disease",
},
"elixhauser": {
"aids": " AIDS/HIV",
"alcohol": " alcohol abuse",
"blane": " blood loss anaemia",
"carit": " cardiac arrhythmias",
"chf": " congestive heart failure",
"coag": " coagulopathy",
"cpd": " chronic pulmonary disease",
"dane": " deficiency anaemia",
"depre": " depression",
"diabc": " diabetes complicated",
"diabunc": " diabetes uncomplicated",
"drug": " drug abuse",
"fed": " fluid and electrolyte disorders",
"hypc": " hypertension complicated",
"hypothy": " hypothyroidism",
"hypunc": " hypertension uncomplicated",
"ld": " liver disease",
"lymph": " lymphoma",
"metacanc": " metastatic cancer",
"obes": " obesity",
"ond": " other neurological disorders",
"para": " paralysis",
"pcd": " pulmonary circulation disorders",
"psycho": " psychoses",
"pud": " peptic ulcer disease excluding bleeding",
"pvd": " peripheral vascular disorders",
"rf": " renal failure",
"rheumd": " rheumatoid arthritis/collaged vascular disease",
"solidtum": " solid tumour without metastasis",
"valv": " valvular disease",
"wloss": " weight loss",
},
}
return colnames[score]
| def get_colnames(score: str):
colnames = {'charlson': {'aids': 'AIDS or HIV', 'ami': 'acute myocardial infarction', 'canc': 'cancer any malignancy', 'cevd': 'cerebrovascular disease', 'chf': 'congestive heart failure', 'copd': 'chronic obstructive pulmonary disease', 'dementia': 'dementia', 'diab': 'diabetes without complications', 'diabwc': 'diabetes with complications', 'hp': 'hemiplegia or paraplegia', 'metacanc': 'metastatic solid tumour', 'mld': 'mild liver disease', 'msld': 'moderate or severe liver disease', 'pud': 'peptic ulcer disease', 'pvd': 'peripheral vascular disease', 'rend': 'renal disease', 'rheumd': 'rheumatoid disease'}, 'elixhauser': {'aids': ' AIDS/HIV', 'alcohol': ' alcohol abuse', 'blane': ' blood loss anaemia', 'carit': ' cardiac arrhythmias', 'chf': ' congestive heart failure', 'coag': ' coagulopathy', 'cpd': ' chronic pulmonary disease', 'dane': ' deficiency anaemia', 'depre': ' depression', 'diabc': ' diabetes complicated', 'diabunc': ' diabetes uncomplicated', 'drug': ' drug abuse', 'fed': ' fluid and electrolyte disorders', 'hypc': ' hypertension complicated', 'hypothy': ' hypothyroidism', 'hypunc': ' hypertension uncomplicated', 'ld': ' liver disease', 'lymph': ' lymphoma', 'metacanc': ' metastatic cancer', 'obes': ' obesity', 'ond': ' other neurological disorders', 'para': ' paralysis', 'pcd': ' pulmonary circulation disorders', 'psycho': ' psychoses', 'pud': ' peptic ulcer disease excluding bleeding', 'pvd': ' peripheral vascular disorders', 'rf': ' renal failure', 'rheumd': ' rheumatoid arthritis/collaged vascular disease', 'solidtum': ' solid tumour without metastasis', 'valv': ' valvular disease', 'wloss': ' weight loss'}}
return colnames[score] |
#!/usr/bin/env python
'''
Test Templates
'''
regList = ["A", "B", "C", "D", "E", "F", "H", "L", "HL", "PC", "SP"]
cpuTestFile = '''
namespace GameBoyEmulator.Desktop.Tests {
[TestFixture]
public class CPUTest {
private const int RUN_CYCLES = 10;
{TESTS}
}
}
'''
baseTestTemplate = '''
[Test]
public void TestOpcode{OPCODE}() {
var cpu = new CPU();
for (var i = 0; i < RUN_CYCLES; i++) {
cpu.Reset();
cpu.reg.RandomizeRegisters();
cpu.memory.RandomizeMemory();
var regBefore = cpu.reg.Clone();
CPUInstructions.opcodes[0x{OPCODE}](cpu);
var regAfter = cpu.reg.Clone();
{CHECKS}
}
}
'''
baseTestCBTemplate = '''
[Test]
public void TestOpcodeCB{OPCODE}() {
var cpu = new CPU();
for (var i = 0; i < RUN_CYCLES; i++) {
cpu.Reset();
cpu.reg.RandomizeRegisters();
cpu.memory.RandomizeMemory();
var regBefore = cpu.reg.Clone();
CPUInstructions.CBOPS[0x{OPCODE}](cpu);
var regAfter = cpu.reg.Clone();
{CHECKS}
}
}
'''
cycleTestTemplate = '''
#region Test Cycles
Assert.AreEqual(%s, regAfter.lastClockT);
Assert.AreEqual(%s, regAfter.lastClockM);
#endregion
'''
def LoadTPL(tplname):
f = open("CSharp/%s.cs" % tplname)
tpl = f.read()
f.close()
return tpl
def CheckFlagChange(flags):
return not (flags["carry"] == None and flags["sub"] == None and flags["halfcarry"] == None and flags["zero"] == None)
def GenFlagAssert(flags):
flagAssert = '''
#region Flag Tests\n'''
if flags["carry"] == False or flags["carry"] == True:
flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagCarry);\n" % str(flags["carry"]).lower()
elif flags["carry"] == None:
flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagCarry, regBefore.FlagCarry);\n"
if flags["halfcarry"] == False or flags["halfcarry"] == True:
flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagHalfCarry);\n" % str(flags["halfcarry"]).lower()
elif flags["halfcarry"] == None:
flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagHalfCarry, regBefore.FlagHalfCarry);\n"
if flags["sub"] == False or flags["sub"] == True:
flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagSub);\n" % str(flags["sub"]).lower()
elif flags["sub"] == None:
flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagSub, regBefore.FlagSub);\n"
if flags["zero"] == False or flags["zero"] == True:
flagAssert = flagAssert + " Assert.AreEqual(%s, regAfter.FlagZero);\n" % str(flags["zero"]).lower()
elif flags["zero"] == None:
flagAssert = flagAssert + " Assert.AreEqual(regAfter.FlagZero, regBefore.FlagZero);\n"
flagAssert = flagAssert + " #endregion"
return flagAssert
def LDrr(instr, opcode, args, cycles, flags):
regI, regO = args
asserts = '''
#region Test no change to other regs\n'''
for regA in regList:
if regA != regI and not ((regI == "L" or regI == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDrr").format(
regI=regI,
regO=regO,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDrHLm_(instr, opcode, args, cycles, flags):
regO, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regO and not ((regO == "L" or regO == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDrHLm_").format(
regO=regO,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLmr_(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regI:
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLmr_").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDrn_(instr, opcode, args, cycles, flags):
regO, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regO and regA != "PC" and not ((regO == "L" or regO == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDrn_").format(
regO=regO,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLmn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLmn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LD__m_(instr, opcode, args, cycles, flags):
regH, regL, regI = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regI and not ((regI == "L" or regI == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LD__m_").format(
regH=regH,
regL=regL,
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDmm_(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regI and regA != "PC" and not ((regI == "L" or regI == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDmm_").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LD___m(instr, opcode, args, cycles, flags):
regO, regH, regL = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regO and not ((regO == "L" or regO == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LD___m").format(
regH=regH,
regL=regL,
regO=regO,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LD_mm(instr, opcode, args, cycles, flags):
regO, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regO and regA != "PC" and not ((regO == "L" or regO == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LD_mm").format(
regO=regO,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LD__nn(instr, opcode, args, cycles, flags):
regO1, regO2 = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regO1 and regA != regO2 and regA != "PC" and not ((regO1 == "L" or regO1 == "H" or regO2 == "L" or regO2 == "H") and regA == "HL"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LD__nn").format(
regO1=regO1,
regO2=regO2,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDSPnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and regA != "PC":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDSPnn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDmmSP(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and regA != "PC":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDmmSP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLIA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "H" and regA != "L" and regA != "HL":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLIA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDAHLI(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "H" and regA != "L" and regA != "HL" and regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDAHLI").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLDA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "H" and regA != "L" and regA != "HL":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLDA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDAHLD(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "H" and regA != "L" and regA != "HL" and regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDAHLD").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDAIOn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDAIOn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDAIOnA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDAIOnA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDIOnA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDIOnA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDAIOC(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDAIOC").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDIOCA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A":
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDIOCA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLSPn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "HL" and regA != "PC" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLSPn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def LDHLSPr(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("LDHLSPr").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADDr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADDHL(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDHLm").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
else:
regA_, regB_ = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "HL" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDHLrr").format(
regA = regA_,
regB = regB_,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADDHLSP(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "HL" and regA != "H" and regA != "L" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDHLSP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADDSPn(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDSPn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADCr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADCr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADCHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADCHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADCn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADCn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SUBr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SUBr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SUBHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SUBHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SUBn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SUBn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ADDn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ADDn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SBCr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != regI and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SBCr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SBCHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SBCHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SBCn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SBCn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CPr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CPr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CPHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CPHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CPn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CPn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def DAA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DAA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ANDr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ANDr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ANDHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ANDHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ANDn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ANDn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ORr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ORr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ORHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ORHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def ORn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("ORn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def XORr(instr, opcode, args, cycles, flags):
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("XORr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def XORHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("XORHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def XORn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("XORn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def INCr(instr, opcode, args, cycles, flags):
if len(args) == 2:
regA_, regB_ = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regA_ and regA != regB_ and not ((regA_ == "H" or regA_ == "L" or (regB_ == "H" or regB_ == "L")) and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("INCrr").format(
regA=regA_,
regB=regB_,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
else:
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regI and not ((regI == "H" or regI == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("INCr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def INCHLm(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("INCHLm").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def DECr(instr, opcode, args, cycles, flags):
if len(args) == 2:
regA_, regB_ = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regA_ and regA != regB_ and not ((regA_ == "H" or regA_ == "L" or (regB_ == "H" or regB_ == "L")) and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DECrr").format(
regA=regA_,
regB=regB_,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
else:
regI, = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != regI and not ((regI == "H" or regI == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DECr").format(
regI=regI,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def DECHLm(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DECHLm").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def INCSP(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("INCSP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def DECSP(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DECSP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RLA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RLA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RLCA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RLCA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RRA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RRA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RRCA(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RRCA").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CPL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "A" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CPL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CCF(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CCF").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def SCF(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("SCF").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RSTXX(instr, opcode, args, cycles, flags):
addr, = args
addr = int(addr[2:], 16)
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RSTXX").format(
addr=addr,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def PUSH(instr, opcode, args, cycles, flags):
regA_, regB_ = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("PUSH").format(
regA=regA_,
regB=regB_,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def POP(instr, opcode, args, cycles, flags):
regA_, regB_ = args
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "SP" and regA != regA_ and regA != regB_ and not ((regA_ == "H" or regB_ == "L") and regA == "HL") and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("POP").format(
regA=regA_,
regB=regB_,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JPnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("JPnn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JPHL(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("JPHL").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JPNZnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JPNZnn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
cycles=cycles,
flags=GenFlagAssert(flags)
)
def JPZnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JPZnn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
cycles=cycles,
flags=GenFlagAssert(flags)
)
def JPNCnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JPNCnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JPCnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JPCnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JRn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JRn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JRNZn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JRNZn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JRZn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JRZn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JRNCn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JRNCn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def JRCn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("JRCn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def STOP(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("STOP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CALLnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("CALLnn").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CALLNZnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("CALLNZnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CALLZnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("CALLZnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CALLNCnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("CALLNCnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def CALLCnn(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("CALLCnn").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RET(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RET").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RETI(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("RETI").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RETNZ(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("RETNZ").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RETZ(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("RETZ").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RETNC(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("RETNC").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def RETC(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if regA != "PC" and regA != "SP" and not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n"
return LoadTPL("RETC").format(
cycles=cycles,
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def EI(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("EI").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def DI(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("DI").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def NOP(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("NOP").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def NOPWARN(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("NOPWARN").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
def HALT(instr, opcode, args, cycles, flags):
asserts = '''#region Test no change to other regs\n'''
for regA in regList:
if not (CheckFlagChange(flags) and regA == "F"):
asserts = asserts + (" Assert.AreEqual(regAfter.%s, regBefore.%s);\n" % (regA, regA))
asserts = asserts + " #endregion\n %s" %(cycleTestTemplate %(cycles, cycles/4))
return LoadTPL("HALT").format(
opcode=opcode,
instr=instr,
asserts=asserts,
flags=GenFlagAssert(flags)
)
TestTemplates = {
"LDrr": LDrr,
"LDrHLm_": LDrHLm_,
"LDrn_": LDrn_,
"LDHLmr_": LDHLmr_,
"LD__m_": LD__m_,
"LDmm_": LDmm_,
"LD___m": LD___m,
"LD_mm": LD_mm,
"LD__nn": LD__nn,
"LDSPnn": LDSPnn,
"LDmmSP": LDmmSP,
"LDHLIA": LDHLIA,
"LDAHLI": LDAHLI,
"LDHLDA": LDHLDA,
"LDAHLD": LDAHLD,
"LDAIOn": LDAIOn,
"LDAIOn": LDAIOn,
"LDIOnA": LDIOnA,
"LDAIOC": LDAIOC,
"LDIOCA": LDIOCA,
"LDHLSPn": LDHLSPn,
"LDHLSPr": LDHLSPr,
"ADDr": ADDr,
"ADDn": ADDn,
"ADDHL": ADDHL,
"ADDHLSP": ADDHLSP,
"ADDSPn": ADDSPn,
"ADCr": ADCr,
"ADCHL": ADCHL,
"ADCn": ADCn,
"SUBr": SUBr,
"SUBHL": SUBHL,
"SUBn": SUBn,
"SBCr": SBCr,
"SBCHL": SBCHL,
"SBCn": SBCn,
"CPr": CPr,
"CPHL": CPHL,
"CPn": CPn,
"DAA": DAA,
"ANDr": ANDr,
"ANDHL": ANDHL,
"ANDn": ANDn,
"ORr": ORr,
"ORHL": ORHL,
"ORn": ORn,
"XORr": XORr,
"XORHL": XORHL,
"XORn": XORn,
"INCr": INCr,
"INC": INCr,
"INCHLm": INCHLm,
"DECr": DECr,
"DEC": DECr,
"DECHLm": DECHLm,
"INCSP": INCSP,
"DECSP": DECSP,
"RLA": RLA,
"RLCA": RLCA,
"RRA": RRA,
"RRCA": RRCA,
"CPL": CPL,
"CCF": CCF,
"SCF": SCF,
"RSTXX": RSTXX,
"PUSH": PUSH,
"POP": POP,
"JPnn": JPnn,
"JPHL": JPHL,
"JPNZnn": JPNZnn,
"JPZnn": JPZnn,
"JPNCnn": JPNCnn,
"JPCnn": JPCnn,
"JRn": JRn,
"JRNZn": JRNZn,
"JRZn": JRZn,
"JRNCn": JRNCn,
"JRCn": JRCn,
"STOP": STOP,
"CALLnn": CALLnn,
"CALLNZnn": CALLNZnn,
"CALLZnn": CALLZnn,
"CALLNCnn": CALLNCnn,
"CALLCnn": CALLCnn,
"RET": RET,
"RETI": RETI,
"RETNZ": RETNZ,
"RETZ": RETZ,
"RETNC": RETNC,
"RETC": RETC,
"EI": EI,
"DI": DI,
"NOP": NOP,
"NOPWARN": NOPWARN,
"HALT": HALT,
"LDHLmn": LDHLmn,
}
#print TestTemplates["LDrr"]("LDrr A, B", 0x78, ["A", "B"], 4, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None})
#print TestTemplates["LDrHLm_"]("LD A, [HL]", 0x7E, "A", 8, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None})
#print TestTemplates["LDrn_"]("LD A, d8", 0x3E, "A", 8, {'carry': None, 'halfcarry': None, 'sub': None, 'zero': None})
| """
Test Templates
"""
reg_list = ['A', 'B', 'C', 'D', 'E', 'F', 'H', 'L', 'HL', 'PC', 'SP']
cpu_test_file = '\nnamespace GameBoyEmulator.Desktop.Tests {\n [TestFixture]\n public class CPUTest {\n private const int RUN_CYCLES = 10;\n\n {TESTS}\n }\n}\n'
base_test_template = '\n [Test]\n public void TestOpcode{OPCODE}() {\n var cpu = new CPU();\n for (var i = 0; i < RUN_CYCLES; i++) {\n cpu.Reset();\n cpu.reg.RandomizeRegisters();\n cpu.memory.RandomizeMemory();\n\n var regBefore = cpu.reg.Clone();\n CPUInstructions.opcodes[0x{OPCODE}](cpu);\n var regAfter = cpu.reg.Clone();\n\n {CHECKS}\n }\n }\n'
base_test_cb_template = '\n [Test]\n public void TestOpcodeCB{OPCODE}() {\n var cpu = new CPU();\n for (var i = 0; i < RUN_CYCLES; i++) {\n cpu.Reset();\n cpu.reg.RandomizeRegisters();\n cpu.memory.RandomizeMemory();\n\n var regBefore = cpu.reg.Clone();\n CPUInstructions.CBOPS[0x{OPCODE}](cpu);\n var regAfter = cpu.reg.Clone();\n\n {CHECKS}\n }\n }\n'
cycle_test_template = '\n #region Test Cycles\n Assert.AreEqual(%s, regAfter.lastClockT);\n Assert.AreEqual(%s, regAfter.lastClockM);\n #endregion\n'
def load_tpl(tplname):
f = open('CSharp/%s.cs' % tplname)
tpl = f.read()
f.close()
return tpl
def check_flag_change(flags):
return not (flags['carry'] == None and flags['sub'] == None and (flags['halfcarry'] == None) and (flags['zero'] == None))
def gen_flag_assert(flags):
flag_assert = '\n #region Flag Tests\n'
if flags['carry'] == False or flags['carry'] == True:
flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagCarry);\n' % str(flags['carry']).lower()
elif flags['carry'] == None:
flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagCarry, regBefore.FlagCarry);\n'
if flags['halfcarry'] == False or flags['halfcarry'] == True:
flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagHalfCarry);\n' % str(flags['halfcarry']).lower()
elif flags['halfcarry'] == None:
flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagHalfCarry, regBefore.FlagHalfCarry);\n'
if flags['sub'] == False or flags['sub'] == True:
flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagSub);\n' % str(flags['sub']).lower()
elif flags['sub'] == None:
flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagSub, regBefore.FlagSub);\n'
if flags['zero'] == False or flags['zero'] == True:
flag_assert = flagAssert + ' Assert.AreEqual(%s, regAfter.FlagZero);\n' % str(flags['zero']).lower()
elif flags['zero'] == None:
flag_assert = flagAssert + ' Assert.AreEqual(regAfter.FlagZero, regBefore.FlagZero);\n'
flag_assert = flagAssert + ' #endregion'
return flagAssert
def l_drr(instr, opcode, args, cycles, flags):
(reg_i, reg_o) = args
asserts = '\n #region Test no change to other regs\n'
for reg_a in regList:
if regA != regI and (not ((regI == 'L' or regI == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDrr').format(regI=regI, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def l_dr_h_lm_(instr, opcode, args, cycles, flags):
(reg_o,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regO and (not ((regO == 'L' or regO == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDrHLm_').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldh_lmr_(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regI:
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLmr_').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def l_drn_(instr, opcode, args, cycles, flags):
(reg_o,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regO and regA != 'PC' and (not ((regO == 'L' or regO == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDrn_').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldh_lmn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLmn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ld__m_(instr, opcode, args, cycles, flags):
(reg_h, reg_l, reg_i) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regI and (not ((regI == 'L' or regI == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LD__m_').format(regH=regH, regL=regL, regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def l_dmm_(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regI and regA != 'PC' and (not ((regI == 'L' or regI == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDmm_').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ld___m(instr, opcode, args, cycles, flags):
(reg_o, reg_h, reg_l) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regO and (not ((regO == 'L' or regO == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LD___m').format(regH=regH, regL=regL, regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ld_mm(instr, opcode, args, cycles, flags):
(reg_o,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regO and regA != 'PC' and (not ((regO == 'L' or regO == 'H') and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LD_mm').format(regO=regO, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ld__nn(instr, opcode, args, cycles, flags):
(reg_o1, reg_o2) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regO1 and regA != regO2 and (regA != 'PC') and (not ((regO1 == 'L' or regO1 == 'H' or regO2 == 'L' or (regO2 == 'H')) and regA == 'HL')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LD__nn').format(regO1=regO1, regO2=regO2, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def lds_pnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and regA != 'PC':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDSPnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def l_dmm_sp(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and regA != 'PC':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDmmSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldhlia(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'H' and regA != 'L' and (regA != 'HL'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLIA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldahli(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'H' and regA != 'L' and (regA != 'HL') and (regA != 'A'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDAHLI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldhlda(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'H' and regA != 'L' and (regA != 'HL'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLDA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldahld(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'H' and regA != 'L' and (regA != 'HL') and (regA != 'A'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDAHLD').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldai_on(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'A':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDAIOn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldai_on_a(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'A':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDAIOnA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldi_on_a(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDIOnA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldaioc(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDAIOC').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldioca(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A':
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDIOCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldhls_pn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'HL' and regA != 'PC' and (regA != 'H') and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLSPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ldhls_pr(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('LDHLSPr').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ad_dr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def addhl(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
else:
(reg_a_, reg_b_) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'HL' and regA != 'H' and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDHLrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def addhlsp(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'HL' and regA != 'H' and (regA != 'L') and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDHLSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def adds_pn(instr, opcode, args, cycles, flags):
if len(args) == 0:
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDSPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ad_cr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def adchl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADCHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ad_cn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADCn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def su_br(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SUBr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def subhl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SUBHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def su_bn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SUBn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ad_dn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ADDn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def sb_cr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != regI and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SBCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def sbchl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SBCHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def sb_cn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SBCn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def c_pr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CPr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def cphl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CPHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def c_pn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CPn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def daa(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DAA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def an_dr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ANDr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def andhl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ANDHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def an_dn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ANDn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def o_rr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ORr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def orhl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ORHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def o_rn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('ORn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def xo_rr(instr, opcode, args, cycles, flags):
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('XORr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def xorhl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('XORHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def xo_rn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('XORn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def in_cr(instr, opcode, args, cycles, flags):
if len(args) == 2:
(reg_a_, reg_b_) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regA_ and regA != regB_ and (not ((regA_ == 'H' or regA_ == 'L' or (regB_ == 'H' or regB_ == 'L')) and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('INCrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
else:
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regI and (not ((regI == 'H' or regI == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('INCr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def inch_lm(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('INCHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def de_cr(instr, opcode, args, cycles, flags):
if len(args) == 2:
(reg_a_, reg_b_) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regA_ and regA != regB_ and (not ((regA_ == 'H' or regA_ == 'L' or (regB_ == 'H' or regB_ == 'L')) and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DECrr').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
else:
(reg_i,) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != regI and (not ((regI == 'H' or regI == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DECr').format(regI=regI, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def dech_lm(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DECHLm').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def incsp(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('INCSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def decsp(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DECSP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def rla(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RLA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def rlca(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RLCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def rra(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RRA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def rrca(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RRCA').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def cpl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'A' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CPL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ccf(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CCF').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def scf(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('SCF').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def rstxx(instr, opcode, args, cycles, flags):
(addr,) = args
addr = int(addr[2:], 16)
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RSTXX').format(addr=addr, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def push(instr, opcode, args, cycles, flags):
(reg_a_, reg_b_) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('PUSH').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def pop(instr, opcode, args, cycles, flags):
(reg_a_, reg_b_) = args
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'SP' and regA != regA_ and (regA != regB_) and (not ((regA_ == 'H' or regB_ == 'L') and regA == 'HL')) and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('POP').format(regA=regA_, regB=regB_, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def j_pnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('JPnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jphl(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('JPHL').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jpn_znn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JPNZnn').format(opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=gen_flag_assert(flags))
def jp_znn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JPZnn').format(opcode=opcode, instr=instr, asserts=asserts, cycles=cycles, flags=gen_flag_assert(flags))
def jpn_cnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JPNCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jp_cnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JPCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def j_rn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JRn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jrn_zn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JRNZn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jr_zn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JRZn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jrn_cn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JRNCn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def jr_cn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('JRCn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def stop(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('STOP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def cal_lnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('CALLnn').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def calln_znn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('CALLNZnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def call_znn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('CALLZnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def calln_cnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('CALLNCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def call_cnn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('CALLCnn').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ret(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RET').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def reti(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('RETI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def retnz(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('RETNZ').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def retz(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('RETZ').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def retnc(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('RETNC').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def retc(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if regA != 'PC' and regA != 'SP' and (not (check_flag_change(flags) and regA == 'F')):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n'
return load_tpl('RETC').format(cycles=cycles, opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def ei(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('EI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def di(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('DI').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def nop(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('NOP').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def nopwarn(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('NOPWARN').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
def halt(instr, opcode, args, cycles, flags):
asserts = '#region Test no change to other regs\n'
for reg_a in regList:
if not (check_flag_change(flags) and regA == 'F'):
asserts = asserts + ' Assert.AreEqual(regAfter.%s, regBefore.%s);\n' % (regA, regA)
asserts = asserts + ' #endregion\n %s' % (cycleTestTemplate % (cycles, cycles / 4))
return load_tpl('HALT').format(opcode=opcode, instr=instr, asserts=asserts, flags=gen_flag_assert(flags))
test_templates = {'LDrr': LDrr, 'LDrHLm_': LDrHLm_, 'LDrn_': LDrn_, 'LDHLmr_': LDHLmr_, 'LD__m_': LD__m_, 'LDmm_': LDmm_, 'LD___m': LD___m, 'LD_mm': LD_mm, 'LD__nn': LD__nn, 'LDSPnn': LDSPnn, 'LDmmSP': LDmmSP, 'LDHLIA': LDHLIA, 'LDAHLI': LDAHLI, 'LDHLDA': LDHLDA, 'LDAHLD': LDAHLD, 'LDAIOn': LDAIOn, 'LDAIOn': LDAIOn, 'LDIOnA': LDIOnA, 'LDAIOC': LDAIOC, 'LDIOCA': LDIOCA, 'LDHLSPn': LDHLSPn, 'LDHLSPr': LDHLSPr, 'ADDr': ADDr, 'ADDn': ADDn, 'ADDHL': ADDHL, 'ADDHLSP': ADDHLSP, 'ADDSPn': ADDSPn, 'ADCr': ADCr, 'ADCHL': ADCHL, 'ADCn': ADCn, 'SUBr': SUBr, 'SUBHL': SUBHL, 'SUBn': SUBn, 'SBCr': SBCr, 'SBCHL': SBCHL, 'SBCn': SBCn, 'CPr': CPr, 'CPHL': CPHL, 'CPn': CPn, 'DAA': DAA, 'ANDr': ANDr, 'ANDHL': ANDHL, 'ANDn': ANDn, 'ORr': ORr, 'ORHL': ORHL, 'ORn': ORn, 'XORr': XORr, 'XORHL': XORHL, 'XORn': XORn, 'INCr': INCr, 'INC': INCr, 'INCHLm': INCHLm, 'DECr': DECr, 'DEC': DECr, 'DECHLm': DECHLm, 'INCSP': INCSP, 'DECSP': DECSP, 'RLA': RLA, 'RLCA': RLCA, 'RRA': RRA, 'RRCA': RRCA, 'CPL': CPL, 'CCF': CCF, 'SCF': SCF, 'RSTXX': RSTXX, 'PUSH': PUSH, 'POP': POP, 'JPnn': JPnn, 'JPHL': JPHL, 'JPNZnn': JPNZnn, 'JPZnn': JPZnn, 'JPNCnn': JPNCnn, 'JPCnn': JPCnn, 'JRn': JRn, 'JRNZn': JRNZn, 'JRZn': JRZn, 'JRNCn': JRNCn, 'JRCn': JRCn, 'STOP': STOP, 'CALLnn': CALLnn, 'CALLNZnn': CALLNZnn, 'CALLZnn': CALLZnn, 'CALLNCnn': CALLNCnn, 'CALLCnn': CALLCnn, 'RET': RET, 'RETI': RETI, 'RETNZ': RETNZ, 'RETZ': RETZ, 'RETNC': RETNC, 'RETC': RETC, 'EI': EI, 'DI': DI, 'NOP': NOP, 'NOPWARN': NOPWARN, 'HALT': HALT, 'LDHLmn': LDHLmn} |
#Start of code
x=['a','e','i','o','u','A','E','I','O','U']
y=input("Enter an Alphabet: ")
if y in x:
print(y,"is a vowel")
else:
print(y,"is not a vowel")
#End of code
| x = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
y = input('Enter an Alphabet: ')
if y in x:
print(y, 'is a vowel')
else:
print(y, 'is not a vowel') |
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'utils.authenticate.GoogleBackend',
]
| authentication_backends = ['django.contrib.auth.backends.ModelBackend', 'utils.authenticate.GoogleBackend'] |
N, M = map(int, input().split())
A = []
B = []
for i in range(N):
A.append(list(map(int, input().split())))
for i in range(N):
B.append(list(map(int, input().split())))
C = []
for i in range(N):
tmp = []
for j in range(M):
a = A[i][j]
b = B[i][j]
tmp.append(a ^ b)
C.append(tmp)
for i in range(N - 1):
for j in range(M - 1):
if C[i][j] == 0:
continue
else:
C[i][j] = 0
C[i + 1][j] = 1 if C[i + 1][j] == 0 else 0
C[i][j + 1] = 1 if C[i][j + 1] == 0 else 0
C[i + 1][j + 1] = 1 if C[i + 1][j + 1] == 0 else 0
for i in range(N):
for j in range(M):
c = C[i][j]
if c == 1:
print("No")
exit()
print("Yes")
| (n, m) = map(int, input().split())
a = []
b = []
for i in range(N):
A.append(list(map(int, input().split())))
for i in range(N):
B.append(list(map(int, input().split())))
c = []
for i in range(N):
tmp = []
for j in range(M):
a = A[i][j]
b = B[i][j]
tmp.append(a ^ b)
C.append(tmp)
for i in range(N - 1):
for j in range(M - 1):
if C[i][j] == 0:
continue
else:
C[i][j] = 0
C[i + 1][j] = 1 if C[i + 1][j] == 0 else 0
C[i][j + 1] = 1 if C[i][j + 1] == 0 else 0
C[i + 1][j + 1] = 1 if C[i + 1][j + 1] == 0 else 0
for i in range(N):
for j in range(M):
c = C[i][j]
if c == 1:
print('No')
exit()
print('Yes') |
def get_fisnar_commands(**kwargs):
"""
get a list of the fisnar commands with a specified filter
:param xyz: set to True to only return commands that take in x, y, and z coordinates
:type xyz: bool
"""
filters = [] # list to store filters
kwarg_keys = ["xyz"]
for key in kwargs: # translating kwargs to filters
if isinstance(kwargs[key], bool) and kwargs[key]: # if kwargs was assigned with True
if key in kwarg_keys:
filters.append(key)
# all commands accepted by the fisnar software
all_commands = {"Arc Point": ["xyz"],
"Brush Area": [],
"Call Program": [],
"Call Subroutine": ["xyz"],
"Circle(Lift)": ["xyz"],
"Circle(No Lift)": ["xyz"],
"Dispense Dot": ["xyz"],
"Dispense End Setup": [],
"Dispense On/Off": [],
"Dispense Output": [],
"Display Counter": [],
"Dummy Point": ["xyz"],
"End Program": [],
"GoTo Address": [],
"Home Point": [],
"Input": [],
"Label": [],
"Line Dispense": [],
"Line End": ["xyz"],
"Line Passing": ["xyz"],
"Line Speed": [],
"Line Start": ["xyz"],
"Loop Address": [],
"Loop Counter": [],
"Output": [],
"Point Dispense": [],
"Retract": [],
"Step and Repeat X": [],
"Step and Repeat Y": [],
"Stop Point": [],
"Wait Point": [],
"Z Clearance": []}
ret_command_list = [] # list to append commands to and return
for key in all_commands: # for each command in dictionary
meets_reqs = True
for req in filters:
if req not in all_commands[key]:
meets_reqs = False
if meets_reqs: # if command passes all filters
ret_command_list.append(key)
return ret_command_list
# debug station
if __name__ == "__main__":
print(get_fisnar_commands(xyz=True))
| def get_fisnar_commands(**kwargs):
"""
get a list of the fisnar commands with a specified filter
:param xyz: set to True to only return commands that take in x, y, and z coordinates
:type xyz: bool
"""
filters = []
kwarg_keys = ['xyz']
for key in kwargs:
if isinstance(kwargs[key], bool) and kwargs[key]:
if key in kwarg_keys:
filters.append(key)
all_commands = {'Arc Point': ['xyz'], 'Brush Area': [], 'Call Program': [], 'Call Subroutine': ['xyz'], 'Circle(Lift)': ['xyz'], 'Circle(No Lift)': ['xyz'], 'Dispense Dot': ['xyz'], 'Dispense End Setup': [], 'Dispense On/Off': [], 'Dispense Output': [], 'Display Counter': [], 'Dummy Point': ['xyz'], 'End Program': [], 'GoTo Address': [], 'Home Point': [], 'Input': [], 'Label': [], 'Line Dispense': [], 'Line End': ['xyz'], 'Line Passing': ['xyz'], 'Line Speed': [], 'Line Start': ['xyz'], 'Loop Address': [], 'Loop Counter': [], 'Output': [], 'Point Dispense': [], 'Retract': [], 'Step and Repeat X': [], 'Step and Repeat Y': [], 'Stop Point': [], 'Wait Point': [], 'Z Clearance': []}
ret_command_list = []
for key in all_commands:
meets_reqs = True
for req in filters:
if req not in all_commands[key]:
meets_reqs = False
if meets_reqs:
ret_command_list.append(key)
return ret_command_list
if __name__ == '__main__':
print(get_fisnar_commands(xyz=True)) |
contacts = {}
running = True;
while running:
command = input('enter A(dd) D(elete) F(ind) Q(uit)')
if command == 'A' or command == 'a':
name = input('enter a new name');
print('enter a phone number for', name, end=':')
number=input()
contacts[name] = number
elif command == 'D' or command == 'd':
name = input('enter name to delete')
del contacts[name]
elif command == 'F' or command == 'f':
name = input('enter a name to search for')
print(name,contacts[name],sep=':')
elif command == 'Q' or command == 'q':
running = False
elif command == 'list':
print(contacts)
else:
print(command, 'is not a valid command')
| contacts = {}
running = True
while running:
command = input('enter A(dd) D(elete) F(ind) Q(uit)')
if command == 'A' or command == 'a':
name = input('enter a new name')
print('enter a phone number for', name, end=':')
number = input()
contacts[name] = number
elif command == 'D' or command == 'd':
name = input('enter name to delete')
del contacts[name]
elif command == 'F' or command == 'f':
name = input('enter a name to search for')
print(name, contacts[name], sep=':')
elif command == 'Q' or command == 'q':
running = False
elif command == 'list':
print(contacts)
else:
print(command, 'is not a valid command') |
class Atom:
def __init__(self, symbol, atoms, neutr):
self.symbol = str(symbol)
self.atoms = int(atoms)
self.neutrons = int(neutr)
self.protons = int(0)
self.mass = int(0)
def proton_number(self):
self.protons = self.atoms - self.neutrons
return self.protons
def mass_number(self):
self.mass = int(sum([self.atoms, self.neutrons]))
return self.mass
def isotope(self, neutrons):
self.neutrons = neutrons
def __lt__(self, other):
if self.protons == other.protons:
return self.mass_number() < other.mass_number()
def __le__(self, other):
if self.protons == other.protons:
return self.mass_number() <= other.mass_number()
def __ge__(self, other):
if self.protons == other.protons:
return self.mass_number() >= other.mass_number()
def __gt__(self, other):
if self.protons == other.protons:
return self.mass_number() > other.mass_number()
# protium = Atom('H', 1, 1)
# print(protium.n_neutrons)
# protium.isotope(3)
# print(protium.n_neutrons)
protium = Atom('H', 1, 1)
deuterium = Atom('H', 1, 2)
oxygen = Atom('O', 8, 8)
tritium = Atom('H', 1, 2)
tritium.isotope(3)
assert tritium.neutrons == 3
assert tritium.mass_number() == 4
assert protium < deuterium
assert deuterium <= tritium
assert tritium >= protium
print(oxygen > tritium) # <-- this should raise an Exception | class Atom:
def __init__(self, symbol, atoms, neutr):
self.symbol = str(symbol)
self.atoms = int(atoms)
self.neutrons = int(neutr)
self.protons = int(0)
self.mass = int(0)
def proton_number(self):
self.protons = self.atoms - self.neutrons
return self.protons
def mass_number(self):
self.mass = int(sum([self.atoms, self.neutrons]))
return self.mass
def isotope(self, neutrons):
self.neutrons = neutrons
def __lt__(self, other):
if self.protons == other.protons:
return self.mass_number() < other.mass_number()
def __le__(self, other):
if self.protons == other.protons:
return self.mass_number() <= other.mass_number()
def __ge__(self, other):
if self.protons == other.protons:
return self.mass_number() >= other.mass_number()
def __gt__(self, other):
if self.protons == other.protons:
return self.mass_number() > other.mass_number()
protium = atom('H', 1, 1)
deuterium = atom('H', 1, 2)
oxygen = atom('O', 8, 8)
tritium = atom('H', 1, 2)
tritium.isotope(3)
assert tritium.neutrons == 3
assert tritium.mass_number() == 4
assert protium < deuterium
assert deuterium <= tritium
assert tritium >= protium
print(oxygen > tritium) |
#!/usr/bin/env python3
xList = [ int( x ) for x in input().split() ]
xList = sorted( xList )
medianIndex = len( xList ) // 2
if len( xList ) % 2 == 0:
print( ( xList[medianIndex-1] + xList[medianIndex] ) / 2. )
else:
print( float( xList[ medianIndex ] ) )
| x_list = [int(x) for x in input().split()]
x_list = sorted(xList)
median_index = len(xList) // 2
if len(xList) % 2 == 0:
print((xList[medianIndex - 1] + xList[medianIndex]) / 2.0)
else:
print(float(xList[medianIndex])) |
class Box(object):
def __init__(self, side, height):
self._side = side
self._height = height
def volume(self):
return self._side * self._side * self._height
def __lt__(self, other):
return self.volume() < other
def __eq__(self, other):
return self.volume() == other
def __gt__(self, other):
return self.volume() > other
def __repr__(self):
return "Box(side=%s, height=%s)" % (self._side, self._height)
| class Box(object):
def __init__(self, side, height):
self._side = side
self._height = height
def volume(self):
return self._side * self._side * self._height
def __lt__(self, other):
return self.volume() < other
def __eq__(self, other):
return self.volume() == other
def __gt__(self, other):
return self.volume() > other
def __repr__(self):
return 'Box(side=%s, height=%s)' % (self._side, self._height) |
ROCK, PAPER, SCISSORS = range(3)
class RpsCandidate:
"""
Abstract base class for candidates for the
Pi In The Sky: Rock Paper Scissors Competition
"""
def __init__(self):
pass
def getNextMove(self):
"""
Get the next move in the game
Returns:
the next move (ROCK, PAPER, or SCISSORS)
"""
pass
def setOpponentsLastMove(self, move):
"""
Set the opponents last move
Args:
move: the opponents last move (ROCK, PAPER, or SCISSORS)
"""
pass
| (rock, paper, scissors) = range(3)
class Rpscandidate:
"""
Abstract base class for candidates for the
Pi In The Sky: Rock Paper Scissors Competition
"""
def __init__(self):
pass
def get_next_move(self):
"""
Get the next move in the game
Returns:
the next move (ROCK, PAPER, or SCISSORS)
"""
pass
def set_opponents_last_move(self, move):
"""
Set the opponents last move
Args:
move: the opponents last move (ROCK, PAPER, or SCISSORS)
"""
pass |
class Card():
ranks = [str(n) for n in range(2, 10)] + list('TJQKA')
rank_tran = {rank: n for n, rank in enumerate(ranks, 2)}
def __init__(self, rank, suit):
self.rank = rank
self.suit = suit
self._numrank = self.rank_tran[rank]
def __eq__(self, other):
return self._numrank == other._numrank
def __ne__(self, other):
return self._numrank != other._numrank
def __lt__(self, other):
return self._numrank < other._numrank
def __gt__(self, other):
return self._numrank > other._numrank
def __repr__(self):
return f'Card({self.rank}, {self.suit})'
| class Card:
ranks = [str(n) for n in range(2, 10)] + list('TJQKA')
rank_tran = {rank: n for (n, rank) in enumerate(ranks, 2)}
def __init__(self, rank, suit):
self.rank = rank
self.suit = suit
self._numrank = self.rank_tran[rank]
def __eq__(self, other):
return self._numrank == other._numrank
def __ne__(self, other):
return self._numrank != other._numrank
def __lt__(self, other):
return self._numrank < other._numrank
def __gt__(self, other):
return self._numrank > other._numrank
def __repr__(self):
return f'Card({self.rank}, {self.suit})' |
class Solution:
def twoCitySchedCost(self, costs: List[List[int]]) -> int:
# def helper(countA, countB, idx, cur_cost):
# if idx == len(costs):
# return cur_cost
# if countA < len(costs) // 2 and countB < len(costs) // 2:
# return min(helper(countA + 1, countB, idx + 1, cur_cost + costs[idx][0]),
# helper(countA, countB + 1, idx + 1, cur_cost + costs[idx][1]))
# return cur_cost + sum([costs[i][0] for i in range(idx, len(costs))]) if countA < len(costs) // 2 else cur_cost + sum([costs[i][1] for i in range(idx, len(costs))])
# return helper(0, 0, 0, 0)
a_minus_b = sorted([(a - b, a, b) for a, b in costs])
return sum([cost[1] for cost in a_minus_b[:len(costs)//2]] + [cost[2] for cost in a_minus_b[len(costs)//2:]]) | class Solution:
def two_city_sched_cost(self, costs: List[List[int]]) -> int:
a_minus_b = sorted([(a - b, a, b) for (a, b) in costs])
return sum([cost[1] for cost in a_minus_b[:len(costs) // 2]] + [cost[2] for cost in a_minus_b[len(costs) // 2:]]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.