content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
PALETTE = (
'#51A351',
'#f89406',
'#7D1935',
'#4A96AD',
'#DE1B1B',
'#E9E581',
'#A2AB58',
'#FFE658',
'#118C4E',
'#193D4F',
)
LABELS = {
'cpu_user': 'CPU time spent in user mode, %',
'cpu_nice': 'CPU time spent in user mode with low priority (nice), %',
'cpu_sys': 'CPU time spent in system mode, %',
'cpu_idle': 'CPU time spent in the idle task, %',
'cpu_iowait': 'CPU time waiting for I/O to complete, %',
'mem_used': 'Total RAM in use (doesn\'t include buffers and cache)',
'mem_free': 'Amount of free RAM',
'mem_buff': 'Relatively temporary storage for raw disk blocks',
'mem_cache': 'In-memory cache for files read from the disk',
}
| palette = ('#51A351', '#f89406', '#7D1935', '#4A96AD', '#DE1B1B', '#E9E581', '#A2AB58', '#FFE658', '#118C4E', '#193D4F')
labels = {'cpu_user': 'CPU time spent in user mode, %', 'cpu_nice': 'CPU time spent in user mode with low priority (nice), %', 'cpu_sys': 'CPU time spent in system mode, %', 'cpu_idle': 'CPU time spent in the idle task, %', 'cpu_iowait': 'CPU time waiting for I/O to complete, %', 'mem_used': "Total RAM in use (doesn't include buffers and cache)", 'mem_free': 'Amount of free RAM', 'mem_buff': 'Relatively temporary storage for raw disk blocks', 'mem_cache': 'In-memory cache for files read from the disk'} |
def alphabet_war(reinforces, airstrikes):
n=len(reinforces[0])
r=[]
for _ in range(n):
r.append([])
for reinforce in reinforces:
for i in range(n):
r[i].append(reinforce[i])
a=[]
for i in range(n):
a.append(r[i].pop(0))
for airstrike in airstrikes:
st=set()
for i in range(len(airstrike)):
if airstrike[i]=='*':
st.add(i)
if i>0: st.add(i-1)
if i<n-1: st.add(i+1)
for i in st:
if r[i]:
a[i]=r[i].pop(0)
else:
a[i]='_'
return ''.join(a) | def alphabet_war(reinforces, airstrikes):
n = len(reinforces[0])
r = []
for _ in range(n):
r.append([])
for reinforce in reinforces:
for i in range(n):
r[i].append(reinforce[i])
a = []
for i in range(n):
a.append(r[i].pop(0))
for airstrike in airstrikes:
st = set()
for i in range(len(airstrike)):
if airstrike[i] == '*':
st.add(i)
if i > 0:
st.add(i - 1)
if i < n - 1:
st.add(i + 1)
for i in st:
if r[i]:
a[i] = r[i].pop(0)
else:
a[i] = '_'
return ''.join(a) |
# > \brief \b DROTMG
#
# =========== DOCUMENTATION ===========
#
# Online html documentation available at
# http://www.netlib.org/lapack/explore-html/
#
# Definition:
# ===========
#
# def DROTMG(DD1,DD2,DX1,DY1,DPARAM)
#
# .. Scalar Arguments ..
# DOUBLE PRECISION DD1,DD2,DX1,DY1
# ..
# .. Array Arguments ..
# DOUBLE PRECISION DPARAM(5)
# ..
#
#
# > \par Purpose:
# =============
# >
# > \verbatim
# >
# > CONSTRUCT THE MODIFIED GIVENS TRANSFORMATION MATRIX H WHICH ZEROS
# > THE SECOND COMPONENT OF THE 2-VECTOR (sqrt(DD1)*DX1,sqrt(DD2)*> DY2)**T.
# > WITH DPARAM(1)=DFLAG, H HAS ONE OF THE FOLLOWING FORMS..
# >
# > DFLAG=-1.D0 DFLAG=0.D0 DFLAG=1.D0 DFLAG=-2.D0
# >
# > (DH11 DH12) (1.D0 DH12) (DH11 1.D0) (1.D0 0.D0)
# > H=( ) ( ) ( ) ( )
# > (DH21 DH22), (DH21 1.D0), (-1.D0 DH22), (0.D0 1.D0).
# > LOCATIONS 2-4 OF DPARAM CONTAIN DH11, DH21, DH12, AND DH22
# > RESPECTIVELY. (VALUES OF 1.D0, -1.D0, OR 0.D0 IMPLIED BY THE
# > VALUE OF DPARAM(1) ARE NOT STORED IN DPARAM.)
# >
# > THE VALUES OF GAMSQ AND RGAMSQ SET IN THE DATA STATEMENT MAY BE
# > INEXACT. THIS IS OK AS THEY ARE ONLY USED FOR TESTING THE SIZE
# > OF DD1 AND DD2. ALL ACTUAL SCALING OF DATA IS DONE USING GAM.
# >
# > \endverbatim
#
# Arguments:
# ==========
#
# > \param[in,out] DD1
# > \verbatim
# > DD1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in,out] DD2
# > \verbatim
# > DD2 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in,out] DX1
# > \verbatim
# > DX1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[in] DY1
# > \verbatim
# > DY1 is DOUBLE PRECISION
# > \endverbatim
# >
# > \param[out] DPARAM
# > \verbatim
# > DPARAM is DOUBLE PRECISION array, dimension (5)
# > DPARAM(1)=DFLAG
# > DPARAM(2)=DH11
# > DPARAM(3)=DH21
# > DPARAM(4)=DH12
# > DPARAM(5)=DH22
# > \endverbatim
#
# Authors:
# ========
#
# > \author Univ. of Tennessee
# > \author Univ. of California Berkeley
# > \author Univ. of Colorado Denver
# > \author NAG Ltd.
#
# > \date November 2017
#
# > \ingroup double_blas_level1
#
# =====================================================================
def drotmg(DD1, DD2, DX1, DY1, DPARAM):
#
# -- Reference BLAS level1 routine (version 3.8.0) --
# -- Reference BLAS is a software package provided by Univ. of Tennessee, --
# -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
# November 2017
#
# .. Scalar Arguments ..
# DOUBLE PRECISION DD1,DD2,DX1,DY1
# ..
# .. Array Arguments ..
# DOUBLE PRECISION DPARAM(5)
# ..
#
# =====================================================================
#
# .. Local Scalars ..
# DOUBLE PRECISION DFLAG,DH11,DH12,DH21,DH22,DP1,DP2,DQ1,DQ2,DTEMP,
# $ DU,GAM,GAMSQ,ONE,RGAMSQ,TWO,ZERO
# ..
# .. Intrinsic Functions ..
# INTRINSIC DABS
# ..
# .. Data statements ..
#
# DATA ZERO,ONE,TWO/0.D0,1.D0,2.D0/
# DATA GAM,GAMSQ,RGAMSQ/4096.D0,16777216.D0,5.9604645D-8/
# ..
GAM = 4096
GAMSQ = 16777216
RGAMSQ = 5.9604645e-8
if DD1 < 0:
# GO ZERO-H-D-AND-DX1..
DFLAG = -1
DH11 = 0
DH12 = 0
DH21 = 0
DH22 = 0
#
DD1 = 0
DD2 = 0
DX1 = 0
else:
# CASE-DD1-NONNEGATIVE
DP2 = DD2 * DY1
if DP2 == 0:
DFLAG = -2
DPARAM[1] = DFLAG
return
# REGULAR-CASE..
DP1 = DD1 * DX1
DQ2 = DP2 * DY1
DQ1 = DP1 * DX1
#
if abs(DQ1) > abs(DQ2):
DH21 = -DY1 / DX1
DH12 = DP2 / DP1
#
DU = 1 - DH12 * DH21
#
if DU > 0:
DFLAG = 0
DD1 = DD1 / DU
DD2 = DD2 / DU
DX1 = DX1 * DU
else:
if DQ2 < 0:
# GO ZERO-H-D-AND-DX1..
DFLAG = -1
DH11 = 0
DH12 = 0
DH21 = 0
DH22 = 0
#
DD1 = 0
DD2 = 0
DX1 = 0
else:
DFLAG = 1
DH11 = DP1 / DP2
DH22 = DX1 / DY1
DU = 1 + DH11 * DH22
DTEMP = DD2 / DU
DD2 = DD1 / DU
DD1 = DTEMP
DX1 = DY1 * DU
# PROCEDURE..SCALE-CHECK
if DD1 != 0:
while (DD1 <= RGAMSQ) or (DD1 >= GAMSQ):
if DFLAG == 0:
DH11 = 1
DH22 = 1
DFLAG = -1
else:
DH21 = -1
DH12 = 1
DFLAG = -1
if DD1 <= RGAMSQ:
DD1 = DD1 * GAM ** 2
DX1 = DX1 / GAM
DH11 = DH11 / GAM
DH12 = DH12 / GAM
else:
DD1 = DD1 / GAM ** 2
DX1 = DX1 * GAM
DH11 = DH11 * GAM
DH12 = DH12 * GAM
if DD2 != 0:
while (abs(DD2) <= RGAMSQ) or (abs(DD2) >= GAMSQ):
if DFLAG == 0:
DH11 = 1
DH22 = 1
DFLAG = -1
else:
DH21 = -1
DH12 = 1
DFLAG = -1
if abs(DD2) <= RGAMSQ:
DD2 = DD2 * GAM ** 2
DH21 = DH21 / GAM
DH22 = DH22 / GAM
else:
DD2 = DD2 / GAM ** 2
DH21 = DH21 * GAM
DH22 = DH22 * GAM
if DFLAG < 0:
DPARAM[2] = DH11
DPARAM[3] = DH21
DPARAM[4] = DH12
DPARAM[5] = DH22
elif DFLAG == 0:
DPARAM[3] = DH21
DPARAM[4] = DH12
else:
DPARAM[2] = DH11
DPARAM[5] = DH22
DPARAM[1] = DFLAG
| def drotmg(DD1, DD2, DX1, DY1, DPARAM):
gam = 4096
gamsq = 16777216
rgamsq = 5.9604645e-08
if DD1 < 0:
dflag = -1
dh11 = 0
dh12 = 0
dh21 = 0
dh22 = 0
dd1 = 0
dd2 = 0
dx1 = 0
else:
dp2 = DD2 * DY1
if DP2 == 0:
dflag = -2
DPARAM[1] = DFLAG
return
dp1 = DD1 * DX1
dq2 = DP2 * DY1
dq1 = DP1 * DX1
if abs(DQ1) > abs(DQ2):
dh21 = -DY1 / DX1
dh12 = DP2 / DP1
du = 1 - DH12 * DH21
if DU > 0:
dflag = 0
dd1 = DD1 / DU
dd2 = DD2 / DU
dx1 = DX1 * DU
elif DQ2 < 0:
dflag = -1
dh11 = 0
dh12 = 0
dh21 = 0
dh22 = 0
dd1 = 0
dd2 = 0
dx1 = 0
else:
dflag = 1
dh11 = DP1 / DP2
dh22 = DX1 / DY1
du = 1 + DH11 * DH22
dtemp = DD2 / DU
dd2 = DD1 / DU
dd1 = DTEMP
dx1 = DY1 * DU
if DD1 != 0:
while DD1 <= RGAMSQ or DD1 >= GAMSQ:
if DFLAG == 0:
dh11 = 1
dh22 = 1
dflag = -1
else:
dh21 = -1
dh12 = 1
dflag = -1
if DD1 <= RGAMSQ:
dd1 = DD1 * GAM ** 2
dx1 = DX1 / GAM
dh11 = DH11 / GAM
dh12 = DH12 / GAM
else:
dd1 = DD1 / GAM ** 2
dx1 = DX1 * GAM
dh11 = DH11 * GAM
dh12 = DH12 * GAM
if DD2 != 0:
while abs(DD2) <= RGAMSQ or abs(DD2) >= GAMSQ:
if DFLAG == 0:
dh11 = 1
dh22 = 1
dflag = -1
else:
dh21 = -1
dh12 = 1
dflag = -1
if abs(DD2) <= RGAMSQ:
dd2 = DD2 * GAM ** 2
dh21 = DH21 / GAM
dh22 = DH22 / GAM
else:
dd2 = DD2 / GAM ** 2
dh21 = DH21 * GAM
dh22 = DH22 * GAM
if DFLAG < 0:
DPARAM[2] = DH11
DPARAM[3] = DH21
DPARAM[4] = DH12
DPARAM[5] = DH22
elif DFLAG == 0:
DPARAM[3] = DH21
DPARAM[4] = DH12
else:
DPARAM[2] = DH11
DPARAM[5] = DH22
DPARAM[1] = DFLAG |
#!/usr/bin/env python
IRC_BASE = ["ircconnection", "irclib", "numerics", "baseircclient", "irctracker", "commandparser", "commands", "ircclient", "commandhistory", "nicknamevalidator", "ignorecontroller"]
PANES = ["connect", "embed", "options", "about", "url"]
UI_BASE = ["menuitems", "baseui", "baseuiwindow", "colour", "url", "theme", "notifications", "tabcompleter", "style", "xdomain"]
UI_BASE.extend(["panes/%s" % x for x in PANES])
DEBUG_BASE = ["qwebirc", "version", "qhash", "jslib", "crypto", "md5", ["irc/%s" % x for x in IRC_BASE], ["ui/%s" % x for x in UI_BASE], "qwebircinterface", "auth", "sound"]
BUILD_BASE = ["qwebirc"]
JS_DEBUG_BASE = ["mootools-1.2.5-core-nc", "mootools-1.2.5.1-more-nc", "debug/soundmanager_defer", "soundmanager2"]
JS_RAW_BASE = ["//ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js"]
JS_BASE = ["mootools-1.2.5.1-more-nc", "../../js/soundmanager_defer", "soundmanager2-nodebug-jsmin"]
JS_EXTRA = []
UIs = {
"qui": {
"class": "QUI",
"nocss": True,
"uifiles": ["qui"],
"doctype": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"" + "\n" \
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
}
}
def flatten(y):
for x in y:
if isinstance(x, list):
for x in flatten(x):
yield x
else:
yield x
DEBUG_BASE = list(flatten(DEBUG_BASE))
DEBUG = ["debug/%s" % x for x in DEBUG_BASE]
| irc_base = ['ircconnection', 'irclib', 'numerics', 'baseircclient', 'irctracker', 'commandparser', 'commands', 'ircclient', 'commandhistory', 'nicknamevalidator', 'ignorecontroller']
panes = ['connect', 'embed', 'options', 'about', 'url']
ui_base = ['menuitems', 'baseui', 'baseuiwindow', 'colour', 'url', 'theme', 'notifications', 'tabcompleter', 'style', 'xdomain']
UI_BASE.extend(['panes/%s' % x for x in PANES])
debug_base = ['qwebirc', 'version', 'qhash', 'jslib', 'crypto', 'md5', ['irc/%s' % x for x in IRC_BASE], ['ui/%s' % x for x in UI_BASE], 'qwebircinterface', 'auth', 'sound']
build_base = ['qwebirc']
js_debug_base = ['mootools-1.2.5-core-nc', 'mootools-1.2.5.1-more-nc', 'debug/soundmanager_defer', 'soundmanager2']
js_raw_base = ['//ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js']
js_base = ['mootools-1.2.5.1-more-nc', '../../js/soundmanager_defer', 'soundmanager2-nodebug-jsmin']
js_extra = []
u_is = {'qui': {'class': 'QUI', 'nocss': True, 'uifiles': ['qui'], 'doctype': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' + '\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'}}
def flatten(y):
for x in y:
if isinstance(x, list):
for x in flatten(x):
yield x
else:
yield x
debug_base = list(flatten(DEBUG_BASE))
debug = ['debug/%s' % x for x in DEBUG_BASE] |
#!/usr/env python
class Queue:
def __init__(self, size=16):
self.queue = []
self.size = size
self.front = 0
self.rear = 0
def is_empty(self):
return self.rear == 0
def is_full(self):
if (self.front - self.rear + 1) == self.size:
return True
else:
return False
def first(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
return self.queue[self.front]
def last(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
return self.queue[self.rear]
def add(self, obj):
if self.is_full():
raise Exception("QueueOverFlow")
else:
self.queue.append(obj)
self.rear += 1
def delete(self):
if self.is_empty():
raise Exception("QueueIsEmpty")
else:
self.rear -= 1
return self.queue.pop(0)
def show(self):
print(self.queue)
if __name__ == "__main__":
q = Queue(3)
q.add(1)
q.add(2)
q.show()
q.delete()
q.show()
| class Queue:
def __init__(self, size=16):
self.queue = []
self.size = size
self.front = 0
self.rear = 0
def is_empty(self):
return self.rear == 0
def is_full(self):
if self.front - self.rear + 1 == self.size:
return True
else:
return False
def first(self):
if self.is_empty():
raise exception('QueueIsEmpty')
else:
return self.queue[self.front]
def last(self):
if self.is_empty():
raise exception('QueueIsEmpty')
else:
return self.queue[self.rear]
def add(self, obj):
if self.is_full():
raise exception('QueueOverFlow')
else:
self.queue.append(obj)
self.rear += 1
def delete(self):
if self.is_empty():
raise exception('QueueIsEmpty')
else:
self.rear -= 1
return self.queue.pop(0)
def show(self):
print(self.queue)
if __name__ == '__main__':
q = queue(3)
q.add(1)
q.add(2)
q.show()
q.delete()
q.show() |
class FenwickTree:
data: []
def __init__(self, n: int):
self.data = [0] * (n + 1)
@staticmethod
def __parent__(i: int) -> int:
return i - (i & (-i))
def __str__(self):
return str(self.data) | class Fenwicktree:
data: []
def __init__(self, n: int):
self.data = [0] * (n + 1)
@staticmethod
def __parent__(i: int) -> int:
return i - (i & -i)
def __str__(self):
return str(self.data) |
party_size = int(input())
days = int(input())
coins = 0
for i in range(1, days + 1):
coins += 50
if i % 10 == 0:
party_size -= 2
if i % 15 == 0:
party_size += 5
coins -= party_size * 2
if i % 3 == 0:
coins -= party_size * 3
if i % 5 == 0:
coins += party_size * 20
if i % 3 == 0:
coins -= party_size * 2
coins_per_person = coins // party_size
print(f"{party_size} companions received {coins_per_person} coins each.")
| party_size = int(input())
days = int(input())
coins = 0
for i in range(1, days + 1):
coins += 50
if i % 10 == 0:
party_size -= 2
if i % 15 == 0:
party_size += 5
coins -= party_size * 2
if i % 3 == 0:
coins -= party_size * 3
if i % 5 == 0:
coins += party_size * 20
if i % 3 == 0:
coins -= party_size * 2
coins_per_person = coins // party_size
print(f'{party_size} companions received {coins_per_person} coins each.') |
'''
Write a procedure called oddTuples, which takes a tuple as input, and returns a new tuple as output, where every other element of the input tuple is copied, starting with the first one. So if test is the tuple ('I', 'am', 'a', 'test', 'tuple'), then evaluating oddTuples on this input would return the tuple ('I', 'a', 'tuple').
'''
def oddTuples(aTup):
'''
aTup: a tuple
returns: tuple, every other element of aTup.
'''
tup_store = ()
for i in range(0,len(aTup),2):
tup_store = tup_store + (aTup[i],)
return tup_store
| """
Write a procedure called oddTuples, which takes a tuple as input, and returns a new tuple as output, where every other element of the input tuple is copied, starting with the first one. So if test is the tuple ('I', 'am', 'a', 'test', 'tuple'), then evaluating oddTuples on this input would return the tuple ('I', 'a', 'tuple').
"""
def odd_tuples(aTup):
"""
aTup: a tuple
returns: tuple, every other element of aTup.
"""
tup_store = ()
for i in range(0, len(aTup), 2):
tup_store = tup_store + (aTup[i],)
return tup_store |
def random_board():
'''
Creates the dice which have letters on each side --> Array of length 6 per die
'''
self.cube_one = ["A","A","E","E","G","N"]
self.cube_two = ["A","O","O","T","T","W"]
self.cube_three = ["D","I","S","T","T","Y"]
self.cube_four = ["E","I","O","S","S","T"]
self.cube_five = ["A","B","B","J","O","O"]
self.cube_six = ["C","I","M","O","T","U"]
self.cube_seven = ["E","E","G","H","N","W"]
self.cube_eight = ["E","L","R","T","T","Y"]
self.cube_nine = ["A","C","H","O","P","S"]
self.cube_ten = ["D","E","I","L","R","X"]
self.cube_eleven = ["E","E","I","N","S","U"]
self.cube_twelve = ["H","I","M","N","QU","U"]
self.cube_thirteen = ["A","F","F","K","P","S"]
self.cube_fourteen = ["D","E","L","R","V","Y"]
self.cube_fifteen = ["E","H","R","T","V","W"]
self.cube_sixteen = ["H","L","N","N","R","Z"]
self.cubes=[self.cube_one, self.cube_two, self.cube_three, self.cube_four, self.cube_five, self.cube_six, self.cube_seven, self.cube_eight,
self.cube_nine, self.cube_ten, self.cube_eleven, self.cube_twelve, self.cube_thirteen, self.cube_fourteen, self.cube_fifteen, self.cube_sixteen]
self.cubes_temp = []
self.letters = []
for x in range (0, 16):
self.random_cube = random.choice(self.cubes)
self.cubes_temp.append(self.random_cube)
self.cubes.remove(self.random_cube)
self.random_letter = random.choice(self.random_cube)
self.letters.append(self.random_letter) | def random_board():
"""
Creates the dice which have letters on each side --> Array of length 6 per die
"""
self.cube_one = ['A', 'A', 'E', 'E', 'G', 'N']
self.cube_two = ['A', 'O', 'O', 'T', 'T', 'W']
self.cube_three = ['D', 'I', 'S', 'T', 'T', 'Y']
self.cube_four = ['E', 'I', 'O', 'S', 'S', 'T']
self.cube_five = ['A', 'B', 'B', 'J', 'O', 'O']
self.cube_six = ['C', 'I', 'M', 'O', 'T', 'U']
self.cube_seven = ['E', 'E', 'G', 'H', 'N', 'W']
self.cube_eight = ['E', 'L', 'R', 'T', 'T', 'Y']
self.cube_nine = ['A', 'C', 'H', 'O', 'P', 'S']
self.cube_ten = ['D', 'E', 'I', 'L', 'R', 'X']
self.cube_eleven = ['E', 'E', 'I', 'N', 'S', 'U']
self.cube_twelve = ['H', 'I', 'M', 'N', 'QU', 'U']
self.cube_thirteen = ['A', 'F', 'F', 'K', 'P', 'S']
self.cube_fourteen = ['D', 'E', 'L', 'R', 'V', 'Y']
self.cube_fifteen = ['E', 'H', 'R', 'T', 'V', 'W']
self.cube_sixteen = ['H', 'L', 'N', 'N', 'R', 'Z']
self.cubes = [self.cube_one, self.cube_two, self.cube_three, self.cube_four, self.cube_five, self.cube_six, self.cube_seven, self.cube_eight, self.cube_nine, self.cube_ten, self.cube_eleven, self.cube_twelve, self.cube_thirteen, self.cube_fourteen, self.cube_fifteen, self.cube_sixteen]
self.cubes_temp = []
self.letters = []
for x in range(0, 16):
self.random_cube = random.choice(self.cubes)
self.cubes_temp.append(self.random_cube)
self.cubes.remove(self.random_cube)
self.random_letter = random.choice(self.random_cube)
self.letters.append(self.random_letter) |
# Print N reverse
# https://www.acmicpc.net/problem/2742
print('\n'.join(list(map(str, [x for x in range(int(input()), 0, -1)]))))
| print('\n'.join(list(map(str, [x for x in range(int(input()), 0, -1)])))) |
class Camera:
def __init__(): #Need to have all information necessary to calibrate camera input into here as arguements
#Calibrate Camera - constant
#Locate Camera Relative to Centerpoint - constant
#Define GPIO pins for synchronization - constant
#Change camera settings - tunable
return None | class Camera:
def __init__():
return None |
# 33. Search in Rotated Sorted Array
class Solution:
def search(self, nums, target: int) -> int:
def binSearchPiv(l, r, target):
while l < r:
m = (l+r)//2
if nums[m] > nums[m+1]: return m+1
if nums[m] > target: l = m+1
else: r = m
return -1
def binSearch(l, r, target):
while l < r:
m = (l+r)//2
if nums[m] == target: return m
if nums[m] < target: l = m+1
else: r = m
return -1
n = len(nums)
if nums and nums[0] > nums[n-1]:
piv = binSearchPiv(0, n-1, nums[0])
left, right = binSearch(0, piv, target), binSearch(piv, n, target)
return left if left != -1 else right
return binSearch(0, n, target) | class Solution:
def search(self, nums, target: int) -> int:
def bin_search_piv(l, r, target):
while l < r:
m = (l + r) // 2
if nums[m] > nums[m + 1]:
return m + 1
if nums[m] > target:
l = m + 1
else:
r = m
return -1
def bin_search(l, r, target):
while l < r:
m = (l + r) // 2
if nums[m] == target:
return m
if nums[m] < target:
l = m + 1
else:
r = m
return -1
n = len(nums)
if nums and nums[0] > nums[n - 1]:
piv = bin_search_piv(0, n - 1, nums[0])
(left, right) = (bin_search(0, piv, target), bin_search(piv, n, target))
return left if left != -1 else right
return bin_search(0, n, target) |
#
# PySNMP MIB module Juniper-System-Clock-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-System-Clock-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:53:45 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
juniMibs, = mibBuilder.importSymbols("Juniper-MIBs", "juniMibs")
JuniEnable, = mibBuilder.importSymbols("Juniper-TC", "JuniEnable")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Counter64, TimeTicks, ObjectIdentity, Unsigned32, Counter32, Integer32, IpAddress, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, MibIdentifier, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "TimeTicks", "ObjectIdentity", "Unsigned32", "Counter32", "Integer32", "IpAddress", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "MibIdentifier", "iso", "ModuleIdentity")
TextualConvention, TruthValue, RowStatus, DateAndTime, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "RowStatus", "DateAndTime", "DisplayString")
juniSysClockMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56))
juniSysClockMIB.setRevisions(('2007-03-22 14:00', '2005-12-14 14:01', '2003-09-15 14:01', '2003-09-12 13:37', '2002-04-04 14:56',))
if mibBuilder.loadTexts: juniSysClockMIB.setLastUpdated('200512141401Z')
if mibBuilder.loadTexts: juniSysClockMIB.setOrganization('Juniper Networks, Inc.')
class JuniSysClockMonth(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
namedValues = NamedValues(("january", 1), ("february", 2), ("march", 3), ("april", 4), ("may", 5), ("june", 6), ("july", 7), ("august", 8), ("september", 9), ("october", 10), ("november", 11), ("december", 12))
class JuniSysClockWeekOfTheMonth(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("weekFirst", 0), ("weekOne", 1), ("weekTwo", 2), ("weekThree", 3), ("weekFour", 4), ("weekFive", 5), ("weekLast", 6))
class JuniSysClockDayOfTheWeek(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("sunday", 0), ("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6))
class JuniSysClockHour(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 23)
class JuniSysClockMinute(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 59)
class JuniNtpTimeStamp(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 21)
class JuniNtpClockSignedTime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11)
class JuniNtpClockUnsignedTime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983"
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11)
juniSysClockObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1))
juniNtpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2))
juniSysClockTime = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1))
juniSysClockDst = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2))
juniSysClockDateAndTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 1), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDateAndTime.setStatus('current')
juniSysClockTimeZoneName = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockTimeZoneName.setStatus('current')
juniSysClockDstName = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstName.setStatus('current')
juniSysClockDstOffset = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1440)).clone(60)).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstOffset.setStatus('current')
juniSysClockDstStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("off", 0), ("recurrent", 1), ("absolute", 2), ("recognizedUS", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstStatus.setStatus('current')
juniSysClockDstAbsoluteStartTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 4), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstAbsoluteStartTime.setStatus('current')
juniSysClockDstAbsoluteStopTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 5), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstAbsoluteStopTime.setStatus('current')
juniSysClockDstRecurStartMonth = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 6), JuniSysClockMonth().clone('march')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartMonth.setStatus('current')
juniSysClockDstRecurStartWeek = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 7), JuniSysClockWeekOfTheMonth().clone('weekTwo')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartWeek.setStatus('current')
juniSysClockDstRecurStartDay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 8), JuniSysClockDayOfTheWeek().clone('sunday')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartDay.setStatus('current')
juniSysClockDstRecurStartHour = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 9), JuniSysClockHour().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartHour.setStatus('current')
juniSysClockDstRecurStartMinute = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 10), JuniSysClockMinute()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStartMinute.setStatus('current')
juniSysClockDstRecurStopMonth = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 11), JuniSysClockMonth().clone('november')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopMonth.setStatus('current')
juniSysClockDstRecurStopWeek = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 12), JuniSysClockWeekOfTheMonth().clone('weekFirst')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopWeek.setStatus('current')
juniSysClockDstRecurStopDay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 13), JuniSysClockDayOfTheWeek().clone('sunday')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopDay.setStatus('current')
juniSysClockDstRecurStopHour = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 14), JuniSysClockHour().clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopHour.setStatus('current')
juniSysClockDstRecurStopMinute = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 15), JuniSysClockMinute()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniSysClockDstRecurStopMinute.setStatus('current')
juniNtpSysClock = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1))
juniNtpClient = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2))
juniNtpServer = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3))
juniNtpPeers = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4))
juniNtpAccessGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5))
juniNtpSysClockState = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("neverFrequencyCalibrated", 0), ("frequencyCalibrated", 1), ("setToServerTime", 2), ("frequencyCalibrationIsGoingOn", 3), ("synchronized", 4), ("spikeDetected", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockState.setStatus('current')
juniNtpSysClockOffsetError = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 2), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockOffsetError.setStatus('deprecated')
juniNtpSysClockFrequencyError = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 3), Integer32()).setUnits('ppm').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockFrequencyError.setStatus('deprecated')
juniNtpSysClockRootDelay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 4), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockRootDelay.setStatus('current')
juniNtpSysClockRootDispersion = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 5), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockRootDispersion.setStatus('current')
juniNtpSysClockStratumNumber = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockStratumNumber.setStatus('current')
juniNtpSysClockLastUpdateTime = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 7), JuniNtpTimeStamp()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockLastUpdateTime.setStatus('current')
juniNtpSysClockLastUpdateServer = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 8), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockLastUpdateServer.setStatus('current')
juniNtpSysClockOffsetErrorNew = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 25))).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockOffsetErrorNew.setStatus('current')
juniNtpSysClockFrequencyErrorNew = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 25))).setUnits('ppm').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpSysClockFrequencyErrorNew.setStatus('current')
juniNtpClientAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 1), JuniEnable().clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientAdminStatus.setStatus('current')
juniNtpClientSystemRouterIndex = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpClientSystemRouterIndex.setStatus('current')
juniNtpClientPacketSourceIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientPacketSourceIfIndex.setStatus('current')
juniNtpClientBroadcastDelay = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 999999)).clone(3000)).setUnits('microseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientBroadcastDelay.setStatus('current')
juniNtpClientIfTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5), )
if mibBuilder.loadTexts: juniNtpClientIfTable.setStatus('current')
juniNtpClientIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpClientIfIfIndex"))
if mibBuilder.loadTexts: juniNtpClientIfEntry.setStatus('current')
juniNtpClientIfRouterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 1), Unsigned32())
if mibBuilder.loadTexts: juniNtpClientIfRouterIndex.setStatus('current')
juniNtpClientIfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647)))
if mibBuilder.loadTexts: juniNtpClientIfIfIndex.setStatus('current')
juniNtpClientIfDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 3), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfDisable.setStatus('current')
juniNtpClientIfIsBroadcastClient = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 4), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastClient.setStatus('current')
juniNtpClientIfIsBroadcastServer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 5), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServer.setStatus('current')
juniNtpClientIfIsBroadcastServerVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServerVersion.setStatus('current')
juniNtpClientIfIsBroadcastServerDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 17)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpClientIfIsBroadcastServerDelay.setStatus('current')
juniNtpServerStratumNumber = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpServerStratumNumber.setStatus('current')
juniNtpServerAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 2), JuniEnable()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpServerAdminStatus.setStatus('current')
juniNtpPeerCfgTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1), )
if mibBuilder.loadTexts: juniNtpPeerCfgTable.setStatus('current')
juniNtpPeerCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"))
if mibBuilder.loadTexts: juniNtpPeerCfgEntry.setStatus('current')
juniNtpPeerCfgIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 1), IpAddress())
if mibBuilder.loadTexts: juniNtpPeerCfgIpAddress.setStatus('current')
juniNtpPeerCfgNtpVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgNtpVersion.setStatus('current')
juniNtpPeerCfgPacketSourceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgPacketSourceIfIndex.setStatus('current')
juniNtpPeerCfgIsPreferred = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 4), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgIsPreferred.setStatus('current')
juniNtpPeerCfgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: juniNtpPeerCfgRowStatus.setStatus('current')
juniNtpPeerTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2), )
if mibBuilder.loadTexts: juniNtpPeerTable.setStatus('current')
juniNtpPeerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpClientIfRouterIndex"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"))
if mibBuilder.loadTexts: juniNtpPeerEntry.setStatus('current')
juniNtpPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerState.setStatus('current')
juniNtpPeerStratumNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerStratumNumber.setStatus('current')
juniNtpPeerAssociationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("broacastServer", 0), ("multicastServer", 1), ("unicastServer", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerAssociationMode.setStatus('current')
juniNtpPeerBroadcastInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 4), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerBroadcastInterval.setStatus('current')
juniNtpPeerPolledInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 5), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPolledInterval.setStatus('current')
juniNtpPeerPollingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 6), Integer32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPollingInterval.setStatus('current')
juniNtpPeerDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 7), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerDelay.setStatus('current')
juniNtpPeerDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 8), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerDispersion.setStatus('current')
juniNtpPeerOffsetError = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 9), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerOffsetError.setStatus('current')
juniNtpPeerReachability = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerReachability.setStatus('current')
juniNtpPeerRootDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 11), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootDelay.setStatus('current')
juniNtpPeerRootDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 12), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootDispersion.setStatus('current')
juniNtpPeerRootSyncDistance = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 13), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootSyncDistance.setStatus('current')
juniNtpPeerRootTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 14), JuniNtpTimeStamp()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootTime.setStatus('current')
juniNtpPeerRootTimeUpdateServer = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRootTimeUpdateServer.setStatus('current')
juniNtpPeerReceiveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 16), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerReceiveTime.setStatus('current')
juniNtpPeerTransmitTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 17), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerTransmitTime.setStatus('current')
juniNtpPeerRequestTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 18), JuniNtpTimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerRequestTime.setStatus('current')
juniNtpPeerPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 19), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerPrecision.setStatus('current')
juniNtpPeerLastUpdateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 20), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerLastUpdateTime.setStatus('current')
juniNtpPeerFilterRegisterTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3), )
if mibBuilder.loadTexts: juniNtpPeerFilterRegisterTable.setStatus('current')
juniNtpPeerFilterRegisterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1), ).setIndexNames((0, "Juniper-System-Clock-MIB", "juniNtpPeerCfgIpAddress"), (0, "Juniper-System-Clock-MIB", "juniNtpPeerFilterIndex"))
if mibBuilder.loadTexts: juniNtpPeerFilterRegisterEntry.setStatus('current')
juniNtpPeerFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 1), Unsigned32())
if mibBuilder.loadTexts: juniNtpPeerFilterIndex.setStatus('current')
juniNtpPeerFilterOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 2), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterOffset.setStatus('current')
juniNtpPeerFilterDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 3), JuniNtpClockSignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterDelay.setStatus('current')
juniNtpPeerFilterDispersion = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 4), JuniNtpClockUnsignedTime()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: juniNtpPeerFilterDispersion.setStatus('current')
juniNtpRouterAccessGroupPeer = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupPeer.setStatus('current')
juniNtpRouterAccessGroupServe = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupServe.setStatus('current')
juniNtpRouterAccessGroupServeOnly = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupServeOnly.setStatus('current')
juniNtpRouterAccessGroupQueryOnly = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniNtpRouterAccessGroupQueryOnly.setStatus('current')
juniNtpTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0))
juniNtpFrequencyCalibrationStart = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 1)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if mibBuilder.loadTexts: juniNtpFrequencyCalibrationStart.setStatus('current')
juniNtpFrequencyCalibrationEnd = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 2)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if mibBuilder.loadTexts: juniNtpFrequencyCalibrationEnd.setStatus('current')
juniNtpTimeSynUp = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 3))
if mibBuilder.loadTexts: juniNtpTimeSynUp.setStatus('current')
juniNtpTimeSynDown = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 4))
if mibBuilder.loadTexts: juniNtpTimeSynDown.setStatus('current')
juniNtpTimeServerSynUp = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 5)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"))
if mibBuilder.loadTexts: juniNtpTimeServerSynUp.setStatus('current')
juniNtpTimeServerSynDown = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 6)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"))
if mibBuilder.loadTexts: juniNtpTimeServerSynDown.setStatus('current')
juniNtpFirstSystemClockSet = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 7)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockState"))
if mibBuilder.loadTexts: juniNtpFirstSystemClockSet.setStatus('current')
juniNtpClockOffSetLimitCrossed = NotificationType((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 8)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockState"))
if mibBuilder.loadTexts: juniNtpClockOffSetLimitCrossed.setStatus('current')
juniSysClockConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3))
juniSysClockCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1))
juniSysClockGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2))
juniSysClockCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 1)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance = juniSysClockCompliance.setStatus('obsolete')
juniSysClockCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 2)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"), ("Juniper-System-Clock-MIB", "juniNtpNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance2 = juniSysClockCompliance2.setStatus('obsolete')
juniSysClockCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 3)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockTimeGroup"), ("Juniper-System-Clock-MIB", "juniSysClockDstGroup"), ("Juniper-System-Clock-MIB", "juniNtpSysClockGroup2"), ("Juniper-System-Clock-MIB", "juniNtpClientGroup"), ("Juniper-System-Clock-MIB", "juniNtpServerGroup"), ("Juniper-System-Clock-MIB", "juniNtpPeersGroup"), ("Juniper-System-Clock-MIB", "juniNtpAccessGroupGroup"), ("Juniper-System-Clock-MIB", "juniNtpNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockCompliance3 = juniSysClockCompliance3.setStatus('current')
juniSysClockTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 1)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockDateAndTime"), ("Juniper-System-Clock-MIB", "juniSysClockTimeZoneName"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockTimeGroup = juniSysClockTimeGroup.setStatus('current')
juniSysClockDstGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 2)).setObjects(("Juniper-System-Clock-MIB", "juniSysClockDstName"), ("Juniper-System-Clock-MIB", "juniSysClockDstOffset"), ("Juniper-System-Clock-MIB", "juniSysClockDstStatus"), ("Juniper-System-Clock-MIB", "juniSysClockDstAbsoluteStartTime"), ("Juniper-System-Clock-MIB", "juniSysClockDstAbsoluteStopTime"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartMonth"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartWeek"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartDay"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartHour"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStartMinute"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopMonth"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopWeek"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopDay"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopHour"), ("Juniper-System-Clock-MIB", "juniSysClockDstRecurStopMinute"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniSysClockDstGroup = juniSysClockDstGroup.setStatus('current')
juniNtpSysClockGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 3)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockState"), ("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpSysClockStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateTime"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateServer"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockGroup = juniNtpSysClockGroup.setStatus('obsolete')
juniNtpClientGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 4)).setObjects(("Juniper-System-Clock-MIB", "juniNtpClientAdminStatus"), ("Juniper-System-Clock-MIB", "juniNtpClientSystemRouterIndex"), ("Juniper-System-Clock-MIB", "juniNtpClientPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpClientBroadcastDelay"), ("Juniper-System-Clock-MIB", "juniNtpClientIfDisable"), ("Juniper-System-Clock-MIB", "juniNtpClientIfIsBroadcastClient"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpClientGroup = juniNtpClientGroup.setStatus('current')
juniNtpServerGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 5)).setObjects(("Juniper-System-Clock-MIB", "juniNtpServerAdminStatus"), ("Juniper-System-Clock-MIB", "juniNtpServerStratumNumber"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpServerGroup = juniNtpServerGroup.setStatus('current')
juniNtpPeersGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 6)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerState"), ("Juniper-System-Clock-MIB", "juniNtpPeerStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpPeerAssociationMode"), ("Juniper-System-Clock-MIB", "juniNtpPeerBroadcastInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPolledInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPollingInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpPeerReachability"), ("Juniper-System-Clock-MIB", "juniNtpPeerPrecision"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootSyncDistance"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTimeUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpPeerReceiveTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerTransmitTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRequestTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterOffset"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgNtpVersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpPeersGroup = juniNtpPeersGroup.setStatus('obsolete')
juniNtpAccessGroupGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 7)).setObjects(("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupPeer"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupServe"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupServeOnly"), ("Juniper-System-Clock-MIB", "juniNtpRouterAccessGroupQueryOnly"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpAccessGroupGroup = juniNtpAccessGroupGroup.setStatus('current')
juniNtpNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 8)).setObjects(("Juniper-System-Clock-MIB", "juniNtpFrequencyCalibrationStart"), ("Juniper-System-Clock-MIB", "juniNtpFrequencyCalibrationEnd"), ("Juniper-System-Clock-MIB", "juniNtpTimeSynUp"), ("Juniper-System-Clock-MIB", "juniNtpTimeSynDown"), ("Juniper-System-Clock-MIB", "juniNtpTimeServerSynUp"), ("Juniper-System-Clock-MIB", "juniNtpTimeServerSynDown"), ("Juniper-System-Clock-MIB", "juniNtpFirstSystemClockSet"), ("Juniper-System-Clock-MIB", "juniNtpClockOffSetLimitCrossed"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpNotificationGroup = juniNtpNotificationGroup.setStatus('current')
juniNtpSysClockGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 9)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockState"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpSysClockRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpSysClockStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateTime"), ("Juniper-System-Clock-MIB", "juniNtpSysClockLastUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetErrorNew"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyErrorNew"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockGroup2 = juniNtpSysClockGroup2.setStatus('current')
juniNtpSysClockDeprecatedGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 10)).setObjects(("Juniper-System-Clock-MIB", "juniNtpSysClockOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpSysClockFrequencyError"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpSysClockDeprecatedGroup = juniNtpSysClockDeprecatedGroup.setStatus('deprecated')
juniNtpPeersGroup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 11)).setObjects(("Juniper-System-Clock-MIB", "juniNtpPeerState"), ("Juniper-System-Clock-MIB", "juniNtpPeerStratumNumber"), ("Juniper-System-Clock-MIB", "juniNtpPeerAssociationMode"), ("Juniper-System-Clock-MIB", "juniNtpPeerBroadcastInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPolledInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerPollingInterval"), ("Juniper-System-Clock-MIB", "juniNtpPeerDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerOffsetError"), ("Juniper-System-Clock-MIB", "juniNtpPeerReachability"), ("Juniper-System-Clock-MIB", "juniNtpPeerPrecision"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootSyncDistance"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRootTimeUpdateServer"), ("Juniper-System-Clock-MIB", "juniNtpPeerReceiveTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerTransmitTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerRequestTime"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterOffset"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDelay"), ("Juniper-System-Clock-MIB", "juniNtpPeerFilterDispersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgNtpVersion"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgPacketSourceIfIndex"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgIsPreferred"), ("Juniper-System-Clock-MIB", "juniNtpPeerCfgRowStatus"), ("Juniper-System-Clock-MIB", "juniNtpPeerLastUpdateTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniNtpPeersGroup1 = juniNtpPeersGroup1.setStatus('current')
mibBuilder.exportSymbols("Juniper-System-Clock-MIB", juniSysClockDstAbsoluteStartTime=juniSysClockDstAbsoluteStartTime, juniNtpPeerPrecision=juniNtpPeerPrecision, juniNtpClientIfEntry=juniNtpClientIfEntry, juniNtpPeerFilterIndex=juniNtpPeerFilterIndex, juniNtpClientGroup=juniNtpClientGroup, juniNtpPeerBroadcastInterval=juniNtpPeerBroadcastInterval, juniNtpClientIfDisable=juniNtpClientIfDisable, juniSysClockObjects=juniSysClockObjects, juniSysClockDstGroup=juniSysClockDstGroup, juniNtpSysClockGroup2=juniNtpSysClockGroup2, juniNtpPeerRootTimeUpdateServer=juniNtpPeerRootTimeUpdateServer, juniNtpTimeServerSynUp=juniNtpTimeServerSynUp, juniNtpSysClock=juniNtpSysClock, juniNtpClientAdminStatus=juniNtpClientAdminStatus, juniNtpTimeSynDown=juniNtpTimeSynDown, juniSysClockDstRecurStartHour=juniSysClockDstRecurStartHour, juniNtpPeerRootDelay=juniNtpPeerRootDelay, juniNtpSysClockState=juniNtpSysClockState, juniNtpServerStratumNumber=juniNtpServerStratumNumber, juniSysClockCompliance3=juniSysClockCompliance3, juniNtpPeerFilterDelay=juniNtpPeerFilterDelay, juniNtpServer=juniNtpServer, juniNtpPeerCfgIsPreferred=juniNtpPeerCfgIsPreferred, JuniSysClockMonth=JuniSysClockMonth, juniNtpPeerReachability=juniNtpPeerReachability, juniNtpPeersGroup1=juniNtpPeersGroup1, juniNtpPeerRootDispersion=juniNtpPeerRootDispersion, juniNtpClockOffSetLimitCrossed=juniNtpClockOffSetLimitCrossed, JuniSysClockWeekOfTheMonth=JuniSysClockWeekOfTheMonth, juniSysClockDstRecurStopMinute=juniSysClockDstRecurStopMinute, juniNtpPeerFilterDispersion=juniNtpPeerFilterDispersion, juniSysClockDstAbsoluteStopTime=juniSysClockDstAbsoluteStopTime, JuniNtpClockSignedTime=JuniNtpClockSignedTime, juniNtpClientIfIsBroadcastServerDelay=juniNtpClientIfIsBroadcastServerDelay, JuniNtpClockUnsignedTime=JuniNtpClockUnsignedTime, JuniSysClockHour=JuniSysClockHour, juniNtpPeerDispersion=juniNtpPeerDispersion, juniNtpPeerDelay=juniNtpPeerDelay, juniNtpPeerTransmitTime=juniNtpPeerTransmitTime, juniSysClockTimeGroup=juniSysClockTimeGroup, juniNtpPeerCfgRowStatus=juniNtpPeerCfgRowStatus, juniSysClockGroups=juniSysClockGroups, PYSNMP_MODULE_ID=juniSysClockMIB, juniNtpSysClockDeprecatedGroup=juniNtpSysClockDeprecatedGroup, juniNtpPeerFilterOffset=juniNtpPeerFilterOffset, juniNtpSysClockOffsetErrorNew=juniNtpSysClockOffsetErrorNew, juniNtpPeerCfgPacketSourceIfIndex=juniNtpPeerCfgPacketSourceIfIndex, juniSysClockCompliance2=juniSysClockCompliance2, juniSysClockDstName=juniSysClockDstName, juniNtpPeerCfgIpAddress=juniNtpPeerCfgIpAddress, juniSysClockDstRecurStopDay=juniSysClockDstRecurStopDay, juniNtpClientPacketSourceIfIndex=juniNtpClientPacketSourceIfIndex, juniSysClockDstOffset=juniSysClockDstOffset, juniSysClockDstRecurStartDay=juniSysClockDstRecurStartDay, juniNtpAccessGroup=juniNtpAccessGroup, juniNtpAccessGroupGroup=juniNtpAccessGroupGroup, juniNtpPeerPolledInterval=juniNtpPeerPolledInterval, juniNtpSysClockRootDelay=juniNtpSysClockRootDelay, juniNtpTimeSynUp=juniNtpTimeSynUp, juniSysClockMIB=juniSysClockMIB, juniSysClockDstRecurStartMinute=juniSysClockDstRecurStartMinute, juniNtpFrequencyCalibrationEnd=juniNtpFrequencyCalibrationEnd, juniNtpPeerRootSyncDistance=juniNtpPeerRootSyncDistance, juniNtpTraps=juniNtpTraps, juniNtpFrequencyCalibrationStart=juniNtpFrequencyCalibrationStart, juniSysClockDstRecurStartWeek=juniSysClockDstRecurStartWeek, juniNtpRouterAccessGroupQueryOnly=juniNtpRouterAccessGroupQueryOnly, juniNtpPeerAssociationMode=juniNtpPeerAssociationMode, juniNtpSysClockRootDispersion=juniNtpSysClockRootDispersion, juniNtpClientIfIfIndex=juniNtpClientIfIfIndex, juniNtpPeerReceiveTime=juniNtpPeerReceiveTime, juniSysClockDst=juniSysClockDst, juniNtpSysClockOffsetError=juniNtpSysClockOffsetError, juniSysClockDstRecurStopHour=juniSysClockDstRecurStopHour, juniNtpPeerRequestTime=juniNtpPeerRequestTime, juniNtpPeerStratumNumber=juniNtpPeerStratumNumber, juniNtpFirstSystemClockSet=juniNtpFirstSystemClockSet, juniNtpPeerTable=juniNtpPeerTable, juniNtpRouterAccessGroupServe=juniNtpRouterAccessGroupServe, juniNtpSysClockFrequencyError=juniNtpSysClockFrequencyError, juniSysClockDstRecurStopWeek=juniSysClockDstRecurStopWeek, juniNtpSysClockFrequencyErrorNew=juniNtpSysClockFrequencyErrorNew, juniSysClockDstRecurStartMonth=juniSysClockDstRecurStartMonth, juniNtpClientIfIsBroadcastServer=juniNtpClientIfIsBroadcastServer, juniNtpSysClockGroup=juniNtpSysClockGroup, JuniSysClockDayOfTheWeek=JuniSysClockDayOfTheWeek, juniNtpPeerCfgNtpVersion=juniNtpPeerCfgNtpVersion, juniNtpServerAdminStatus=juniNtpServerAdminStatus, juniSysClockTime=juniSysClockTime, juniNtpPeerCfgEntry=juniNtpPeerCfgEntry, juniNtpPeerFilterRegisterTable=juniNtpPeerFilterRegisterTable, juniNtpSysClockLastUpdateServer=juniNtpSysClockLastUpdateServer, juniSysClockCompliances=juniSysClockCompliances, JuniSysClockMinute=JuniSysClockMinute, juniSysClockTimeZoneName=juniSysClockTimeZoneName, juniNtpTimeServerSynDown=juniNtpTimeServerSynDown, juniNtpPeerFilterRegisterEntry=juniNtpPeerFilterRegisterEntry, juniNtpClientIfIsBroadcastServerVersion=juniNtpClientIfIsBroadcastServerVersion, juniNtpClientIfTable=juniNtpClientIfTable, juniNtpPeerRootTime=juniNtpPeerRootTime, juniNtpClientIfRouterIndex=juniNtpClientIfRouterIndex, juniNtpClientSystemRouterIndex=juniNtpClientSystemRouterIndex, juniSysClockDstStatus=juniSysClockDstStatus, juniNtpPeerOffsetError=juniNtpPeerOffsetError, juniNtpClientBroadcastDelay=juniNtpClientBroadcastDelay, juniNtpClient=juniNtpClient, juniNtpPeers=juniNtpPeers, juniNtpRouterAccessGroupPeer=juniNtpRouterAccessGroupPeer, juniNtpSysClockLastUpdateTime=juniNtpSysClockLastUpdateTime, juniNtpServerGroup=juniNtpServerGroup, juniNtpPeersGroup=juniNtpPeersGroup, juniNtpClientIfIsBroadcastClient=juniNtpClientIfIsBroadcastClient, juniNtpPeerCfgTable=juniNtpPeerCfgTable, juniNtpPeerLastUpdateTime=juniNtpPeerLastUpdateTime, juniSysClockDstRecurStopMonth=juniSysClockDstRecurStopMonth, juniNtpObjects=juniNtpObjects, juniNtpPeerState=juniNtpPeerState, JuniNtpTimeStamp=JuniNtpTimeStamp, juniNtpSysClockStratumNumber=juniNtpSysClockStratumNumber, juniNtpPeerPollingInterval=juniNtpPeerPollingInterval, juniSysClockConformance=juniSysClockConformance, juniNtpNotificationGroup=juniNtpNotificationGroup, juniNtpPeerEntry=juniNtpPeerEntry, juniSysClockCompliance=juniSysClockCompliance, juniNtpRouterAccessGroupServeOnly=juniNtpRouterAccessGroupServeOnly, juniSysClockDateAndTime=juniSysClockDateAndTime)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_union, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint')
(juni_mibs,) = mibBuilder.importSymbols('Juniper-MIBs', 'juniMibs')
(juni_enable,) = mibBuilder.importSymbols('Juniper-TC', 'JuniEnable')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(counter64, time_ticks, object_identity, unsigned32, counter32, integer32, ip_address, notification_type, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, mib_identifier, iso, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'Counter32', 'Integer32', 'IpAddress', 'NotificationType', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'MibIdentifier', 'iso', 'ModuleIdentity')
(textual_convention, truth_value, row_status, date_and_time, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'RowStatus', 'DateAndTime', 'DisplayString')
juni_sys_clock_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56))
juniSysClockMIB.setRevisions(('2007-03-22 14:00', '2005-12-14 14:01', '2003-09-15 14:01', '2003-09-12 13:37', '2002-04-04 14:56'))
if mibBuilder.loadTexts:
juniSysClockMIB.setLastUpdated('200512141401Z')
if mibBuilder.loadTexts:
juniSysClockMIB.setOrganization('Juniper Networks, Inc.')
class Junisysclockmonth(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
named_values = named_values(('january', 1), ('february', 2), ('march', 3), ('april', 4), ('may', 5), ('june', 6), ('july', 7), ('august', 8), ('september', 9), ('october', 10), ('november', 11), ('december', 12))
class Junisysclockweekofthemonth(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))
named_values = named_values(('weekFirst', 0), ('weekOne', 1), ('weekTwo', 2), ('weekThree', 3), ('weekFour', 4), ('weekFive', 5), ('weekLast', 6))
class Junisysclockdayoftheweek(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))
named_values = named_values(('sunday', 0), ('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6))
class Junisysclockhour(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 23)
class Junisysclockminute(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 59)
class Junintptimestamp(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 21)
class Junintpclocksignedtime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983."
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 11)
class Junintpclockunsignedtime(TextualConvention, OctetString):
reference = "D.L. Mills, 'Network Time Protocol (Version 3)', RFC-1305, March 1992. J. Postel & J. Reynolds, 'NVT ASCII character set', RFC-854, May 1983"
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 11)
juni_sys_clock_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1))
juni_ntp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2))
juni_sys_clock_time = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1))
juni_sys_clock_dst = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2))
juni_sys_clock_date_and_time = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 1), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDateAndTime.setStatus('current')
juni_sys_clock_time_zone_name = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockTimeZoneName.setStatus('current')
juni_sys_clock_dst_name = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstName.setStatus('current')
juni_sys_clock_dst_offset = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 1440)).clone(60)).setUnits('minutes').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstOffset.setStatus('current')
juni_sys_clock_dst_status = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('off', 0), ('recurrent', 1), ('absolute', 2), ('recognizedUS', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstStatus.setStatus('current')
juni_sys_clock_dst_absolute_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 4), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstAbsoluteStartTime.setStatus('current')
juni_sys_clock_dst_absolute_stop_time = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 5), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstAbsoluteStopTime.setStatus('current')
juni_sys_clock_dst_recur_start_month = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 6), juni_sys_clock_month().clone('march')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStartMonth.setStatus('current')
juni_sys_clock_dst_recur_start_week = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 7), juni_sys_clock_week_of_the_month().clone('weekTwo')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStartWeek.setStatus('current')
juni_sys_clock_dst_recur_start_day = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 8), juni_sys_clock_day_of_the_week().clone('sunday')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStartDay.setStatus('current')
juni_sys_clock_dst_recur_start_hour = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 9), juni_sys_clock_hour().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStartHour.setStatus('current')
juni_sys_clock_dst_recur_start_minute = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 10), juni_sys_clock_minute()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStartMinute.setStatus('current')
juni_sys_clock_dst_recur_stop_month = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 11), juni_sys_clock_month().clone('november')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStopMonth.setStatus('current')
juni_sys_clock_dst_recur_stop_week = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 12), juni_sys_clock_week_of_the_month().clone('weekFirst')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStopWeek.setStatus('current')
juni_sys_clock_dst_recur_stop_day = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 13), juni_sys_clock_day_of_the_week().clone('sunday')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStopDay.setStatus('current')
juni_sys_clock_dst_recur_stop_hour = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 14), juni_sys_clock_hour().clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStopHour.setStatus('current')
juni_sys_clock_dst_recur_stop_minute = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 1, 2, 15), juni_sys_clock_minute()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniSysClockDstRecurStopMinute.setStatus('current')
juni_ntp_sys_clock = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1))
juni_ntp_client = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2))
juni_ntp_server = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3))
juni_ntp_peers = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4))
juni_ntp_access_group = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5))
juni_ntp_sys_clock_state = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('neverFrequencyCalibrated', 0), ('frequencyCalibrated', 1), ('setToServerTime', 2), ('frequencyCalibrationIsGoingOn', 3), ('synchronized', 4), ('spikeDetected', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockState.setStatus('current')
juni_ntp_sys_clock_offset_error = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 2), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockOffsetError.setStatus('deprecated')
juni_ntp_sys_clock_frequency_error = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 3), integer32()).setUnits('ppm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockFrequencyError.setStatus('deprecated')
juni_ntp_sys_clock_root_delay = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 4), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockRootDelay.setStatus('current')
juni_ntp_sys_clock_root_dispersion = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 5), juni_ntp_clock_unsigned_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockRootDispersion.setStatus('current')
juni_ntp_sys_clock_stratum_number = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockStratumNumber.setStatus('current')
juni_ntp_sys_clock_last_update_time = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 7), juni_ntp_time_stamp()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockLastUpdateTime.setStatus('current')
juni_ntp_sys_clock_last_update_server = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 8), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockLastUpdateServer.setStatus('current')
juni_ntp_sys_clock_offset_error_new = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 25))).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockOffsetErrorNew.setStatus('current')
juni_ntp_sys_clock_frequency_error_new = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 25))).setUnits('ppm').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpSysClockFrequencyErrorNew.setStatus('current')
juni_ntp_client_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 1), juni_enable().clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpClientAdminStatus.setStatus('current')
juni_ntp_client_system_router_index = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpClientSystemRouterIndex.setStatus('current')
juni_ntp_client_packet_source_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpClientPacketSourceIfIndex.setStatus('current')
juni_ntp_client_broadcast_delay = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 999999)).clone(3000)).setUnits('microseconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpClientBroadcastDelay.setStatus('current')
juni_ntp_client_if_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5))
if mibBuilder.loadTexts:
juniNtpClientIfTable.setStatus('current')
juni_ntp_client_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1)).setIndexNames((0, 'Juniper-System-Clock-MIB', 'juniNtpClientIfRouterIndex'), (0, 'Juniper-System-Clock-MIB', 'juniNtpClientIfIfIndex'))
if mibBuilder.loadTexts:
juniNtpClientIfEntry.setStatus('current')
juni_ntp_client_if_router_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 1), unsigned32())
if mibBuilder.loadTexts:
juniNtpClientIfRouterIndex.setStatus('current')
juni_ntp_client_if_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647)))
if mibBuilder.loadTexts:
juniNtpClientIfIfIndex.setStatus('current')
juni_ntp_client_if_disable = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 3), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpClientIfDisable.setStatus('current')
juni_ntp_client_if_is_broadcast_client = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 4), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpClientIfIsBroadcastClient.setStatus('current')
juni_ntp_client_if_is_broadcast_server = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 5), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpClientIfIsBroadcastServer.setStatus('current')
juni_ntp_client_if_is_broadcast_server_version = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 4)).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpClientIfIsBroadcastServerVersion.setStatus('current')
juni_ntp_client_if_is_broadcast_server_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 2, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(4, 17)).clone(6)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpClientIfIsBroadcastServerDelay.setStatus('current')
juni_ntp_server_stratum_number = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(8)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpServerStratumNumber.setStatus('current')
juni_ntp_server_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 3, 2), juni_enable()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpServerAdminStatus.setStatus('current')
juni_ntp_peer_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1))
if mibBuilder.loadTexts:
juniNtpPeerCfgTable.setStatus('current')
juni_ntp_peer_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1)).setIndexNames((0, 'Juniper-System-Clock-MIB', 'juniNtpClientIfRouterIndex'), (0, 'Juniper-System-Clock-MIB', 'juniNtpPeerCfgIpAddress'))
if mibBuilder.loadTexts:
juniNtpPeerCfgEntry.setStatus('current')
juni_ntp_peer_cfg_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 1), ip_address())
if mibBuilder.loadTexts:
juniNtpPeerCfgIpAddress.setStatus('current')
juni_ntp_peer_cfg_ntp_version = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 4))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpPeerCfgNtpVersion.setStatus('current')
juni_ntp_peer_cfg_packet_source_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpPeerCfgPacketSourceIfIndex.setStatus('current')
juni_ntp_peer_cfg_is_preferred = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 4), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpPeerCfgIsPreferred.setStatus('current')
juni_ntp_peer_cfg_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 1, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
juniNtpPeerCfgRowStatus.setStatus('current')
juni_ntp_peer_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2))
if mibBuilder.loadTexts:
juniNtpPeerTable.setStatus('current')
juni_ntp_peer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1)).setIndexNames((0, 'Juniper-System-Clock-MIB', 'juniNtpClientIfRouterIndex'), (0, 'Juniper-System-Clock-MIB', 'juniNtpPeerCfgIpAddress'))
if mibBuilder.loadTexts:
juniNtpPeerEntry.setStatus('current')
juni_ntp_peer_state = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerState.setStatus('current')
juni_ntp_peer_stratum_number = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerStratumNumber.setStatus('current')
juni_ntp_peer_association_mode = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('broacastServer', 0), ('multicastServer', 1), ('unicastServer', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerAssociationMode.setStatus('current')
juni_ntp_peer_broadcast_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 4), integer32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerBroadcastInterval.setStatus('current')
juni_ntp_peer_polled_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 5), integer32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerPolledInterval.setStatus('current')
juni_ntp_peer_polling_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 6), integer32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerPollingInterval.setStatus('current')
juni_ntp_peer_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 7), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerDelay.setStatus('current')
juni_ntp_peer_dispersion = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 8), juni_ntp_clock_unsigned_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerDispersion.setStatus('current')
juni_ntp_peer_offset_error = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 9), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerOffsetError.setStatus('current')
juni_ntp_peer_reachability = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerReachability.setStatus('current')
juni_ntp_peer_root_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 11), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRootDelay.setStatus('current')
juni_ntp_peer_root_dispersion = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 12), juni_ntp_clock_unsigned_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRootDispersion.setStatus('current')
juni_ntp_peer_root_sync_distance = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 13), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRootSyncDistance.setStatus('current')
juni_ntp_peer_root_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 14), juni_ntp_time_stamp()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRootTime.setStatus('current')
juni_ntp_peer_root_time_update_server = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 15), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRootTimeUpdateServer.setStatus('current')
juni_ntp_peer_receive_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 16), juni_ntp_time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerReceiveTime.setStatus('current')
juni_ntp_peer_transmit_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 17), juni_ntp_time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerTransmitTime.setStatus('current')
juni_ntp_peer_request_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 18), juni_ntp_time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerRequestTime.setStatus('current')
juni_ntp_peer_precision = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 19), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerPrecision.setStatus('current')
juni_ntp_peer_last_update_time = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 2, 1, 20), unsigned32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerLastUpdateTime.setStatus('current')
juni_ntp_peer_filter_register_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3))
if mibBuilder.loadTexts:
juniNtpPeerFilterRegisterTable.setStatus('current')
juni_ntp_peer_filter_register_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1)).setIndexNames((0, 'Juniper-System-Clock-MIB', 'juniNtpPeerCfgIpAddress'), (0, 'Juniper-System-Clock-MIB', 'juniNtpPeerFilterIndex'))
if mibBuilder.loadTexts:
juniNtpPeerFilterRegisterEntry.setStatus('current')
juni_ntp_peer_filter_index = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 1), unsigned32())
if mibBuilder.loadTexts:
juniNtpPeerFilterIndex.setStatus('current')
juni_ntp_peer_filter_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 2), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerFilterOffset.setStatus('current')
juni_ntp_peer_filter_delay = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 3), juni_ntp_clock_signed_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerFilterDelay.setStatus('current')
juni_ntp_peer_filter_dispersion = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 4, 3, 1, 4), juni_ntp_clock_unsigned_time()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
juniNtpPeerFilterDispersion.setStatus('current')
juni_ntp_router_access_group_peer = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpRouterAccessGroupPeer.setStatus('current')
juni_ntp_router_access_group_serve = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpRouterAccessGroupServe.setStatus('current')
juni_ntp_router_access_group_serve_only = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpRouterAccessGroupServeOnly.setStatus('current')
juni_ntp_router_access_group_query_only = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 5, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniNtpRouterAccessGroupQueryOnly.setStatus('current')
juni_ntp_traps = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0))
juni_ntp_frequency_calibration_start = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 1)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockFrequencyError'))
if mibBuilder.loadTexts:
juniNtpFrequencyCalibrationStart.setStatus('current')
juni_ntp_frequency_calibration_end = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 2)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockFrequencyError'))
if mibBuilder.loadTexts:
juniNtpFrequencyCalibrationEnd.setStatus('current')
juni_ntp_time_syn_up = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 3))
if mibBuilder.loadTexts:
juniNtpTimeSynUp.setStatus('current')
juni_ntp_time_syn_down = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 4))
if mibBuilder.loadTexts:
juniNtpTimeSynDown.setStatus('current')
juni_ntp_time_server_syn_up = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 5)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpPeerCfgIsPreferred'))
if mibBuilder.loadTexts:
juniNtpTimeServerSynUp.setStatus('current')
juni_ntp_time_server_syn_down = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 6)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpPeerCfgIsPreferred'))
if mibBuilder.loadTexts:
juniNtpTimeServerSynDown.setStatus('current')
juni_ntp_first_system_clock_set = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 7)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockState'))
if mibBuilder.loadTexts:
juniNtpFirstSystemClockSet.setStatus('current')
juni_ntp_clock_off_set_limit_crossed = notification_type((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 2, 0, 8)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockState'))
if mibBuilder.loadTexts:
juniNtpClockOffSetLimitCrossed.setStatus('current')
juni_sys_clock_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3))
juni_sys_clock_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1))
juni_sys_clock_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2))
juni_sys_clock_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 1)).setObjects(('Juniper-System-Clock-MIB', 'juniSysClockTimeGroup'), ('Juniper-System-Clock-MIB', 'juniSysClockDstGroup'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockGroup'), ('Juniper-System-Clock-MIB', 'juniNtpClientGroup'), ('Juniper-System-Clock-MIB', 'juniNtpServerGroup'), ('Juniper-System-Clock-MIB', 'juniNtpPeersGroup'), ('Juniper-System-Clock-MIB', 'juniNtpAccessGroupGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_sys_clock_compliance = juniSysClockCompliance.setStatus('obsolete')
juni_sys_clock_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 2)).setObjects(('Juniper-System-Clock-MIB', 'juniSysClockTimeGroup'), ('Juniper-System-Clock-MIB', 'juniSysClockDstGroup'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockGroup'), ('Juniper-System-Clock-MIB', 'juniNtpClientGroup'), ('Juniper-System-Clock-MIB', 'juniNtpServerGroup'), ('Juniper-System-Clock-MIB', 'juniNtpPeersGroup'), ('Juniper-System-Clock-MIB', 'juniNtpAccessGroupGroup'), ('Juniper-System-Clock-MIB', 'juniNtpNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_sys_clock_compliance2 = juniSysClockCompliance2.setStatus('obsolete')
juni_sys_clock_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 1, 3)).setObjects(('Juniper-System-Clock-MIB', 'juniSysClockTimeGroup'), ('Juniper-System-Clock-MIB', 'juniSysClockDstGroup'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockGroup2'), ('Juniper-System-Clock-MIB', 'juniNtpClientGroup'), ('Juniper-System-Clock-MIB', 'juniNtpServerGroup'), ('Juniper-System-Clock-MIB', 'juniNtpPeersGroup'), ('Juniper-System-Clock-MIB', 'juniNtpAccessGroupGroup'), ('Juniper-System-Clock-MIB', 'juniNtpNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_sys_clock_compliance3 = juniSysClockCompliance3.setStatus('current')
juni_sys_clock_time_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 1)).setObjects(('Juniper-System-Clock-MIB', 'juniSysClockDateAndTime'), ('Juniper-System-Clock-MIB', 'juniSysClockTimeZoneName'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_sys_clock_time_group = juniSysClockTimeGroup.setStatus('current')
juni_sys_clock_dst_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 2)).setObjects(('Juniper-System-Clock-MIB', 'juniSysClockDstName'), ('Juniper-System-Clock-MIB', 'juniSysClockDstOffset'), ('Juniper-System-Clock-MIB', 'juniSysClockDstStatus'), ('Juniper-System-Clock-MIB', 'juniSysClockDstAbsoluteStartTime'), ('Juniper-System-Clock-MIB', 'juniSysClockDstAbsoluteStopTime'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStartMonth'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStartWeek'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStartDay'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStartHour'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStartMinute'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStopMonth'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStopWeek'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStopDay'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStopHour'), ('Juniper-System-Clock-MIB', 'juniSysClockDstRecurStopMinute'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_sys_clock_dst_group = juniSysClockDstGroup.setStatus('current')
juni_ntp_sys_clock_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 3)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockState'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockFrequencyError'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockRootDelay'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockRootDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockStratumNumber'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockLastUpdateTime'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockLastUpdateServer'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_sys_clock_group = juniNtpSysClockGroup.setStatus('obsolete')
juni_ntp_client_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 4)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpClientAdminStatus'), ('Juniper-System-Clock-MIB', 'juniNtpClientSystemRouterIndex'), ('Juniper-System-Clock-MIB', 'juniNtpClientPacketSourceIfIndex'), ('Juniper-System-Clock-MIB', 'juniNtpClientBroadcastDelay'), ('Juniper-System-Clock-MIB', 'juniNtpClientIfDisable'), ('Juniper-System-Clock-MIB', 'juniNtpClientIfIsBroadcastClient'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_client_group = juniNtpClientGroup.setStatus('current')
juni_ntp_server_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 5)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpServerAdminStatus'), ('Juniper-System-Clock-MIB', 'juniNtpServerStratumNumber'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_server_group = juniNtpServerGroup.setStatus('current')
juni_ntp_peers_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 6)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpPeerState'), ('Juniper-System-Clock-MIB', 'juniNtpPeerStratumNumber'), ('Juniper-System-Clock-MIB', 'juniNtpPeerAssociationMode'), ('Juniper-System-Clock-MIB', 'juniNtpPeerBroadcastInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPolledInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPollingInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpPeerReachability'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPrecision'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootSyncDistance'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootTimeUpdateServer'), ('Juniper-System-Clock-MIB', 'juniNtpPeerReceiveTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerTransmitTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRequestTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterOffset'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgNtpVersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgPacketSourceIfIndex'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgIsPreferred'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_peers_group = juniNtpPeersGroup.setStatus('obsolete')
juni_ntp_access_group_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 7)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpRouterAccessGroupPeer'), ('Juniper-System-Clock-MIB', 'juniNtpRouterAccessGroupServe'), ('Juniper-System-Clock-MIB', 'juniNtpRouterAccessGroupServeOnly'), ('Juniper-System-Clock-MIB', 'juniNtpRouterAccessGroupQueryOnly'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_access_group_group = juniNtpAccessGroupGroup.setStatus('current')
juni_ntp_notification_group = notification_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 8)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpFrequencyCalibrationStart'), ('Juniper-System-Clock-MIB', 'juniNtpFrequencyCalibrationEnd'), ('Juniper-System-Clock-MIB', 'juniNtpTimeSynUp'), ('Juniper-System-Clock-MIB', 'juniNtpTimeSynDown'), ('Juniper-System-Clock-MIB', 'juniNtpTimeServerSynUp'), ('Juniper-System-Clock-MIB', 'juniNtpTimeServerSynDown'), ('Juniper-System-Clock-MIB', 'juniNtpFirstSystemClockSet'), ('Juniper-System-Clock-MIB', 'juniNtpClockOffSetLimitCrossed'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_notification_group = juniNtpNotificationGroup.setStatus('current')
juni_ntp_sys_clock_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 9)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockState'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockRootDelay'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockRootDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockStratumNumber'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockLastUpdateTime'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockLastUpdateServer'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockOffsetErrorNew'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockFrequencyErrorNew'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_sys_clock_group2 = juniNtpSysClockGroup2.setStatus('current')
juni_ntp_sys_clock_deprecated_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 10)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpSysClockOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpSysClockFrequencyError'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_sys_clock_deprecated_group = juniNtpSysClockDeprecatedGroup.setStatus('deprecated')
juni_ntp_peers_group1 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 56, 3, 2, 11)).setObjects(('Juniper-System-Clock-MIB', 'juniNtpPeerState'), ('Juniper-System-Clock-MIB', 'juniNtpPeerStratumNumber'), ('Juniper-System-Clock-MIB', 'juniNtpPeerAssociationMode'), ('Juniper-System-Clock-MIB', 'juniNtpPeerBroadcastInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPolledInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPollingInterval'), ('Juniper-System-Clock-MIB', 'juniNtpPeerDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerOffsetError'), ('Juniper-System-Clock-MIB', 'juniNtpPeerReachability'), ('Juniper-System-Clock-MIB', 'juniNtpPeerPrecision'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootSyncDistance'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRootTimeUpdateServer'), ('Juniper-System-Clock-MIB', 'juniNtpPeerReceiveTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerTransmitTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerRequestTime'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterOffset'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterDelay'), ('Juniper-System-Clock-MIB', 'juniNtpPeerFilterDispersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgNtpVersion'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgPacketSourceIfIndex'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgIsPreferred'), ('Juniper-System-Clock-MIB', 'juniNtpPeerCfgRowStatus'), ('Juniper-System-Clock-MIB', 'juniNtpPeerLastUpdateTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_ntp_peers_group1 = juniNtpPeersGroup1.setStatus('current')
mibBuilder.exportSymbols('Juniper-System-Clock-MIB', juniSysClockDstAbsoluteStartTime=juniSysClockDstAbsoluteStartTime, juniNtpPeerPrecision=juniNtpPeerPrecision, juniNtpClientIfEntry=juniNtpClientIfEntry, juniNtpPeerFilterIndex=juniNtpPeerFilterIndex, juniNtpClientGroup=juniNtpClientGroup, juniNtpPeerBroadcastInterval=juniNtpPeerBroadcastInterval, juniNtpClientIfDisable=juniNtpClientIfDisable, juniSysClockObjects=juniSysClockObjects, juniSysClockDstGroup=juniSysClockDstGroup, juniNtpSysClockGroup2=juniNtpSysClockGroup2, juniNtpPeerRootTimeUpdateServer=juniNtpPeerRootTimeUpdateServer, juniNtpTimeServerSynUp=juniNtpTimeServerSynUp, juniNtpSysClock=juniNtpSysClock, juniNtpClientAdminStatus=juniNtpClientAdminStatus, juniNtpTimeSynDown=juniNtpTimeSynDown, juniSysClockDstRecurStartHour=juniSysClockDstRecurStartHour, juniNtpPeerRootDelay=juniNtpPeerRootDelay, juniNtpSysClockState=juniNtpSysClockState, juniNtpServerStratumNumber=juniNtpServerStratumNumber, juniSysClockCompliance3=juniSysClockCompliance3, juniNtpPeerFilterDelay=juniNtpPeerFilterDelay, juniNtpServer=juniNtpServer, juniNtpPeerCfgIsPreferred=juniNtpPeerCfgIsPreferred, JuniSysClockMonth=JuniSysClockMonth, juniNtpPeerReachability=juniNtpPeerReachability, juniNtpPeersGroup1=juniNtpPeersGroup1, juniNtpPeerRootDispersion=juniNtpPeerRootDispersion, juniNtpClockOffSetLimitCrossed=juniNtpClockOffSetLimitCrossed, JuniSysClockWeekOfTheMonth=JuniSysClockWeekOfTheMonth, juniSysClockDstRecurStopMinute=juniSysClockDstRecurStopMinute, juniNtpPeerFilterDispersion=juniNtpPeerFilterDispersion, juniSysClockDstAbsoluteStopTime=juniSysClockDstAbsoluteStopTime, JuniNtpClockSignedTime=JuniNtpClockSignedTime, juniNtpClientIfIsBroadcastServerDelay=juniNtpClientIfIsBroadcastServerDelay, JuniNtpClockUnsignedTime=JuniNtpClockUnsignedTime, JuniSysClockHour=JuniSysClockHour, juniNtpPeerDispersion=juniNtpPeerDispersion, juniNtpPeerDelay=juniNtpPeerDelay, juniNtpPeerTransmitTime=juniNtpPeerTransmitTime, juniSysClockTimeGroup=juniSysClockTimeGroup, juniNtpPeerCfgRowStatus=juniNtpPeerCfgRowStatus, juniSysClockGroups=juniSysClockGroups, PYSNMP_MODULE_ID=juniSysClockMIB, juniNtpSysClockDeprecatedGroup=juniNtpSysClockDeprecatedGroup, juniNtpPeerFilterOffset=juniNtpPeerFilterOffset, juniNtpSysClockOffsetErrorNew=juniNtpSysClockOffsetErrorNew, juniNtpPeerCfgPacketSourceIfIndex=juniNtpPeerCfgPacketSourceIfIndex, juniSysClockCompliance2=juniSysClockCompliance2, juniSysClockDstName=juniSysClockDstName, juniNtpPeerCfgIpAddress=juniNtpPeerCfgIpAddress, juniSysClockDstRecurStopDay=juniSysClockDstRecurStopDay, juniNtpClientPacketSourceIfIndex=juniNtpClientPacketSourceIfIndex, juniSysClockDstOffset=juniSysClockDstOffset, juniSysClockDstRecurStartDay=juniSysClockDstRecurStartDay, juniNtpAccessGroup=juniNtpAccessGroup, juniNtpAccessGroupGroup=juniNtpAccessGroupGroup, juniNtpPeerPolledInterval=juniNtpPeerPolledInterval, juniNtpSysClockRootDelay=juniNtpSysClockRootDelay, juniNtpTimeSynUp=juniNtpTimeSynUp, juniSysClockMIB=juniSysClockMIB, juniSysClockDstRecurStartMinute=juniSysClockDstRecurStartMinute, juniNtpFrequencyCalibrationEnd=juniNtpFrequencyCalibrationEnd, juniNtpPeerRootSyncDistance=juniNtpPeerRootSyncDistance, juniNtpTraps=juniNtpTraps, juniNtpFrequencyCalibrationStart=juniNtpFrequencyCalibrationStart, juniSysClockDstRecurStartWeek=juniSysClockDstRecurStartWeek, juniNtpRouterAccessGroupQueryOnly=juniNtpRouterAccessGroupQueryOnly, juniNtpPeerAssociationMode=juniNtpPeerAssociationMode, juniNtpSysClockRootDispersion=juniNtpSysClockRootDispersion, juniNtpClientIfIfIndex=juniNtpClientIfIfIndex, juniNtpPeerReceiveTime=juniNtpPeerReceiveTime, juniSysClockDst=juniSysClockDst, juniNtpSysClockOffsetError=juniNtpSysClockOffsetError, juniSysClockDstRecurStopHour=juniSysClockDstRecurStopHour, juniNtpPeerRequestTime=juniNtpPeerRequestTime, juniNtpPeerStratumNumber=juniNtpPeerStratumNumber, juniNtpFirstSystemClockSet=juniNtpFirstSystemClockSet, juniNtpPeerTable=juniNtpPeerTable, juniNtpRouterAccessGroupServe=juniNtpRouterAccessGroupServe, juniNtpSysClockFrequencyError=juniNtpSysClockFrequencyError, juniSysClockDstRecurStopWeek=juniSysClockDstRecurStopWeek, juniNtpSysClockFrequencyErrorNew=juniNtpSysClockFrequencyErrorNew, juniSysClockDstRecurStartMonth=juniSysClockDstRecurStartMonth, juniNtpClientIfIsBroadcastServer=juniNtpClientIfIsBroadcastServer, juniNtpSysClockGroup=juniNtpSysClockGroup, JuniSysClockDayOfTheWeek=JuniSysClockDayOfTheWeek, juniNtpPeerCfgNtpVersion=juniNtpPeerCfgNtpVersion, juniNtpServerAdminStatus=juniNtpServerAdminStatus, juniSysClockTime=juniSysClockTime, juniNtpPeerCfgEntry=juniNtpPeerCfgEntry, juniNtpPeerFilterRegisterTable=juniNtpPeerFilterRegisterTable, juniNtpSysClockLastUpdateServer=juniNtpSysClockLastUpdateServer, juniSysClockCompliances=juniSysClockCompliances, JuniSysClockMinute=JuniSysClockMinute, juniSysClockTimeZoneName=juniSysClockTimeZoneName, juniNtpTimeServerSynDown=juniNtpTimeServerSynDown, juniNtpPeerFilterRegisterEntry=juniNtpPeerFilterRegisterEntry, juniNtpClientIfIsBroadcastServerVersion=juniNtpClientIfIsBroadcastServerVersion, juniNtpClientIfTable=juniNtpClientIfTable, juniNtpPeerRootTime=juniNtpPeerRootTime, juniNtpClientIfRouterIndex=juniNtpClientIfRouterIndex, juniNtpClientSystemRouterIndex=juniNtpClientSystemRouterIndex, juniSysClockDstStatus=juniSysClockDstStatus, juniNtpPeerOffsetError=juniNtpPeerOffsetError, juniNtpClientBroadcastDelay=juniNtpClientBroadcastDelay, juniNtpClient=juniNtpClient, juniNtpPeers=juniNtpPeers, juniNtpRouterAccessGroupPeer=juniNtpRouterAccessGroupPeer, juniNtpSysClockLastUpdateTime=juniNtpSysClockLastUpdateTime, juniNtpServerGroup=juniNtpServerGroup, juniNtpPeersGroup=juniNtpPeersGroup, juniNtpClientIfIsBroadcastClient=juniNtpClientIfIsBroadcastClient, juniNtpPeerCfgTable=juniNtpPeerCfgTable, juniNtpPeerLastUpdateTime=juniNtpPeerLastUpdateTime, juniSysClockDstRecurStopMonth=juniSysClockDstRecurStopMonth, juniNtpObjects=juniNtpObjects, juniNtpPeerState=juniNtpPeerState, JuniNtpTimeStamp=JuniNtpTimeStamp, juniNtpSysClockStratumNumber=juniNtpSysClockStratumNumber, juniNtpPeerPollingInterval=juniNtpPeerPollingInterval, juniSysClockConformance=juniSysClockConformance, juniNtpNotificationGroup=juniNtpNotificationGroup, juniNtpPeerEntry=juniNtpPeerEntry, juniSysClockCompliance=juniSysClockCompliance, juniNtpRouterAccessGroupServeOnly=juniNtpRouterAccessGroupServeOnly, juniSysClockDateAndTime=juniSysClockDateAndTime) |
#
# PySNMP MIB module CTRON-SFPS-CALL-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-SFPS-CALL-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:15: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")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
sfpsSapAPI, sfpsCallTableStats, sfpsSap, sfpsCallByTuple = mibBuilder.importSymbols("CTRON-SFPS-INCLUDE-MIB", "sfpsSapAPI", "sfpsCallTableStats", "sfpsSap", "sfpsCallByTuple")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, MibIdentifier, Gauge32, ModuleIdentity, IpAddress, TimeTicks, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ObjectIdentity, iso, Unsigned32, Counter64, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "Gauge32", "ModuleIdentity", "IpAddress", "TimeTicks", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ObjectIdentity", "iso", "Unsigned32", "Counter64", "Bits")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class HexInteger(Integer32):
pass
sfpsSapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1), )
if mibBuilder.loadTexts: sfpsSapTable.setStatus('mandatory')
sfpsSapTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableTag"), (0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsSapTableHashIndex"))
if mibBuilder.loadTexts: sfpsSapTableEntry.setStatus('mandatory')
sfpsSapTableTag = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableTag.setStatus('mandatory')
sfpsSapTableHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableHash.setStatus('mandatory')
sfpsSapTableHashIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableHashIndex.setStatus('mandatory')
sfpsSapTableSourceCP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableSourceCP.setStatus('mandatory')
sfpsSapTableDestCP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableDestCP.setStatus('mandatory')
sfpsSapTableSAP = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableSAP.setStatus('mandatory')
sfpsSapTableOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableOperStatus.setStatus('mandatory')
sfpsSapTableAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableAdminStatus.setStatus('mandatory')
sfpsSapTableStateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 9), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableStateTime.setStatus('mandatory')
sfpsSapTableDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableDescription.setStatus('mandatory')
sfpsSapTableNumAccepted = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNumAccepted.setStatus('mandatory')
sfpsSapTableNumDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNumDropped.setStatus('mandatory')
sfpsSapTableUnicastSap = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapTableUnicastSap.setStatus('mandatory')
sfpsSapTableNVStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("unset", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapTableNVStatus.setStatus('mandatory')
sfpsSapAPIVerb = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("getStatus", 1), ("next", 2), ("first", 3), ("disable", 4), ("disableInNvram", 5), ("enable", 6), ("enableInNvram", 7), ("clearFromNvram", 8), ("clearAllNvram", 9), ("resetStats", 10), ("resetAllStats", 11)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPIVerb.setStatus('mandatory')
sfpsSapAPISourceCP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPISourceCP.setStatus('mandatory')
sfpsSapAPIDestCP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPIDestCP.setStatus('mandatory')
sfpsSapAPISAP = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPISAP.setStatus('mandatory')
sfpsSapAPINVStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("unset", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINVStatus.setStatus('mandatory')
sfpsSapAPIAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIAdminStatus.setStatus('mandatory')
sfpsSapAPIOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIOperStatus.setStatus('mandatory')
sfpsSapAPINvSet = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINvSet.setStatus('mandatory')
sfpsSapAPINVTotal = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsSapAPINVTotal.setStatus('mandatory')
sfpsSapAPINumAccept = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINumAccept.setStatus('mandatory')
sfpsSapAPINvDiscard = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPINvDiscard.setStatus('mandatory')
sfpsSapAPIDefaultStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsSapAPIDefaultStatus.setStatus('mandatory')
sfpsCallByTupleTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1), )
if mibBuilder.loadTexts: sfpsCallByTupleTable.setStatus('mandatory')
sfpsCallByTupleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1), ).setIndexNames((0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleInPort"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleSrcHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleDstHash"), (0, "CTRON-SFPS-CALL-MIB", "sfpsCallByTupleHashIndex"))
if mibBuilder.loadTexts: sfpsCallByTupleEntry.setStatus('mandatory')
sfpsCallByTupleInPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleInPort.setStatus('mandatory')
sfpsCallByTupleSrcHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleSrcHash.setStatus('mandatory')
sfpsCallByTupleDstHash = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleDstHash.setStatus('mandatory')
sfpsCallByTupleHashIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleHashIndex.setStatus('mandatory')
sfpsCallByTupleBotSrcType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotSrcType.setStatus('mandatory')
sfpsCallByTupleBotSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotSrcAddress.setStatus('mandatory')
sfpsCallByTupleBotDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotDstType.setStatus('mandatory')
sfpsCallByTupleBotDstAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleBotDstAddress.setStatus('mandatory')
sfpsCallByTupleTopSrcType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopSrcType.setStatus('mandatory')
sfpsCallByTupleTopSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopSrcAddress.setStatus('mandatory')
sfpsCallByTupleTopDstType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopDstType.setStatus('mandatory')
sfpsCallByTupleTopDstAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 12), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTopDstAddress.setStatus('mandatory')
sfpsCallByTupleCallProcName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallProcName.setStatus('mandatory')
sfpsCallByTupleCallTag = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 14), HexInteger()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallTag.setStatus('mandatory')
sfpsCallByTupleCallState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 15), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleCallState.setStatus('mandatory')
sfpsCallByTupleTimeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 16), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallByTupleTimeRemaining.setStatus('mandatory')
sfpsCallTableStatsRam = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsRam.setStatus('mandatory')
sfpsCallTableStatsSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsSize.setStatus('mandatory')
sfpsCallTableStatsInUse = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsInUse.setStatus('mandatory')
sfpsCallTableStatsMax = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMax.setStatus('mandatory')
sfpsCallTableStatsTotMisses = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsTotMisses.setStatus('mandatory')
sfpsCallTableStatsMissStart = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 7), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMissStart.setStatus('mandatory')
sfpsCallTableStatsMissStop = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 8), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sfpsCallTableStatsMissStop.setStatus('mandatory')
sfpsCallTableStatsLastMiss = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sfpsCallTableStatsLastMiss.setStatus('mandatory')
mibBuilder.exportSymbols("CTRON-SFPS-CALL-MIB", sfpsSapTableDestCP=sfpsSapTableDestCP, sfpsCallTableStatsTotMisses=sfpsCallTableStatsTotMisses, sfpsSapTableEntry=sfpsSapTableEntry, sfpsCallByTupleInPort=sfpsCallByTupleInPort, sfpsCallByTupleTable=sfpsCallByTupleTable, sfpsCallByTupleBotSrcType=sfpsCallByTupleBotSrcType, sfpsCallByTupleBotSrcAddress=sfpsCallByTupleBotSrcAddress, sfpsSapTableAdminStatus=sfpsSapTableAdminStatus, sfpsSapTableUnicastSap=sfpsSapTableUnicastSap, sfpsSapAPIVerb=sfpsSapAPIVerb, sfpsSapAPISAP=sfpsSapAPISAP, sfpsSapTableSourceCP=sfpsSapTableSourceCP, sfpsSapAPINvSet=sfpsSapAPINvSet, sfpsSapAPINumAccept=sfpsSapAPINumAccept, sfpsCallByTupleTopSrcType=sfpsCallByTupleTopSrcType, sfpsSapTableStateTime=sfpsSapTableStateTime, sfpsCallByTupleBotDstAddress=sfpsCallByTupleBotDstAddress, sfpsCallByTupleTopSrcAddress=sfpsCallByTupleTopSrcAddress, sfpsCallByTupleTopDstType=sfpsCallByTupleTopDstType, sfpsSapAPIAdminStatus=sfpsSapAPIAdminStatus, sfpsCallByTupleEntry=sfpsCallByTupleEntry, sfpsCallByTupleTopDstAddress=sfpsCallByTupleTopDstAddress, sfpsSapAPINVTotal=sfpsSapAPINVTotal, sfpsCallTableStatsMax=sfpsCallTableStatsMax, sfpsCallTableStatsRam=sfpsCallTableStatsRam, sfpsCallTableStatsSize=sfpsCallTableStatsSize, sfpsSapTableHash=sfpsSapTableHash, sfpsSapTableNVStatus=sfpsSapTableNVStatus, sfpsCallByTupleCallTag=sfpsCallByTupleCallTag, sfpsSapAPINvDiscard=sfpsSapAPINvDiscard, sfpsCallByTupleTimeRemaining=sfpsCallByTupleTimeRemaining, sfpsSapTableDescription=sfpsSapTableDescription, HexInteger=HexInteger, sfpsSapTableNumDropped=sfpsSapTableNumDropped, sfpsSapAPIDefaultStatus=sfpsSapAPIDefaultStatus, sfpsSapTable=sfpsSapTable, sfpsCallByTupleSrcHash=sfpsCallByTupleSrcHash, sfpsSapAPIDestCP=sfpsSapAPIDestCP, sfpsSapTableTag=sfpsSapTableTag, sfpsCallByTupleDstHash=sfpsCallByTupleDstHash, sfpsSapAPIOperStatus=sfpsSapAPIOperStatus, sfpsSapAPINVStatus=sfpsSapAPINVStatus, sfpsCallTableStatsMissStart=sfpsCallTableStatsMissStart, sfpsCallByTupleBotDstType=sfpsCallByTupleBotDstType, sfpsCallByTupleCallState=sfpsCallByTupleCallState, sfpsCallByTupleCallProcName=sfpsCallByTupleCallProcName, sfpsSapTableHashIndex=sfpsSapTableHashIndex, sfpsSapTableSAP=sfpsSapTableSAP, sfpsSapTableNumAccepted=sfpsSapTableNumAccepted, sfpsCallByTupleHashIndex=sfpsCallByTupleHashIndex, sfpsSapTableOperStatus=sfpsSapTableOperStatus, sfpsCallTableStatsMissStop=sfpsCallTableStatsMissStop, sfpsCallTableStatsLastMiss=sfpsCallTableStatsLastMiss, sfpsCallTableStatsInUse=sfpsCallTableStatsInUse, sfpsSapAPISourceCP=sfpsSapAPISourceCP)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint')
(sfps_sap_api, sfps_call_table_stats, sfps_sap, sfps_call_by_tuple) = mibBuilder.importSymbols('CTRON-SFPS-INCLUDE-MIB', 'sfpsSapAPI', 'sfpsCallTableStats', 'sfpsSap', 'sfpsCallByTuple')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(counter32, mib_identifier, gauge32, module_identity, ip_address, time_ticks, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, object_identity, iso, unsigned32, counter64, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibIdentifier', 'Gauge32', 'ModuleIdentity', 'IpAddress', 'TimeTicks', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ObjectIdentity', 'iso', 'Unsigned32', 'Counter64', 'Bits')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
class Hexinteger(Integer32):
pass
sfps_sap_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1))
if mibBuilder.loadTexts:
sfpsSapTable.setStatus('mandatory')
sfps_sap_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-SFPS-CALL-MIB', 'sfpsSapTableTag'), (0, 'CTRON-SFPS-CALL-MIB', 'sfpsSapTableHash'), (0, 'CTRON-SFPS-CALL-MIB', 'sfpsSapTableHashIndex'))
if mibBuilder.loadTexts:
sfpsSapTableEntry.setStatus('mandatory')
sfps_sap_table_tag = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableTag.setStatus('mandatory')
sfps_sap_table_hash = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableHash.setStatus('mandatory')
sfps_sap_table_hash_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableHashIndex.setStatus('mandatory')
sfps_sap_table_source_cp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableSourceCP.setStatus('mandatory')
sfps_sap_table_dest_cp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableDestCP.setStatus('mandatory')
sfps_sap_table_sap = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableSAP.setStatus('mandatory')
sfps_sap_table_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableOperStatus.setStatus('mandatory')
sfps_sap_table_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableAdminStatus.setStatus('mandatory')
sfps_sap_table_state_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 9), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableStateTime.setStatus('mandatory')
sfps_sap_table_description = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableDescription.setStatus('mandatory')
sfps_sap_table_num_accepted = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableNumAccepted.setStatus('mandatory')
sfps_sap_table_num_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableNumDropped.setStatus('mandatory')
sfps_sap_table_unicast_sap = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapTableUnicastSap.setStatus('mandatory')
sfps_sap_table_nv_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3), ('unset', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapTableNVStatus.setStatus('mandatory')
sfps_sap_api_verb = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('getStatus', 1), ('next', 2), ('first', 3), ('disable', 4), ('disableInNvram', 5), ('enable', 6), ('enableInNvram', 7), ('clearFromNvram', 8), ('clearAllNvram', 9), ('resetStats', 10), ('resetAllStats', 11)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapAPIVerb.setStatus('mandatory')
sfps_sap_api_source_cp = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapAPISourceCP.setStatus('mandatory')
sfps_sap_api_dest_cp = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapAPIDestCP.setStatus('mandatory')
sfps_sap_apisap = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapAPISAP.setStatus('mandatory')
sfps_sap_apinv_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3), ('unset', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPINVStatus.setStatus('mandatory')
sfps_sap_api_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPIAdminStatus.setStatus('mandatory')
sfps_sap_api_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPIOperStatus.setStatus('mandatory')
sfps_sap_api_nv_set = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPINvSet.setStatus('mandatory')
sfps_sap_apinv_total = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsSapAPINVTotal.setStatus('mandatory')
sfps_sap_api_num_accept = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPINumAccept.setStatus('mandatory')
sfps_sap_api_nv_discard = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPINvDiscard.setStatus('mandatory')
sfps_sap_api_default_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 2, 2, 2, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsSapAPIDefaultStatus.setStatus('mandatory')
sfps_call_by_tuple_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1))
if mibBuilder.loadTexts:
sfpsCallByTupleTable.setStatus('mandatory')
sfps_call_by_tuple_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1)).setIndexNames((0, 'CTRON-SFPS-CALL-MIB', 'sfpsCallByTupleInPort'), (0, 'CTRON-SFPS-CALL-MIB', 'sfpsCallByTupleSrcHash'), (0, 'CTRON-SFPS-CALL-MIB', 'sfpsCallByTupleDstHash'), (0, 'CTRON-SFPS-CALL-MIB', 'sfpsCallByTupleHashIndex'))
if mibBuilder.loadTexts:
sfpsCallByTupleEntry.setStatus('mandatory')
sfps_call_by_tuple_in_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleInPort.setStatus('mandatory')
sfps_call_by_tuple_src_hash = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleSrcHash.setStatus('mandatory')
sfps_call_by_tuple_dst_hash = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleDstHash.setStatus('mandatory')
sfps_call_by_tuple_hash_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleHashIndex.setStatus('mandatory')
sfps_call_by_tuple_bot_src_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleBotSrcType.setStatus('mandatory')
sfps_call_by_tuple_bot_src_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleBotSrcAddress.setStatus('mandatory')
sfps_call_by_tuple_bot_dst_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleBotDstType.setStatus('mandatory')
sfps_call_by_tuple_bot_dst_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleBotDstAddress.setStatus('mandatory')
sfps_call_by_tuple_top_src_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleTopSrcType.setStatus('mandatory')
sfps_call_by_tuple_top_src_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleTopSrcAddress.setStatus('mandatory')
sfps_call_by_tuple_top_dst_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleTopDstType.setStatus('mandatory')
sfps_call_by_tuple_top_dst_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 12), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleTopDstAddress.setStatus('mandatory')
sfps_call_by_tuple_call_proc_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 13), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleCallProcName.setStatus('mandatory')
sfps_call_by_tuple_call_tag = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 14), hex_integer()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleCallTag.setStatus('mandatory')
sfps_call_by_tuple_call_state = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 15), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleCallState.setStatus('mandatory')
sfps_call_by_tuple_time_remaining = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 5, 1, 1, 16), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallByTupleTimeRemaining.setStatus('mandatory')
sfps_call_table_stats_ram = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsRam.setStatus('mandatory')
sfps_call_table_stats_size = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsSize.setStatus('mandatory')
sfps_call_table_stats_in_use = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsInUse.setStatus('mandatory')
sfps_call_table_stats_max = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsMax.setStatus('mandatory')
sfps_call_table_stats_tot_misses = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsTotMisses.setStatus('mandatory')
sfps_call_table_stats_miss_start = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 7), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsMissStart.setStatus('mandatory')
sfps_call_table_stats_miss_stop = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 8), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sfpsCallTableStatsMissStop.setStatus('mandatory')
sfps_call_table_stats_last_miss = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 4, 2, 2, 5, 1, 6, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sfpsCallTableStatsLastMiss.setStatus('mandatory')
mibBuilder.exportSymbols('CTRON-SFPS-CALL-MIB', sfpsSapTableDestCP=sfpsSapTableDestCP, sfpsCallTableStatsTotMisses=sfpsCallTableStatsTotMisses, sfpsSapTableEntry=sfpsSapTableEntry, sfpsCallByTupleInPort=sfpsCallByTupleInPort, sfpsCallByTupleTable=sfpsCallByTupleTable, sfpsCallByTupleBotSrcType=sfpsCallByTupleBotSrcType, sfpsCallByTupleBotSrcAddress=sfpsCallByTupleBotSrcAddress, sfpsSapTableAdminStatus=sfpsSapTableAdminStatus, sfpsSapTableUnicastSap=sfpsSapTableUnicastSap, sfpsSapAPIVerb=sfpsSapAPIVerb, sfpsSapAPISAP=sfpsSapAPISAP, sfpsSapTableSourceCP=sfpsSapTableSourceCP, sfpsSapAPINvSet=sfpsSapAPINvSet, sfpsSapAPINumAccept=sfpsSapAPINumAccept, sfpsCallByTupleTopSrcType=sfpsCallByTupleTopSrcType, sfpsSapTableStateTime=sfpsSapTableStateTime, sfpsCallByTupleBotDstAddress=sfpsCallByTupleBotDstAddress, sfpsCallByTupleTopSrcAddress=sfpsCallByTupleTopSrcAddress, sfpsCallByTupleTopDstType=sfpsCallByTupleTopDstType, sfpsSapAPIAdminStatus=sfpsSapAPIAdminStatus, sfpsCallByTupleEntry=sfpsCallByTupleEntry, sfpsCallByTupleTopDstAddress=sfpsCallByTupleTopDstAddress, sfpsSapAPINVTotal=sfpsSapAPINVTotal, sfpsCallTableStatsMax=sfpsCallTableStatsMax, sfpsCallTableStatsRam=sfpsCallTableStatsRam, sfpsCallTableStatsSize=sfpsCallTableStatsSize, sfpsSapTableHash=sfpsSapTableHash, sfpsSapTableNVStatus=sfpsSapTableNVStatus, sfpsCallByTupleCallTag=sfpsCallByTupleCallTag, sfpsSapAPINvDiscard=sfpsSapAPINvDiscard, sfpsCallByTupleTimeRemaining=sfpsCallByTupleTimeRemaining, sfpsSapTableDescription=sfpsSapTableDescription, HexInteger=HexInteger, sfpsSapTableNumDropped=sfpsSapTableNumDropped, sfpsSapAPIDefaultStatus=sfpsSapAPIDefaultStatus, sfpsSapTable=sfpsSapTable, sfpsCallByTupleSrcHash=sfpsCallByTupleSrcHash, sfpsSapAPIDestCP=sfpsSapAPIDestCP, sfpsSapTableTag=sfpsSapTableTag, sfpsCallByTupleDstHash=sfpsCallByTupleDstHash, sfpsSapAPIOperStatus=sfpsSapAPIOperStatus, sfpsSapAPINVStatus=sfpsSapAPINVStatus, sfpsCallTableStatsMissStart=sfpsCallTableStatsMissStart, sfpsCallByTupleBotDstType=sfpsCallByTupleBotDstType, sfpsCallByTupleCallState=sfpsCallByTupleCallState, sfpsCallByTupleCallProcName=sfpsCallByTupleCallProcName, sfpsSapTableHashIndex=sfpsSapTableHashIndex, sfpsSapTableSAP=sfpsSapTableSAP, sfpsSapTableNumAccepted=sfpsSapTableNumAccepted, sfpsCallByTupleHashIndex=sfpsCallByTupleHashIndex, sfpsSapTableOperStatus=sfpsSapTableOperStatus, sfpsCallTableStatsMissStop=sfpsCallTableStatsMissStop, sfpsCallTableStatsLastMiss=sfpsCallTableStatsLastMiss, sfpsCallTableStatsInUse=sfpsCallTableStatsInUse, sfpsSapAPISourceCP=sfpsSapAPISourceCP) |
class RPMReqException(Exception):
msg_fmt = "An unknown error occurred"
def __init__(self, msg=None, **kwargs):
self.kwargs = kwargs
if not msg:
try:
msg = self.msg_fmt % kwargs
except Exception:
msg = self.msg_fmt
super(RPMReqException, self).__init__(msg)
class NotADirectory(RPMReqException):
msg_fmt = "Not a directory: %(path)s"
class RemoteFileFetchFailed(RPMReqException):
msg_fmt = "Failed to fetch remote file with status %(code)s: %(url)s"
class RepoMDParsingFailed(RPMReqException):
msg_fmt = "Failed to parse repository metadata :-/"
class InvalidUsage(RPMReqException):
msg_fmt = "Invalid usage: %(why)s"
| class Rpmreqexception(Exception):
msg_fmt = 'An unknown error occurred'
def __init__(self, msg=None, **kwargs):
self.kwargs = kwargs
if not msg:
try:
msg = self.msg_fmt % kwargs
except Exception:
msg = self.msg_fmt
super(RPMReqException, self).__init__(msg)
class Notadirectory(RPMReqException):
msg_fmt = 'Not a directory: %(path)s'
class Remotefilefetchfailed(RPMReqException):
msg_fmt = 'Failed to fetch remote file with status %(code)s: %(url)s'
class Repomdparsingfailed(RPMReqException):
msg_fmt = 'Failed to parse repository metadata :-/'
class Invalidusage(RPMReqException):
msg_fmt = 'Invalid usage: %(why)s' |
# coding: utf-8
# In[43]:
alist = [54,26,93,17,77,31,44,55,20]
def bubbleSort(alist):
for passnum in range(len(alist)-1,0,-1):
for i in range(passnum):
if alist[i]>alist[i+1]:
temp = alist[i]
alist[i] = alist[i+1]
alist[i+1] = temp
return alist
print(bubbleSort(alist))
| alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
def bubble_sort(alist):
for passnum in range(len(alist) - 1, 0, -1):
for i in range(passnum):
if alist[i] > alist[i + 1]:
temp = alist[i]
alist[i] = alist[i + 1]
alist[i + 1] = temp
return alist
print(bubble_sort(alist)) |
# Defining the Movie Class
# Creates an instance of a movie with related details
class Movie():
def __init__(self, movie_title, poster_image, trailer_id,
movie_year, movie_rating, movie_release_date, movie_imdb_rating):
self.title = movie_title
self.poster_image_url = poster_image
self.youtube_id = trailer_id
self.year = movie_year
self.rated = movie_rating
self.released = movie_release_date
self.rating = movie_imdb_rating
| class Movie:
def __init__(self, movie_title, poster_image, trailer_id, movie_year, movie_rating, movie_release_date, movie_imdb_rating):
self.title = movie_title
self.poster_image_url = poster_image
self.youtube_id = trailer_id
self.year = movie_year
self.rated = movie_rating
self.released = movie_release_date
self.rating = movie_imdb_rating |
# -*- coding: utf-8 -*-
system_proxies = None;
disable_proxies = {'http': None, 'https': None};
proxies_protocol = "http";
proxies_protocol = "socks5";
defined_proxies = {
'http': proxies_protocol+'://127.0.0.1:8888',
'https': proxies_protocol+'://127.0.0.1:8888',
};
proxies = system_proxies;
if __name__ == '__main__':
pass;
#end | system_proxies = None
disable_proxies = {'http': None, 'https': None}
proxies_protocol = 'http'
proxies_protocol = 'socks5'
defined_proxies = {'http': proxies_protocol + '://127.0.0.1:8888', 'https': proxies_protocol + '://127.0.0.1:8888'}
proxies = system_proxies
if __name__ == '__main__':
pass |
#
# PySNMP MIB module NBS-OTNPM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-OTNPM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:17:31 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
InterfaceIndex, ifAlias = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifAlias")
nbs, WritableU64, Unsigned64 = mibBuilder.importSymbols("NBS-MIB", "nbs", "WritableU64", "Unsigned64")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Unsigned32, IpAddress, Bits, Counter64, ObjectIdentity, Counter32, iso, Integer32, MibIdentifier, TimeTicks, ModuleIdentity, NotificationType, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "IpAddress", "Bits", "Counter64", "ObjectIdentity", "Counter32", "iso", "Integer32", "MibIdentifier", "TimeTicks", "ModuleIdentity", "NotificationType", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
nbsOtnpmMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 629, 222))
if mibBuilder.loadTexts: nbsOtnpmMib.setLastUpdated('201401230000Z')
if mibBuilder.loadTexts: nbsOtnpmMib.setOrganization('NBS')
if mibBuilder.loadTexts: nbsOtnpmMib.setContactInfo('For technical support, please contact your service channel')
if mibBuilder.loadTexts: nbsOtnpmMib.setDescription('OTN Performance Monitoring and user-controlled statistics')
nbsOtnpmThresholdsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 1))
if mibBuilder.loadTexts: nbsOtnpmThresholdsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsGrp.setDescription('Maximum considered safe by user')
nbsOtnpmCurrentGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 2))
if mibBuilder.loadTexts: nbsOtnpmCurrentGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentGrp.setDescription('Subtotals and statistics for sample now underway')
nbsOtnpmHistoricGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 3))
if mibBuilder.loadTexts: nbsOtnpmHistoricGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricGrp.setDescription('Totals and final statistics for a previous sample')
nbsOtnpmRunningGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 4))
if mibBuilder.loadTexts: nbsOtnpmRunningGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningGrp.setDescription('Totals and statistics since (boot-up) protocol configuration')
nbsOtnAlarmsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 80))
if mibBuilder.loadTexts: nbsOtnAlarmsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsGrp.setDescription('OTN alarms')
nbsOtnStatsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 90))
if mibBuilder.loadTexts: nbsOtnStatsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsGrp.setDescription('User-controlled OTN alarms and statistics')
nbsOtnpmEventsGrp = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 100))
if mibBuilder.loadTexts: nbsOtnpmEventsGrp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmEventsGrp.setDescription('Threshold crossing events')
nbsOtnpmTraps = ObjectIdentity((1, 3, 6, 1, 4, 1, 629, 222, 100, 0))
if mibBuilder.loadTexts: nbsOtnpmTraps.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTraps.setDescription('Threshold crossing Traps or Notifications')
class NbsOtnAlarmId(TextualConvention, Integer32):
description = 'OTN alarm id, also used to identify a mask bit'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53))
namedValues = NamedValues(("aLOS", 1), ("aLOF", 2), ("aOOF", 3), ("aLOM", 4), ("aOOM", 5), ("aRxLOL", 6), ("aTxLOL", 7), ("aOtuAIS", 8), ("aSectBDI", 9), ("aSectBIAE", 10), ("aSectIAE", 11), ("aSectTIM", 12), ("aOduAIS", 13), ("aOduOCI", 14), ("aOduLCK", 15), ("aPathBDI", 16), ("aPathTIM", 17), ("aTcm1BDI", 18), ("aTcm2BDI", 19), ("aTcm3BDI", 20), ("aTcm4BDI", 21), ("aTcm5BDI", 22), ("aTcm6BDI", 23), ("aTcm1BIAE", 24), ("aTcm2BIAE", 25), ("aTcm3BIAE", 26), ("aTcm4BIAE", 27), ("aTcm5BIAE", 28), ("aTcm6BIAE", 29), ("aTcm1IAE", 30), ("aTcm2IAE", 31), ("aTcm3IAE", 32), ("aTcm4IAE", 33), ("aTcm5IAE", 34), ("aTcm6IAE", 35), ("aTcm1LTC", 36), ("aTcm2LTC", 37), ("aTcm3LTC", 38), ("aTcm4LTC", 39), ("aTcm5LTC", 40), ("aTcm6LTC", 41), ("aTcm1TIM", 42), ("aTcm2TIM", 43), ("aTcm3TIM", 44), ("aTcm4TIM", 45), ("aTcm5TIM", 46), ("aTcm6TIM", 47), ("aFwdSF", 48), ("aFwdSD", 49), ("aBwdSF", 50), ("aBwdSD", 51), ("aPTM", 52), ("aCSF", 53))
class NbsOtnAlarmMask(TextualConvention, OctetString):
description = 'OTN alarm mask, encoded within an octet string. The bit assigned to a particular alarm (id from NbsOtnAlarmId) is calculated by: index = id/8; bit = id%8; where the leftmost bit (msb) is deemed as bit 0. The mask length is either full-size or zero if not supported.'
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 7)
nbsOtnpmThresholdsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 1, 1), )
if mibBuilder.loadTexts: nbsOtnpmThresholdsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsTable.setDescription('OTN Performance Monitoring thresholds')
nbsOtnpmThresholdsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmThresholdsScope"))
if mibBuilder.loadTexts: nbsOtnpmThresholdsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEntry.setDescription('Performance monitoring thresholds for a particular interface')
nbsOtnpmThresholdsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmThresholdsInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsInterval.setDescription('Indicates the sampling period to which these thresholds apply')
nbsOtnpmThresholdsScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmThresholdsScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsScope.setDescription('This object specifies the network segment to which these thresholds apply.')
nbsOtnpmThresholdsEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 10), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEs.setDescription('Persistent. The number of Errored Seconds (ES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsEs event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrSig.setDescription('Persistent. The significand of the Errored Seconds Ratio (ESR) threshold, which is calculated by: nbsOtnpmThresholdsEsrSig x 10^nbsOtnpmThresholdsEsrExp An ESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsEsr event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsEsrExp.setDescription('Persistent. The exponent of the Errored Seconds Ratio (ESR) threshold; see nbsOtnpmThresholdsEsrSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 13), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSes.setDescription('Persistent. The number of Severely Errored Seconds (SES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsSes event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrSig.setDescription('Persistent. The significand of the Severely Errored Seconds Ratio (SESR) threshold, which is calculated by: nbsOtnpmThresholdsSesrSig x 10^nbsOtnpmThresholdsSesrExp A SESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsSesr notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsSesrExp.setDescription('Persistent. The exponent of the Severely Errored Seconds Ratio (SESR) threshold; see nbsOtnpmThresholdsSesrSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 16), WritableU64()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBbe.setDescription('Persistent. The number of Background Block Errors (BBE) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsBbe event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 17), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberSig.setDescription('Persistent. The significand of the Background Block Errors Ratio (BBER) threshold, which is calculated by: nbsOtnpmThresholdsBberSig x 10^nbsOtnpmThresholdsBberExp A BBER that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsBber notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsBberExp.setDescription('Persistent. The exponent of the Background Block Errors Ratio (BBER) threshold; see nbsOtnpmThresholdsBberSig. Not supported value: 0x80000000')
nbsOtnpmThresholdsUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 19), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsUas.setDescription('Persistent. The number of Unavailable Seconds (UAS) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsUas event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmThresholdsFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 20), WritableU64()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnpmThresholdsFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmThresholdsFc.setDescription('Persistent. The number of Failure Counts (FC) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsFc event notification. The reserved value 0 disables notifications for this event.')
nbsOtnpmCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 2, 3), )
if mibBuilder.loadTexts: nbsOtnpmCurrentTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentTable.setDescription('All OTN Performance Monitoring statistics for the nbsOtnpmCurrentInterval now underway.')
nbsOtnpmCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"))
if mibBuilder.loadTexts: nbsOtnpmCurrentEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmCurrentInterval.')
nbsOtnpmCurrentIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmCurrentInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentInterval.setDescription('Indicates the sampling period of statistic')
nbsOtnpmCurrentScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentScope.setDescription("Indicates statistic's network segment")
nbsOtnpmCurrentDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentDate.setDescription('The date (UTC) this interval began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmCurrentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentTime.setDescription('The time (UTC) this interval began, represented by a six digit decimal number: hhmmss')
nbsOtnpmCurrentEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEs.setDescription('The number of Errored Seconds (ES) in this interval so far.')
nbsOtnpmCurrentEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrSig.setDescription('The significand of the current Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmCurrentEsrSig x 10^nbsOtnpmCurrentEsrExp')
nbsOtnpmCurrentEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentEsrExp.setDescription('The exponent of the current Errored Seconds Ratio (ESR); see nbsOtnpmCurrentEsrSig. Not supported value: 0x80000000')
nbsOtnpmCurrentSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSes.setDescription('The number of Severely Errored Seconds (SES) in this interval so far')
nbsOtnpmCurrentSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrSig.setDescription('The significand of the current Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmCurrentSesrSig x 10^nbsOtnpmCurrentSesrExp')
nbsOtnpmCurrentSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentSesrExp.setDescription('The exponent of the current Severely Errored Seconds Ratio (SESR); see nbsOtnpmCurrentSesrSig. Not supported value: 0x80000000')
nbsOtnpmCurrentBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 16), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBbe.setDescription('The number of Background Block Errors (BBE) so far, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmCurrentBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBberSig.setDescription('The significand of the current Background Block Errors (BBER), which is calculated by: nbsOtnpmCurrentBberSig x 10^nbsOtnpmCurrentBberExp')
nbsOtnpmCurrentBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentBberExp.setDescription('The exponent of the current Background Block Errors Ratio (BBER); see nbsOtnpmCurrentBberSig. Not supported value: 0x80000000')
nbsOtnpmCurrentUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentUas.setDescription('The number of Unavailable Seconds (UAS) so far')
nbsOtnpmCurrentFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 20), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentFc.setDescription('The number of Failure Counts (FC) so far, i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmCurrentAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnpmCurrentAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnpmCurrentAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmCurrentAlarmsChanged.setDescription('The mask of OTN alarms that have changed so far, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmHistoricTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 3, 3), )
if mibBuilder.loadTexts: nbsOtnpmHistoricTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricTable.setDescription('All OTN Performance Monitoring statistics for past nbsOtnpmHistoricInterval periods.')
nbsOtnpmHistoricEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricInterval"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricScope"), (0, "NBS-OTNPM-MIB", "nbsOtnpmHistoricSample"))
if mibBuilder.loadTexts: nbsOtnpmHistoricEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmHistoricInterval.')
nbsOtnpmHistoricIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmHistoricInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("quarterHour", 1), ("twentyfourHour", 2))))
if mibBuilder.loadTexts: nbsOtnpmHistoricInterval.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricInterval.setDescription('Indicates the sampling period of statistic')
nbsOtnpmHistoricScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8))))
if mibBuilder.loadTexts: nbsOtnpmHistoricScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricScope.setDescription("Indicates statistic's network segment")
nbsOtnpmHistoricSample = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 4), Integer32())
if mibBuilder.loadTexts: nbsOtnpmHistoricSample.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSample.setDescription('Indicates the sample number of this statistic. The most recent sample is numbered 1, the next previous 2, and so on until the oldest sample.')
nbsOtnpmHistoricDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricDate.setDescription('The date (UTC) the interval began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmHistoricTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricTime.setDescription('The time (UTC) the interval began, represented by a six digit decimal number: hhmmss')
nbsOtnpmHistoricEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEs.setDescription('The final count of Errored Seconds (ES) for this interval')
nbsOtnpmHistoricEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrSig.setDescription('The significand of the final Errored Seconds Ratio (ESR) for this interval, which is calculated by: nbsOtnpmHistoricEsrSig x 10^nbsOtnpmHistoricEsrExp')
nbsOtnpmHistoricEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricEsrExp.setDescription('The exponent of the final Errored Seconds Ratio (ESR) for this interval; see nbsOtnpmHistoricEsrSig. Not supported value: 0x80000000')
nbsOtnpmHistoricSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 13), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSes.setDescription('The final count of Severely Errored Seconds (SES) in this interval')
nbsOtnpmHistoricSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrSig.setDescription('The significand of the final Severely Errored Seconds Ratio (SESR) for this interval, which is calculated by: nbsOtnpmHistoricSesrSig x 10^nbsOtnpmHistoricSesrExp')
nbsOtnpmHistoricSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricSesrExp.setDescription('The exponent of the final Severely Errored Seconds Ratio (SESR) for this interval; see nbsOtnpmHistoricSesrSig. Not supported value: 0x80000000')
nbsOtnpmHistoricBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 16), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBbe.setDescription('The final count of Background Block Errors (BBE), i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmHistoricBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBberSig.setDescription('The significand of the final Background Block Errors Ratio (BBER) for this interval, which is calculated by: nbsOtnpmHistoricBberSig x 10^nbsOtnpmHistoricBberExp)')
nbsOtnpmHistoricBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricBberExp.setDescription('The exponent of the final Background Block Errors Ratio (BBER) for this interval; see nbsOtnpmHistoricBberSig. Not supported value: 0x80000000')
nbsOtnpmHistoricUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricUas.setDescription('The final count of Unavailable Seconds (UAS)')
nbsOtnpmHistoricFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 20), Unsigned64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricFc.setDescription('The final number of Failure Counts (FC), i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmHistoricAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsSupported.setDescription('The mask of OTN alarms that were supported.')
nbsOtnpmHistoricAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsRaised.setDescription('The mask of OTN alarms that were raised at the end of this interval.')
nbsOtnpmHistoricAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmHistoricAlarmsChanged.setDescription('The mask of OTN alarms that changed in this interval, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmRunningTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 4, 3), )
if mibBuilder.loadTexts: nbsOtnpmRunningTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningTable.setDescription('All OTN Performance Monitoring statistics since (boot-up) protocol configuration.')
nbsOtnpmRunningEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnpmRunningIfIndex"), (0, "NBS-OTNPM-MIB", "nbsOtnpmRunningScope"))
if mibBuilder.loadTexts: nbsOtnpmRunningEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface.')
nbsOtnpmRunningIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningIfIndex.setDescription('The mib2 ifIndex')
nbsOtnpmRunningScope = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("tcm1", 1), ("tcm2", 2), ("tcm3", 3), ("tcm4", 4), ("tcm5", 5), ("tcm6", 6), ("section", 7), ("path", 8))))
if mibBuilder.loadTexts: nbsOtnpmRunningScope.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningScope.setDescription("Indicates statistic's network segment")
nbsOtnpmRunningDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningDate.setDescription('The date (UTC) of protocol configuration, represented by an eight digit decimal number: yyyymmdd')
nbsOtnpmRunningTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningTime.setDescription('The time (UTC) of protocol configuration, represented by a six digit decimal number: hhmmss')
nbsOtnpmRunningEs = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEs.setDescription('The number of Errored Seconds (ES) since protocol configuration.')
nbsOtnpmRunningEsrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEsrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEsrSig.setDescription('The significand of the running Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmRunningEsrSig x 10^nbsOtnpmRunningEsrExp')
nbsOtnpmRunningEsrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningEsrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningEsrExp.setDescription('The exponent of the running Errored Seconds Ratio (ESR); see nbsOtnpmRunningEsrSig. Not supported value: 0x80000000')
nbsOtnpmRunningSes = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSes.setDescription('The number of Severely Errored Seconds (SES) since protocol configuration')
nbsOtnpmRunningSesrSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSesrSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSesrSig.setDescription('The significand of the running Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmRunningSesrSig x 10^nbsOtnpmRunningSesrExp')
nbsOtnpmRunningSesrExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningSesrExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningSesrExp.setDescription('The exponent of the running Severely Errored Seconds Ratio (SESR); see nbsOtnpmRunningSesrSig. Not supported value: 0x80000000')
nbsOtnpmRunningBbe = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 16), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBbe.setDescription('The number of Background Block Errors (BBE) since protocol configuration, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbsOtnpmRunningBberSig = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBberSig.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBberSig.setDescription('The significand of the running Background Block Errors (BBER), which is calculated by: nbsOtnpmRunningBberSig x 10^nbsOtnpmRunningBberExp')
nbsOtnpmRunningBberExp = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningBberExp.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningBberExp.setDescription('The exponent of the running Background Block Errors Ratio (BBER); see nbsOtnpmRunningBberSig. Not supported value: 0x80000000')
nbsOtnpmRunningUas = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningUas.setDescription('The number of Unavailable Seconds (UAS) since protocol configuration')
nbsOtnpmRunningFc = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 20), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningFc.setDescription('The number of Failure Counts (FC) since protocol configuration, i.e. the count of Backward Error Indication (BEI) errors.')
nbsOtnpmRunningAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnpmRunningAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnpmRunningAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmRunningAlarmsChanged.setDescription('The mask of OTN alarms that changed since protocol configuration, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbsOtnAlarmsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 80, 3), )
if mibBuilder.loadTexts: nbsOtnAlarmsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsTable.setDescription('OTN alarm monitoring scoreboard, showing for each possible alarm if it is currently raised and if it has changed since monitoring began (or was cleared). The latter indicator may be cleared at anytime without affecting normal performance monitoring activity.')
nbsOtnAlarmsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnAlarmsIfIndex"))
if mibBuilder.loadTexts: nbsOtnAlarmsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsEntry.setDescription('OTN alarm monitoring scoreboard for a specific port/interface.')
nbsOtnAlarmsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnAlarmsDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsDate.setDescription('The date (UTC) OTN alarm monitoring began (was cleared), represented by an eight digit decimal number: yyyymmdd')
nbsOtnAlarmsTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsTime.setDescription('The time (UTC) OTN alarm monitoring began (was cleared), represented by a six digit decimal number: hhmmss')
nbsOtnAlarmsSpan = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsSpan.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsSpan.setDescription('The amount of time (deci-sec) since nbsOtnAlarmsDate and nbsOtnAlarmsTime.')
nbsOtnAlarmsState = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("monitoring", 2), ("clearing", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnAlarmsState.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsState.setDescription("This object reads 'notSupported' if the port is not configured with an OTN protocol. Otherwise it reads 'monitoring' to indicate that supported OTN alarms are actively reported in nbsOtnAlarmsRaised and nbsOtnAlarmsChanged. Writing 'clearing' to this object clears nbsOtnAlarmsChanged.")
nbsOtnAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsSupported.setDescription('The mask of OTN alarms that are supported on this port.')
nbsOtnAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsChanged.setDescription('The mask of OTN alarms that have changed since nbsOtnAlarmsDate and AlarmsTime, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnAlarmsRcvdFTFL = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 110), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnAlarmsRcvdFTFL.setStatus('current')
if mibBuilder.loadTexts: nbsOtnAlarmsRcvdFTFL.setDescription('The current Fault Type Fault Location information received on the given port. The length will be zero when there is a no fault code in both the forward and backward fields. Otherwise, the full 256 bytes will be provided; see ITU-T G.709, section 15.8.2.5.')
nbsOtnStatsTable = MibTable((1, 3, 6, 1, 4, 1, 629, 222, 90, 3), )
if mibBuilder.loadTexts: nbsOtnStatsTable.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsTable.setDescription('OTN alarms and statistics monitoring managed per user discretion. This monitoring may be started, stopped, and cleared as desired without affecting the normal performance monitoring activity.')
nbsOtnStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1), ).setIndexNames((0, "NBS-OTNPM-MIB", "nbsOtnStatsIfIndex"))
if mibBuilder.loadTexts: nbsOtnStatsEntry.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsEntry.setDescription('User-controlled OTN monitoring for a specific port/interface.')
nbsOtnStatsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 1), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsIfIndex.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsIfIndex.setDescription('The mib2 ifIndex')
nbsOtnStatsDate = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsDate.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsDate.setDescription('The date (UTC) OTN statistics collection began, represented by an eight digit decimal number: yyyymmdd')
nbsOtnStatsTime = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsTime.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsTime.setDescription('The time (UTC) OTN statistics collection began, represented by a six digit decimal number: hhmmss')
nbsOtnStatsSpan = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsSpan.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsSpan.setDescription('The amount of time (deci-sec) statistics collection has been underway since nbsOtnStatsDate and nbsOtnStatsTime, or if stopped, the duration of the prior collection.')
nbsOtnStatsState = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("notSupported", 1), ("counting", 2), ("clearing", 3), ("stopped", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nbsOtnStatsState.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsState.setDescription("Writing 'stopped' to this object stops (pauses) OTN statistics collection. Re-configuring this port to a non-OTN protocol sets this object to 'stopped' automatically. Writing 'counting' to this object starts (resumes) OTN statistics collection if this port is configured with an OTN protocol. Writing 'clearing' to this object clears all statistical counters.")
nbsOtnStatsErrCntSectBEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 21), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBEI.setDescription('The count of section Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntPathBEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 22), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBEI.setDescription('The count of path Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm1BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 23), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BEI.setDescription('The count of TCM1 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm2BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 24), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BEI.setDescription('The count of TCM2 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm3BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 25), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BEI.setDescription('The count of TCM3 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm4BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 26), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BEI.setDescription('The count of TCM4 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm5BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 27), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BEI.setDescription('The count of TCM5 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm6BEI = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 28), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BEI.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BEI.setDescription('The count of TCM6 Backward Error Indication errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntSectBIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 31), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntSectBIP8.setDescription('The count of section Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntPathBIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 32), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntPathBIP8.setDescription('The count of path Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm1BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 33), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm1BIP8.setDescription('The count of TCM1 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm2BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 34), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm2BIP8.setDescription('The count of TCM2 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm3BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 35), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm3BIP8.setDescription('The count of TCM3 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm4BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 36), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm4BIP8.setDescription('The count of TCM4 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm5BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 37), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm5BIP8.setDescription('The count of TCM5 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsErrCntTcm6BIP8 = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 38), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BIP8.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsErrCntTcm6BIP8.setDescription('The count of TCM6 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbsOtnStatsAlarmsSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 100), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbsOtnStatsAlarmsRaised = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 101), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbsOtnStatsAlarmsChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 102), NbsOtnAlarmMask()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbsOtnStatsAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts: nbsOtnStatsAlarmsChanged.setDescription('The mask of OTN alarms that have changed since OTN statistics collection began, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbsOtnpmTrapsEs = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 10)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEs"))
if mibBuilder.loadTexts: nbsOtnpmTrapsEs.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsEs.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEs is non-zero and less than or equal to nbsOtnpmCurrentEs.')
nbsOtnpmTrapsEsr = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 11)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEsrSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentEsrExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsEsr.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsEsr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEsr is non-zero and less than or equal to nbsOtnpmCurrentEsr.')
nbsOtnpmTrapsSes = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 12)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSes"))
if mibBuilder.loadTexts: nbsOtnpmTrapsSes.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsSes.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSes is non-zero and less than or equal to nbsOtnpmCurrentSes.')
nbsOtnpmTrapsSesr = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 13)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSesrSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentSesrExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsSesr.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsSesr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSesr is non-zero and less than or equal to nbsOtnpmCurrentSesr.')
nbsOtnpmTrapsBbe = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 14)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBbe"))
if mibBuilder.loadTexts: nbsOtnpmTrapsBbe.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsBbe.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBbe is non-zero and less than or equal to nbsOtnpmCurrentBbe.')
nbsOtnpmTrapsBber = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 15)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBberSig"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentBberExp"))
if mibBuilder.loadTexts: nbsOtnpmTrapsBber.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsBber.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBber is non-zero and less than or equal to nbsOtnpmCurrentBber.')
nbsOtnpmTrapsUas = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 16)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentUas"))
if mibBuilder.loadTexts: nbsOtnpmTrapsUas.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsUas.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsUas is non-zero and less than or equal to nbsOtnpmCurrentUas.')
nbsOtnpmTrapsFc = NotificationType((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 17)).setObjects(("NBS-OTNPM-MIB", "nbsOtnpmCurrentIfIndex"), ("IF-MIB", "ifAlias"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentInterval"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentScope"), ("NBS-OTNPM-MIB", "nbsOtnpmCurrentFc"))
if mibBuilder.loadTexts: nbsOtnpmTrapsFc.setStatus('current')
if mibBuilder.loadTexts: nbsOtnpmTrapsFc.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsFc is non-zero and less than or equal to nbsOtnpmCurrentFc.')
mibBuilder.exportSymbols("NBS-OTNPM-MIB", nbsOtnpmRunningIfIndex=nbsOtnpmRunningIfIndex, nbsOtnpmHistoricGrp=nbsOtnpmHistoricGrp, nbsOtnpmCurrentSes=nbsOtnpmCurrentSes, nbsOtnpmMib=nbsOtnpmMib, nbsOtnpmRunningTable=nbsOtnpmRunningTable, nbsOtnAlarmsRcvdFTFL=nbsOtnAlarmsRcvdFTFL, nbsOtnpmRunningGrp=nbsOtnpmRunningGrp, nbsOtnpmCurrentFc=nbsOtnpmCurrentFc, nbsOtnStatsErrCntTcm6BEI=nbsOtnStatsErrCntTcm6BEI, nbsOtnpmCurrentTime=nbsOtnpmCurrentTime, nbsOtnpmThresholdsTable=nbsOtnpmThresholdsTable, nbsOtnpmRunningBbe=nbsOtnpmRunningBbe, nbsOtnStatsErrCntTcm1BEI=nbsOtnStatsErrCntTcm1BEI, nbsOtnAlarmsTable=nbsOtnAlarmsTable, nbsOtnpmThresholdsSes=nbsOtnpmThresholdsSes, nbsOtnAlarmsTime=nbsOtnAlarmsTime, nbsOtnpmThresholdsEs=nbsOtnpmThresholdsEs, nbsOtnAlarmsDate=nbsOtnAlarmsDate, nbsOtnpmCurrentGrp=nbsOtnpmCurrentGrp, nbsOtnStatsGrp=nbsOtnStatsGrp, nbsOtnpmCurrentEs=nbsOtnpmCurrentEs, nbsOtnpmHistoricEsrSig=nbsOtnpmHistoricEsrSig, nbsOtnAlarmsState=nbsOtnAlarmsState, nbsOtnStatsErrCntTcm4BEI=nbsOtnStatsErrCntTcm4BEI, nbsOtnpmThresholdsIfIndex=nbsOtnpmThresholdsIfIndex, nbsOtnpmHistoricSes=nbsOtnpmHistoricSes, nbsOtnpmCurrentIfIndex=nbsOtnpmCurrentIfIndex, nbsOtnpmCurrentBbe=nbsOtnpmCurrentBbe, nbsOtnpmCurrentEntry=nbsOtnpmCurrentEntry, nbsOtnpmRunningEsrExp=nbsOtnpmRunningEsrExp, nbsOtnAlarmsSpan=nbsOtnAlarmsSpan, nbsOtnStatsErrCntTcm2BEI=nbsOtnStatsErrCntTcm2BEI, nbsOtnpmCurrentBberExp=nbsOtnpmCurrentBberExp, nbsOtnpmCurrentInterval=nbsOtnpmCurrentInterval, nbsOtnStatsAlarmsRaised=nbsOtnStatsAlarmsRaised, nbsOtnpmRunningDate=nbsOtnpmRunningDate, nbsOtnpmCurrentSesrSig=nbsOtnpmCurrentSesrSig, nbsOtnpmRunningAlarmsSupported=nbsOtnpmRunningAlarmsSupported, nbsOtnpmRunningUas=nbsOtnpmRunningUas, nbsOtnAlarmsRaised=nbsOtnAlarmsRaised, nbsOtnStatsErrCntTcm2BIP8=nbsOtnStatsErrCntTcm2BIP8, nbsOtnpmThresholdsSesrSig=nbsOtnpmThresholdsSesrSig, nbsOtnpmHistoricBbe=nbsOtnpmHistoricBbe, nbsOtnpmHistoricUas=nbsOtnpmHistoricUas, nbsOtnpmCurrentDate=nbsOtnpmCurrentDate, nbsOtnpmHistoricIfIndex=nbsOtnpmHistoricIfIndex, nbsOtnpmRunningFc=nbsOtnpmRunningFc, nbsOtnpmEventsGrp=nbsOtnpmEventsGrp, nbsOtnStatsErrCntSectBEI=nbsOtnStatsErrCntSectBEI, nbsOtnStatsErrCntTcm6BIP8=nbsOtnStatsErrCntTcm6BIP8, nbsOtnpmHistoricSesrExp=nbsOtnpmHistoricSesrExp, nbsOtnpmThresholdsInterval=nbsOtnpmThresholdsInterval, nbsOtnpmThresholdsFc=nbsOtnpmThresholdsFc, nbsOtnpmRunningAlarmsChanged=nbsOtnpmRunningAlarmsChanged, nbsOtnpmRunningEntry=nbsOtnpmRunningEntry, nbsOtnStatsAlarmsSupported=nbsOtnStatsAlarmsSupported, nbsOtnpmThresholdsBbe=nbsOtnpmThresholdsBbe, NbsOtnAlarmId=NbsOtnAlarmId, nbsOtnpmTrapsEs=nbsOtnpmTrapsEs, nbsOtnpmHistoricBberExp=nbsOtnpmHistoricBberExp, nbsOtnpmCurrentEsrExp=nbsOtnpmCurrentEsrExp, nbsOtnpmTrapsEsr=nbsOtnpmTrapsEsr, nbsOtnStatsEntry=nbsOtnStatsEntry, nbsOtnpmHistoricScope=nbsOtnpmHistoricScope, nbsOtnStatsErrCntTcm5BEI=nbsOtnStatsErrCntTcm5BEI, nbsOtnpmTrapsSesr=nbsOtnpmTrapsSesr, nbsOtnpmCurrentBberSig=nbsOtnpmCurrentBberSig, nbsOtnpmThresholdsGrp=nbsOtnpmThresholdsGrp, nbsOtnpmThresholdsSesrExp=nbsOtnpmThresholdsSesrExp, nbsOtnAlarmsEntry=nbsOtnAlarmsEntry, nbsOtnpmCurrentAlarmsSupported=nbsOtnpmCurrentAlarmsSupported, nbsOtnpmRunningTime=nbsOtnpmRunningTime, nbsOtnStatsState=nbsOtnStatsState, nbsOtnpmRunningEs=nbsOtnpmRunningEs, nbsOtnStatsErrCntTcm3BEI=nbsOtnStatsErrCntTcm3BEI, nbsOtnStatsErrCntSectBIP8=nbsOtnStatsErrCntSectBIP8, nbsOtnAlarmsIfIndex=nbsOtnAlarmsIfIndex, nbsOtnpmRunningBberSig=nbsOtnpmRunningBberSig, nbsOtnpmHistoricSample=nbsOtnpmHistoricSample, nbsOtnpmThresholdsEsrSig=nbsOtnpmThresholdsEsrSig, nbsOtnStatsErrCntTcm5BIP8=nbsOtnStatsErrCntTcm5BIP8, nbsOtnStatsErrCntTcm1BIP8=nbsOtnStatsErrCntTcm1BIP8, nbsOtnpmRunningBberExp=nbsOtnpmRunningBberExp, nbsOtnpmCurrentScope=nbsOtnpmCurrentScope, nbsOtnpmRunningEsrSig=nbsOtnpmRunningEsrSig, nbsOtnpmTrapsBbe=nbsOtnpmTrapsBbe, nbsOtnpmHistoricEsrExp=nbsOtnpmHistoricEsrExp, nbsOtnpmRunningSesrExp=nbsOtnpmRunningSesrExp, nbsOtnpmHistoricDate=nbsOtnpmHistoricDate, nbsOtnpmCurrentEsrSig=nbsOtnpmCurrentEsrSig, nbsOtnStatsErrCntTcm3BIP8=nbsOtnStatsErrCntTcm3BIP8, nbsOtnpmThresholdsBberSig=nbsOtnpmThresholdsBberSig, nbsOtnStatsTime=nbsOtnStatsTime, nbsOtnpmHistoricBberSig=nbsOtnpmHistoricBberSig, NbsOtnAlarmMask=NbsOtnAlarmMask, nbsOtnpmHistoricTable=nbsOtnpmHistoricTable, nbsOtnpmRunningSes=nbsOtnpmRunningSes, nbsOtnpmHistoricAlarmsRaised=nbsOtnpmHistoricAlarmsRaised, nbsOtnpmRunningSesrSig=nbsOtnpmRunningSesrSig, nbsOtnStatsIfIndex=nbsOtnStatsIfIndex, nbsOtnStatsSpan=nbsOtnStatsSpan, nbsOtnpmCurrentAlarmsRaised=nbsOtnpmCurrentAlarmsRaised, nbsOtnpmHistoricEs=nbsOtnpmHistoricEs, nbsOtnpmThresholdsEntry=nbsOtnpmThresholdsEntry, nbsOtnpmRunningAlarmsRaised=nbsOtnpmRunningAlarmsRaised, nbsOtnpmCurrentUas=nbsOtnpmCurrentUas, nbsOtnpmThresholdsScope=nbsOtnpmThresholdsScope, nbsOtnpmTrapsSes=nbsOtnpmTrapsSes, nbsOtnpmThresholdsEsrExp=nbsOtnpmThresholdsEsrExp, nbsOtnpmCurrentTable=nbsOtnpmCurrentTable, nbsOtnpmHistoricTime=nbsOtnpmHistoricTime, nbsOtnAlarmsGrp=nbsOtnAlarmsGrp, nbsOtnpmTrapsUas=nbsOtnpmTrapsUas, nbsOtnpmHistoricAlarmsSupported=nbsOtnpmHistoricAlarmsSupported, nbsOtnpmTraps=nbsOtnpmTraps, nbsOtnpmCurrentSesrExp=nbsOtnpmCurrentSesrExp, nbsOtnpmTrapsFc=nbsOtnpmTrapsFc, PYSNMP_MODULE_ID=nbsOtnpmMib, nbsOtnpmHistoricFc=nbsOtnpmHistoricFc, nbsOtnAlarmsSupported=nbsOtnAlarmsSupported, nbsOtnAlarmsChanged=nbsOtnAlarmsChanged, nbsOtnStatsTable=nbsOtnStatsTable, nbsOtnStatsErrCntPathBEI=nbsOtnStatsErrCntPathBEI, nbsOtnpmTrapsBber=nbsOtnpmTrapsBber, nbsOtnpmHistoricAlarmsChanged=nbsOtnpmHistoricAlarmsChanged, nbsOtnpmCurrentAlarmsChanged=nbsOtnpmCurrentAlarmsChanged, nbsOtnStatsErrCntPathBIP8=nbsOtnStatsErrCntPathBIP8, nbsOtnpmHistoricSesrSig=nbsOtnpmHistoricSesrSig, nbsOtnpmRunningScope=nbsOtnpmRunningScope, nbsOtnpmThresholdsBberExp=nbsOtnpmThresholdsBberExp, nbsOtnStatsDate=nbsOtnStatsDate, nbsOtnStatsErrCntTcm4BIP8=nbsOtnStatsErrCntTcm4BIP8, nbsOtnpmHistoricEntry=nbsOtnpmHistoricEntry, nbsOtnpmHistoricInterval=nbsOtnpmHistoricInterval, nbsOtnStatsAlarmsChanged=nbsOtnStatsAlarmsChanged, nbsOtnpmThresholdsUas=nbsOtnpmThresholdsUas)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(interface_index, if_alias) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifAlias')
(nbs, writable_u64, unsigned64) = mibBuilder.importSymbols('NBS-MIB', 'nbs', 'WritableU64', 'Unsigned64')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(unsigned32, ip_address, bits, counter64, object_identity, counter32, iso, integer32, mib_identifier, time_ticks, module_identity, notification_type, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'IpAddress', 'Bits', 'Counter64', 'ObjectIdentity', 'Counter32', 'iso', 'Integer32', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity', 'NotificationType', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
nbs_otnpm_mib = module_identity((1, 3, 6, 1, 4, 1, 629, 222))
if mibBuilder.loadTexts:
nbsOtnpmMib.setLastUpdated('201401230000Z')
if mibBuilder.loadTexts:
nbsOtnpmMib.setOrganization('NBS')
if mibBuilder.loadTexts:
nbsOtnpmMib.setContactInfo('For technical support, please contact your service channel')
if mibBuilder.loadTexts:
nbsOtnpmMib.setDescription('OTN Performance Monitoring and user-controlled statistics')
nbs_otnpm_thresholds_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 1))
if mibBuilder.loadTexts:
nbsOtnpmThresholdsGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsGrp.setDescription('Maximum considered safe by user')
nbs_otnpm_current_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 2))
if mibBuilder.loadTexts:
nbsOtnpmCurrentGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentGrp.setDescription('Subtotals and statistics for sample now underway')
nbs_otnpm_historic_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 3))
if mibBuilder.loadTexts:
nbsOtnpmHistoricGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricGrp.setDescription('Totals and final statistics for a previous sample')
nbs_otnpm_running_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 4))
if mibBuilder.loadTexts:
nbsOtnpmRunningGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningGrp.setDescription('Totals and statistics since (boot-up) protocol configuration')
nbs_otn_alarms_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 80))
if mibBuilder.loadTexts:
nbsOtnAlarmsGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsGrp.setDescription('OTN alarms')
nbs_otn_stats_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 90))
if mibBuilder.loadTexts:
nbsOtnStatsGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsGrp.setDescription('User-controlled OTN alarms and statistics')
nbs_otnpm_events_grp = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 100))
if mibBuilder.loadTexts:
nbsOtnpmEventsGrp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmEventsGrp.setDescription('Threshold crossing events')
nbs_otnpm_traps = object_identity((1, 3, 6, 1, 4, 1, 629, 222, 100, 0))
if mibBuilder.loadTexts:
nbsOtnpmTraps.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTraps.setDescription('Threshold crossing Traps or Notifications')
class Nbsotnalarmid(TextualConvention, Integer32):
description = 'OTN alarm id, also used to identify a mask bit'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53))
named_values = named_values(('aLOS', 1), ('aLOF', 2), ('aOOF', 3), ('aLOM', 4), ('aOOM', 5), ('aRxLOL', 6), ('aTxLOL', 7), ('aOtuAIS', 8), ('aSectBDI', 9), ('aSectBIAE', 10), ('aSectIAE', 11), ('aSectTIM', 12), ('aOduAIS', 13), ('aOduOCI', 14), ('aOduLCK', 15), ('aPathBDI', 16), ('aPathTIM', 17), ('aTcm1BDI', 18), ('aTcm2BDI', 19), ('aTcm3BDI', 20), ('aTcm4BDI', 21), ('aTcm5BDI', 22), ('aTcm6BDI', 23), ('aTcm1BIAE', 24), ('aTcm2BIAE', 25), ('aTcm3BIAE', 26), ('aTcm4BIAE', 27), ('aTcm5BIAE', 28), ('aTcm6BIAE', 29), ('aTcm1IAE', 30), ('aTcm2IAE', 31), ('aTcm3IAE', 32), ('aTcm4IAE', 33), ('aTcm5IAE', 34), ('aTcm6IAE', 35), ('aTcm1LTC', 36), ('aTcm2LTC', 37), ('aTcm3LTC', 38), ('aTcm4LTC', 39), ('aTcm5LTC', 40), ('aTcm6LTC', 41), ('aTcm1TIM', 42), ('aTcm2TIM', 43), ('aTcm3TIM', 44), ('aTcm4TIM', 45), ('aTcm5TIM', 46), ('aTcm6TIM', 47), ('aFwdSF', 48), ('aFwdSD', 49), ('aBwdSF', 50), ('aBwdSD', 51), ('aPTM', 52), ('aCSF', 53))
class Nbsotnalarmmask(TextualConvention, OctetString):
description = 'OTN alarm mask, encoded within an octet string. The bit assigned to a particular alarm (id from NbsOtnAlarmId) is calculated by: index = id/8; bit = id%8; where the leftmost bit (msb) is deemed as bit 0. The mask length is either full-size or zero if not supported.'
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 7)
nbs_otnpm_thresholds_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 1, 1))
if mibBuilder.loadTexts:
nbsOtnpmThresholdsTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsTable.setDescription('OTN Performance Monitoring thresholds')
nbs_otnpm_thresholds_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnpmThresholdsIfIndex'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmThresholdsInterval'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmThresholdsScope'))
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEntry.setDescription('Performance monitoring thresholds for a particular interface')
nbs_otnpm_thresholds_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsIfIndex.setDescription('The mib2 ifIndex')
nbs_otnpm_thresholds_interval = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('quarterHour', 1), ('twentyfourHour', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsInterval.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsInterval.setDescription('Indicates the sampling period to which these thresholds apply')
nbs_otnpm_thresholds_scope = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('tcm1', 1), ('tcm2', 2), ('tcm3', 3), ('tcm4', 4), ('tcm5', 5), ('tcm6', 6), ('section', 7), ('path', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsScope.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsScope.setDescription('This object specifies the network segment to which these thresholds apply.')
nbs_otnpm_thresholds_es = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 10), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEs.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEs.setDescription('Persistent. The number of Errored Seconds (ES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsEs event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_esr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEsrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEsrSig.setDescription('Persistent. The significand of the Errored Seconds Ratio (ESR) threshold, which is calculated by: nbsOtnpmThresholdsEsrSig x 10^nbsOtnpmThresholdsEsrExp An ESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsEsr event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_esr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEsrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsEsrExp.setDescription('Persistent. The exponent of the Errored Seconds Ratio (ESR) threshold; see nbsOtnpmThresholdsEsrSig. Not supported value: 0x80000000')
nbs_otnpm_thresholds_ses = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 13), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSes.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSes.setDescription('Persistent. The number of Severely Errored Seconds (SES) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsSes event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_sesr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSesrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSesrSig.setDescription('Persistent. The significand of the Severely Errored Seconds Ratio (SESR) threshold, which is calculated by: nbsOtnpmThresholdsSesrSig x 10^nbsOtnpmThresholdsSesrExp A SESR that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsSesr notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_sesr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSesrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsSesrExp.setDescription('Persistent. The exponent of the Severely Errored Seconds Ratio (SESR) threshold; see nbsOtnpmThresholdsSesrSig. Not supported value: 0x80000000')
nbs_otnpm_thresholds_bbe = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 16), writable_u64()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBbe.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBbe.setDescription('Persistent. The number of Background Block Errors (BBE) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsBbe event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_bber_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 17), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBberSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBberSig.setDescription('Persistent. The significand of the Background Block Errors Ratio (BBER) threshold, which is calculated by: nbsOtnpmThresholdsBberSig x 10^nbsOtnpmThresholdsBberExp A BBER that meets or exceeds this threshold at the end of the nbsOtnpmThresholdsInterval period triggers the nbsOtnpmTrapsBber notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_bber_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBberExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsBberExp.setDescription('Persistent. The exponent of the Background Block Errors Ratio (BBER) threshold; see nbsOtnpmThresholdsBberSig. Not supported value: 0x80000000')
nbs_otnpm_thresholds_uas = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 19), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsUas.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsUas.setDescription('Persistent. The number of Unavailable Seconds (UAS) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsUas event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_thresholds_fc = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 1, 1, 1, 20), writable_u64()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsFc.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmThresholdsFc.setDescription('Persistent. The number of Failure Counts (FC) which, if met or exceeded at the end of the nbsOtnpmThresholdsInterval period, should trigger the nbsOtnpmTrapsFc event notification. The reserved value 0 disables notifications for this event.')
nbs_otnpm_current_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 2, 3))
if mibBuilder.loadTexts:
nbsOtnpmCurrentTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentTable.setDescription('All OTN Performance Monitoring statistics for the nbsOtnpmCurrentInterval now underway.')
nbs_otnpm_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'))
if mibBuilder.loadTexts:
nbsOtnpmCurrentEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmCurrentInterval.')
nbs_otnpm_current_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentIfIndex.setDescription('The mib2 ifIndex')
nbs_otnpm_current_interval = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('quarterHour', 1), ('twentyfourHour', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentInterval.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentInterval.setDescription('Indicates the sampling period of statistic')
nbs_otnpm_current_scope = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('tcm1', 1), ('tcm2', 2), ('tcm3', 3), ('tcm4', 4), ('tcm5', 5), ('tcm6', 6), ('section', 7), ('path', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentScope.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentScope.setDescription("Indicates statistic's network segment")
nbs_otnpm_current_date = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentDate.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentDate.setDescription('The date (UTC) this interval began, represented by an eight digit decimal number: yyyymmdd')
nbs_otnpm_current_time = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentTime.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentTime.setDescription('The time (UTC) this interval began, represented by a six digit decimal number: hhmmss')
nbs_otnpm_current_es = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEs.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEs.setDescription('The number of Errored Seconds (ES) in this interval so far.')
nbs_otnpm_current_esr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEsrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEsrSig.setDescription('The significand of the current Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmCurrentEsrSig x 10^nbsOtnpmCurrentEsrExp')
nbs_otnpm_current_esr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEsrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentEsrExp.setDescription('The exponent of the current Errored Seconds Ratio (ESR); see nbsOtnpmCurrentEsrSig. Not supported value: 0x80000000')
nbs_otnpm_current_ses = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 13), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSes.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSes.setDescription('The number of Severely Errored Seconds (SES) in this interval so far')
nbs_otnpm_current_sesr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSesrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSesrSig.setDescription('The significand of the current Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmCurrentSesrSig x 10^nbsOtnpmCurrentSesrExp')
nbs_otnpm_current_sesr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSesrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentSesrExp.setDescription('The exponent of the current Severely Errored Seconds Ratio (SESR); see nbsOtnpmCurrentSesrSig. Not supported value: 0x80000000')
nbs_otnpm_current_bbe = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 16), unsigned64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBbe.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBbe.setDescription('The number of Background Block Errors (BBE) so far, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbs_otnpm_current_bber_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBberSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBberSig.setDescription('The significand of the current Background Block Errors (BBER), which is calculated by: nbsOtnpmCurrentBberSig x 10^nbsOtnpmCurrentBberExp')
nbs_otnpm_current_bber_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBberExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentBberExp.setDescription('The exponent of the current Background Block Errors Ratio (BBER); see nbsOtnpmCurrentBberSig. Not supported value: 0x80000000')
nbs_otnpm_current_uas = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentUas.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentUas.setDescription('The number of Unavailable Seconds (UAS) so far')
nbs_otnpm_current_fc = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 20), unsigned64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentFc.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentFc.setDescription('The number of Failure Counts (FC) so far, i.e. the count of Backward Error Indication (BEI) errors.')
nbs_otnpm_current_alarms_supported = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 100), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbs_otnpm_current_alarms_raised = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 101), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbs_otnpm_current_alarms_changed = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 2, 3, 1, 102), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmCurrentAlarmsChanged.setDescription('The mask of OTN alarms that have changed so far, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbs_otnpm_historic_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 3, 3))
if mibBuilder.loadTexts:
nbsOtnpmHistoricTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricTable.setDescription('All OTN Performance Monitoring statistics for past nbsOtnpmHistoricInterval periods.')
nbs_otnpm_historic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnpmHistoricIfIndex'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmHistoricInterval'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmHistoricScope'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmHistoricSample'))
if mibBuilder.loadTexts:
nbsOtnpmHistoricEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface and nbsOtnpmHistoricInterval.')
nbs_otnpm_historic_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricIfIndex.setDescription('The mib2 ifIndex')
nbs_otnpm_historic_interval = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('quarterHour', 1), ('twentyfourHour', 2))))
if mibBuilder.loadTexts:
nbsOtnpmHistoricInterval.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricInterval.setDescription('Indicates the sampling period of statistic')
nbs_otnpm_historic_scope = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('tcm1', 1), ('tcm2', 2), ('tcm3', 3), ('tcm4', 4), ('tcm5', 5), ('tcm6', 6), ('section', 7), ('path', 8))))
if mibBuilder.loadTexts:
nbsOtnpmHistoricScope.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricScope.setDescription("Indicates statistic's network segment")
nbs_otnpm_historic_sample = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 4), integer32())
if mibBuilder.loadTexts:
nbsOtnpmHistoricSample.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSample.setDescription('Indicates the sample number of this statistic. The most recent sample is numbered 1, the next previous 2, and so on until the oldest sample.')
nbs_otnpm_historic_date = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricDate.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricDate.setDescription('The date (UTC) the interval began, represented by an eight digit decimal number: yyyymmdd')
nbs_otnpm_historic_time = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricTime.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricTime.setDescription('The time (UTC) the interval began, represented by a six digit decimal number: hhmmss')
nbs_otnpm_historic_es = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEs.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEs.setDescription('The final count of Errored Seconds (ES) for this interval')
nbs_otnpm_historic_esr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEsrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEsrSig.setDescription('The significand of the final Errored Seconds Ratio (ESR) for this interval, which is calculated by: nbsOtnpmHistoricEsrSig x 10^nbsOtnpmHistoricEsrExp')
nbs_otnpm_historic_esr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEsrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricEsrExp.setDescription('The exponent of the final Errored Seconds Ratio (ESR) for this interval; see nbsOtnpmHistoricEsrSig. Not supported value: 0x80000000')
nbs_otnpm_historic_ses = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 13), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSes.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSes.setDescription('The final count of Severely Errored Seconds (SES) in this interval')
nbs_otnpm_historic_sesr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSesrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSesrSig.setDescription('The significand of the final Severely Errored Seconds Ratio (SESR) for this interval, which is calculated by: nbsOtnpmHistoricSesrSig x 10^nbsOtnpmHistoricSesrExp')
nbs_otnpm_historic_sesr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSesrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricSesrExp.setDescription('The exponent of the final Severely Errored Seconds Ratio (SESR) for this interval; see nbsOtnpmHistoricSesrSig. Not supported value: 0x80000000')
nbs_otnpm_historic_bbe = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 16), unsigned64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBbe.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBbe.setDescription('The final count of Background Block Errors (BBE), i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbs_otnpm_historic_bber_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBberSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBberSig.setDescription('The significand of the final Background Block Errors Ratio (BBER) for this interval, which is calculated by: nbsOtnpmHistoricBberSig x 10^nbsOtnpmHistoricBberExp)')
nbs_otnpm_historic_bber_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBberExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricBberExp.setDescription('The exponent of the final Background Block Errors Ratio (BBER) for this interval; see nbsOtnpmHistoricBberSig. Not supported value: 0x80000000')
nbs_otnpm_historic_uas = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricUas.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricUas.setDescription('The final count of Unavailable Seconds (UAS)')
nbs_otnpm_historic_fc = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 20), unsigned64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricFc.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricFc.setDescription('The final number of Failure Counts (FC), i.e. the count of Backward Error Indication (BEI) errors.')
nbs_otnpm_historic_alarms_supported = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 100), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsSupported.setDescription('The mask of OTN alarms that were supported.')
nbs_otnpm_historic_alarms_raised = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 101), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsRaised.setDescription('The mask of OTN alarms that were raised at the end of this interval.')
nbs_otnpm_historic_alarms_changed = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 3, 3, 1, 102), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmHistoricAlarmsChanged.setDescription('The mask of OTN alarms that changed in this interval, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbs_otnpm_running_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 4, 3))
if mibBuilder.loadTexts:
nbsOtnpmRunningTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningTable.setDescription('All OTN Performance Monitoring statistics since (boot-up) protocol configuration.')
nbs_otnpm_running_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnpmRunningIfIndex'), (0, 'NBS-OTNPM-MIB', 'nbsOtnpmRunningScope'))
if mibBuilder.loadTexts:
nbsOtnpmRunningEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningEntry.setDescription('OTN Performance Monitoring statistics for a specific port/ interface.')
nbs_otnpm_running_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningIfIndex.setDescription('The mib2 ifIndex')
nbs_otnpm_running_scope = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('tcm1', 1), ('tcm2', 2), ('tcm3', 3), ('tcm4', 4), ('tcm5', 5), ('tcm6', 6), ('section', 7), ('path', 8))))
if mibBuilder.loadTexts:
nbsOtnpmRunningScope.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningScope.setDescription("Indicates statistic's network segment")
nbs_otnpm_running_date = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningDate.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningDate.setDescription('The date (UTC) of protocol configuration, represented by an eight digit decimal number: yyyymmdd')
nbs_otnpm_running_time = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningTime.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningTime.setDescription('The time (UTC) of protocol configuration, represented by a six digit decimal number: hhmmss')
nbs_otnpm_running_es = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningEs.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningEs.setDescription('The number of Errored Seconds (ES) since protocol configuration.')
nbs_otnpm_running_esr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningEsrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningEsrSig.setDescription('The significand of the running Errored Seconds Ratio (ESR), which is calculated by: nbsOtnpmRunningEsrSig x 10^nbsOtnpmRunningEsrExp')
nbs_otnpm_running_esr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningEsrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningEsrExp.setDescription('The exponent of the running Errored Seconds Ratio (ESR); see nbsOtnpmRunningEsrSig. Not supported value: 0x80000000')
nbs_otnpm_running_ses = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningSes.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningSes.setDescription('The number of Severely Errored Seconds (SES) since protocol configuration')
nbs_otnpm_running_sesr_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningSesrSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningSesrSig.setDescription('The significand of the running Severely Errored Seconds Ratio (SESR), which is calculated by: nbsOtnpmRunningSesrSig x 10^nbsOtnpmRunningSesrExp')
nbs_otnpm_running_sesr_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningSesrExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningSesrExp.setDescription('The exponent of the running Severely Errored Seconds Ratio (SESR); see nbsOtnpmRunningSesrSig. Not supported value: 0x80000000')
nbs_otnpm_running_bbe = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 16), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningBbe.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningBbe.setDescription('The number of Background Block Errors (BBE) since protocol configuration, i.e. the count of Bit Interleave Parity (BIP8) errors.')
nbs_otnpm_running_bber_sig = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningBberSig.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningBberSig.setDescription('The significand of the running Background Block Errors (BBER), which is calculated by: nbsOtnpmRunningBberSig x 10^nbsOtnpmRunningBberExp')
nbs_otnpm_running_bber_exp = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningBberExp.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningBberExp.setDescription('The exponent of the running Background Block Errors Ratio (BBER); see nbsOtnpmRunningBberSig. Not supported value: 0x80000000')
nbs_otnpm_running_uas = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningUas.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningUas.setDescription('The number of Unavailable Seconds (UAS) since protocol configuration')
nbs_otnpm_running_fc = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 20), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningFc.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningFc.setDescription('The number of Failure Counts (FC) since protocol configuration, i.e. the count of Backward Error Indication (BEI) errors.')
nbs_otnpm_running_alarms_supported = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 100), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbs_otnpm_running_alarms_raised = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 101), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbs_otnpm_running_alarms_changed = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 4, 3, 1, 102), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmRunningAlarmsChanged.setDescription('The mask of OTN alarms that changed since protocol configuration, i.e. alarms that transitioned at least once from clear to raised or from raised to clear.')
nbs_otn_alarms_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 80, 3))
if mibBuilder.loadTexts:
nbsOtnAlarmsTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsTable.setDescription('OTN alarm monitoring scoreboard, showing for each possible alarm if it is currently raised and if it has changed since monitoring began (or was cleared). The latter indicator may be cleared at anytime without affecting normal performance monitoring activity.')
nbs_otn_alarms_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnAlarmsIfIndex'))
if mibBuilder.loadTexts:
nbsOtnAlarmsEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsEntry.setDescription('OTN alarm monitoring scoreboard for a specific port/interface.')
nbs_otn_alarms_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsIfIndex.setDescription('The mib2 ifIndex')
nbs_otn_alarms_date = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsDate.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsDate.setDescription('The date (UTC) OTN alarm monitoring began (was cleared), represented by an eight digit decimal number: yyyymmdd')
nbs_otn_alarms_time = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsTime.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsTime.setDescription('The time (UTC) OTN alarm monitoring began (was cleared), represented by a six digit decimal number: hhmmss')
nbs_otn_alarms_span = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsSpan.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsSpan.setDescription('The amount of time (deci-sec) since nbsOtnAlarmsDate and nbsOtnAlarmsTime.')
nbs_otn_alarms_state = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notSupported', 1), ('monitoring', 2), ('clearing', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnAlarmsState.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsState.setDescription("This object reads 'notSupported' if the port is not configured with an OTN protocol. Otherwise it reads 'monitoring' to indicate that supported OTN alarms are actively reported in nbsOtnAlarmsRaised and nbsOtnAlarmsChanged. Writing 'clearing' to this object clears nbsOtnAlarmsChanged.")
nbs_otn_alarms_supported = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 100), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsSupported.setDescription('The mask of OTN alarms that are supported on this port.')
nbs_otn_alarms_raised = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 101), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbs_otn_alarms_changed = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 102), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsChanged.setDescription('The mask of OTN alarms that have changed since nbsOtnAlarmsDate and AlarmsTime, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbs_otn_alarms_rcvd_ftfl = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 80, 3, 1, 110), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnAlarmsRcvdFTFL.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnAlarmsRcvdFTFL.setDescription('The current Fault Type Fault Location information received on the given port. The length will be zero when there is a no fault code in both the forward and backward fields. Otherwise, the full 256 bytes will be provided; see ITU-T G.709, section 15.8.2.5.')
nbs_otn_stats_table = mib_table((1, 3, 6, 1, 4, 1, 629, 222, 90, 3))
if mibBuilder.loadTexts:
nbsOtnStatsTable.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsTable.setDescription('OTN alarms and statistics monitoring managed per user discretion. This monitoring may be started, stopped, and cleared as desired without affecting the normal performance monitoring activity.')
nbs_otn_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1)).setIndexNames((0, 'NBS-OTNPM-MIB', 'nbsOtnStatsIfIndex'))
if mibBuilder.loadTexts:
nbsOtnStatsEntry.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsEntry.setDescription('User-controlled OTN monitoring for a specific port/interface.')
nbs_otn_stats_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 1), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsIfIndex.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsIfIndex.setDescription('The mib2 ifIndex')
nbs_otn_stats_date = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsDate.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsDate.setDescription('The date (UTC) OTN statistics collection began, represented by an eight digit decimal number: yyyymmdd')
nbs_otn_stats_time = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsTime.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsTime.setDescription('The time (UTC) OTN statistics collection began, represented by a six digit decimal number: hhmmss')
nbs_otn_stats_span = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsSpan.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsSpan.setDescription('The amount of time (deci-sec) statistics collection has been underway since nbsOtnStatsDate and nbsOtnStatsTime, or if stopped, the duration of the prior collection.')
nbs_otn_stats_state = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('notSupported', 1), ('counting', 2), ('clearing', 3), ('stopped', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nbsOtnStatsState.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsState.setDescription("Writing 'stopped' to this object stops (pauses) OTN statistics collection. Re-configuring this port to a non-OTN protocol sets this object to 'stopped' automatically. Writing 'counting' to this object starts (resumes) OTN statistics collection if this port is configured with an OTN protocol. Writing 'clearing' to this object clears all statistical counters.")
nbs_otn_stats_err_cnt_sect_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 21), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntSectBEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntSectBEI.setDescription('The count of section Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_path_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 22), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntPathBEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntPathBEI.setDescription('The count of path Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm1_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 23), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm1BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm1BEI.setDescription('The count of TCM1 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm2_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 24), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm2BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm2BEI.setDescription('The count of TCM2 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm3_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 25), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm3BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm3BEI.setDescription('The count of TCM3 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm4_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 26), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm4BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm4BEI.setDescription('The count of TCM4 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm5_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 27), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm5BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm5BEI.setDescription('The count of TCM5 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm6_bei = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 28), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm6BEI.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm6BEI.setDescription('The count of TCM6 Backward Error Indication errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_sect_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 31), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntSectBIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntSectBIP8.setDescription('The count of section Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_path_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 32), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntPathBIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntPathBIP8.setDescription('The count of path Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm1_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 33), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm1BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm1BIP8.setDescription('The count of TCM1 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm2_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 34), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm2BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm2BIP8.setDescription('The count of TCM2 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm3_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 35), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm3BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm3BIP8.setDescription('The count of TCM3 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm4_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 36), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm4BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm4BIP8.setDescription('The count of TCM4 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm5_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 37), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm5BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm5BIP8.setDescription('The count of TCM5 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_err_cnt_tcm6_bip8 = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 38), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm6BIP8.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsErrCntTcm6BIP8.setDescription('The count of TCM6 Bit Interleave Parity errors detected since OTN statistics collection began.')
nbs_otn_stats_alarms_supported = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 100), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsSupported.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsSupported.setDescription('The mask of OTN alarms that are supported.')
nbs_otn_stats_alarms_raised = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 101), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsRaised.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsRaised.setDescription('The mask of OTN alarms that are currently raised.')
nbs_otn_stats_alarms_changed = mib_table_column((1, 3, 6, 1, 4, 1, 629, 222, 90, 3, 1, 102), nbs_otn_alarm_mask()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsChanged.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnStatsAlarmsChanged.setDescription('The mask of OTN alarms that have changed since OTN statistics collection began, i.e. alarms that have transitioned at least once from clear to raised or from raised to clear.')
nbs_otnpm_traps_es = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 10)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentEs'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsEs.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsEs.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEs is non-zero and less than or equal to nbsOtnpmCurrentEs.')
nbs_otnpm_traps_esr = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 11)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentEsrSig'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentEsrExp'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsEsr.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsEsr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsEsr is non-zero and less than or equal to nbsOtnpmCurrentEsr.')
nbs_otnpm_traps_ses = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 12)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentSes'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsSes.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsSes.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSes is non-zero and less than or equal to nbsOtnpmCurrentSes.')
nbs_otnpm_traps_sesr = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 13)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentSesrSig'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentSesrExp'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsSesr.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsSesr.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsSesr is non-zero and less than or equal to nbsOtnpmCurrentSesr.')
nbs_otnpm_traps_bbe = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 14)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentBbe'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsBbe.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsBbe.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBbe is non-zero and less than or equal to nbsOtnpmCurrentBbe.')
nbs_otnpm_traps_bber = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 15)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentBberSig'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentBberExp'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsBber.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsBber.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsBber is non-zero and less than or equal to nbsOtnpmCurrentBber.')
nbs_otnpm_traps_uas = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 16)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentUas'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsUas.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsUas.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsUas is non-zero and less than or equal to nbsOtnpmCurrentUas.')
nbs_otnpm_traps_fc = notification_type((1, 3, 6, 1, 4, 1, 629, 222, 100, 0, 17)).setObjects(('NBS-OTNPM-MIB', 'nbsOtnpmCurrentIfIndex'), ('IF-MIB', 'ifAlias'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentInterval'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentScope'), ('NBS-OTNPM-MIB', 'nbsOtnpmCurrentFc'))
if mibBuilder.loadTexts:
nbsOtnpmTrapsFc.setStatus('current')
if mibBuilder.loadTexts:
nbsOtnpmTrapsFc.setDescription('Sent at the conclusion of an nbsOtnpmThresholdsInterval if nbsOtnpmThresholdsFc is non-zero and less than or equal to nbsOtnpmCurrentFc.')
mibBuilder.exportSymbols('NBS-OTNPM-MIB', nbsOtnpmRunningIfIndex=nbsOtnpmRunningIfIndex, nbsOtnpmHistoricGrp=nbsOtnpmHistoricGrp, nbsOtnpmCurrentSes=nbsOtnpmCurrentSes, nbsOtnpmMib=nbsOtnpmMib, nbsOtnpmRunningTable=nbsOtnpmRunningTable, nbsOtnAlarmsRcvdFTFL=nbsOtnAlarmsRcvdFTFL, nbsOtnpmRunningGrp=nbsOtnpmRunningGrp, nbsOtnpmCurrentFc=nbsOtnpmCurrentFc, nbsOtnStatsErrCntTcm6BEI=nbsOtnStatsErrCntTcm6BEI, nbsOtnpmCurrentTime=nbsOtnpmCurrentTime, nbsOtnpmThresholdsTable=nbsOtnpmThresholdsTable, nbsOtnpmRunningBbe=nbsOtnpmRunningBbe, nbsOtnStatsErrCntTcm1BEI=nbsOtnStatsErrCntTcm1BEI, nbsOtnAlarmsTable=nbsOtnAlarmsTable, nbsOtnpmThresholdsSes=nbsOtnpmThresholdsSes, nbsOtnAlarmsTime=nbsOtnAlarmsTime, nbsOtnpmThresholdsEs=nbsOtnpmThresholdsEs, nbsOtnAlarmsDate=nbsOtnAlarmsDate, nbsOtnpmCurrentGrp=nbsOtnpmCurrentGrp, nbsOtnStatsGrp=nbsOtnStatsGrp, nbsOtnpmCurrentEs=nbsOtnpmCurrentEs, nbsOtnpmHistoricEsrSig=nbsOtnpmHistoricEsrSig, nbsOtnAlarmsState=nbsOtnAlarmsState, nbsOtnStatsErrCntTcm4BEI=nbsOtnStatsErrCntTcm4BEI, nbsOtnpmThresholdsIfIndex=nbsOtnpmThresholdsIfIndex, nbsOtnpmHistoricSes=nbsOtnpmHistoricSes, nbsOtnpmCurrentIfIndex=nbsOtnpmCurrentIfIndex, nbsOtnpmCurrentBbe=nbsOtnpmCurrentBbe, nbsOtnpmCurrentEntry=nbsOtnpmCurrentEntry, nbsOtnpmRunningEsrExp=nbsOtnpmRunningEsrExp, nbsOtnAlarmsSpan=nbsOtnAlarmsSpan, nbsOtnStatsErrCntTcm2BEI=nbsOtnStatsErrCntTcm2BEI, nbsOtnpmCurrentBberExp=nbsOtnpmCurrentBberExp, nbsOtnpmCurrentInterval=nbsOtnpmCurrentInterval, nbsOtnStatsAlarmsRaised=nbsOtnStatsAlarmsRaised, nbsOtnpmRunningDate=nbsOtnpmRunningDate, nbsOtnpmCurrentSesrSig=nbsOtnpmCurrentSesrSig, nbsOtnpmRunningAlarmsSupported=nbsOtnpmRunningAlarmsSupported, nbsOtnpmRunningUas=nbsOtnpmRunningUas, nbsOtnAlarmsRaised=nbsOtnAlarmsRaised, nbsOtnStatsErrCntTcm2BIP8=nbsOtnStatsErrCntTcm2BIP8, nbsOtnpmThresholdsSesrSig=nbsOtnpmThresholdsSesrSig, nbsOtnpmHistoricBbe=nbsOtnpmHistoricBbe, nbsOtnpmHistoricUas=nbsOtnpmHistoricUas, nbsOtnpmCurrentDate=nbsOtnpmCurrentDate, nbsOtnpmHistoricIfIndex=nbsOtnpmHistoricIfIndex, nbsOtnpmRunningFc=nbsOtnpmRunningFc, nbsOtnpmEventsGrp=nbsOtnpmEventsGrp, nbsOtnStatsErrCntSectBEI=nbsOtnStatsErrCntSectBEI, nbsOtnStatsErrCntTcm6BIP8=nbsOtnStatsErrCntTcm6BIP8, nbsOtnpmHistoricSesrExp=nbsOtnpmHistoricSesrExp, nbsOtnpmThresholdsInterval=nbsOtnpmThresholdsInterval, nbsOtnpmThresholdsFc=nbsOtnpmThresholdsFc, nbsOtnpmRunningAlarmsChanged=nbsOtnpmRunningAlarmsChanged, nbsOtnpmRunningEntry=nbsOtnpmRunningEntry, nbsOtnStatsAlarmsSupported=nbsOtnStatsAlarmsSupported, nbsOtnpmThresholdsBbe=nbsOtnpmThresholdsBbe, NbsOtnAlarmId=NbsOtnAlarmId, nbsOtnpmTrapsEs=nbsOtnpmTrapsEs, nbsOtnpmHistoricBberExp=nbsOtnpmHistoricBberExp, nbsOtnpmCurrentEsrExp=nbsOtnpmCurrentEsrExp, nbsOtnpmTrapsEsr=nbsOtnpmTrapsEsr, nbsOtnStatsEntry=nbsOtnStatsEntry, nbsOtnpmHistoricScope=nbsOtnpmHistoricScope, nbsOtnStatsErrCntTcm5BEI=nbsOtnStatsErrCntTcm5BEI, nbsOtnpmTrapsSesr=nbsOtnpmTrapsSesr, nbsOtnpmCurrentBberSig=nbsOtnpmCurrentBberSig, nbsOtnpmThresholdsGrp=nbsOtnpmThresholdsGrp, nbsOtnpmThresholdsSesrExp=nbsOtnpmThresholdsSesrExp, nbsOtnAlarmsEntry=nbsOtnAlarmsEntry, nbsOtnpmCurrentAlarmsSupported=nbsOtnpmCurrentAlarmsSupported, nbsOtnpmRunningTime=nbsOtnpmRunningTime, nbsOtnStatsState=nbsOtnStatsState, nbsOtnpmRunningEs=nbsOtnpmRunningEs, nbsOtnStatsErrCntTcm3BEI=nbsOtnStatsErrCntTcm3BEI, nbsOtnStatsErrCntSectBIP8=nbsOtnStatsErrCntSectBIP8, nbsOtnAlarmsIfIndex=nbsOtnAlarmsIfIndex, nbsOtnpmRunningBberSig=nbsOtnpmRunningBberSig, nbsOtnpmHistoricSample=nbsOtnpmHistoricSample, nbsOtnpmThresholdsEsrSig=nbsOtnpmThresholdsEsrSig, nbsOtnStatsErrCntTcm5BIP8=nbsOtnStatsErrCntTcm5BIP8, nbsOtnStatsErrCntTcm1BIP8=nbsOtnStatsErrCntTcm1BIP8, nbsOtnpmRunningBberExp=nbsOtnpmRunningBberExp, nbsOtnpmCurrentScope=nbsOtnpmCurrentScope, nbsOtnpmRunningEsrSig=nbsOtnpmRunningEsrSig, nbsOtnpmTrapsBbe=nbsOtnpmTrapsBbe, nbsOtnpmHistoricEsrExp=nbsOtnpmHistoricEsrExp, nbsOtnpmRunningSesrExp=nbsOtnpmRunningSesrExp, nbsOtnpmHistoricDate=nbsOtnpmHistoricDate, nbsOtnpmCurrentEsrSig=nbsOtnpmCurrentEsrSig, nbsOtnStatsErrCntTcm3BIP8=nbsOtnStatsErrCntTcm3BIP8, nbsOtnpmThresholdsBberSig=nbsOtnpmThresholdsBberSig, nbsOtnStatsTime=nbsOtnStatsTime, nbsOtnpmHistoricBberSig=nbsOtnpmHistoricBberSig, NbsOtnAlarmMask=NbsOtnAlarmMask, nbsOtnpmHistoricTable=nbsOtnpmHistoricTable, nbsOtnpmRunningSes=nbsOtnpmRunningSes, nbsOtnpmHistoricAlarmsRaised=nbsOtnpmHistoricAlarmsRaised, nbsOtnpmRunningSesrSig=nbsOtnpmRunningSesrSig, nbsOtnStatsIfIndex=nbsOtnStatsIfIndex, nbsOtnStatsSpan=nbsOtnStatsSpan, nbsOtnpmCurrentAlarmsRaised=nbsOtnpmCurrentAlarmsRaised, nbsOtnpmHistoricEs=nbsOtnpmHistoricEs, nbsOtnpmThresholdsEntry=nbsOtnpmThresholdsEntry, nbsOtnpmRunningAlarmsRaised=nbsOtnpmRunningAlarmsRaised, nbsOtnpmCurrentUas=nbsOtnpmCurrentUas, nbsOtnpmThresholdsScope=nbsOtnpmThresholdsScope, nbsOtnpmTrapsSes=nbsOtnpmTrapsSes, nbsOtnpmThresholdsEsrExp=nbsOtnpmThresholdsEsrExp, nbsOtnpmCurrentTable=nbsOtnpmCurrentTable, nbsOtnpmHistoricTime=nbsOtnpmHistoricTime, nbsOtnAlarmsGrp=nbsOtnAlarmsGrp, nbsOtnpmTrapsUas=nbsOtnpmTrapsUas, nbsOtnpmHistoricAlarmsSupported=nbsOtnpmHistoricAlarmsSupported, nbsOtnpmTraps=nbsOtnpmTraps, nbsOtnpmCurrentSesrExp=nbsOtnpmCurrentSesrExp, nbsOtnpmTrapsFc=nbsOtnpmTrapsFc, PYSNMP_MODULE_ID=nbsOtnpmMib, nbsOtnpmHistoricFc=nbsOtnpmHistoricFc, nbsOtnAlarmsSupported=nbsOtnAlarmsSupported, nbsOtnAlarmsChanged=nbsOtnAlarmsChanged, nbsOtnStatsTable=nbsOtnStatsTable, nbsOtnStatsErrCntPathBEI=nbsOtnStatsErrCntPathBEI, nbsOtnpmTrapsBber=nbsOtnpmTrapsBber, nbsOtnpmHistoricAlarmsChanged=nbsOtnpmHistoricAlarmsChanged, nbsOtnpmCurrentAlarmsChanged=nbsOtnpmCurrentAlarmsChanged, nbsOtnStatsErrCntPathBIP8=nbsOtnStatsErrCntPathBIP8, nbsOtnpmHistoricSesrSig=nbsOtnpmHistoricSesrSig, nbsOtnpmRunningScope=nbsOtnpmRunningScope, nbsOtnpmThresholdsBberExp=nbsOtnpmThresholdsBberExp, nbsOtnStatsDate=nbsOtnStatsDate, nbsOtnStatsErrCntTcm4BIP8=nbsOtnStatsErrCntTcm4BIP8, nbsOtnpmHistoricEntry=nbsOtnpmHistoricEntry, nbsOtnpmHistoricInterval=nbsOtnpmHistoricInterval, nbsOtnStatsAlarmsChanged=nbsOtnStatsAlarmsChanged, nbsOtnpmThresholdsUas=nbsOtnpmThresholdsUas) |
# Collin Pearce 100%
# performance O(log(n))
# all states with less tables than the optimal are correct states
# all states with more tables than the optimal are incorrect states
# therefore, the state space can be binary searched
# mid represents the number of tables produced
# pockets available are total_pockets - tables (the unavailable pockets are holding tables)
# wood that needs to be stored in pockets is total_wood - (tables * table_cost)
# state is valid if all wood can be stored in available pockets
# pocket_space * pockets >= wood
# if the state is valid, the answer is current state or something larger, so left_bound is set to mid
# if the state is not valid, the answer is something smaller, so right_bound is set to mid - 1
# repeat until one value is left (the best one)
C, N, P, W = [int(x) for x in input().split()]
l, r = 0, W // C
while l != r:
mid = (1 + l + r) // 2
pockets = (N - mid)
wood = W - (mid * C)
if P * pockets >= wood:
l = mid
else:
r = mid - 1
print(l) | (c, n, p, w) = [int(x) for x in input().split()]
(l, r) = (0, W // C)
while l != r:
mid = (1 + l + r) // 2
pockets = N - mid
wood = W - mid * C
if P * pockets >= wood:
l = mid
else:
r = mid - 1
print(l) |
class Solution:
def countSubstrings(self, s: str) -> int:
count = 0
for center in range(len(s)*2 - 1):
left = center // 2
right = left + (center&1)
while left >= 0 and right < len(s) and s[left] == s[right]:
count += 1
left -= 1
right += 1
return count
class Solution2:
def countSubstrings(self, s: str) -> int:
T = '#'.join('^{}$'.format(s))
n = len(T)
P = [0] * n
C = R = 0
for i in range(1, n - 1):
if R > i:
P[i] = min(R - i, P[2*C - i])
while T[i + 1 + P[i]] == T[i - 1 - P[i]]:
P[i] += 1
if i + P[i] > R:
C, R = i, i + P[i]
return sum((l + 1) // 2 for l in P)
| class Solution:
def count_substrings(self, s: str) -> int:
count = 0
for center in range(len(s) * 2 - 1):
left = center // 2
right = left + (center & 1)
while left >= 0 and right < len(s) and (s[left] == s[right]):
count += 1
left -= 1
right += 1
return count
class Solution2:
def count_substrings(self, s: str) -> int:
t = '#'.join('^{}$'.format(s))
n = len(T)
p = [0] * n
c = r = 0
for i in range(1, n - 1):
if R > i:
P[i] = min(R - i, P[2 * C - i])
while T[i + 1 + P[i]] == T[i - 1 - P[i]]:
P[i] += 1
if i + P[i] > R:
(c, r) = (i, i + P[i])
return sum(((l + 1) // 2 for l in P)) |
expected_output={
"interfaces": {
"Tunnel100": {
"autoroute_announce": "enabled",
"src_ip": "Loopback0",
"tunnel_bandwidth": 500,
"tunnel_dst": "2.2.2.2",
"tunnel_mode": "mpls traffic-eng",
"tunnel_path_option": {
"1": {
"path_type": "dynamic"
}
},
"tunnel_priority": [
"7 7"
]
}
}
}
| expected_output = {'interfaces': {'Tunnel100': {'autoroute_announce': 'enabled', 'src_ip': 'Loopback0', 'tunnel_bandwidth': 500, 'tunnel_dst': '2.2.2.2', 'tunnel_mode': 'mpls traffic-eng', 'tunnel_path_option': {'1': {'path_type': 'dynamic'}}, 'tunnel_priority': ['7 7']}}} |
def act(robot):
val = robot.ir_sensor.read()
if val == 1:
robot.forward(200)
if val == 2:
robot.forward_right(200)
if val == 3:
robot.reverse_right(200)
if val == 4 or val == 5:
robot.reverse(200)
if val == 6:
robot.reverse_left(200)
if val == 7:
robot.forward_left(200)
| def act(robot):
val = robot.ir_sensor.read()
if val == 1:
robot.forward(200)
if val == 2:
robot.forward_right(200)
if val == 3:
robot.reverse_right(200)
if val == 4 or val == 5:
robot.reverse(200)
if val == 6:
robot.reverse_left(200)
if val == 7:
robot.forward_left(200) |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def hasCycle(self, head: ListNode) -> bool:
while head:
if not hasattr(head, 'flag'):
head.flag = False
if not head.flag: # head flag is first visited
head.flag = True
else:
return True
head = head.next
return False
# hash_table = dict()
# while head:
# print(hash_table)
# if head in hash_table:
# return True
# hash_table.add(head)
# head = head.next
# return False
| class Solution:
def has_cycle(self, head: ListNode) -> bool:
while head:
if not hasattr(head, 'flag'):
head.flag = False
if not head.flag:
head.flag = True
else:
return True
head = head.next
return False |
#!/usr/bin/env python
# encoding: utf-8
class Solution:
def singleNumber(self, nums: List[int]) -> int:
# 0001 XOR 0000 = 0001
# a XOR 0 = a
# a XOR a = 0
# a XOR b XOR a = a XOR a XOR b = b
a = 0
for num in nums:
a ^= num
return a
| class Solution:
def single_number(self, nums: List[int]) -> int:
a = 0
for num in nums:
a ^= num
return a |
def remove_all(input_string,to_be_removed):
''' removes all instance of a substring from a string '''
while(to_be_removed in input_string):
input_string = ''.join(input_string.split(to_be_removed))
return(input_string)
if __name__ == '__main__':
print(remove_all('hello world','l'))
| def remove_all(input_string, to_be_removed):
""" removes all instance of a substring from a string """
while to_be_removed in input_string:
input_string = ''.join(input_string.split(to_be_removed))
return input_string
if __name__ == '__main__':
print(remove_all('hello world', 'l')) |
# 1. The format_address function separates out parts of the address string
# into new strings: house_number and street_name, and returns: "house
# number X on street named Y". The format of the input string is: numeric
# house number, followed by the street name which may contain numbers,
# but never by themselves, and could be several words long. For example,
# "123 Main Street", "1001 1st Ave", or "55 North Center Drive". Fill in the
# gaps to complete this function.
def format_address(address_string):
# Declare variables
street = []
number = ""
# Seperate the address string into parts
# Traverse through the address parts
for s in address_string.split():
# Determine if the address part is the
# house number or part of the street name
if s.isdigit():
number = s
else:
street.append(s)
# Does anything else need to be done
# before returning the result?
# Return the formatted string
return "house number {} on street named {}".format(number, ' '.join(street))
# print(format_address("123 Main Street"))
# Should print: "house number 123 on street named Main Street"
# print(format_address("1001 1st Ave"))
# Should print: "house number 1001 on street named 1st Ave"
# print(format_address("55 North Center Drive"))
# Should print "house number 55 on street named North Center Drive"
# 2. The highlight_word function changes the given word in a sentence to its
# upper-case version. For example, highlight_word("Have a nice day", "nice)
# returns "Have a NICE day". Ca you write this function in just one line?
def highlight_word(sentence, word):
return sentence.replace(word, word.upper())
# print(highlight_word("Have a nice day", "nice"))
# print(highlight_word("Shhh, don't be so loud!", "loud"))
# print(highlight_word("Automating with Python is fun", "fun"))
# 3. A professor with two assistants, Jamie and Drew, wants an attendance list
# of the students, in the order that they arrived in the classroom. Drew was
# the first one to note which students arrived, and then Jamie took over.
# After the class, they each entered their lists into the computer and
# emailed them to the professor, who needs to combine them into one, in
# the order of each student's arrival. Jamie emailed a follow-up, saying that
# heir list is in reverse order. Complete the steps to combine them into one
# list as follows: the contents of Drew's list, followed by Jamie's list in
# reverse order, to get an accurate list of the students as they arrived.
def combine_lists(list1, list2):
# Generate a new list containing the elements of list2
new_list = list2
# Followed by the elements of list1 in reverse order
list1.reverse()
new_list.extend(list1)
return new_list
Jamies_list = ["Alice", "Cindy", "Bobby", "Jan", "Peter"]
Drews_list = ["Mike", "Carol", "Greg", "Marcia"]
# print(combine_lists(Jamies_list, Drews_list))
# 4. Use a list comprehension to create a list of squared numbers(n * n). The
# function receives the variables start and end, and returns a list of squares
# of consecutive numbers between start and end inclusively.
# For example, squared(2, 3) should return [4, 9].
def squares(start, end):
return [x * x for x in range(start, end + 1)]
print(squares(2, 3)) # Should be [4, 9]
print(squares(1, 5)) # Should be [1, 4, 9, 16, 25]
print(squares(0, 10)) # Should be [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
# 5. Complete the code to iterate through the keys and values of the
# car_prices dictionary, printing out some information about each one.
def car_listing(car_prices):
result = ""
for name, price in car_prices.items():
result += "{} costs {} dollars".format(name, price) + "\n"
return result
print(car_listing({"Kia Soul":19000, "Lamborghini Diablo":55000, "Ford Fiesta":13000, "Toyota Prius":24000}))
# 6. Use a dictionary to count the frequency of letters in the input string. Only
# letters should be counted, not blank spaces, numbers or punctuation.
# Upper case should be considered the same as lower case. For example,
# count_letters("This is a sentence.") should return {'t':2, 'h':1, 'i':2, 's':3, 'a':
# 1, 'e':3, 'n':2, 'c':1}
def count_letters(text):
result = {}
# Go through each letter in the text
for letter in text:
# Check if the letter needs to be counted or not
if letter.isalpha():
if letter.lower() not in result:
result[letter.lower()] = 0
# Add or increment the value in the dictionary
result[letter.lower()] += 1
return result
print(count_letters("AaBbCc"))
# Should be {'a': 2, 'b': 2, 'c': 2}
print(count_letters("Math is fun! 2+2=4"))
# Should be {'m': 1, 'a': 1, 't': 1, 'h': 1, 'i': 1, 's': 1, 'f': 1, 'u': 1, 'n': 1}
print(count_letters("This is a sentence."))
# Should be {'t': 2, 'h': 1, 'i': 2, 's': 3, 'a': 1, 'e': 3, 'n': 2, 'c': 1}
animal = "Hippopotamus"
print(animal[3:6])
# opo
print(animal[-5])
# t
print(animal[10:])
# s
# 9. What doest the list "colors" contain after these commands are executed?
colors = ["red", "white", "blue"]
colors.insert(2, "yellow")
print(colors)
# 10. What do the following commands return?
host_addresses = {"router": "192.168.1.1", "localhost": "127.0.0.1", "google": "8.8.8.8"}
print(host_addresses.keys())
def combine_guests(guests1, guests2):
# guests1 is the one who will be added to guests2
#
for guest, number in guests1.items():
if guest not in guests2:
guests2[guest] = number
guests2[guest] += number
return guests2
Rorys_guests = { "Adam":2, "Brenda":3, "David":1, "Jose":3, "Charlotte":2, "Terry":1, "Robert":4}
Taylors_guests = { "David":4, "Nancy":1, "Robert":2, "Adam":1, "Samantha":3, "Chris":5}
print(combine_guests(Rorys_guests, Taylors_guests)) | def format_address(address_string):
street = []
number = ''
for s in address_string.split():
if s.isdigit():
number = s
else:
street.append(s)
return 'house number {} on street named {}'.format(number, ' '.join(street))
def highlight_word(sentence, word):
return sentence.replace(word, word.upper())
def combine_lists(list1, list2):
new_list = list2
list1.reverse()
new_list.extend(list1)
return new_list
jamies_list = ['Alice', 'Cindy', 'Bobby', 'Jan', 'Peter']
drews_list = ['Mike', 'Carol', 'Greg', 'Marcia']
def squares(start, end):
return [x * x for x in range(start, end + 1)]
print(squares(2, 3))
print(squares(1, 5))
print(squares(0, 10))
def car_listing(car_prices):
result = ''
for (name, price) in car_prices.items():
result += '{} costs {} dollars'.format(name, price) + '\n'
return result
print(car_listing({'Kia Soul': 19000, 'Lamborghini Diablo': 55000, 'Ford Fiesta': 13000, 'Toyota Prius': 24000}))
def count_letters(text):
result = {}
for letter in text:
if letter.isalpha():
if letter.lower() not in result:
result[letter.lower()] = 0
result[letter.lower()] += 1
return result
print(count_letters('AaBbCc'))
print(count_letters('Math is fun! 2+2=4'))
print(count_letters('This is a sentence.'))
animal = 'Hippopotamus'
print(animal[3:6])
print(animal[-5])
print(animal[10:])
colors = ['red', 'white', 'blue']
colors.insert(2, 'yellow')
print(colors)
host_addresses = {'router': '192.168.1.1', 'localhost': '127.0.0.1', 'google': '8.8.8.8'}
print(host_addresses.keys())
def combine_guests(guests1, guests2):
for (guest, number) in guests1.items():
if guest not in guests2:
guests2[guest] = number
guests2[guest] += number
return guests2
rorys_guests = {'Adam': 2, 'Brenda': 3, 'David': 1, 'Jose': 3, 'Charlotte': 2, 'Terry': 1, 'Robert': 4}
taylors_guests = {'David': 4, 'Nancy': 1, 'Robert': 2, 'Adam': 1, 'Samantha': 3, 'Chris': 5}
print(combine_guests(Rorys_guests, Taylors_guests)) |
x=list(input())
y=list(input())
x.reverse()
y.reverse()
updi=False
a=max(x,y)
b=min(x,y)
out=[]
for i in range(len(a)):
tem1=int(a[i])
try:
tem2=int(b[i])
pass
except :
tem2=0
tem=tem1+tem2
tem= tem+1 if updi else tem
out.insert(0,str(tem%10))
updi= tem/10>=1
if updi and len(a)-1==i:
out.insert(0,str(1))
# print(out)
print("".join(out))
| x = list(input())
y = list(input())
x.reverse()
y.reverse()
updi = False
a = max(x, y)
b = min(x, y)
out = []
for i in range(len(a)):
tem1 = int(a[i])
try:
tem2 = int(b[i])
pass
except:
tem2 = 0
tem = tem1 + tem2
tem = tem + 1 if updi else tem
out.insert(0, str(tem % 10))
updi = tem / 10 >= 1
if updi and len(a) - 1 == i:
out.insert(0, str(1))
print(''.join(out)) |
sns.catplot(data=density_mean, kind="bar",
x='Bacterial_genotype',
y='optical_density',
hue='Phage_t',
row="experiment_time_h",
sharey=False,
aspect=3, height=3,
palette="colorblind") | sns.catplot(data=density_mean, kind='bar', x='Bacterial_genotype', y='optical_density', hue='Phage_t', row='experiment_time_h', sharey=False, aspect=3, height=3, palette='colorblind') |
def sub(
_str:str,
_from:int,
_to:int=None
) -> str:
_to = _from + 1 if _to == None else _to
return _str[_from:_to]
def tostr(
val,
_hex:bool=False
) -> str:
return str(val) if not _hex else str(hex(val))
def tonum(
_str:str
) -> float or int:
try:
return int(_str)
except ValueError:
return float(_str)
| def sub(_str: str, _from: int, _to: int=None) -> str:
_to = _from + 1 if _to == None else _to
return _str[_from:_to]
def tostr(val, _hex: bool=False) -> str:
return str(val) if not _hex else str(hex(val))
def tonum(_str: str) -> float or int:
try:
return int(_str)
except ValueError:
return float(_str) |
# Invert Binary Tree: https://leetcode.com/problems/invert-binary-tree/
# Given the root of a binary tree, invert the tree, and return its root.
# Okay this is another problem where we use a dfs solution except we should just be flipping as we go down
# Basic solution
class Solution:
def invertTree(self, root):
def dfs(root):
if root:
root.left, root.right = root.right, root.left
dfs(root.left)
dfs(root.right)
dfs(root)
return root
# Can we improve?
# we can probably remove the nested function and we can call the invert while we swap
# This was accepted and a little bit better
class Solution2:
def invertTree(self, root):
if root is None:
return None
root.left, root.right = self.invertTree(
root.right), self.invertTree(root.left)
return root
# Can we improve?
# we can probably remove the nested function and we can call the invert while we swap
# Also we could probably do this iteratively to reduce stack to a deque for improvements
# Score Card
# Did I need hints? Nope
# Did you finish within 30 min? Yup 10 min
# Was the solution optimal? Yes although I didn't write out the optimal version with the iterative but it is really the same thing
# Were there any bugs? Nope
# 5 5 5 5 = 5
| class Solution:
def invert_tree(self, root):
def dfs(root):
if root:
(root.left, root.right) = (root.right, root.left)
dfs(root.left)
dfs(root.right)
dfs(root)
return root
class Solution2:
def invert_tree(self, root):
if root is None:
return None
(root.left, root.right) = (self.invertTree(root.right), self.invertTree(root.left))
return root |
class FloatMana:
def __init__(self, content):
pass
| class Floatmana:
def __init__(self, content):
pass |
# Applied once at the beginning of the algorithm.
INITIAL_PERMUTATION = [
58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
61, 53, 45, 37, 29, 21, 13, 5,
63, 55, 47, 39, 31, 23, 15, 7,
]
# Inverse of INITIAL_PERMUTATION. Applied once at the end of the algorithm.
FINAL_PERMUTATION = [
40, 8, 48, 16, 56, 24, 64, 32,
39, 7, 47, 15, 55, 23, 63, 31,
38, 6, 46, 14, 54, 22, 62, 30,
37, 5, 45, 13, 53, 21, 61, 29,
36, 4, 44, 12, 52, 20, 60, 28,
35, 3, 43, 11, 51, 19, 59, 27,
34, 2, 42, 10, 50, 18, 58, 26,
33, 1, 41, 9, 49, 17, 57, 25,
]
# Applied to the half-block at the beginning of the Fiestel function.
EXPANSION = [
32, 1, 2, 3, 4, 5,
4, 5, 6, 7, 8, 9,
8, 9, 10, 11, 12, 13,
12, 13, 14, 15, 16, 17,
16, 17, 18, 19, 20, 21,
20, 21, 22, 23, 24, 25,
24, 25, 26, 27, 28, 29,
28, 29, 30, 31, 32, 1,
]
# Applied at the end of the Feistel function.
PERMUTATION = [
16, 7, 20, 21, 29, 12, 28, 17,
1, 15, 23, 26, 5, 18, 31, 10,
2, 8, 24, 14, 32, 27, 3, 9,
19, 13, 30, 6, 22, 11, 4, 25,
]
# Converts from full 64-bit key to two key halves: left and right. Only 48
# bits from the original key are used.
PERMUTED_CHOICE_1_LEFT = [
57, 49, 41, 33, 25, 17, 9,
1, 58, 50, 42, 34, 26, 18,
10, 2, 59, 51, 43, 35, 27,
19, 11, 3, 60, 52, 44, 36,
]
PERMUTED_CHOICE_1_RIGHT = [
63, 55, 47, 39, 31, 23, 15,
7, 62, 54, 46, 38, 30, 22,
14, 6, 61, 53, 45, 37, 29,
21, 13, 5, 28, 20, 12, 4,
]
# Converts the shifted right and left key halves (concatenated together) into
# the subkey for the round (input into Feistel function).
PERMUTED_CHOICE_2 = [
14, 17, 11, 24, 1, 5, 3, 28,
15, 6, 21, 10, 23, 19, 12, 4,
26, 8, 16, 7, 27, 20, 13, 2,
41, 52, 31, 37, 47, 55, 30, 40,
51, 45, 33, 48, 44, 49, 39, 56,
34, 53, 46, 42, 50, 36, 29, 32,
]
# S-Boxes
# SBOX[outer 2 bits][inner 4 bits]
# Each value represents 4 bits that the 6-bit input is mapped to.
SBOX_1 = [
[14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7],
[0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8],
[4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0],
[15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13],
]
SBOX_2 = [
[15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10],
[3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5],
[0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15],
[13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9],
]
SBOX_3 = [
[10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8],
[13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1],
[13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7],
[1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12],
]
SBOX_4 = [
[7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15],
[13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9],
[10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4],
[3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14],
]
SBOX_5 = [
[2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9],
[14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6],
[4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14],
[11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3],
]
SBOX_6 = [
[12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11],
[10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8],
[9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6],
[4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13],
]
SBOX_7 = [
[4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1],
[13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6],
[1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2],
[6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12],
]
SBOX_8 = [
[13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7],
[1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2],
[7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8],
[2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11],
]
SBOXES = [SBOX_1, SBOX_2, SBOX_3, SBOX_4, SBOX_5, SBOX_6, SBOX_7, SBOX_8]
# How much the left and right key halves are shifted every round.
KEY_SHIFT_AMOUNTS = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]
| initial_permutation = [58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7]
final_permutation = [40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2, 42, 10, 50, 18, 58, 26, 33, 1, 41, 9, 49, 17, 57, 25]
expansion = [32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18, 19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1]
permutation = [16, 7, 20, 21, 29, 12, 28, 17, 1, 15, 23, 26, 5, 18, 31, 10, 2, 8, 24, 14, 32, 27, 3, 9, 19, 13, 30, 6, 22, 11, 4, 25]
permuted_choice_1_left = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36]
permuted_choice_1_right = [63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4]
permuted_choice_2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32]
sbox_1 = [[14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7], [0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8], [4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0], [15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13]]
sbox_2 = [[15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10], [3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5], [0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15], [13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9]]
sbox_3 = [[10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8], [13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1], [13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7], [1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12]]
sbox_4 = [[7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15], [13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9], [10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4], [3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14]]
sbox_5 = [[2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9], [14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6], [4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14], [11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3]]
sbox_6 = [[12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11], [10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8], [9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6], [4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13]]
sbox_7 = [[4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1], [13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6], [1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2], [6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12]]
sbox_8 = [[13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7], [1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2], [7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8], [2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11]]
sboxes = [SBOX_1, SBOX_2, SBOX_3, SBOX_4, SBOX_5, SBOX_6, SBOX_7, SBOX_8]
key_shift_amounts = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1] |
# Ordered (indexing is allowed): List, Tuple
# Unordered (indexing is not allowed): Dictionary, and Set
# Mutable (can be changed after creation): List, Dictionary, and Set
# Immutable ((can not be changed after creation)): Tuple, and Frozen Set
# LIST: is a mutable data type i.e items can be added to list later after the list creation.
# it need not be always homogeneous i.e. a single list can contain strings, integers, as well as objects.
# Create empty
# var_list = list()
# var_list = []
# print(var_list)
# print(type(var_list))
# Create with values
var_list = ["hello", 100, 200, 500, "world", 123.30, 100]
print(var_list)
# Get (indexing)
item = var_list[1]
# print(item)
# Replace (indexing)
var_list[2] = 500
# List Methods
var_list.append("Python")
print(var_list)
| var_list = ['hello', 100, 200, 500, 'world', 123.3, 100]
print(var_list)
item = var_list[1]
var_list[2] = 500
var_list.append('Python')
print(var_list) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def isPalindrome(n):
return str(n) == str(n)[::-1]
ans = 0
for i in range(100, 1000):
for j in range(i, 1000):
if (isPalindrome(i * j)):
ans = max(ans, i * j)
print(ans)
| def is_palindrome(n):
return str(n) == str(n)[::-1]
ans = 0
for i in range(100, 1000):
for j in range(i, 1000):
if is_palindrome(i * j):
ans = max(ans, i * j)
print(ans) |
def ld_env_arg_spec():
return dict(
environment_key=dict(type="str", required=True, aliases=["key"]),
color=dict(type="str"),
name=dict(type="str"),
default_ttl=dict(type="int"),
tags=dict(type="list", elements="str"),
confirm_changes=dict(type="bool"),
require_comments=dict(type="bool"),
default_track_events=dict(type="bool"),
)
def env_ld_builder(environments):
patches = []
for env in environments:
env_mapped = dict(
(launchdarkly_api.Environment.attribute_map[k], v)
for k, v in env.items()
if v is not None
)
patches.append(launchdarkly_api.EnvironmentPost(**env))
return patches
| def ld_env_arg_spec():
return dict(environment_key=dict(type='str', required=True, aliases=['key']), color=dict(type='str'), name=dict(type='str'), default_ttl=dict(type='int'), tags=dict(type='list', elements='str'), confirm_changes=dict(type='bool'), require_comments=dict(type='bool'), default_track_events=dict(type='bool'))
def env_ld_builder(environments):
patches = []
for env in environments:
env_mapped = dict(((launchdarkly_api.Environment.attribute_map[k], v) for (k, v) in env.items() if v is not None))
patches.append(launchdarkly_api.EnvironmentPost(**env))
return patches |
# the Node class - contains value and address to next node
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
def get_data(self):
return self.val
def set_data(self, val):
self.val = val
def get_next(self):
return self.next
def set_next(self, next):
self.next = next
# the LinkedList class
class LinkedList(object):
def __init__(self, head=None):
self.head = head
self.count = 0
def get_count(self):
return self.count
def insert(self, data):
new_node = Node(data)
new_node.set_next(self.head)
self.head = new_node
self.count += 1
def find(self, val):
item = self.head
while (item != None):
if item.get_data() == val:
return item
else:
item = item.get_next()
return None
def deleteAt(self, idx):
if idx > self.count:
return
if self.head == None:
return
else:
tempIdx = 0
node = self.head
while tempIdx < idx-1:
node = node.get_next()
tempIdx += 1
node.set_next(node.get_next().get_next())
self.count -= 1
def printList(self):
tempnode = self.head
while (tempnode != None):
print("Node: ", tempnode.get_data())
tempnode = tempnode.get_next()
def sumList(self):
tempnode = self.head
self.sum = 0
while (tempnode != None):
self.sum += tempnode.get_data()
tempnode = tempnode.get_next()
print('Sum of list:', self.sum)
if __name__ == "__main__":
# create a linked list and insert some items
itemlist = LinkedList()
itemlist.insert(3)
itemlist.insert(10)
itemlist.insert(1)
itemlist.insert(5)
itemlist.insert(6)
#Print the List
itemlist.printList()
#GEt sum
itemlist.sumList()
| class Node(object):
def __init__(self, val):
self.val = val
self.next = None
def get_data(self):
return self.val
def set_data(self, val):
self.val = val
def get_next(self):
return self.next
def set_next(self, next):
self.next = next
class Linkedlist(object):
def __init__(self, head=None):
self.head = head
self.count = 0
def get_count(self):
return self.count
def insert(self, data):
new_node = node(data)
new_node.set_next(self.head)
self.head = new_node
self.count += 1
def find(self, val):
item = self.head
while item != None:
if item.get_data() == val:
return item
else:
item = item.get_next()
return None
def delete_at(self, idx):
if idx > self.count:
return
if self.head == None:
return
else:
temp_idx = 0
node = self.head
while tempIdx < idx - 1:
node = node.get_next()
temp_idx += 1
node.set_next(node.get_next().get_next())
self.count -= 1
def print_list(self):
tempnode = self.head
while tempnode != None:
print('Node: ', tempnode.get_data())
tempnode = tempnode.get_next()
def sum_list(self):
tempnode = self.head
self.sum = 0
while tempnode != None:
self.sum += tempnode.get_data()
tempnode = tempnode.get_next()
print('Sum of list:', self.sum)
if __name__ == '__main__':
itemlist = linked_list()
itemlist.insert(3)
itemlist.insert(10)
itemlist.insert(1)
itemlist.insert(5)
itemlist.insert(6)
itemlist.printList()
itemlist.sumList() |
def color(val):
if val < 60:
r = 0
g = 255
b = 0
if val >= 60:
r = ((val - 60) / 20) * 255
g = 255
b = 120
if val >= 80:
r = 255
g = 255 - (((val - 80) / 20) * 255)
b = 120 - (((val - 80) / 20) * 120)
return 'rgb({},{},{})'.format(r, g, b) | def color(val):
if val < 60:
r = 0
g = 255
b = 0
if val >= 60:
r = (val - 60) / 20 * 255
g = 255
b = 120
if val >= 80:
r = 255
g = 255 - (val - 80) / 20 * 255
b = 120 - (val - 80) / 20 * 120
return 'rgb({},{},{})'.format(r, g, b) |
class Music:
def __init__(self):
self._ch0 = []
self._ch1 = []
self._ch2 = []
self._ch3 = []
@property
def ch0(self):
return self._ch0
@property
def ch1(self):
return self._ch1
@property
def ch2(self):
return self._ch2
@property
def ch3(self):
return self._ch3
def set(self, ch0, ch1, ch2, ch3):
self.set_ch0(ch0)
self.set_ch1(ch1)
self.set_ch2(ch2)
self.set_ch3(ch3)
def set_ch0(self, data):
self._ch0[:] = data
def set_ch1(self, data):
self._ch1[:] = data
def set_ch2(self, data):
self._ch2[:] = data
def set_ch3(self, data):
self._ch3[:] = data
| class Music:
def __init__(self):
self._ch0 = []
self._ch1 = []
self._ch2 = []
self._ch3 = []
@property
def ch0(self):
return self._ch0
@property
def ch1(self):
return self._ch1
@property
def ch2(self):
return self._ch2
@property
def ch3(self):
return self._ch3
def set(self, ch0, ch1, ch2, ch3):
self.set_ch0(ch0)
self.set_ch1(ch1)
self.set_ch2(ch2)
self.set_ch3(ch3)
def set_ch0(self, data):
self._ch0[:] = data
def set_ch1(self, data):
self._ch1[:] = data
def set_ch2(self, data):
self._ch2[:] = data
def set_ch3(self, data):
self._ch3[:] = data |
n,m = map(int, input().split())
width = m
msg = "WELCOME"
design = ".|."
#upper piece
lines = int((n-1)/2)
count = 1
for i in range(1,lines+1):
a = design*count
print(a.center(width,'-'))
count += 2
#center piece
print(msg.center(width,'-'))
#bottom piece
count = n-2
for i in range(1,lines+1):
a = design*count
print(a.center(width,'-'))
count -= 2
| (n, m) = map(int, input().split())
width = m
msg = 'WELCOME'
design = '.|.'
lines = int((n - 1) / 2)
count = 1
for i in range(1, lines + 1):
a = design * count
print(a.center(width, '-'))
count += 2
print(msg.center(width, '-'))
count = n - 2
for i in range(1, lines + 1):
a = design * count
print(a.center(width, '-'))
count -= 2 |
def percent_str( expected, received ):
received = received*100
output = int(received/expected)
return str(output) + "%"
def modsendall( to_socket, content, expected_msg_bytes):
record = 0
single_attempt_size = 1024
while True:
try:
ret = to_socket.send( content[record:record+single_attempt_size] )
except:
print("Send failure. Bad connection.")
return False
record += ret
if record >= expected_msg_bytes:
break
print("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", end='', flush=True)
print(percent_str(expected_msg_bytes,record)+" -- ", end='', flush=True)
print("100%",flush=True)
return True
| def percent_str(expected, received):
received = received * 100
output = int(received / expected)
return str(output) + '%'
def modsendall(to_socket, content, expected_msg_bytes):
record = 0
single_attempt_size = 1024
while True:
try:
ret = to_socket.send(content[record:record + single_attempt_size])
except:
print('Send failure. Bad connection.')
return False
record += ret
if record >= expected_msg_bytes:
break
print('\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08', end='', flush=True)
print(percent_str(expected_msg_bytes, record) + ' -- ', end='', flush=True)
print('100%', flush=True)
return True |
def hey(phrase):
phrase = phrase.strip()
if not phrase:
return "Fine. Be that way!"
elif phrase.isupper():
return "Whoa, chill out!"
elif phrase.endswith("?"):
return "Sure."
else:
return 'Whatever.'
| def hey(phrase):
phrase = phrase.strip()
if not phrase:
return 'Fine. Be that way!'
elif phrase.isupper():
return 'Whoa, chill out!'
elif phrase.endswith('?'):
return 'Sure.'
else:
return 'Whatever.' |
# Created by MechAviv
# High Noon Damage Skin | (2438671)
if sm.addDamageSkin(2438671):
sm.chat("'High Noon Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | if sm.addDamageSkin(2438671):
sm.chat("'High Noon Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() |
async def is_guild_admin(self, guildid, userid):
settings = self.database.get_settings(guildid)
guild = await self.fetch_guild(guildid)
user = await guild.fetch_member(userid)
if user.id == 110838934644211712:
return True # This is so i can test and help without server admin /shrug
for role in user.roles:
if role.id == settings["AdminRole"]:
return True
return False
async def is_section_admin(self, guildid, userid, section):
section = self.database.get_section(guildid, section)
if section is None:
return False
for slot in section["Structure"]:
if slot["ID"] == userid and slot["Access"]:
return True
return False
| async def is_guild_admin(self, guildid, userid):
settings = self.database.get_settings(guildid)
guild = await self.fetch_guild(guildid)
user = await guild.fetch_member(userid)
if user.id == 110838934644211712:
return True
for role in user.roles:
if role.id == settings['AdminRole']:
return True
return False
async def is_section_admin(self, guildid, userid, section):
section = self.database.get_section(guildid, section)
if section is None:
return False
for slot in section['Structure']:
if slot['ID'] == userid and slot['Access']:
return True
return False |
# game settings:
RENDER_MODE = True
REF_W = 24*2
REF_H = REF_W
REF_U = 1.5 # ground height
REF_WALL_WIDTH = 1.0 # wall width
REF_WALL_HEIGHT = 5
PLAYER_SPEED_X = 10*1.75
PLAYER_SPEED_Y = 10*1.35
MAX_BALL_SPEED = 15*1.5
TIMESTEP = 1/30.
NUDGE = 0.1
FRICTION = 1.0 # 1 means no FRICTION, less means FRICTION
INIT_DELAY_FRAMES = 30
GRAVITY = -9.8*2*1.5
MAXLIVES = 5 # game ends when one agent loses this many games
WINDOW_WIDTH = 1200
WINDOW_HEIGHT = 500
FACTOR = WINDOW_WIDTH / REF_W
# if set to true, renders using cv2 directly on numpy array
# (otherwise uses pyglet / opengl -> much smoother for human player)
PIXEL_MODE = False
PIXEL_SCALE = 4 # first render at multiple of Pixel Obs resolution, then downscale. Looks better.
PIXEL_WIDTH = 84*2*1
PIXEL_HEIGHT = 84*1 | render_mode = True
ref_w = 24 * 2
ref_h = REF_W
ref_u = 1.5
ref_wall_width = 1.0
ref_wall_height = 5
player_speed_x = 10 * 1.75
player_speed_y = 10 * 1.35
max_ball_speed = 15 * 1.5
timestep = 1 / 30.0
nudge = 0.1
friction = 1.0
init_delay_frames = 30
gravity = -9.8 * 2 * 1.5
maxlives = 5
window_width = 1200
window_height = 500
factor = WINDOW_WIDTH / REF_W
pixel_mode = False
pixel_scale = 4
pixel_width = 84 * 2 * 1
pixel_height = 84 * 1 |
class Generator:
def __init__(self):
self.buffer = ""
self.ident = 0
def push_ident(self):
self.ident = self.ident + 1
def pop_ident(self):
self.ident = self.ident - 1
def emit(self, *code):
if (''.join(code) == ""):
self.buffer += "\n"
else:
self.buffer += ' ' * self.ident + ''.join(code) + '\n'
def emit_section(self, title):
self.buffer += ' ' * self.ident + "/* --- " + title + " " + \
"-" * (69 - len(title) - 4 * self.ident) + " */\n\n" # nice
def finalize(self):
return self.buffer
| class Generator:
def __init__(self):
self.buffer = ''
self.ident = 0
def push_ident(self):
self.ident = self.ident + 1
def pop_ident(self):
self.ident = self.ident - 1
def emit(self, *code):
if ''.join(code) == '':
self.buffer += '\n'
else:
self.buffer += ' ' * self.ident + ''.join(code) + '\n'
def emit_section(self, title):
self.buffer += ' ' * self.ident + '/* --- ' + title + ' ' + '-' * (69 - len(title) - 4 * self.ident) + ' */\n\n'
def finalize(self):
return self.buffer |
'''
Explain the operation of Lists and basic operations of lists
'''
l = [5, 6, 7, 8]
print(l)
#prints the element in position 1, remembering that it starts 0
print(l[2])
# List size use len () function
print(len(l))
l.append(10)
print("New list after adding 10 at the end = " + str(l))
position, value = 0, 20
l.insert(position,value)
print("New list after adding the 20 in the first position = " + str(l))
#Delete item 5 from the list
l.remove(5)
print("List without element 5 = " + str(l))
print("Position of element 8 in the List = " + str(l.index(8)))
#To sort a list use the sort command
l.sort()
print("List sorted from smallest to largest = " + str(l))
l.reverse()
print("List sorted from largest to smallest = " + str(l))
| """
Explain the operation of Lists and basic operations of lists
"""
l = [5, 6, 7, 8]
print(l)
print(l[2])
print(len(l))
l.append(10)
print('New list after adding 10 at the end = ' + str(l))
(position, value) = (0, 20)
l.insert(position, value)
print('New list after adding the 20 in the first position = ' + str(l))
l.remove(5)
print('List without element 5 = ' + str(l))
print('Position of element 8 in the List = ' + str(l.index(8)))
l.sort()
print('List sorted from smallest to largest = ' + str(l))
l.reverse()
print('List sorted from largest to smallest = ' + str(l)) |
# Write a function that takes in a graph
# represented as a list of tuples
# and return a list of nodes that
# you would follow on an Eulerian Tour
#
# For example, if the input graph was
# [(1, 2), (2, 3), (3, 1)]
# A possible Eulerian tour would be [1, 2, 3, 1]
def find_eulerian_tour(graph):
a = 0
graph2 = graph
tour = []
tour2 = []
while len(graph2) > 0:
[tour, graph2] = onetour(graph2, a)
for b in range(0, len(tour2)):
if tour2[b] == tour[0]:
tour2[b:b+1] = tour
tour = [-1]
if len(tour2) == 0:
tour2 = tour
return tour2
def onetour(graph, a):
tour = []
tour.append(graph[a][0])
lstnode = graph[a][1]
graph.remove(graph[a])
tour.append(lstnode)
while a != -1:
[a, lstnode] = nextnode(graph, lstnode, tour)
if a != -1:
tour.append(lstnode)
if len(graph) > 0:
graph.remove(graph[a])
return [tour, graph]
def nextnode(graph, lstnode, tour):
lstnodet = lstnode
at = 0
for a in range(0, len(graph)):
if graph[a][0] == lstnode:
at = a
lstnodet = graph[a][1]
elif graph[a][1] == lstnode:
at = a
lstnodet = graph[a][0]
if(lstnodet not in tour):
return [at, lstnodet]
if lstnodet != lstnode:
return [at, lstnodet]
return [-1, lstnode]
graph = [
(0, 1), (1, 5), (1, 7), (4, 5),
(4, 8), (1, 6), (3, 7), (5, 9),
(2, 4), (0, 4), (2, 5), (3, 6), (8, 9)
]
print(find_eulerian_tour(graph))
| def find_eulerian_tour(graph):
a = 0
graph2 = graph
tour = []
tour2 = []
while len(graph2) > 0:
[tour, graph2] = onetour(graph2, a)
for b in range(0, len(tour2)):
if tour2[b] == tour[0]:
tour2[b:b + 1] = tour
tour = [-1]
if len(tour2) == 0:
tour2 = tour
return tour2
def onetour(graph, a):
tour = []
tour.append(graph[a][0])
lstnode = graph[a][1]
graph.remove(graph[a])
tour.append(lstnode)
while a != -1:
[a, lstnode] = nextnode(graph, lstnode, tour)
if a != -1:
tour.append(lstnode)
if len(graph) > 0:
graph.remove(graph[a])
return [tour, graph]
def nextnode(graph, lstnode, tour):
lstnodet = lstnode
at = 0
for a in range(0, len(graph)):
if graph[a][0] == lstnode:
at = a
lstnodet = graph[a][1]
elif graph[a][1] == lstnode:
at = a
lstnodet = graph[a][0]
if lstnodet not in tour:
return [at, lstnodet]
if lstnodet != lstnode:
return [at, lstnodet]
return [-1, lstnode]
graph = [(0, 1), (1, 5), (1, 7), (4, 5), (4, 8), (1, 6), (3, 7), (5, 9), (2, 4), (0, 4), (2, 5), (3, 6), (8, 9)]
print(find_eulerian_tour(graph)) |
load("@io_bazel_rules_dotnet//dotnet/private:rules/nuget.bzl", "nuget_package")
def dotnet_repositories_nunit():
### Generated by the tool
nuget_package(
name = "nunit",
package = "nunit",
version = "3.12.0",
sha256 = "62b67516a08951a20b12b02e5d20b5045edbb687c3aabe9170286ec5bb9000a1",
core_lib = {
"netcoreapp2.0": "lib/netstandard2.0/nunit.framework.dll",
"netcoreapp2.1": "lib/netstandard2.0/nunit.framework.dll",
},
net_lib = {
"net45": "lib/net45/nunit.framework.dll",
"net451": "lib/net45/nunit.framework.dll",
"net452": "lib/net45/nunit.framework.dll",
"net46": "lib/net45/nunit.framework.dll",
"net461": "lib/net45/nunit.framework.dll",
"net462": "lib/net45/nunit.framework.dll",
"net47": "lib/net45/nunit.framework.dll",
"net471": "lib/net45/nunit.framework.dll",
"net472": "lib/net45/nunit.framework.dll",
"netstandard1.4": "lib/netstandard1.4/nunit.framework.dll",
"netstandard1.5": "lib/netstandard1.4/nunit.framework.dll",
"netstandard1.6": "lib/netstandard1.4/nunit.framework.dll",
"netstandard2.0": "lib/netstandard2.0/nunit.framework.dll",
},
mono_lib = "lib/net45/nunit.framework.dll",
core_files = {
"netcoreapp2.0": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
"netcoreapp2.1": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
},
net_files = {
"net45": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net451": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net452": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net46": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net461": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net462": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net47": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net471": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"net472": [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
"netstandard1.4": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard1.5": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard1.6": [
"lib/netstandard1.4/nunit.framework.dll",
"lib/netstandard1.4/nunit.framework.pdb",
"lib/netstandard1.4/nunit.framework.xml",
],
"netstandard2.0": [
"lib/netstandard2.0/nunit.framework.dll",
"lib/netstandard2.0/nunit.framework.pdb",
"lib/netstandard2.0/nunit.framework.xml",
],
},
mono_files = [
"lib/net45/nunit.framework.dll",
"lib/net45/nunit.framework.pdb",
"lib/net45/nunit.framework.xml",
],
)
nuget_package(
name = "nunit.consolerunner",
package = "nunit.consolerunner",
version = "3.10.0",
sha256 = "e852dad9a2ec1bd3ee48f3a6be68c7e2322582eaee710c439092c32087f49e84",
core_lib = {
"netcoreapp2.0": "tools/Mono.Cecil.dll",
"netcoreapp2.1": "tools/Mono.Cecil.dll",
},
net_lib = {
"net45": "tools/Mono.Cecil.dll",
"net451": "tools/Mono.Cecil.dll",
"net452": "tools/Mono.Cecil.dll",
"net46": "tools/Mono.Cecil.dll",
"net461": "tools/Mono.Cecil.dll",
"net462": "tools/Mono.Cecil.dll",
"net47": "tools/Mono.Cecil.dll",
"net471": "tools/Mono.Cecil.dll",
"net472": "tools/Mono.Cecil.dll",
"netstandard1.0": "tools/Mono.Cecil.dll",
"netstandard1.1": "tools/Mono.Cecil.dll",
"netstandard1.2": "tools/Mono.Cecil.dll",
"netstandard1.3": "tools/Mono.Cecil.dll",
"netstandard1.4": "tools/Mono.Cecil.dll",
"netstandard1.5": "tools/Mono.Cecil.dll",
"netstandard1.6": "tools/Mono.Cecil.dll",
"netstandard2.0": "tools/Mono.Cecil.dll",
},
mono_lib = "tools/Mono.Cecil.dll",
core_tool = {
"netcoreapp2.0": "tools/nunit3-console.exe",
"netcoreapp2.1": "tools/nunit3-console.exe",
},
net_tool = {
"net45": "tools/nunit3-console.exe",
"net451": "tools/nunit3-console.exe",
"net452": "tools/nunit3-console.exe",
"net46": "tools/nunit3-console.exe",
"net461": "tools/nunit3-console.exe",
"net462": "tools/nunit3-console.exe",
"net47": "tools/nunit3-console.exe",
"net471": "tools/nunit3-console.exe",
"net472": "tools/nunit3-console.exe",
"netstandard1.0": "tools/nunit3-console.exe",
"netstandard1.1": "tools/nunit3-console.exe",
"netstandard1.2": "tools/nunit3-console.exe",
"netstandard1.3": "tools/nunit3-console.exe",
"netstandard1.4": "tools/nunit3-console.exe",
"netstandard1.5": "tools/nunit3-console.exe",
"netstandard1.6": "tools/nunit3-console.exe",
"netstandard2.0": "tools/nunit3-console.exe",
},
mono_tool = "tools/nunit3-console.exe",
core_files = {
"netcoreapp2.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netcoreapp2.1": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
},
net_files = {
"net45": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net451": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net452": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net46": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net461": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net462": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net47": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net471": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"net472": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.1": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.2": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.3": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.4": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.5": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard1.6": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
"netstandard2.0": [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
},
mono_files = [
"tools/Mono.Cecil.dll",
"tools/nunit-agent-x86.exe",
"tools/nunit-agent-x86.exe.config",
"tools/nunit-agent.exe",
"tools/nunit-agent.exe.config",
"tools/nunit.engine.api.dll",
"tools/nunit.engine.api.xml",
"tools/nunit.engine.dll",
"tools/nunit.nuget.addins",
"tools/nunit3-console.exe",
"tools/nunit3-console.exe.config",
],
)
### End of generated by the tool
return
| load('@io_bazel_rules_dotnet//dotnet/private:rules/nuget.bzl', 'nuget_package')
def dotnet_repositories_nunit():
nuget_package(name='nunit', package='nunit', version='3.12.0', sha256='62b67516a08951a20b12b02e5d20b5045edbb687c3aabe9170286ec5bb9000a1', core_lib={'netcoreapp2.0': 'lib/netstandard2.0/nunit.framework.dll', 'netcoreapp2.1': 'lib/netstandard2.0/nunit.framework.dll'}, net_lib={'net45': 'lib/net45/nunit.framework.dll', 'net451': 'lib/net45/nunit.framework.dll', 'net452': 'lib/net45/nunit.framework.dll', 'net46': 'lib/net45/nunit.framework.dll', 'net461': 'lib/net45/nunit.framework.dll', 'net462': 'lib/net45/nunit.framework.dll', 'net47': 'lib/net45/nunit.framework.dll', 'net471': 'lib/net45/nunit.framework.dll', 'net472': 'lib/net45/nunit.framework.dll', 'netstandard1.4': 'lib/netstandard1.4/nunit.framework.dll', 'netstandard1.5': 'lib/netstandard1.4/nunit.framework.dll', 'netstandard1.6': 'lib/netstandard1.4/nunit.framework.dll', 'netstandard2.0': 'lib/netstandard2.0/nunit.framework.dll'}, mono_lib='lib/net45/nunit.framework.dll', core_files={'netcoreapp2.0': ['lib/netstandard2.0/nunit.framework.dll', 'lib/netstandard2.0/nunit.framework.pdb', 'lib/netstandard2.0/nunit.framework.xml'], 'netcoreapp2.1': ['lib/netstandard2.0/nunit.framework.dll', 'lib/netstandard2.0/nunit.framework.pdb', 'lib/netstandard2.0/nunit.framework.xml']}, net_files={'net45': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net451': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net452': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net46': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net461': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net462': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net47': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net471': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'net472': ['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'], 'netstandard1.4': ['lib/netstandard1.4/nunit.framework.dll', 'lib/netstandard1.4/nunit.framework.pdb', 'lib/netstandard1.4/nunit.framework.xml'], 'netstandard1.5': ['lib/netstandard1.4/nunit.framework.dll', 'lib/netstandard1.4/nunit.framework.pdb', 'lib/netstandard1.4/nunit.framework.xml'], 'netstandard1.6': ['lib/netstandard1.4/nunit.framework.dll', 'lib/netstandard1.4/nunit.framework.pdb', 'lib/netstandard1.4/nunit.framework.xml'], 'netstandard2.0': ['lib/netstandard2.0/nunit.framework.dll', 'lib/netstandard2.0/nunit.framework.pdb', 'lib/netstandard2.0/nunit.framework.xml']}, mono_files=['lib/net45/nunit.framework.dll', 'lib/net45/nunit.framework.pdb', 'lib/net45/nunit.framework.xml'])
nuget_package(name='nunit.consolerunner', package='nunit.consolerunner', version='3.10.0', sha256='e852dad9a2ec1bd3ee48f3a6be68c7e2322582eaee710c439092c32087f49e84', core_lib={'netcoreapp2.0': 'tools/Mono.Cecil.dll', 'netcoreapp2.1': 'tools/Mono.Cecil.dll'}, net_lib={'net45': 'tools/Mono.Cecil.dll', 'net451': 'tools/Mono.Cecil.dll', 'net452': 'tools/Mono.Cecil.dll', 'net46': 'tools/Mono.Cecil.dll', 'net461': 'tools/Mono.Cecil.dll', 'net462': 'tools/Mono.Cecil.dll', 'net47': 'tools/Mono.Cecil.dll', 'net471': 'tools/Mono.Cecil.dll', 'net472': 'tools/Mono.Cecil.dll', 'netstandard1.0': 'tools/Mono.Cecil.dll', 'netstandard1.1': 'tools/Mono.Cecil.dll', 'netstandard1.2': 'tools/Mono.Cecil.dll', 'netstandard1.3': 'tools/Mono.Cecil.dll', 'netstandard1.4': 'tools/Mono.Cecil.dll', 'netstandard1.5': 'tools/Mono.Cecil.dll', 'netstandard1.6': 'tools/Mono.Cecil.dll', 'netstandard2.0': 'tools/Mono.Cecil.dll'}, mono_lib='tools/Mono.Cecil.dll', core_tool={'netcoreapp2.0': 'tools/nunit3-console.exe', 'netcoreapp2.1': 'tools/nunit3-console.exe'}, net_tool={'net45': 'tools/nunit3-console.exe', 'net451': 'tools/nunit3-console.exe', 'net452': 'tools/nunit3-console.exe', 'net46': 'tools/nunit3-console.exe', 'net461': 'tools/nunit3-console.exe', 'net462': 'tools/nunit3-console.exe', 'net47': 'tools/nunit3-console.exe', 'net471': 'tools/nunit3-console.exe', 'net472': 'tools/nunit3-console.exe', 'netstandard1.0': 'tools/nunit3-console.exe', 'netstandard1.1': 'tools/nunit3-console.exe', 'netstandard1.2': 'tools/nunit3-console.exe', 'netstandard1.3': 'tools/nunit3-console.exe', 'netstandard1.4': 'tools/nunit3-console.exe', 'netstandard1.5': 'tools/nunit3-console.exe', 'netstandard1.6': 'tools/nunit3-console.exe', 'netstandard2.0': 'tools/nunit3-console.exe'}, mono_tool='tools/nunit3-console.exe', core_files={'netcoreapp2.0': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netcoreapp2.1': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config']}, net_files={'net45': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net451': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net452': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net46': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net461': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net462': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net47': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net471': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'net472': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.0': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.1': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.2': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.3': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.4': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.5': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard1.6': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'], 'netstandard2.0': ['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config']}, mono_files=['tools/Mono.Cecil.dll', 'tools/nunit-agent-x86.exe', 'tools/nunit-agent-x86.exe.config', 'tools/nunit-agent.exe', 'tools/nunit-agent.exe.config', 'tools/nunit.engine.api.dll', 'tools/nunit.engine.api.xml', 'tools/nunit.engine.dll', 'tools/nunit.nuget.addins', 'tools/nunit3-console.exe', 'tools/nunit3-console.exe.config'])
return |
target_num = int(input())
sum_nums = 0
while sum_nums < target_num:
input_num = int(input())
sum_nums += input_num
print(sum_nums) | target_num = int(input())
sum_nums = 0
while sum_nums < target_num:
input_num = int(input())
sum_nums += input_num
print(sum_nums) |
class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
if len(grid) <= 0 or grid is None:
return 0
rows = len(grid)
cols = len(grid[0])
for r in range(rows):
for c in range(cols):
if r==0 and c==0:
continue
if r-1<0:
grid[r][c] = grid[r][c] + grid[r][c-1]
elif c-1<0:
grid[r][c] = grid[r][c] + grid[r-1][c]
else:
grid[r][c] = grid[r][c] + min(grid[r-1][c], grid[r][c-1])
return grid[rows-1][cols-1]
| class Solution:
def min_path_sum(self, grid: List[List[int]]) -> int:
if len(grid) <= 0 or grid is None:
return 0
rows = len(grid)
cols = len(grid[0])
for r in range(rows):
for c in range(cols):
if r == 0 and c == 0:
continue
if r - 1 < 0:
grid[r][c] = grid[r][c] + grid[r][c - 1]
elif c - 1 < 0:
grid[r][c] = grid[r][c] + grid[r - 1][c]
else:
grid[r][c] = grid[r][c] + min(grid[r - 1][c], grid[r][c - 1])
return grid[rows - 1][cols - 1] |
n1=input()
def OddEvenSum(n1):
listNum=[]
for j in range(0,len(n1)):
listNum.append(int(n1[j]))
oddSum=0; evenSum=0
for k in range(0,len(listNum)):
if listNum[k]%2==0:
evenSum+=listNum[k]
else:
oddSum+=listNum[k]
print(f"Odd sum = {oddSum}, Even sum = {evenSum}")
OddEvenSum(n1)
| n1 = input()
def odd_even_sum(n1):
list_num = []
for j in range(0, len(n1)):
listNum.append(int(n1[j]))
odd_sum = 0
even_sum = 0
for k in range(0, len(listNum)):
if listNum[k] % 2 == 0:
even_sum += listNum[k]
else:
odd_sum += listNum[k]
print(f'Odd sum = {oddSum}, Even sum = {evenSum}')
odd_even_sum(n1) |
# -*- coding: utf-8 -*-
'''
Created on Aug-31-19 10:07:28
@author: hustcc/webhookit
'''
# This means:
# When get a webhook request from `repo_name` on branch `branch_name`,
# will exec SCRIPT on servers config in the array.
WEBHOOKIT_CONFIGURE = {
# a web hook request can trigger multiple servers.
'repo_name/branch_name': [{
# if exec shell on local server, keep empty.
'HOST': '', # will exec shell on which server.
'PORT': '', # ssh port, default is 22.
'USER': '', # linux user name
'PWD': '', # user password or private key.
# The webhook shell script path.
'SCRIPT': '/home/hustcc/exec_hook_shell.sh'
}]
}
| """
Created on Aug-31-19 10:07:28
@author: hustcc/webhookit
"""
webhookit_configure = {'repo_name/branch_name': [{'HOST': '', 'PORT': '', 'USER': '', 'PWD': '', 'SCRIPT': '/home/hustcc/exec_hook_shell.sh'}]} |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraFeedback.msg"
services_str = ""
pkg_name = "fetchit_challenge"
dependencies_str = "actionlib_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "fetchit_challenge;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg;actionlib_msgs;/opt/ros/melodic/share/actionlib_msgs/cmake/../msg;std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| messages_str = '/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SchunkMachineFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraAction.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraActionFeedback.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraGoal.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraResult.msg;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg/SickCameraFeedback.msg'
services_str = ''
pkg_name = 'fetchit_challenge'
dependencies_str = 'actionlib_msgs'
langs = 'gencpp;geneus;genlisp;gennodejs;genpy'
dep_include_paths_str = 'fetchit_challenge;/home/lachlan/catkin_ws/devel/share/fetchit_challenge/msg;actionlib_msgs;/opt/ros/melodic/share/actionlib_msgs/cmake/../msg;std_msgs;/opt/ros/melodic/share/std_msgs/cmake/../msg'
python_executable = '/usr/bin/python2'
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = '/opt/ros/melodic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py' |
'''
Lab 0, Task 2. Archakov Vsevolod
GitHub link: https://github.com/SevkavTV/Lab0_Task2.git
'''
def validate_lst(element: list) -> bool:
'''
Return True if element is valid and False in other case
>>> validate_lst([1, 1])
False
'''
for item in range(1, 10):
if element.count(item) > 1:
return False
return True
def valid_row_column(board: list) -> bool:
'''
Return True if all rows and columns are valid and False in other case
>>> valid_row_column([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
for row in range(9):
row_lst = []
column_lst = []
# iterate both through all columns and rows
for column in range(9):
if board[row][column] != '*' and board[row][column] != ' ':
row_lst.append(int(board[row][column]))
if board[column][row] != '*' and board[column][row] != ' ':
column_lst.append(int(board[column][row]))
# validate lists (column, row) with values
if not validate_lst(row_lst) or not validate_lst(column_lst):
return False
return True
def valid_angle(board: list) -> bool:
'''
Return True if all colors are valid and False in other case
>>> valid_angle([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
True
>>> valid_angle([ \
"**** ****", \
"***11****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
for row in range(4, -1, -1):
angle = []
# iterate through each color in a column
for column in range(4 - row, 9 - row):
if board[column][row] != '*' and board[column][row] != ' ':
angle.append(int(board[column][row]))
# iterate through each color in a row
for column in range(row + 1, row + 5):
if board[8 - row][column] != '*' and board[8 - row][column] != ' ':
angle.append(int(board[8 - row][column]))
if not validate_lst(angle):
return False
return True
def validate_board(board: list) -> bool:
'''
Return True if board is valid and False in other case
>>> validate_board([ \
"**** ****", \
"***1 ****", \
"** 3****", \
"* 4 1****", \
" 9 5 ", \
" 6 83 *", \
"3 1 **", \
" 8 2***", \
" 2 ****" \
])
False
'''
if not valid_row_column(board) or not valid_angle(board):
return False
return True
| """
Lab 0, Task 2. Archakov Vsevolod
GitHub link: https://github.com/SevkavTV/Lab0_Task2.git
"""
def validate_lst(element: list) -> bool:
"""
Return True if element is valid and False in other case
>>> validate_lst([1, 1])
False
"""
for item in range(1, 10):
if element.count(item) > 1:
return False
return True
def valid_row_column(board: list) -> bool:
"""
Return True if all rows and columns are valid and False in other case
>>> valid_row_column([ "**** ****", "***1 ****", "** 3****", "* 4 1****", " 9 5 ", " 6 83 *", "3 1 **", " 8 2***", " 2 ****" ])
False
"""
for row in range(9):
row_lst = []
column_lst = []
for column in range(9):
if board[row][column] != '*' and board[row][column] != ' ':
row_lst.append(int(board[row][column]))
if board[column][row] != '*' and board[column][row] != ' ':
column_lst.append(int(board[column][row]))
if not validate_lst(row_lst) or not validate_lst(column_lst):
return False
return True
def valid_angle(board: list) -> bool:
"""
Return True if all colors are valid and False in other case
>>> valid_angle([ "**** ****", "***1 ****", "** 3****", "* 4 1****", " 9 5 ", " 6 83 *", "3 1 **", " 8 2***", " 2 ****" ])
True
>>> valid_angle([ "**** ****", "***11****", "** 3****", "* 4 1****", " 9 5 ", " 6 83 *", "3 1 **", " 8 2***", " 2 ****" ])
False
"""
for row in range(4, -1, -1):
angle = []
for column in range(4 - row, 9 - row):
if board[column][row] != '*' and board[column][row] != ' ':
angle.append(int(board[column][row]))
for column in range(row + 1, row + 5):
if board[8 - row][column] != '*' and board[8 - row][column] != ' ':
angle.append(int(board[8 - row][column]))
if not validate_lst(angle):
return False
return True
def validate_board(board: list) -> bool:
"""
Return True if board is valid and False in other case
>>> validate_board([ "**** ****", "***1 ****", "** 3****", "* 4 1****", " 9 5 ", " 6 83 *", "3 1 **", " 8 2***", " 2 ****" ])
False
"""
if not valid_row_column(board) or not valid_angle(board):
return False
return True |
si, sj = map(int, input().split())
T = []
for i in range(50):
t = list(map(int, input().split()))
T.append(t)
P = []
for i in range(50):
p = list(map(int, input().split()))
P.append(p)
chack = [[0] * 50 for i in range(50)]
chack[si][sj] = -1
move = [(1, 0), (-1, 0), (0, 1), (0, -1)]
for i, j in move:
if si+i != -1 and si+i != 50 and sj+j != -1 and sj+j != 50:
if T[si+i][sj+j] == T[si][sj]:
chack[si+i][sj+j] = -1
break
ans = [""]*1250
move_s = ["D", "U", "R", "L"]
cnt = 0
move_r = [(1, 0), (-1, 0), (0, 1000), (0, -1)]
move_l = [(1, 0), (-1, 0), (0, 1), (0, -1000)]
rl = 0
while True:
if sj == 0:
rl = 1
elif sj == 49:
rl = 0
koho = -1
mx = -1
koho_i = -1
koho_j = -1
for m in range(4):
if rl == 0:
i, j = move_r[m]
else:
i, j = move_l[m]
if si+i > -1 and si+i < 50 and sj+j > -1 and sj+j < 50:
if chack[si+i][sj+j] != -1:
if P[si+i][sj+j] > mx:
koho = m
mx = P[si+i][sj+j]
koho_i = i
koho_j = j
if koho == -1:
break
si += koho_i
sj += koho_j
ans[cnt] = move_s[koho]
chack[si][sj] = -1
cnt += 1
for i, j in move:
if si+i > -1 and si+i < 50 and sj+j > -1 and sj+j < 50:
if T[si+i][sj+j] == T[si][sj]:
chack[si+i][sj+j] = -1
break
print(''.join(ans))
| (si, sj) = map(int, input().split())
t = []
for i in range(50):
t = list(map(int, input().split()))
T.append(t)
p = []
for i in range(50):
p = list(map(int, input().split()))
P.append(p)
chack = [[0] * 50 for i in range(50)]
chack[si][sj] = -1
move = [(1, 0), (-1, 0), (0, 1), (0, -1)]
for (i, j) in move:
if si + i != -1 and si + i != 50 and (sj + j != -1) and (sj + j != 50):
if T[si + i][sj + j] == T[si][sj]:
chack[si + i][sj + j] = -1
break
ans = [''] * 1250
move_s = ['D', 'U', 'R', 'L']
cnt = 0
move_r = [(1, 0), (-1, 0), (0, 1000), (0, -1)]
move_l = [(1, 0), (-1, 0), (0, 1), (0, -1000)]
rl = 0
while True:
if sj == 0:
rl = 1
elif sj == 49:
rl = 0
koho = -1
mx = -1
koho_i = -1
koho_j = -1
for m in range(4):
if rl == 0:
(i, j) = move_r[m]
else:
(i, j) = move_l[m]
if si + i > -1 and si + i < 50 and (sj + j > -1) and (sj + j < 50):
if chack[si + i][sj + j] != -1:
if P[si + i][sj + j] > mx:
koho = m
mx = P[si + i][sj + j]
koho_i = i
koho_j = j
if koho == -1:
break
si += koho_i
sj += koho_j
ans[cnt] = move_s[koho]
chack[si][sj] = -1
cnt += 1
for (i, j) in move:
if si + i > -1 and si + i < 50 and (sj + j > -1) and (sj + j < 50):
if T[si + i][sj + j] == T[si][sj]:
chack[si + i][sj + j] = -1
break
print(''.join(ans)) |
DECIMALS = {"GNG-8d7e05" : 1000000000000000000,
"MEX-4183e7" : 1000000000000000000,
"LKMEX-9acade" : 1000000000000000000,
"WATER-104d38" : 1000000000000000000}
TOKEN_TYPE = {"GNG-8d7e05" : "token",
"MEX-4183e7" : "token",
"WARMY-cc922b": "NFT",
"LKMEX-9acade" : "META",
"WATER-104d38" : "token",
"COLORS-14cff1" : "NFT"}
AUTHORIZED_TOKENS = ["GNG-8d7e05",
"MEX-4183e7",
"WARMY-cc922b",
"LKMEX-9acade",
"WATER-104d38",
"COLORS-14cff1"]
TOKEN_TYPE_U8 = {"Fungible" : "00",
"NonFungible" : "01",
"SemiFungible" : "02",
"Meta" : "03"}
| decimals = {'GNG-8d7e05': 1000000000000000000, 'MEX-4183e7': 1000000000000000000, 'LKMEX-9acade': 1000000000000000000, 'WATER-104d38': 1000000000000000000}
token_type = {'GNG-8d7e05': 'token', 'MEX-4183e7': 'token', 'WARMY-cc922b': 'NFT', 'LKMEX-9acade': 'META', 'WATER-104d38': 'token', 'COLORS-14cff1': 'NFT'}
authorized_tokens = ['GNG-8d7e05', 'MEX-4183e7', 'WARMY-cc922b', 'LKMEX-9acade', 'WATER-104d38', 'COLORS-14cff1']
token_type_u8 = {'Fungible': '00', 'NonFungible': '01', 'SemiFungible': '02', 'Meta': '03'} |
class Mime(object):
def __init__(self,content_type, category, extension, stream=False, use_file_name=False):
self.content_type = content_type
self.category = category
self.extension = extension
self.stream = stream
self.use_file_name = use_file_name
class Mimes(object):
@staticmethod
def all():
return [
Mime("application/javascript","scripts",".js"),
Mime("text/javascript","scripts",".js"),
Mime("application/x-javascript","scripts",".js"),
Mime("text/css","styles",".css"),
Mime("application/json","data",".json"),
Mime("text/json","data",".json"),
Mime("text/x-json","data",".xml"),
Mime("application/xml","data",".xml"),
Mime("text/xml","data",".xml"),
Mime("application/rss+xml","data",".xml"),
Mime("text/plain","data",".txt"),
Mime("image/jpg","images",".jpg", True),
Mime("image/jpeg","images",".jpg", True),
Mime("image/png","images",".png", True),
Mime("image/gif","images",".gif", True),
Mime("image/bmp","images",".bmp", True),
Mime("image/tiff","images",".tiff", True),
Mime("image/x-icon","images",".ico", True),
Mime("image/vnd.microsoft.icon","images",".ico",True),
Mime("font/woff","fonts",".woff",True,True),
Mime("font/woff2","fonts",".woff2",True,True),
Mime("application/font-woff","fonts",".woff",True,True),
Mime("application/font-woff2","fonts",".woff2",True,True),
Mime("image/svg+xml","fonts",".svg", True,True),
Mime("application/octet-stream","fonts","ttf",True,True),
Mime("application/octet-stream","fonts","eot",True,True),
Mime("application/vnd.ms-fontobject","fonts","eot",True,True)
]
@staticmethod
def by_content_type(content_type):
if content_type:
m = filter(lambda x: x.content_type.lower() == content_type.lower(), Mimes.all())
if len(m) > 0:
return m[0]
return False
@staticmethod
def by_extension(extension):
if extension:
m = filter(lambda x: x.extension.lower() == extension.lower(),Mimes.all())
if len(m) > 0:
return m[0]
return False
| class Mime(object):
def __init__(self, content_type, category, extension, stream=False, use_file_name=False):
self.content_type = content_type
self.category = category
self.extension = extension
self.stream = stream
self.use_file_name = use_file_name
class Mimes(object):
@staticmethod
def all():
return [mime('application/javascript', 'scripts', '.js'), mime('text/javascript', 'scripts', '.js'), mime('application/x-javascript', 'scripts', '.js'), mime('text/css', 'styles', '.css'), mime('application/json', 'data', '.json'), mime('text/json', 'data', '.json'), mime('text/x-json', 'data', '.xml'), mime('application/xml', 'data', '.xml'), mime('text/xml', 'data', '.xml'), mime('application/rss+xml', 'data', '.xml'), mime('text/plain', 'data', '.txt'), mime('image/jpg', 'images', '.jpg', True), mime('image/jpeg', 'images', '.jpg', True), mime('image/png', 'images', '.png', True), mime('image/gif', 'images', '.gif', True), mime('image/bmp', 'images', '.bmp', True), mime('image/tiff', 'images', '.tiff', True), mime('image/x-icon', 'images', '.ico', True), mime('image/vnd.microsoft.icon', 'images', '.ico', True), mime('font/woff', 'fonts', '.woff', True, True), mime('font/woff2', 'fonts', '.woff2', True, True), mime('application/font-woff', 'fonts', '.woff', True, True), mime('application/font-woff2', 'fonts', '.woff2', True, True), mime('image/svg+xml', 'fonts', '.svg', True, True), mime('application/octet-stream', 'fonts', 'ttf', True, True), mime('application/octet-stream', 'fonts', 'eot', True, True), mime('application/vnd.ms-fontobject', 'fonts', 'eot', True, True)]
@staticmethod
def by_content_type(content_type):
if content_type:
m = filter(lambda x: x.content_type.lower() == content_type.lower(), Mimes.all())
if len(m) > 0:
return m[0]
return False
@staticmethod
def by_extension(extension):
if extension:
m = filter(lambda x: x.extension.lower() == extension.lower(), Mimes.all())
if len(m) > 0:
return m[0]
return False |
_base_ = './classifier.py'
model = dict(
type='TaskIncrementalLwF',
head=dict(
type='TaskIncLwfHead'
)
)
| _base_ = './classifier.py'
model = dict(type='TaskIncrementalLwF', head=dict(type='TaskIncLwfHead')) |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Make subpackages available:
__all__ = ['blockstorage', 'compute', 'config', 'database', 'dns', 'firewall', 'identity', 'images', 'loadbalancer', 'networking', 'objectstorage', 'vpnaas']
| __all__ = ['blockstorage', 'compute', 'config', 'database', 'dns', 'firewall', 'identity', 'images', 'loadbalancer', 'networking', 'objectstorage', 'vpnaas'] |
DWARVES_NUM = 9
dwarves = [int(input()) for _ in range(DWARVES_NUM)]
sum = sum(dwarves)
two_fake_sum = sum - 100
for i in range(DWARVES_NUM):
for j in range(DWARVES_NUM):
if i != j and dwarves[i] + dwarves[j] == two_fake_sum:
fake1 = i
fake2 = j
dwarves.pop(fake1)
dwarves.pop(fake2)
print('\n'.join([str(x) for x in dwarves]))
# Better solution (by CianLR):
#
# from itertools import combinations
#
# dvs = [int(input()) for _ in range(9)]
# for selects in combinations(dvs, 7):
# if sum(selects) == 100:
# print('\n'.join([str(x) for x in selects]))
# break | dwarves_num = 9
dwarves = [int(input()) for _ in range(DWARVES_NUM)]
sum = sum(dwarves)
two_fake_sum = sum - 100
for i in range(DWARVES_NUM):
for j in range(DWARVES_NUM):
if i != j and dwarves[i] + dwarves[j] == two_fake_sum:
fake1 = i
fake2 = j
dwarves.pop(fake1)
dwarves.pop(fake2)
print('\n'.join([str(x) for x in dwarves])) |
'''
Since lists are mutable, this means that we will be using lists for
things where we might intend to manipulate the list of data, so how
can we do that? Turns out we can do all sorts of things.
We can add, remove, count, sort, search, and do quite a few other things
to python lists.
'''
# first we need an example list:
x = [1,6,3,2,6,1,2,6,7]
# lets add something.
# we can do .append, which will add something to the end of the list, like:
x.append(55)
print(x)
# what if you have an exact place that you'd like to put something in a list?
x.insert(2,33)
print(x)
# so the reason that went in the 3rd place, again, is because we start
# at the zero element, then go 1, 2.. .and so on.
# now we can remove things... .remove will remove the first instance
# of the value in the list. If it doesn't exist, there will be an error:
x.remove(6)
print(x)
#next, remember how we can reference an item by index in a list? like:
print(x[5])
# well we can also search for this index, like so:
print(x.index(1))
# now here, we can see that it actually returned a 0, meaning the
# first element was a 1... when we knew there was another with an index of 5.
# so instead we might want to know before-hand how many examples there are.
print(x.count(1))
# so we see there are actually 2 of them
# we can also sort the list:
x.sort()
print(x)
# what if these were strings? like:
y = ['Jan','Dan','Bob','Alice','Jon','Jack']
y.sort()
print(y)
# noooo problemo!
# You can also just reverse a list, but, before we go there, we should note that
# all of these manipulations are mutating the list. keep in mind that any
# changes you make will modify the existing variable.
| """
Since lists are mutable, this means that we will be using lists for
things where we might intend to manipulate the list of data, so how
can we do that? Turns out we can do all sorts of things.
We can add, remove, count, sort, search, and do quite a few other things
to python lists.
"""
x = [1, 6, 3, 2, 6, 1, 2, 6, 7]
x.append(55)
print(x)
x.insert(2, 33)
print(x)
x.remove(6)
print(x)
print(x[5])
print(x.index(1))
print(x.count(1))
x.sort()
print(x)
y = ['Jan', 'Dan', 'Bob', 'Alice', 'Jon', 'Jack']
y.sort()
print(y) |
while True:
try:
a = float(input())
except EOFError:
break
print('|{:.4f}|={:.4f}'.format(a, abs(a)))
| while True:
try:
a = float(input())
except EOFError:
break
print('|{:.4f}|={:.4f}'.format(a, abs(a))) |
# lower case because appears as wcl section and wcl sections are converted to lowercase
META_HEADERS = 'h'
META_COMPUTE = 'c'
META_WCL = 'w'
META_COPY = 'p'
META_REQUIRED = 'r'
META_OPTIONAL = 'o'
FILETYPE_METADATA = 'filetype_metadata'
FILE_HEADER_INFO = 'file_header'
USE_HOME_ARCHIVE_INPUT = 'use_home_archive_input'
USE_HOME_ARCHIVE_OUTPUT = 'use_home_archive_output'
FM_PREFER_UNCOMPRESSED = [None, '.fz', '.gz']
FM_PREFER_COMPRESSED = ['.fz', '.gz', None]
FM_UNCOMPRESSED_ONLY = [None]
FM_COMPRESSED_ONLY = ['.fz', '.gz']
FM_EXIT_SUCCESS = 0
FM_EXIT_FAILURE = 1
FW_MSG_ERROR = 3
FW_MSG_WARN = 2
FW_MSG_INFO = 1
PROV_USED_TABLE = "OPM_USED"
#PROV_WGB_TABLE = "OPM_WAS_GENERATED_BY"
PROV_WDF_TABLE = "OPM_WAS_DERIVED_FROM"
PROV_TASK_ID = "TASK_ID"
PROV_FILE_ID = "DESFILE_ID"
PROV_PARENT_ID = "PARENT_DESFILE_ID"
PROV_CHILD_ID = "CHILD_DESFILE_ID"
| meta_headers = 'h'
meta_compute = 'c'
meta_wcl = 'w'
meta_copy = 'p'
meta_required = 'r'
meta_optional = 'o'
filetype_metadata = 'filetype_metadata'
file_header_info = 'file_header'
use_home_archive_input = 'use_home_archive_input'
use_home_archive_output = 'use_home_archive_output'
fm_prefer_uncompressed = [None, '.fz', '.gz']
fm_prefer_compressed = ['.fz', '.gz', None]
fm_uncompressed_only = [None]
fm_compressed_only = ['.fz', '.gz']
fm_exit_success = 0
fm_exit_failure = 1
fw_msg_error = 3
fw_msg_warn = 2
fw_msg_info = 1
prov_used_table = 'OPM_USED'
prov_wdf_table = 'OPM_WAS_DERIVED_FROM'
prov_task_id = 'TASK_ID'
prov_file_id = 'DESFILE_ID'
prov_parent_id = 'PARENT_DESFILE_ID'
prov_child_id = 'CHILD_DESFILE_ID' |
# -*- coding: utf-8 -*-
def main():
m, n = map(int, input().split())
unit = m // n
print(m - (unit * (n - 1)))
if __name__ == '__main__':
main()
| def main():
(m, n) = map(int, input().split())
unit = m // n
print(m - unit * (n - 1))
if __name__ == '__main__':
main() |
rows = int(input())
number = 1
for i in range(rows):
for j in range(i + 1):
print(number, end=' ')
number += 1
print()
| rows = int(input())
number = 1
for i in range(rows):
for j in range(i + 1):
print(number, end=' ')
number += 1
print() |
# list examples
z=[1,2,3]
assert z.__class__ == list
assert isinstance(z,list)
assert str(z)=="[1, 2, 3]"
a=['spam','eggs',100,1234]
print(a[:2]+['bacon',2*2])
print(3*a[:3]+['Boo!'])
print(a[:])
a[2]=a[2]+23
print(a)
a[0:2]=[1,12]
print(a)
a[0:2]=[]
print(a)
a[1:1]=['bletch','xyzzy']
print(a)
a[:0]=a
print(a)
a[:]=[]
print(a)
a.extend('ab')
print(a)
a.extend([1,2,33])
print(a)
# tuple
t = (1,8)
assert t.__class__ == tuple
assert isinstance(t,tuple)
assert str(t)=='(1, 8)'
| z = [1, 2, 3]
assert z.__class__ == list
assert isinstance(z, list)
assert str(z) == '[1, 2, 3]'
a = ['spam', 'eggs', 100, 1234]
print(a[:2] + ['bacon', 2 * 2])
print(3 * a[:3] + ['Boo!'])
print(a[:])
a[2] = a[2] + 23
print(a)
a[0:2] = [1, 12]
print(a)
a[0:2] = []
print(a)
a[1:1] = ['bletch', 'xyzzy']
print(a)
a[:0] = a
print(a)
a[:] = []
print(a)
a.extend('ab')
print(a)
a.extend([1, 2, 33])
print(a)
t = (1, 8)
assert t.__class__ == tuple
assert isinstance(t, tuple)
assert str(t) == '(1, 8)' |
Name=input("enter the name ")
l=len(Name)
s=""
while l>0:
s+=Name[l-1]
l-=1
if s==Name:
print(" Name Plindrome "+Name)
else:
print("Name not Plindrome "+Name) | name = input('enter the name ')
l = len(Name)
s = ''
while l > 0:
s += Name[l - 1]
l -= 1
if s == Name:
print(' Name Plindrome ' + Name)
else:
print('Name not Plindrome ' + Name) |
#
# PySNMP MIB module OPENBSD-SENSORS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPENBSD-SENSORS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:25:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
openBSD, = mibBuilder.importSymbols("OPENBSD-BASE-MIB", "openBSD")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Gauge32, ModuleIdentity, IpAddress, MibIdentifier, Integer32, Bits, iso, Unsigned32, NotificationType, TimeTicks, Counter64, ObjectIdentity, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "ModuleIdentity", "IpAddress", "MibIdentifier", "Integer32", "Bits", "iso", "Unsigned32", "NotificationType", "TimeTicks", "Counter64", "ObjectIdentity", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
sensorsMIBObjects = ModuleIdentity((1, 3, 6, 1, 4, 1, 30155, 2))
sensorsMIBObjects.setRevisions(('2012-09-20 00:00', '2012-01-31 00:00', '2008-12-23 00:00',))
if mibBuilder.loadTexts: sensorsMIBObjects.setLastUpdated('201209200000Z')
if mibBuilder.loadTexts: sensorsMIBObjects.setOrganization('OpenBSD')
sensors = MibIdentifier((1, 3, 6, 1, 4, 1, 30155, 2, 1))
sensorNumber = MibScalar((1, 3, 6, 1, 4, 1, 30155, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorNumber.setStatus('current')
sensorTable = MibTable((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2), )
if mibBuilder.loadTexts: sensorTable.setStatus('current')
sensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1), ).setIndexNames((0, "OPENBSD-SENSORS-MIB", "sensorIndex"))
if mibBuilder.loadTexts: sensorEntry.setStatus('current')
sensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorIndex.setStatus('current')
sensorDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorDescr.setStatus('current')
sensorType = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 3), 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))).clone(namedValues=NamedValues(("temperature", 0), ("fan", 1), ("voltsdc", 2), ("voltsac", 3), ("resistance", 4), ("power", 5), ("current", 6), ("watthour", 7), ("amphour", 8), ("indicator", 9), ("raw", 10), ("percent", 11), ("illuminance", 12), ("drive", 13), ("timedelta", 14), ("humidity", 15), ("freq", 16), ("angle", 17), ("distance", 18), ("pressure", 19), ("accel", 20)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorType.setStatus('current')
sensorDevice = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorDevice.setStatus('current')
sensorValue = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 5), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorValue.setStatus('current')
sensorUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 6), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorUnits.setStatus('current')
sensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("unspecified", 0), ("ok", 1), ("warn", 2), ("critical", 3), ("unknown", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sensorStatus.setStatus('current')
mibBuilder.exportSymbols("OPENBSD-SENSORS-MIB", sensorType=sensorType, sensorEntry=sensorEntry, sensors=sensors, sensorTable=sensorTable, sensorDevice=sensorDevice, sensorUnits=sensorUnits, sensorNumber=sensorNumber, sensorStatus=sensorStatus, sensorValue=sensorValue, sensorIndex=sensorIndex, sensorsMIBObjects=sensorsMIBObjects, PYSNMP_MODULE_ID=sensorsMIBObjects, sensorDescr=sensorDescr)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint')
(open_bsd,) = mibBuilder.importSymbols('OPENBSD-BASE-MIB', 'openBSD')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(gauge32, module_identity, ip_address, mib_identifier, integer32, bits, iso, unsigned32, notification_type, time_ticks, counter64, object_identity, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'ModuleIdentity', 'IpAddress', 'MibIdentifier', 'Integer32', 'Bits', 'iso', 'Unsigned32', 'NotificationType', 'TimeTicks', 'Counter64', 'ObjectIdentity', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
sensors_mib_objects = module_identity((1, 3, 6, 1, 4, 1, 30155, 2))
sensorsMIBObjects.setRevisions(('2012-09-20 00:00', '2012-01-31 00:00', '2008-12-23 00:00'))
if mibBuilder.loadTexts:
sensorsMIBObjects.setLastUpdated('201209200000Z')
if mibBuilder.loadTexts:
sensorsMIBObjects.setOrganization('OpenBSD')
sensors = mib_identifier((1, 3, 6, 1, 4, 1, 30155, 2, 1))
sensor_number = mib_scalar((1, 3, 6, 1, 4, 1, 30155, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorNumber.setStatus('current')
sensor_table = mib_table((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2))
if mibBuilder.loadTexts:
sensorTable.setStatus('current')
sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1)).setIndexNames((0, 'OPENBSD-SENSORS-MIB', 'sensorIndex'))
if mibBuilder.loadTexts:
sensorEntry.setStatus('current')
sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorIndex.setStatus('current')
sensor_descr = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorDescr.setStatus('current')
sensor_type = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 3), 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))).clone(namedValues=named_values(('temperature', 0), ('fan', 1), ('voltsdc', 2), ('voltsac', 3), ('resistance', 4), ('power', 5), ('current', 6), ('watthour', 7), ('amphour', 8), ('indicator', 9), ('raw', 10), ('percent', 11), ('illuminance', 12), ('drive', 13), ('timedelta', 14), ('humidity', 15), ('freq', 16), ('angle', 17), ('distance', 18), ('pressure', 19), ('accel', 20)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorType.setStatus('current')
sensor_device = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorDevice.setStatus('current')
sensor_value = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 5), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorValue.setStatus('current')
sensor_units = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 6), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorUnits.setStatus('current')
sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 30155, 2, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('unspecified', 0), ('ok', 1), ('warn', 2), ('critical', 3), ('unknown', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sensorStatus.setStatus('current')
mibBuilder.exportSymbols('OPENBSD-SENSORS-MIB', sensorType=sensorType, sensorEntry=sensorEntry, sensors=sensors, sensorTable=sensorTable, sensorDevice=sensorDevice, sensorUnits=sensorUnits, sensorNumber=sensorNumber, sensorStatus=sensorStatus, sensorValue=sensorValue, sensorIndex=sensorIndex, sensorsMIBObjects=sensorsMIBObjects, PYSNMP_MODULE_ID=sensorsMIBObjects, sensorDescr=sensorDescr) |
# Define a Product class. Objects should have 3 variables for price, code, and quantity
class Product:
def __init__(self, price=0.00, code='aaaa', quantity=0):
self.price = price
self.code = code
self.quantity = quantity
def __repr__(self):
return f'Product({self.price!r}, {self.code!r}, {self.quantity!r})'
def __str__(self):
return f'The product code is: {self.code}'
# Define an inventory class and a function for calculating the total value of the inventory.
class Inventory:
def __init__(self):
self.products_list = []
def add_product(self, product):
self.products_list.append(product)
return self.products_list
def total_value(self):
return sum(product.price * product.quantity for product in self.products_list)
| class Product:
def __init__(self, price=0.0, code='aaaa', quantity=0):
self.price = price
self.code = code
self.quantity = quantity
def __repr__(self):
return f'Product({self.price!r}, {self.code!r}, {self.quantity!r})'
def __str__(self):
return f'The product code is: {self.code}'
class Inventory:
def __init__(self):
self.products_list = []
def add_product(self, product):
self.products_list.append(product)
return self.products_list
def total_value(self):
return sum((product.price * product.quantity for product in self.products_list)) |
class Solution:
def sumZero(self, n: int) -> List[int]:
ans = []
for i in range(n//2):
ans.append(i+1)
ans.append(-i-1)
if n % 2 != 0:
ans.append(0)
return ans | class Solution:
def sum_zero(self, n: int) -> List[int]:
ans = []
for i in range(n // 2):
ans.append(i + 1)
ans.append(-i - 1)
if n % 2 != 0:
ans.append(0)
return ans |
class A:
def __init__(self, a):
pass
class B(A):
def __init__(self, a=1):
A.__init__(self, a) | class A:
def __init__(self, a):
pass
class B(A):
def __init__(self, a=1):
A.__init__(self, a) |
#!/usr/bin/env python
# coding: utf-8
# # section 7: Exceptions :
#
# ### writer : Faranak Alikhah 1954128
# ### 1.Exceptions :
#
#
# In[ ]:
n=int(input())
for i in range(n):
try:
a,b=map(int,input().split())
print(a//b)# need to be integer
except Exception as e:
print ("Error Code:",e)
#
| n = int(input())
for i in range(n):
try:
(a, b) = map(int, input().split())
print(a // b)
except Exception as e:
print('Error Code:', e) |
class ContainerSpec():
REPLACEABLE_ARGS = ['randcon', 'oracle_server', 'bootnodes', 'genesis_time']
def __init__(self, cname, cimage, centry):
self.name = cname
self.image = cimage
self.entrypoint = centry
self.args = {}
def append_args(self, **kwargs):
self.args.update(kwargs)
def update_deployment(self, dep):
containers = dep['spec']['template']['spec']['containers']
for c in containers:
if c['name'] == self.name:
#update the container specs
if self.image:
c['image'] = self.image
if self.entrypoint:
c['command'] = self.entrypoint
c['args'] = self._update_args(c['args'], **(self.args))
break
return dep
def _update_args(self, args_input_yaml, **kwargs):
for k in kwargs:
replaced = False
if k in ContainerSpec.REPLACEABLE_ARGS:
for i, arg in enumerate(args_input_yaml):
if arg[2:].replace('-', '_') == k:
# replace the value
args_input_yaml[i + 1] = kwargs[k]
replaced = True
break
if not replaced:
args_input_yaml += (['--{0}'.format(k.replace('_', '-')), kwargs[k]])
return args_input_yaml
| class Containerspec:
replaceable_args = ['randcon', 'oracle_server', 'bootnodes', 'genesis_time']
def __init__(self, cname, cimage, centry):
self.name = cname
self.image = cimage
self.entrypoint = centry
self.args = {}
def append_args(self, **kwargs):
self.args.update(kwargs)
def update_deployment(self, dep):
containers = dep['spec']['template']['spec']['containers']
for c in containers:
if c['name'] == self.name:
if self.image:
c['image'] = self.image
if self.entrypoint:
c['command'] = self.entrypoint
c['args'] = self._update_args(c['args'], **self.args)
break
return dep
def _update_args(self, args_input_yaml, **kwargs):
for k in kwargs:
replaced = False
if k in ContainerSpec.REPLACEABLE_ARGS:
for (i, arg) in enumerate(args_input_yaml):
if arg[2:].replace('-', '_') == k:
args_input_yaml[i + 1] = kwargs[k]
replaced = True
break
if not replaced:
args_input_yaml += ['--{0}'.format(k.replace('_', '-')), kwargs[k]]
return args_input_yaml |
#
# This file is part of snmpresponder software.
#
# Copyright (c) 2019, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/snmpresponder/license.html
#
class Numbers(object):
current = 0
def getId(self):
self.current += 1
if self.current > 65535:
self.current = 0
return self.current
numbers = Numbers()
getId = numbers.getId
| class Numbers(object):
current = 0
def get_id(self):
self.current += 1
if self.current > 65535:
self.current = 0
return self.current
numbers = numbers()
get_id = numbers.getId |
def _get_dart_host(config):
elb_params = config['cloudformation_stacks']['elb']['boto_args']['Parameters']
rs_name_param = _get_element(elb_params, 'ParameterKey', 'RecordSetName')
dart_host = rs_name_param['ParameterValue']
return dart_host
def _get_element(l, k, v):
for e in l:
if e[k] == v:
return e
raise Exception('element with %s: %s not found' % (k, v)) | def _get_dart_host(config):
elb_params = config['cloudformation_stacks']['elb']['boto_args']['Parameters']
rs_name_param = _get_element(elb_params, 'ParameterKey', 'RecordSetName')
dart_host = rs_name_param['ParameterValue']
return dart_host
def _get_element(l, k, v):
for e in l:
if e[k] == v:
return e
raise exception('element with %s: %s not found' % (k, v)) |
# Calculate the smallest Multiple
def smallestMultiple(n):
smallestMultiple = 1
while(True):
evenMultiple = True
for i in range(1, int(n) + 1):
if(smallestMultiple % i != 0):
evenMultiple = False
break
if(evenMultiple):
return smallestMultiple
smallestMultiple += 1
if __name__ == "__main__":
# Get user input
n = input("Enter an integer n: ")
print("Smallest positive number that is evenly divisible by all of the numbers from 1 to", n)
# Print results
print("{:,}".format(smallestMultiple(n)))
| def smallest_multiple(n):
smallest_multiple = 1
while True:
even_multiple = True
for i in range(1, int(n) + 1):
if smallestMultiple % i != 0:
even_multiple = False
break
if evenMultiple:
return smallestMultiple
smallest_multiple += 1
if __name__ == '__main__':
n = input('Enter an integer n: ')
print('Smallest positive number that is evenly divisible by all of the numbers from 1 to', n)
print('{:,}'.format(smallest_multiple(n))) |
class User:
'''
Class that generates a new instance of a passlocker user
__init__method that helps us to define properties for our objects
Args:
name:New user name
password:New user password
'''
user_list=[]
def __init__(self,name,password):
self.name=name
self.password=password
def save_user(self):
'''
save user method that saves user obj into user list
'''
User.user_list.append(self)
@classmethod
def display_users(cls):
'''
Method that returns users using the password locker app
'''
return cls.user_list
@classmethod
def user_verified(cls,name,password):
'''
Method that takes a user login info & returns a boolean true if the details are correct
Args:
name:User name to search
password:password to match
Return:
Boolean true if they both match to a user & false if it doesn't
'''
for user in cls.user_list:
if user.name==name and user.password==password:
return True
return False
| class User:
"""
Class that generates a new instance of a passlocker user
__init__method that helps us to define properties for our objects
Args:
name:New user name
password:New user password
"""
user_list = []
def __init__(self, name, password):
self.name = name
self.password = password
def save_user(self):
"""
save user method that saves user obj into user list
"""
User.user_list.append(self)
@classmethod
def display_users(cls):
"""
Method that returns users using the password locker app
"""
return cls.user_list
@classmethod
def user_verified(cls, name, password):
"""
Method that takes a user login info & returns a boolean true if the details are correct
Args:
name:User name to search
password:password to match
Return:
Boolean true if they both match to a user & false if it doesn't
"""
for user in cls.user_list:
if user.name == name and user.password == password:
return True
return False |
# output: ok
def foo(x):
yield 1
yield x
iter = foo(2)
assert next(iter) == 1
assert next(iter) == 2
def bar(array):
for x in array:
yield 2 * x
iter = bar([1, 2, 3])
assert next(iter) == 2
assert next(iter) == 4
assert next(iter) == 6
def collect(iter):
result = []
for x in iter:
result.append(x)
return result
r = collect(foo(0))
assert len(r) == 2
assert r[0] == 1
assert r[1] == 0
def noExcept(f):
try:
yield f()
except:
yield None
def a():
return 1
def b():
raise Exception()
assert(collect(noExcept(a)) == [1])
assert(collect(noExcept(b)) == [None])
print('ok')
| def foo(x):
yield 1
yield x
iter = foo(2)
assert next(iter) == 1
assert next(iter) == 2
def bar(array):
for x in array:
yield (2 * x)
iter = bar([1, 2, 3])
assert next(iter) == 2
assert next(iter) == 4
assert next(iter) == 6
def collect(iter):
result = []
for x in iter:
result.append(x)
return result
r = collect(foo(0))
assert len(r) == 2
assert r[0] == 1
assert r[1] == 0
def no_except(f):
try:
yield f()
except:
yield None
def a():
return 1
def b():
raise exception()
assert collect(no_except(a)) == [1]
assert collect(no_except(b)) == [None]
print('ok') |
RTL_LANGUAGES = {
'he', 'ar', 'arc', 'dv', 'fa', 'ha',
'khw', 'ks', 'ku', 'ps', 'ur', 'yi',
}
COLORS = {
'primary': '#0d6efd', 'blue': '#0d6efd', 'secondary': '#6c757d',
'success': '#198754', 'green': '#198754', 'danger': '#dc3545',
'red': '#dc3545', 'warning': '#ffc107', 'yellow': '#ffc107',
'info': '#0dcaf0', 'cyan': '#0dcaf0', 'gray': '#adb5bd',
'dark': '#000', 'black': '#000', 'white': '#fff',
'teal': '#20c997', 'orange': '#fd7e14', 'pink': '#d63384',
'purple': '#6f42c1', 'indigo': '#6610f2', 'light': '#f8f9fa',
}
DEFAULT_ASSESSMENT_BUTTON_COLOR = '#0d6efd' # primary
DEFAULT_ASSESSMENT_BUTTON_ACTIVE_COLOR = '#fff' # white
| rtl_languages = {'he', 'ar', 'arc', 'dv', 'fa', 'ha', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi'}
colors = {'primary': '#0d6efd', 'blue': '#0d6efd', 'secondary': '#6c757d', 'success': '#198754', 'green': '#198754', 'danger': '#dc3545', 'red': '#dc3545', 'warning': '#ffc107', 'yellow': '#ffc107', 'info': '#0dcaf0', 'cyan': '#0dcaf0', 'gray': '#adb5bd', 'dark': '#000', 'black': '#000', 'white': '#fff', 'teal': '#20c997', 'orange': '#fd7e14', 'pink': '#d63384', 'purple': '#6f42c1', 'indigo': '#6610f2', 'light': '#f8f9fa'}
default_assessment_button_color = '#0d6efd'
default_assessment_button_active_color = '#fff' |
COINBASE_MATURITY = 500
INITIAL_BLOCK_REWARD = 20000
INITIAL_HASH_UTXO_ROOT = 0x21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856
INITIAL_HASH_STATE_ROOT = 0x9514771014c9ae803d8cea2731b2063e83de44802b40dce2d06acd02d0ff65e9
MAX_BLOCK_BASE_SIZE = 2000000
BEERCHAIN_MIN_GAS_PRICE = 40
BEERCHAIN_MIN_GAS_PRICE_STR = "0.00000040"
NUM_DEFAULT_DGP_CONTRACTS = 5
MPOS_PARTICIPANTS = 10
LAST_POW_BLOCK = 5000
BLOCKS_BEFORE_PROPOSAL_EXPIRATION = 216
| coinbase_maturity = 500
initial_block_reward = 20000
initial_hash_utxo_root = 15245045886785142666142131387346645761820096966537625257719794791382855444566
initial_hash_state_root = 67430773121565887155292377391296365627809276935091884798145281674911173010921
max_block_base_size = 2000000
beerchain_min_gas_price = 40
beerchain_min_gas_price_str = '0.00000040'
num_default_dgp_contracts = 5
mpos_participants = 10
last_pow_block = 5000
blocks_before_proposal_expiration = 216 |
# 461. Hamming Distance
class Solution:
def hammingDistance(self, x: int, y: int) -> int:
return bin(x ^ y).count('1') | class Solution:
def hamming_distance(self, x: int, y: int) -> int:
return bin(x ^ y).count('1') |
MATERIALS = [
"gold", "silver", "bronze", "copper",
"iron", "titanium", "stone", "lithium",
"wood", "glass", "bone", "diamond"
]
PLACES = [
"cemetery", "forest", "desert", "cave",
"church", "school", "montain", "waterfall",
"prison", "garden", "crossroad", "nexus"
]
AMULETS = [
"warrior", "thief", "wizard", "barbarian",
"scholar", "paladin", "mimic", "blacksmith",
"sailor", "priest", "artist", "stargazer"
]
POTIONS = [
"stealth", "valor", "rage", "blood",
"youth", "fortune", "knowledge", "strife",
"secret", "oblivion", "purity", "justice"
]
SUMMONINGS = [
"pact", "conjuration", "connection", "calling",
"luring", "convincing", "order", "will",
"challenge", "binding", "capturing", "offering"
]
BANISHMENTS = [
"burning", "burying", "banishing", "cutting",
"sealing", "hanging", "drowing", "purifying"
]
| materials = ['gold', 'silver', 'bronze', 'copper', 'iron', 'titanium', 'stone', 'lithium', 'wood', 'glass', 'bone', 'diamond']
places = ['cemetery', 'forest', 'desert', 'cave', 'church', 'school', 'montain', 'waterfall', 'prison', 'garden', 'crossroad', 'nexus']
amulets = ['warrior', 'thief', 'wizard', 'barbarian', 'scholar', 'paladin', 'mimic', 'blacksmith', 'sailor', 'priest', 'artist', 'stargazer']
potions = ['stealth', 'valor', 'rage', 'blood', 'youth', 'fortune', 'knowledge', 'strife', 'secret', 'oblivion', 'purity', 'justice']
summonings = ['pact', 'conjuration', 'connection', 'calling', 'luring', 'convincing', 'order', 'will', 'challenge', 'binding', 'capturing', 'offering']
banishments = ['burning', 'burying', 'banishing', 'cutting', 'sealing', 'hanging', 'drowing', 'purifying'] |
# -*- coding: utf-8 -*-
a = ['doge1','doge2','doge3','doge4']
print(a)
| a = ['doge1', 'doge2', 'doge3', 'doge4']
print(a) |
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
lo, hi = 0, len(nums)
while lo < hi:
mid = lo + (hi - lo) // 2
if nums[mid] < target:
lo = mid + 1
elif nums[mid] > target:
hi = mid
else:
return mid
return lo | class Solution:
def search_insert(self, nums: List[int], target: int) -> int:
(lo, hi) = (0, len(nums))
while lo < hi:
mid = lo + (hi - lo) // 2
if nums[mid] < target:
lo = mid + 1
elif nums[mid] > target:
hi = mid
else:
return mid
return lo |
#
# PySNMP MIB module DAVID-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DAVID-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:21:39 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection")
DisplayString, = mibBuilder.importSymbols("RFC1155-SMI", "DisplayString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
enterprises, IpAddress, Integer32, iso, ModuleIdentity, Gauge32, Counter32, Bits, ObjectIdentity, MibIdentifier, TimeTicks, Counter64, Unsigned32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "enterprises", "IpAddress", "Integer32", "iso", "ModuleIdentity", "Gauge32", "Counter32", "Bits", "ObjectIdentity", "MibIdentifier", "TimeTicks", "Counter64", "Unsigned32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
david = MibIdentifier((1, 3, 6, 1, 4, 1, 66))
products = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1))
davidExpressNet = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3))
exNetChassis = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 1))
exNetEthernet = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2))
exNetConcentrator = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1))
exNetModule = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2))
exNetPort = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3))
exNetMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4))
exNetChassisType = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("m6102", 2), ("m6103", 3), ("m6310tel", 4), ("m6310rj", 5), ("m6318st", 6), ("m6318sma", 7), ("reserved", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisType.setStatus('mandatory')
exNetChassisBkplType = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("expressNet", 2), ("reserved", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisBkplType.setStatus('mandatory')
exNetChassisBkplRev = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisBkplRev.setStatus('mandatory')
exNetChassisPsType = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("standardXfmr", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisPsType.setStatus('mandatory')
exNetChassisPsStatus = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("failed", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisPsStatus.setStatus('mandatory')
exNetSlotConfigTable = MibTable((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7), )
if mibBuilder.loadTexts: exNetSlotConfigTable.setStatus('mandatory')
exNetSlotConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1), ).setIndexNames((0, "DAVID-MIB", "exNetSlotIndex"))
if mibBuilder.loadTexts: exNetSlotConfigEntry.setStatus('mandatory')
exNetSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetSlotIndex.setStatus('mandatory')
exNetBoardId = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetBoardId.setStatus('mandatory')
exNetBoardType = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("empty", 1), ("other", 2), ("m6203", 3), ("m6201", 4), ("m6311", 5), ("m6312", 6), ("m6313st", 7), ("m6313sma", 8), ("m6006", 9), ("reserved", 10)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetBoardType.setStatus('mandatory')
exNetBoardDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetBoardDescr.setStatus('mandatory')
exNetBoardNumOfPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 40), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetBoardNumOfPorts.setStatus('mandatory')
exNetChassisCapacity = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetChassisCapacity.setStatus('mandatory')
exNetConcRetimingStatus = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcRetimingStatus.setStatus('mandatory')
exNetConcFrmsRxOk = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcFrmsRxOk.setStatus('mandatory')
exNetConcOctetsRxOk = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcOctetsRxOk.setStatus('mandatory')
exNetConcMcastFrmsRxOk = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcMcastFrmsRxOk.setStatus('mandatory')
exNetConcBcastFrmsRxOk = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcBcastFrmsRxOk.setStatus('mandatory')
exNetConcColls = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcColls.setStatus('mandatory')
exNetConcTooLongErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcTooLongErrors.setStatus('mandatory')
exNetConcRuntErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcRuntErrors.setStatus('mandatory')
exNetConcFragErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcFragErrors.setStatus('mandatory')
exNetConcAlignErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcAlignErrors.setStatus('mandatory')
exNetConcFcsErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcFcsErrors.setStatus('mandatory')
exNetConcLateCollErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcLateCollErrors.setStatus('mandatory')
exNetConcName = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 40), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetConcName.setStatus('mandatory')
exNetConcJabbers = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcJabbers.setStatus('mandatory')
exNetConcSfdErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcSfdErrors.setStatus('mandatory')
exNetConcAutoPartitions = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcAutoPartitions.setStatus('mandatory')
exNetConcOosBitRate = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcOosBitRate.setStatus('mandatory')
exNetConcLinkErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcLinkErrors.setStatus('mandatory')
exNetConcFrameErrors = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcFrameErrors.setStatus('mandatory')
exNetConcNetUtilization = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 47), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcNetUtilization.setStatus('mandatory')
exNetConcResetTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 48), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetConcResetTimeStamp.setStatus('mandatory')
exNetConcReset = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 49), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noReset", 1), ("reset", 2), ("resetToDefault", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetConcReset.setStatus('mandatory')
exNetModuleTable = MibTable((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1), )
if mibBuilder.loadTexts: exNetModuleTable.setStatus('mandatory')
exNetModuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1), ).setIndexNames((0, "DAVID-MIB", "exNetModuleIndex"))
if mibBuilder.loadTexts: exNetModuleEntry.setStatus('mandatory')
exNetModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleIndex.setStatus('mandatory')
exNetModuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("empty", 1), ("other", 2), ("m6203", 3), ("m6201", 4), ("m6311", 5), ("m6312", 6), ("m6313st", 7), ("m6313sma", 8), ("m6006", 9), ("reserved", 10)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleType.setStatus('mandatory')
exNetModuleHwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleHwVer.setStatus('mandatory')
exNetModuleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ok", 1), ("noComms", 2), ("selfTestFail", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleStatus.setStatus('mandatory')
exNetModuleReset = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noReset", 1), ("reset", 2), ("resetToDefault", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetModuleReset.setStatus('mandatory')
exNetModulePartStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("partition", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetModulePartStatus.setStatus('mandatory')
exNetModuleNmCntlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notNmControl", 1), ("nmControl", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleNmCntlStatus.setStatus('mandatory')
exNetModulePsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("fail", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModulePsStatus.setStatus('mandatory')
exNetModuleFrmsRxOk = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFrmsRxOk.setStatus('mandatory')
exNetModuleOctetsRxOk = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleOctetsRxOk.setStatus('mandatory')
exNetModuleColls = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleColls.setStatus('mandatory')
exNetModuleTooLongErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleTooLongErrors.setStatus('mandatory')
exNetModuleRuntErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleRuntErrors.setStatus('mandatory')
exNetModuleAlignErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleAlignErrors.setStatus('mandatory')
exNetModuleFcsErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFcsErrors.setStatus('mandatory')
exNetModuleLateCollErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleLateCollErrors.setStatus('mandatory')
exNetModuleName = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 40), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetModuleName.setStatus('mandatory')
exNetModuleJabbers = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleJabbers.setStatus('mandatory')
exNetModuleSfdErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleSfdErrors.setStatus('mandatory')
exNetModuleAutoPartitions = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleAutoPartitions.setStatus('mandatory')
exNetModuleOosBitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleOosBitRate.setStatus('mandatory')
exNetModuleLinkErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleLinkErrors.setStatus('mandatory')
exNetModuleFrameErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFrameErrors.setStatus('mandatory')
exNetModuleFragErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFragErrors.setStatus('mandatory')
exNetModulePortConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 48), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetModulePortConfig.setStatus('mandatory')
exNetModuleLinkStatConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 49), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetModuleLinkStatConfig.setStatus('mandatory')
exNetModuleResetTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 50), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleResetTimeStamp.setStatus('mandatory')
exNetModuleLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 51), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleLinkStatus.setStatus('mandatory')
exNetModuleFwVer = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 52), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFwVer.setStatus('mandatory')
exNetModuleFwFeaturePkg = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 53), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleFwFeaturePkg.setStatus('mandatory')
exNetModuleSelfTestResult = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 54), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetModuleSelfTestResult.setStatus('mandatory')
exNetPortTable = MibTable((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1), )
if mibBuilder.loadTexts: exNetPortTable.setStatus('mandatory')
exNetPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1), ).setIndexNames((0, "DAVID-MIB", "exNetPortModuleIndex"), (0, "DAVID-MIB", "exNetPortIndex"))
if mibBuilder.loadTexts: exNetPortEntry.setStatus('mandatory')
exNetPortModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortModuleIndex.setStatus('mandatory')
exNetPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortIndex.setStatus('mandatory')
exNetPortLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("on", 2), ("other", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortLinkStatus.setStatus('mandatory')
exNetPortPartStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("partition", 2), ("autoPartition", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortPartStatus.setStatus('mandatory')
exNetPortJabberStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("jabbering", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortJabberStatus.setStatus('mandatory')
exNetPortFrmsRxOk = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortFrmsRxOk.setStatus('mandatory')
exNetPortOctetsRxOk = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortOctetsRxOk.setStatus('mandatory')
exNetPortColls = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortColls.setStatus('mandatory')
exNetPortTooLongErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortTooLongErrors.setStatus('mandatory')
exNetPortRuntErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortRuntErrors.setStatus('mandatory')
exNetPortAlignErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortAlignErrors.setStatus('mandatory')
exNetPortFcsErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortFcsErrors.setStatus('mandatory')
exNetPortLateCollErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortLateCollErrors.setStatus('mandatory')
exNetPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 40), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortName.setStatus('mandatory')
exNetPortJabbers = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortJabbers.setStatus('mandatory')
exNetPortSfdErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortSfdErrors.setStatus('mandatory')
exNetPortAutoPartitions = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortAutoPartitions.setStatus('mandatory')
exNetPortOosBitRate = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortOosBitRate.setStatus('mandatory')
exNetPortLinkErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortLinkErrors.setStatus('mandatory')
exNetPortFrameErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortFrameErrors.setStatus('mandatory')
exNetPortFragErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortFragErrors.setStatus('mandatory')
exNetPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("repeater", 2), ("tenBasefAsync", 3), ("tenBasefSync", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortType.setStatus('mandatory')
exNetPortMauType = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 49), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("tenBase5", 2), ("tenBaseT", 3), ("fOIRL", 4), ("tenBase2", 5), ("tenBaseFA", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetPortMauType.setStatus('mandatory')
exNetPortConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3), ("txDisabled", 4), ("rxDisabled", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortConfig.setStatus('mandatory')
exNetPortLinkStatConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disabled", 3), ("txDisabled", 4), ("rxDisabled", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortLinkStatConfig.setStatus('mandatory')
exNetPortPolarity = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 52), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("positive", 2), ("negative", 3), ("txNegative", 4), ("rxNegative", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortPolarity.setStatus('mandatory')
exNetPortTransmitTest = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetPortTransmitTest.setStatus('mandatory')
exNetMgmtType = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("tbd", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtType.setStatus('mandatory')
exNetMgmtHwVer = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtHwVer.setStatus('mandatory')
exNetMgmtFwVer = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtFwVer.setStatus('mandatory')
exNetMgmtSwMajorVer = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtSwMajorVer.setStatus('mandatory')
exNetMgmtSwMinorVer = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtSwMinorVer.setStatus('mandatory')
exNetMgmtStatus = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("offline", 1), ("online", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtStatus.setStatus('mandatory')
exNetMgmtMode = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtMode.setStatus('mandatory')
exNetMgmtReset = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notReset", 1), ("reset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtReset.setStatus('mandatory')
exNetMgmtRestart = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notRestart", 1), ("restart", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtRestart.setStatus('mandatory')
exNetMgmtIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 10), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtIpAddr.setStatus('mandatory')
exNetMgmtNetMask = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 11), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtNetMask.setStatus('mandatory')
exNetMgmtDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 12), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtDefaultGateway.setStatus('mandatory')
exNetMgmtBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 17), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: exNetMgmtBaudRate.setStatus('mandatory')
exNetMgmtLocation = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 19), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtLocation.setStatus('mandatory')
exNetMgmtTrapReceiverTable = MibTable((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20), )
if mibBuilder.loadTexts: exNetMgmtTrapReceiverTable.setStatus('mandatory')
exNetMgmtTrapReceiverEntry = MibTableRow((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1), ).setIndexNames((0, "DAVID-MIB", "exNetMgmtTrapReceiverAddr"))
if mibBuilder.loadTexts: exNetMgmtTrapReceiverEntry.setStatus('mandatory')
exNetMgmtTrapType = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtTrapType.setStatus('mandatory')
exNetMgmtTrapReceiverAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtTrapReceiverAddr.setStatus('mandatory')
exNetMgmtTrapReceiverComm = MibTableColumn((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtTrapReceiverComm.setStatus('mandatory')
exNetMgmtAuthTrap = MibScalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: exNetMgmtAuthTrap.setStatus('mandatory')
mibBuilder.exportSymbols("DAVID-MIB", exNetPortIndex=exNetPortIndex, exNetMgmtAuthTrap=exNetMgmtAuthTrap, exNetModuleOctetsRxOk=exNetModuleOctetsRxOk, exNetPortPartStatus=exNetPortPartStatus, exNetPortSfdErrors=exNetPortSfdErrors, exNetConcAlignErrors=exNetConcAlignErrors, exNetPortLinkErrors=exNetPortLinkErrors, exNetChassisCapacity=exNetChassisCapacity, exNetMgmtHwVer=exNetMgmtHwVer, exNetConcAutoPartitions=exNetConcAutoPartitions, exNetMgmtDefaultGateway=exNetMgmtDefaultGateway, exNetChassisBkplType=exNetChassisBkplType, exNetMgmt=exNetMgmt, exNetModuleRuntErrors=exNetModuleRuntErrors, exNetMgmtTrapReceiverTable=exNetMgmtTrapReceiverTable, exNetConcentrator=exNetConcentrator, exNetConcLinkErrors=exNetConcLinkErrors, exNetModuleSfdErrors=exNetModuleSfdErrors, exNetModuleFwVer=exNetModuleFwVer, exNetModulePortConfig=exNetModulePortConfig, exNetChassisPsStatus=exNetChassisPsStatus, exNetModuleEntry=exNetModuleEntry, exNetPortLateCollErrors=exNetPortLateCollErrors, exNetModuleNmCntlStatus=exNetModuleNmCntlStatus, exNetMgmtFwVer=exNetMgmtFwVer, exNetConcResetTimeStamp=exNetConcResetTimeStamp, exNetModuleSelfTestResult=exNetModuleSelfTestResult, exNetModule=exNetModule, exNetMgmtLocation=exNetMgmtLocation, exNetSlotIndex=exNetSlotIndex, exNetModuleAutoPartitions=exNetModuleAutoPartitions, exNetSlotConfigTable=exNetSlotConfigTable, exNetPortPolarity=exNetPortPolarity, exNetPortJabberStatus=exNetPortJabberStatus, exNetConcJabbers=exNetConcJabbers, exNetPortTable=exNetPortTable, exNetMgmtMode=exNetMgmtMode, exNetMgmtTrapReceiverComm=exNetMgmtTrapReceiverComm, exNetMgmtSwMajorVer=exNetMgmtSwMajorVer, exNetBoardId=exNetBoardId, exNetConcOctetsRxOk=exNetConcOctetsRxOk, exNetModuleStatus=exNetModuleStatus, exNetMgmtStatus=exNetMgmtStatus, exNetMgmtReset=exNetMgmtReset, exNetModuleHwVer=exNetModuleHwVer, exNetModuleIndex=exNetModuleIndex, davidExpressNet=davidExpressNet, exNetConcBcastFrmsRxOk=exNetConcBcastFrmsRxOk, exNetPortLinkStatus=exNetPortLinkStatus, exNetConcMcastFrmsRxOk=exNetConcMcastFrmsRxOk, exNetModuleType=exNetModuleType, exNetConcLateCollErrors=exNetConcLateCollErrors, exNetMgmtSwMinorVer=exNetMgmtSwMinorVer, exNetPortFrmsRxOk=exNetPortFrmsRxOk, exNetModuleFrmsRxOk=exNetModuleFrmsRxOk, exNetPortColls=exNetPortColls, exNetModuleName=exNetModuleName, exNetModuleLinkStatConfig=exNetModuleLinkStatConfig, exNetConcRetimingStatus=exNetConcRetimingStatus, exNetModuleColls=exNetModuleColls, exNetPortTooLongErrors=exNetPortTooLongErrors, exNetConcOosBitRate=exNetConcOosBitRate, exNetMgmtBaudRate=exNetMgmtBaudRate, exNetPortModuleIndex=exNetPortModuleIndex, exNetBoardNumOfPorts=exNetBoardNumOfPorts, exNetPortFrameErrors=exNetPortFrameErrors, exNetConcSfdErrors=exNetConcSfdErrors, exNetMgmtTrapReceiverAddr=exNetMgmtTrapReceiverAddr, exNetModuleFragErrors=exNetModuleFragErrors, exNetChassisPsType=exNetChassisPsType, exNetBoardDescr=exNetBoardDescr, exNetPortEntry=exNetPortEntry, exNetModuleLateCollErrors=exNetModuleLateCollErrors, exNetPortMauType=exNetPortMauType, exNetConcReset=exNetConcReset, exNetModuleTable=exNetModuleTable, david=david, exNetModuleTooLongErrors=exNetModuleTooLongErrors, exNetSlotConfigEntry=exNetSlotConfigEntry, exNetModulePsStatus=exNetModulePsStatus, exNetModuleFwFeaturePkg=exNetModuleFwFeaturePkg, exNetConcFrameErrors=exNetConcFrameErrors, exNetPortOosBitRate=exNetPortOosBitRate, exNetConcFragErrors=exNetConcFragErrors, exNetConcTooLongErrors=exNetConcTooLongErrors, exNetModuleLinkStatus=exNetModuleLinkStatus, exNetChassisType=exNetChassisType, exNetModuleResetTimeStamp=exNetModuleResetTimeStamp, exNetPortAlignErrors=exNetPortAlignErrors, exNetPortFcsErrors=exNetPortFcsErrors, exNetBoardType=exNetBoardType, exNetEthernet=exNetEthernet, exNetPortType=exNetPortType, exNetConcRuntErrors=exNetConcRuntErrors, exNetConcColls=exNetConcColls, exNetConcFrmsRxOk=exNetConcFrmsRxOk, exNetModulePartStatus=exNetModulePartStatus, exNetPortName=exNetPortName, exNetPortTransmitTest=exNetPortTransmitTest, exNetPortJabbers=exNetPortJabbers, exNetMgmtIpAddr=exNetMgmtIpAddr, exNetPortConfig=exNetPortConfig, exNetModuleJabbers=exNetModuleJabbers, exNetPortLinkStatConfig=exNetPortLinkStatConfig, exNetMgmtNetMask=exNetMgmtNetMask, exNetPortOctetsRxOk=exNetPortOctetsRxOk, exNetModuleOosBitRate=exNetModuleOosBitRate, exNetModuleReset=exNetModuleReset, exNetModuleFrameErrors=exNetModuleFrameErrors, exNetPortAutoPartitions=exNetPortAutoPartitions, exNetModuleFcsErrors=exNetModuleFcsErrors, exNetMgmtTrapType=exNetMgmtTrapType, exNetChassis=exNetChassis, exNetConcName=exNetConcName, products=products, exNetModuleLinkErrors=exNetModuleLinkErrors, exNetModuleAlignErrors=exNetModuleAlignErrors, exNetMgmtType=exNetMgmtType, exNetConcFcsErrors=exNetConcFcsErrors, exNetMgmtTrapReceiverEntry=exNetMgmtTrapReceiverEntry, exNetPortFragErrors=exNetPortFragErrors, exNetPort=exNetPort, exNetMgmtRestart=exNetMgmtRestart, exNetConcNetUtilization=exNetConcNetUtilization, exNetChassisBkplRev=exNetChassisBkplRev, exNetPortRuntErrors=exNetPortRuntErrors)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_union, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection')
(display_string,) = mibBuilder.importSymbols('RFC1155-SMI', 'DisplayString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(enterprises, ip_address, integer32, iso, module_identity, gauge32, counter32, bits, object_identity, mib_identifier, time_ticks, counter64, unsigned32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'enterprises', 'IpAddress', 'Integer32', 'iso', 'ModuleIdentity', 'Gauge32', 'Counter32', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'TimeTicks', 'Counter64', 'Unsigned32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
david = mib_identifier((1, 3, 6, 1, 4, 1, 66))
products = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1))
david_express_net = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3))
ex_net_chassis = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 1))
ex_net_ethernet = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2))
ex_net_concentrator = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1))
ex_net_module = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2))
ex_net_port = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3))
ex_net_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4))
ex_net_chassis_type = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('m6102', 2), ('m6103', 3), ('m6310tel', 4), ('m6310rj', 5), ('m6318st', 6), ('m6318sma', 7), ('reserved', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisType.setStatus('mandatory')
ex_net_chassis_bkpl_type = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('expressNet', 2), ('reserved', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisBkplType.setStatus('mandatory')
ex_net_chassis_bkpl_rev = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisBkplRev.setStatus('mandatory')
ex_net_chassis_ps_type = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('standardXfmr', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisPsType.setStatus('mandatory')
ex_net_chassis_ps_status = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('failed', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisPsStatus.setStatus('mandatory')
ex_net_slot_config_table = mib_table((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7))
if mibBuilder.loadTexts:
exNetSlotConfigTable.setStatus('mandatory')
ex_net_slot_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1)).setIndexNames((0, 'DAVID-MIB', 'exNetSlotIndex'))
if mibBuilder.loadTexts:
exNetSlotConfigEntry.setStatus('mandatory')
ex_net_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetSlotIndex.setStatus('mandatory')
ex_net_board_id = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetBoardId.setStatus('mandatory')
ex_net_board_type = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('empty', 1), ('other', 2), ('m6203', 3), ('m6201', 4), ('m6311', 5), ('m6312', 6), ('m6313st', 7), ('m6313sma', 8), ('m6006', 9), ('reserved', 10)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetBoardType.setStatus('mandatory')
ex_net_board_descr = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetBoardDescr.setStatus('mandatory')
ex_net_board_num_of_ports = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 7, 1, 40), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetBoardNumOfPorts.setStatus('mandatory')
ex_net_chassis_capacity = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetChassisCapacity.setStatus('mandatory')
ex_net_conc_retiming_status = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcRetimingStatus.setStatus('mandatory')
ex_net_conc_frms_rx_ok = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcFrmsRxOk.setStatus('mandatory')
ex_net_conc_octets_rx_ok = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcOctetsRxOk.setStatus('mandatory')
ex_net_conc_mcast_frms_rx_ok = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcMcastFrmsRxOk.setStatus('mandatory')
ex_net_conc_bcast_frms_rx_ok = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcBcastFrmsRxOk.setStatus('mandatory')
ex_net_conc_colls = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcColls.setStatus('mandatory')
ex_net_conc_too_long_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcTooLongErrors.setStatus('mandatory')
ex_net_conc_runt_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcRuntErrors.setStatus('mandatory')
ex_net_conc_frag_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcFragErrors.setStatus('mandatory')
ex_net_conc_align_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcAlignErrors.setStatus('mandatory')
ex_net_conc_fcs_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcFcsErrors.setStatus('mandatory')
ex_net_conc_late_coll_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcLateCollErrors.setStatus('mandatory')
ex_net_conc_name = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 40), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetConcName.setStatus('mandatory')
ex_net_conc_jabbers = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcJabbers.setStatus('mandatory')
ex_net_conc_sfd_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcSfdErrors.setStatus('mandatory')
ex_net_conc_auto_partitions = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcAutoPartitions.setStatus('mandatory')
ex_net_conc_oos_bit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcOosBitRate.setStatus('mandatory')
ex_net_conc_link_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcLinkErrors.setStatus('mandatory')
ex_net_conc_frame_errors = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcFrameErrors.setStatus('mandatory')
ex_net_conc_net_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 47), octet_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcNetUtilization.setStatus('mandatory')
ex_net_conc_reset_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 48), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetConcResetTimeStamp.setStatus('mandatory')
ex_net_conc_reset = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 1, 49), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noReset', 1), ('reset', 2), ('resetToDefault', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetConcReset.setStatus('mandatory')
ex_net_module_table = mib_table((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1))
if mibBuilder.loadTexts:
exNetModuleTable.setStatus('mandatory')
ex_net_module_entry = mib_table_row((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1)).setIndexNames((0, 'DAVID-MIB', 'exNetModuleIndex'))
if mibBuilder.loadTexts:
exNetModuleEntry.setStatus('mandatory')
ex_net_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleIndex.setStatus('mandatory')
ex_net_module_type = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('empty', 1), ('other', 2), ('m6203', 3), ('m6201', 4), ('m6311', 5), ('m6312', 6), ('m6313st', 7), ('m6313sma', 8), ('m6006', 9), ('reserved', 10)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleType.setStatus('mandatory')
ex_net_module_hw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleHwVer.setStatus('mandatory')
ex_net_module_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ok', 1), ('noComms', 2), ('selfTestFail', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleStatus.setStatus('mandatory')
ex_net_module_reset = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noReset', 1), ('reset', 2), ('resetToDefault', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetModuleReset.setStatus('mandatory')
ex_net_module_part_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('partition', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetModulePartStatus.setStatus('mandatory')
ex_net_module_nm_cntl_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notNmControl', 1), ('nmControl', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleNmCntlStatus.setStatus('mandatory')
ex_net_module_ps_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('fail', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModulePsStatus.setStatus('mandatory')
ex_net_module_frms_rx_ok = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFrmsRxOk.setStatus('mandatory')
ex_net_module_octets_rx_ok = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleOctetsRxOk.setStatus('mandatory')
ex_net_module_colls = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleColls.setStatus('mandatory')
ex_net_module_too_long_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleTooLongErrors.setStatus('mandatory')
ex_net_module_runt_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleRuntErrors.setStatus('mandatory')
ex_net_module_align_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleAlignErrors.setStatus('mandatory')
ex_net_module_fcs_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFcsErrors.setStatus('mandatory')
ex_net_module_late_coll_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleLateCollErrors.setStatus('mandatory')
ex_net_module_name = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 40), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetModuleName.setStatus('mandatory')
ex_net_module_jabbers = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleJabbers.setStatus('mandatory')
ex_net_module_sfd_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleSfdErrors.setStatus('mandatory')
ex_net_module_auto_partitions = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleAutoPartitions.setStatus('mandatory')
ex_net_module_oos_bit_rate = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleOosBitRate.setStatus('mandatory')
ex_net_module_link_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleLinkErrors.setStatus('mandatory')
ex_net_module_frame_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFrameErrors.setStatus('mandatory')
ex_net_module_frag_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFragErrors.setStatus('mandatory')
ex_net_module_port_config = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 48), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetModulePortConfig.setStatus('mandatory')
ex_net_module_link_stat_config = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 49), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetModuleLinkStatConfig.setStatus('mandatory')
ex_net_module_reset_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 50), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleResetTimeStamp.setStatus('mandatory')
ex_net_module_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 51), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleLinkStatus.setStatus('mandatory')
ex_net_module_fw_ver = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 52), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFwVer.setStatus('mandatory')
ex_net_module_fw_feature_pkg = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 53), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleFwFeaturePkg.setStatus('mandatory')
ex_net_module_self_test_result = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 2, 1, 1, 54), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetModuleSelfTestResult.setStatus('mandatory')
ex_net_port_table = mib_table((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1))
if mibBuilder.loadTexts:
exNetPortTable.setStatus('mandatory')
ex_net_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1)).setIndexNames((0, 'DAVID-MIB', 'exNetPortModuleIndex'), (0, 'DAVID-MIB', 'exNetPortIndex'))
if mibBuilder.loadTexts:
exNetPortEntry.setStatus('mandatory')
ex_net_port_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortModuleIndex.setStatus('mandatory')
ex_net_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortIndex.setStatus('mandatory')
ex_net_port_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('on', 2), ('other', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortLinkStatus.setStatus('mandatory')
ex_net_port_part_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('partition', 2), ('autoPartition', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortPartStatus.setStatus('mandatory')
ex_net_port_jabber_status = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('jabbering', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortJabberStatus.setStatus('mandatory')
ex_net_port_frms_rx_ok = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortFrmsRxOk.setStatus('mandatory')
ex_net_port_octets_rx_ok = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortOctetsRxOk.setStatus('mandatory')
ex_net_port_colls = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortColls.setStatus('mandatory')
ex_net_port_too_long_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortTooLongErrors.setStatus('mandatory')
ex_net_port_runt_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortRuntErrors.setStatus('mandatory')
ex_net_port_align_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortAlignErrors.setStatus('mandatory')
ex_net_port_fcs_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortFcsErrors.setStatus('mandatory')
ex_net_port_late_coll_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortLateCollErrors.setStatus('mandatory')
ex_net_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 40), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortName.setStatus('mandatory')
ex_net_port_jabbers = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortJabbers.setStatus('mandatory')
ex_net_port_sfd_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortSfdErrors.setStatus('mandatory')
ex_net_port_auto_partitions = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortAutoPartitions.setStatus('mandatory')
ex_net_port_oos_bit_rate = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortOosBitRate.setStatus('mandatory')
ex_net_port_link_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortLinkErrors.setStatus('mandatory')
ex_net_port_frame_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortFrameErrors.setStatus('mandatory')
ex_net_port_frag_errors = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortFragErrors.setStatus('mandatory')
ex_net_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 48), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('repeater', 2), ('tenBasefAsync', 3), ('tenBasefSync', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortType.setStatus('mandatory')
ex_net_port_mau_type = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 49), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('tenBase5', 2), ('tenBaseT', 3), ('fOIRL', 4), ('tenBase2', 5), ('tenBaseFA', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetPortMauType.setStatus('mandatory')
ex_net_port_config = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3), ('txDisabled', 4), ('rxDisabled', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortConfig.setStatus('mandatory')
ex_net_port_link_stat_config = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 51), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disabled', 3), ('txDisabled', 4), ('rxDisabled', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortLinkStatConfig.setStatus('mandatory')
ex_net_port_polarity = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 52), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('positive', 2), ('negative', 3), ('txNegative', 4), ('rxNegative', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortPolarity.setStatus('mandatory')
ex_net_port_transmit_test = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 3, 1, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetPortTransmitTest.setStatus('mandatory')
ex_net_mgmt_type = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('tbd', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtType.setStatus('mandatory')
ex_net_mgmt_hw_ver = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtHwVer.setStatus('mandatory')
ex_net_mgmt_fw_ver = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtFwVer.setStatus('mandatory')
ex_net_mgmt_sw_major_ver = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtSwMajorVer.setStatus('mandatory')
ex_net_mgmt_sw_minor_ver = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtSwMinorVer.setStatus('mandatory')
ex_net_mgmt_status = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('offline', 1), ('online', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtStatus.setStatus('mandatory')
ex_net_mgmt_mode = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('primary', 1), ('secondary', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtMode.setStatus('mandatory')
ex_net_mgmt_reset = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notReset', 1), ('reset', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtReset.setStatus('mandatory')
ex_net_mgmt_restart = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notRestart', 1), ('restart', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtRestart.setStatus('mandatory')
ex_net_mgmt_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 10), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtIpAddr.setStatus('mandatory')
ex_net_mgmt_net_mask = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 11), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtNetMask.setStatus('mandatory')
ex_net_mgmt_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 12), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtDefaultGateway.setStatus('mandatory')
ex_net_mgmt_baud_rate = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 17), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
exNetMgmtBaudRate.setStatus('mandatory')
ex_net_mgmt_location = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 19), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtLocation.setStatus('mandatory')
ex_net_mgmt_trap_receiver_table = mib_table((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20))
if mibBuilder.loadTexts:
exNetMgmtTrapReceiverTable.setStatus('mandatory')
ex_net_mgmt_trap_receiver_entry = mib_table_row((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1)).setIndexNames((0, 'DAVID-MIB', 'exNetMgmtTrapReceiverAddr'))
if mibBuilder.loadTexts:
exNetMgmtTrapReceiverEntry.setStatus('mandatory')
ex_net_mgmt_trap_type = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('invalid', 2))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtTrapType.setStatus('mandatory')
ex_net_mgmt_trap_receiver_addr = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtTrapReceiverAddr.setStatus('mandatory')
ex_net_mgmt_trap_receiver_comm = mib_table_column((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 20, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(20, 20)).setFixedLength(20)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtTrapReceiverComm.setStatus('mandatory')
ex_net_mgmt_auth_trap = mib_scalar((1, 3, 6, 1, 4, 1, 66, 1, 3, 2, 4, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('enable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
exNetMgmtAuthTrap.setStatus('mandatory')
mibBuilder.exportSymbols('DAVID-MIB', exNetPortIndex=exNetPortIndex, exNetMgmtAuthTrap=exNetMgmtAuthTrap, exNetModuleOctetsRxOk=exNetModuleOctetsRxOk, exNetPortPartStatus=exNetPortPartStatus, exNetPortSfdErrors=exNetPortSfdErrors, exNetConcAlignErrors=exNetConcAlignErrors, exNetPortLinkErrors=exNetPortLinkErrors, exNetChassisCapacity=exNetChassisCapacity, exNetMgmtHwVer=exNetMgmtHwVer, exNetConcAutoPartitions=exNetConcAutoPartitions, exNetMgmtDefaultGateway=exNetMgmtDefaultGateway, exNetChassisBkplType=exNetChassisBkplType, exNetMgmt=exNetMgmt, exNetModuleRuntErrors=exNetModuleRuntErrors, exNetMgmtTrapReceiverTable=exNetMgmtTrapReceiverTable, exNetConcentrator=exNetConcentrator, exNetConcLinkErrors=exNetConcLinkErrors, exNetModuleSfdErrors=exNetModuleSfdErrors, exNetModuleFwVer=exNetModuleFwVer, exNetModulePortConfig=exNetModulePortConfig, exNetChassisPsStatus=exNetChassisPsStatus, exNetModuleEntry=exNetModuleEntry, exNetPortLateCollErrors=exNetPortLateCollErrors, exNetModuleNmCntlStatus=exNetModuleNmCntlStatus, exNetMgmtFwVer=exNetMgmtFwVer, exNetConcResetTimeStamp=exNetConcResetTimeStamp, exNetModuleSelfTestResult=exNetModuleSelfTestResult, exNetModule=exNetModule, exNetMgmtLocation=exNetMgmtLocation, exNetSlotIndex=exNetSlotIndex, exNetModuleAutoPartitions=exNetModuleAutoPartitions, exNetSlotConfigTable=exNetSlotConfigTable, exNetPortPolarity=exNetPortPolarity, exNetPortJabberStatus=exNetPortJabberStatus, exNetConcJabbers=exNetConcJabbers, exNetPortTable=exNetPortTable, exNetMgmtMode=exNetMgmtMode, exNetMgmtTrapReceiverComm=exNetMgmtTrapReceiverComm, exNetMgmtSwMajorVer=exNetMgmtSwMajorVer, exNetBoardId=exNetBoardId, exNetConcOctetsRxOk=exNetConcOctetsRxOk, exNetModuleStatus=exNetModuleStatus, exNetMgmtStatus=exNetMgmtStatus, exNetMgmtReset=exNetMgmtReset, exNetModuleHwVer=exNetModuleHwVer, exNetModuleIndex=exNetModuleIndex, davidExpressNet=davidExpressNet, exNetConcBcastFrmsRxOk=exNetConcBcastFrmsRxOk, exNetPortLinkStatus=exNetPortLinkStatus, exNetConcMcastFrmsRxOk=exNetConcMcastFrmsRxOk, exNetModuleType=exNetModuleType, exNetConcLateCollErrors=exNetConcLateCollErrors, exNetMgmtSwMinorVer=exNetMgmtSwMinorVer, exNetPortFrmsRxOk=exNetPortFrmsRxOk, exNetModuleFrmsRxOk=exNetModuleFrmsRxOk, exNetPortColls=exNetPortColls, exNetModuleName=exNetModuleName, exNetModuleLinkStatConfig=exNetModuleLinkStatConfig, exNetConcRetimingStatus=exNetConcRetimingStatus, exNetModuleColls=exNetModuleColls, exNetPortTooLongErrors=exNetPortTooLongErrors, exNetConcOosBitRate=exNetConcOosBitRate, exNetMgmtBaudRate=exNetMgmtBaudRate, exNetPortModuleIndex=exNetPortModuleIndex, exNetBoardNumOfPorts=exNetBoardNumOfPorts, exNetPortFrameErrors=exNetPortFrameErrors, exNetConcSfdErrors=exNetConcSfdErrors, exNetMgmtTrapReceiverAddr=exNetMgmtTrapReceiverAddr, exNetModuleFragErrors=exNetModuleFragErrors, exNetChassisPsType=exNetChassisPsType, exNetBoardDescr=exNetBoardDescr, exNetPortEntry=exNetPortEntry, exNetModuleLateCollErrors=exNetModuleLateCollErrors, exNetPortMauType=exNetPortMauType, exNetConcReset=exNetConcReset, exNetModuleTable=exNetModuleTable, david=david, exNetModuleTooLongErrors=exNetModuleTooLongErrors, exNetSlotConfigEntry=exNetSlotConfigEntry, exNetModulePsStatus=exNetModulePsStatus, exNetModuleFwFeaturePkg=exNetModuleFwFeaturePkg, exNetConcFrameErrors=exNetConcFrameErrors, exNetPortOosBitRate=exNetPortOosBitRate, exNetConcFragErrors=exNetConcFragErrors, exNetConcTooLongErrors=exNetConcTooLongErrors, exNetModuleLinkStatus=exNetModuleLinkStatus, exNetChassisType=exNetChassisType, exNetModuleResetTimeStamp=exNetModuleResetTimeStamp, exNetPortAlignErrors=exNetPortAlignErrors, exNetPortFcsErrors=exNetPortFcsErrors, exNetBoardType=exNetBoardType, exNetEthernet=exNetEthernet, exNetPortType=exNetPortType, exNetConcRuntErrors=exNetConcRuntErrors, exNetConcColls=exNetConcColls, exNetConcFrmsRxOk=exNetConcFrmsRxOk, exNetModulePartStatus=exNetModulePartStatus, exNetPortName=exNetPortName, exNetPortTransmitTest=exNetPortTransmitTest, exNetPortJabbers=exNetPortJabbers, exNetMgmtIpAddr=exNetMgmtIpAddr, exNetPortConfig=exNetPortConfig, exNetModuleJabbers=exNetModuleJabbers, exNetPortLinkStatConfig=exNetPortLinkStatConfig, exNetMgmtNetMask=exNetMgmtNetMask, exNetPortOctetsRxOk=exNetPortOctetsRxOk, exNetModuleOosBitRate=exNetModuleOosBitRate, exNetModuleReset=exNetModuleReset, exNetModuleFrameErrors=exNetModuleFrameErrors, exNetPortAutoPartitions=exNetPortAutoPartitions, exNetModuleFcsErrors=exNetModuleFcsErrors, exNetMgmtTrapType=exNetMgmtTrapType, exNetChassis=exNetChassis, exNetConcName=exNetConcName, products=products, exNetModuleLinkErrors=exNetModuleLinkErrors, exNetModuleAlignErrors=exNetModuleAlignErrors, exNetMgmtType=exNetMgmtType, exNetConcFcsErrors=exNetConcFcsErrors, exNetMgmtTrapReceiverEntry=exNetMgmtTrapReceiverEntry, exNetPortFragErrors=exNetPortFragErrors, exNetPort=exNetPort, exNetMgmtRestart=exNetMgmtRestart, exNetConcNetUtilization=exNetConcNetUtilization, exNetChassisBkplRev=exNetChassisBkplRev, exNetPortRuntErrors=exNetPortRuntErrors) |
journey_cost = float(input())
months = int(input())
saved_money = 0
for i in range(1, months+1):
if i % 2 != 0 and i != 1:
saved_money = saved_money * 0.84
if i % 4 == 0:
saved_money = saved_money * 1.25
saved_money += journey_cost / 4
diff = abs(journey_cost - saved_money)
if saved_money >= journey_cost:
print(f"Bravo! You can go to Disneyland and you will have {diff:.2f}lv. for souvenirs.")
else:
print(f"Sorry. You need {diff:.2f}lv. more.") | journey_cost = float(input())
months = int(input())
saved_money = 0
for i in range(1, months + 1):
if i % 2 != 0 and i != 1:
saved_money = saved_money * 0.84
if i % 4 == 0:
saved_money = saved_money * 1.25
saved_money += journey_cost / 4
diff = abs(journey_cost - saved_money)
if saved_money >= journey_cost:
print(f'Bravo! You can go to Disneyland and you will have {diff:.2f}lv. for souvenirs.')
else:
print(f'Sorry. You need {diff:.2f}lv. more.') |
subscription_data=\
{
"description": "A subscription to get info about Room1",
"subject": {
"entities": [
{
"id": "Room1",
"type": "Room",
}
],
"condition": {
"attrs": [
"p3"
]
}
},
"notification": {
"http": {
"url": "http://192.168.100.162:8888"
},
"attrs": [
"p1",
"p2",
"p3"
]
},
"expires": "2040-01-01T14:00:00.00Z",
"throttling": 5
}
#data to test the following code for broker.thinBroker.go:946
'''
subReqv2 := SubscriptionRequest{}
err := r.DecodeJsonPayload(&subReqv2)
if err != nil {
rest.Error(w, err.Error(), http.StatusInternalServerError)
return
}
'''
subscriptionWrongPaylaod=\
{
"description": "A subscription to get info about Room1",
"subject": {
"entities": [
{
"id": "Room1",
"type": "Room",
"ispattern":"false"
}
],
"condition": {
"attrs": [
"p3"
]
}
},
"notification": {
"http": {
"url": "http://192.168.100.162:8888"
},
"attrs": [
"p1",
"p2",
"p3"
]
},
"expires": "2040-01-01T14:00:00.00Z",
"throttling": 5
}
v1SubData=\
{
"entities": [
{
"id": "Room1",
"type": "Room",
}
],
"reference": "http://192.168.100.162:8668/ngsi10/updateContext"
}
updateDataWithupdateaction=\
{
"contextElements": [
{
"entityId": {
"id": "Room1",
"type": "Room"
},
"attributes": [
{
"name": "p1",
"type": "float",
"value": 60
},
{
"name": "p3",
"type": "float",
"value": 69
},
{
"name": "p2",
"type": "float",
"value": 32
}
],
"domainMetadata": [
{
"name": "location",
"type": "point",
"value": {
"latitude": 49.406393,
"longitude": 8.684208
}
}
]
}
],
"updateAction": "UPDATE"
}
createDataWithupdateaction=\
{
"contextElements": [
{
"entityId": {
"id": "Room1",
"type": "Room"
},
"attributes": [
{
"name": "p1",
"type": "float",
"value": 90
},
{
"name": "p3",
"type": "float",
"value": 70
},
{
"name": "p2",
"type": "float",
"value": 12
}
],
"domainMetadata": [
{
"name": "location",
"type": "point",
"value": {
"latitude": 49.406393,
"longitude": 8.684208
}
}
]
}
],
"updateAction": "CRETAE"
}
deleteDataWithupdateaction=\
{
"contextElements": [
{
"entityId": {
"id": "Room1",
"type": "Room"
},
"attributes": [
{
"name": "p1",
"type": "float",
"value": 12
},
{
"name": "p3",
"type": "float",
"value": 13
},
{
"name": "p2",
"type": "float",
"value": 14
}
],
"domainMetadata": [
{
"name": "location",
"type": "point",
"value": {
"latitude": 49.406393,
"longitude": 8.684208
}
}
]
}
],
"updateAction": "DELETE"
}
| subscription_data = {'description': 'A subscription to get info about Room1', 'subject': {'entities': [{'id': 'Room1', 'type': 'Room'}], 'condition': {'attrs': ['p3']}}, 'notification': {'http': {'url': 'http://192.168.100.162:8888'}, 'attrs': ['p1', 'p2', 'p3']}, 'expires': '2040-01-01T14:00:00.00Z', 'throttling': 5}
'\n\t subReqv2 := SubscriptionRequest{}\n\n err := r.DecodeJsonPayload(&subReqv2)\n if err != nil {\n rest.Error(w, err.Error(), http.StatusInternalServerError)\n return\n }\n\n'
subscription_wrong_paylaod = {'description': 'A subscription to get info about Room1', 'subject': {'entities': [{'id': 'Room1', 'type': 'Room', 'ispattern': 'false'}], 'condition': {'attrs': ['p3']}}, 'notification': {'http': {'url': 'http://192.168.100.162:8888'}, 'attrs': ['p1', 'p2', 'p3']}, 'expires': '2040-01-01T14:00:00.00Z', 'throttling': 5}
v1_sub_data = {'entities': [{'id': 'Room1', 'type': 'Room'}], 'reference': 'http://192.168.100.162:8668/ngsi10/updateContext'}
update_data_withupdateaction = {'contextElements': [{'entityId': {'id': 'Room1', 'type': 'Room'}, 'attributes': [{'name': 'p1', 'type': 'float', 'value': 60}, {'name': 'p3', 'type': 'float', 'value': 69}, {'name': 'p2', 'type': 'float', 'value': 32}], 'domainMetadata': [{'name': 'location', 'type': 'point', 'value': {'latitude': 49.406393, 'longitude': 8.684208}}]}], 'updateAction': 'UPDATE'}
create_data_withupdateaction = {'contextElements': [{'entityId': {'id': 'Room1', 'type': 'Room'}, 'attributes': [{'name': 'p1', 'type': 'float', 'value': 90}, {'name': 'p3', 'type': 'float', 'value': 70}, {'name': 'p2', 'type': 'float', 'value': 12}], 'domainMetadata': [{'name': 'location', 'type': 'point', 'value': {'latitude': 49.406393, 'longitude': 8.684208}}]}], 'updateAction': 'CRETAE'}
delete_data_withupdateaction = {'contextElements': [{'entityId': {'id': 'Room1', 'type': 'Room'}, 'attributes': [{'name': 'p1', 'type': 'float', 'value': 12}, {'name': 'p3', 'type': 'float', 'value': 13}, {'name': 'p2', 'type': 'float', 'value': 14}], 'domainMetadata': [{'name': 'location', 'type': 'point', 'value': {'latitude': 49.406393, 'longitude': 8.684208}}]}], 'updateAction': 'DELETE'} |
with open('file_example.txt', 'r') as file:
contents = file.read()
print(contents)
| with open('file_example.txt', 'r') as file:
contents = file.read()
print(contents) |
class HistoryStatement:
def __init__(self, hashPrev, hashUploaded, username, comment=""):
self.hashPrev = hashPrev
self.hashUploaded = hashUploaded
self.username = username
self.comment = comment
def to_bytes(self):
buf = bytearray()
buf.extend(self.hashPrev)
buf.extend(self.hashUploaded)
buf.extend(self.username.encode('ascii'))
for _ in range(0, 50 - len(self.username)):
buf.append(0)
buf.extend(self.comment.encode('ascii'))
return buf
def sign(self, key):
return key.sign(self.to_bytes())
pass
def from_bytes(buf):
hashPrev = bytearray(buf[:32])
hashUploaded = bytearray(buf[32:64])
usernameUntrimmed = buf[64:114]
username = ""
i = 0
while usernameUntrimmed[i] != 0:
username += chr(usernameUntrimmed[i])
i += 1
comment = bytes(buf[114:]).decode('ascii')
return HistoryStatement(hashPrev, hashUploaded, username, comment)
def __str__(self):
return "<HistoryStatement %s uploaded %s, previous was %s, comment: %s>" % (self.username, self.hashUploaded, self.hashPrev, self.comment) | class Historystatement:
def __init__(self, hashPrev, hashUploaded, username, comment=''):
self.hashPrev = hashPrev
self.hashUploaded = hashUploaded
self.username = username
self.comment = comment
def to_bytes(self):
buf = bytearray()
buf.extend(self.hashPrev)
buf.extend(self.hashUploaded)
buf.extend(self.username.encode('ascii'))
for _ in range(0, 50 - len(self.username)):
buf.append(0)
buf.extend(self.comment.encode('ascii'))
return buf
def sign(self, key):
return key.sign(self.to_bytes())
pass
def from_bytes(buf):
hash_prev = bytearray(buf[:32])
hash_uploaded = bytearray(buf[32:64])
username_untrimmed = buf[64:114]
username = ''
i = 0
while usernameUntrimmed[i] != 0:
username += chr(usernameUntrimmed[i])
i += 1
comment = bytes(buf[114:]).decode('ascii')
return history_statement(hashPrev, hashUploaded, username, comment)
def __str__(self):
return '<HistoryStatement %s uploaded %s, previous was %s, comment: %s>' % (self.username, self.hashUploaded, self.hashPrev, self.comment) |
_base_ = [
'../_base_/models/upernet_swin.py', '../_base_/datasets/uvo_finetune.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py'
]
model = dict(
pretrained='PATH/TO/YOUR/swin_large_patch4_window12_384_22k.pth',
backbone=dict(
pretrain_img_size=384,
embed_dims=192,
depths=[2, 2, 18, 2],
num_heads=[6, 12, 24, 48],
drop_path_rate=0.2,
window_size=12),
decode_head=dict(
in_channels=[192, 384, 768, 1536],
num_classes=2,
loss_decode=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
auxiliary_head=dict(
in_channels=768,
num_classes=2,
loss_decode=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0))
)
# AdamW optimizer, no weight decay for position embedding & layer norm
# in backbone
optimizer = dict(
_delete_=True,
type='AdamW',
lr=0.00006 / 10,
betas=(0.9, 0.999),
weight_decay=0.01,
paramwise_cfg=dict(
custom_keys={
'absolute_pos_embed': dict(decay_mult=0.),
'relative_position_bias_table': dict(decay_mult=0.),
'norm': dict(decay_mult=0.)
}))
lr_config = dict(
_delete_=True,
policy='poly',
warmup='linear',
warmup_iters=1500,
warmup_ratio=5e-7,
power=1.0,
min_lr=0.0,
by_epoch=False)
# By default, models are trained on 8 GPUs with 2 images per GPU
data = dict(
samples_per_gpu=4,
workers_per_gpu=4,
)
load_from = '/tmp-network/user/ydu/mmsegmentation/work_dirs/biggest_model_clean_w_jitter/iter_300000.pth'
runner = dict(type='IterBasedRunner', max_iters=100000)
checkpoint_config = dict(by_epoch=False, interval=5000)
evaluation = dict(interval=5000, metric='mIoU', pre_eval=True)
| _base_ = ['../_base_/models/upernet_swin.py', '../_base_/datasets/uvo_finetune.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py']
model = dict(pretrained='PATH/TO/YOUR/swin_large_patch4_window12_384_22k.pth', backbone=dict(pretrain_img_size=384, embed_dims=192, depths=[2, 2, 18, 2], num_heads=[6, 12, 24, 48], drop_path_rate=0.2, window_size=12), decode_head=dict(in_channels=[192, 384, 768, 1536], num_classes=2, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), auxiliary_head=dict(in_channels=768, num_classes=2, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)))
optimizer = dict(_delete_=True, type='AdamW', lr=6e-05 / 10, betas=(0.9, 0.999), weight_decay=0.01, paramwise_cfg=dict(custom_keys={'absolute_pos_embed': dict(decay_mult=0.0), 'relative_position_bias_table': dict(decay_mult=0.0), 'norm': dict(decay_mult=0.0)}))
lr_config = dict(_delete_=True, policy='poly', warmup='linear', warmup_iters=1500, warmup_ratio=5e-07, power=1.0, min_lr=0.0, by_epoch=False)
data = dict(samples_per_gpu=4, workers_per_gpu=4)
load_from = '/tmp-network/user/ydu/mmsegmentation/work_dirs/biggest_model_clean_w_jitter/iter_300000.pth'
runner = dict(type='IterBasedRunner', max_iters=100000)
checkpoint_config = dict(by_epoch=False, interval=5000)
evaluation = dict(interval=5000, metric='mIoU', pre_eval=True) |
class IDependency:
pass
class IScoped(IDependency):
pass
def __del__(self):
pass
class ISingleton(IDependency):
pass
| class Idependency:
pass
class Iscoped(IDependency):
pass
def __del__(self):
pass
class Isingleton(IDependency):
pass |
h = int(input())
x = int(input())
y = int(input())
result = 'Outside'
# Base, left vertical, left horizontal, middle left etc.
if (3*h >= x >= 0 == y) or (x == 0 <= y <= h) or (0 <= x <= h == y) or (x == h <= y <= 4*h) or \
(h <= x <= 2*h and y == 4*h) or (x == 2*h and h <= y <= 4*h) or (2*h <= x <= 3*h and y == h) or \
(x == 3*h and 0 <= y <= h):
result = 'Border'
elif (0 < x < 3*h and 0 < y < h) or (h < x < 2*h and 0 < y < 4*h):
result = 'Inside'
print(result)
| h = int(input())
x = int(input())
y = int(input())
result = 'Outside'
if 3 * h >= x >= 0 == y or x == 0 <= y <= h or 0 <= x <= h == y or (x == h <= y <= 4 * h) or (h <= x <= 2 * h and y == 4 * h) or (x == 2 * h and h <= y <= 4 * h) or (2 * h <= x <= 3 * h and y == h) or (x == 3 * h and 0 <= y <= h):
result = 'Border'
elif 0 < x < 3 * h and 0 < y < h or (h < x < 2 * h and 0 < y < 4 * h):
result = 'Inside'
print(result) |
# https://stackoverflow.com/questions/24852345/hsv-to-rgb-color-conversion
def hsv_to_rgb(h, s, v):
if s == 0.0: return (v, v, v)
i = int(h*6.) # XXX assume int() truncates!
f = (h*6.)-i; p,q,t = v*(1.-s), v*(1.-s*f), v*(1.-s*(1.-f)); i%=6
if i == 0: return (v, t, p)
if i == 1: return (q, v, p)
if i == 2: return (p, v, t)
if i == 3: return (p, q, v)
if i == 4: return (t, p, v)
if i == 5: return (v, p, q) | def hsv_to_rgb(h, s, v):
if s == 0.0:
return (v, v, v)
i = int(h * 6.0)
f = h * 6.0 - i
(p, q, t) = (v * (1.0 - s), v * (1.0 - s * f), v * (1.0 - s * (1.0 - f)))
i %= 6
if i == 0:
return (v, t, p)
if i == 1:
return (q, v, p)
if i == 2:
return (p, v, t)
if i == 3:
return (p, q, v)
if i == 4:
return (t, p, v)
if i == 5:
return (v, p, q) |
class Parameter:
def __init__(self,
name,
prior,
initial_value,
transform=None,
fixed=False):
self.name = name
self.prior = prior
self.transform = (lambda x: x) if transform is None else transform
self.value = initial_value
self.fixed = fixed
def propose(self, *args):
if self.fixed:
return self.value
assert self.proposal_dist is not None, 'proposal_dist must not be None if you use propose()'
return self.proposal_dist(*args).sample().numpy()
| class Parameter:
def __init__(self, name, prior, initial_value, transform=None, fixed=False):
self.name = name
self.prior = prior
self.transform = (lambda x: x) if transform is None else transform
self.value = initial_value
self.fixed = fixed
def propose(self, *args):
if self.fixed:
return self.value
assert self.proposal_dist is not None, 'proposal_dist must not be None if you use propose()'
return self.proposal_dist(*args).sample().numpy() |
class Solution:
labs = []
def __init__(self, T):
self.z = 0
self.x = []
for i in range(T):
self.x.append(0)
def calculate_z(self):
if len(self.labs) == 0:
return 0
self.z = 0
for i in range(len(self.labs)):
for j in range(self.x[i]+1):
self.z += self.labs[i].P[j]
def __str__(self):
return "Z = {:.3f}, x = {}".format(self.z, self.x)
def __eq__(self, value):
if isinstance(value, Solution):
if len(self.x) != len(value.x):
return False
for i in range(len(self.x)):
if self.x[i] != value.x[i]:
return False
return True
return NotImplemented
def __lt__(self, value):
return self.z < value.z
def __le__(self, value):
return self.z <= value.z
def __gt__(self, value):
return self.z > value.z
def __ge__(self, value):
return self.z >= value.z | class Solution:
labs = []
def __init__(self, T):
self.z = 0
self.x = []
for i in range(T):
self.x.append(0)
def calculate_z(self):
if len(self.labs) == 0:
return 0
self.z = 0
for i in range(len(self.labs)):
for j in range(self.x[i] + 1):
self.z += self.labs[i].P[j]
def __str__(self):
return 'Z = {:.3f}, x = {}'.format(self.z, self.x)
def __eq__(self, value):
if isinstance(value, Solution):
if len(self.x) != len(value.x):
return False
for i in range(len(self.x)):
if self.x[i] != value.x[i]:
return False
return True
return NotImplemented
def __lt__(self, value):
return self.z < value.z
def __le__(self, value):
return self.z <= value.z
def __gt__(self, value):
return self.z > value.z
def __ge__(self, value):
return self.z >= value.z |
symbol = input()
count = int(input())
c = 0
for i in range(count):
if input() == symbol:
c += 1
print(c)
| symbol = input()
count = int(input())
c = 0
for i in range(count):
if input() == symbol:
c += 1
print(c) |
#!/usr/bin/python
'''
Priority queue with random access updates
-----------------------------------------
.. autoclass:: PrioQueue
:members:
:special-members:
'''
#-----------------------------------------------------------------------------
class PrioQueue:
'''
Priority queue that supports updating priority of arbitrary elements and
removing arbitrary elements.
Entry with lowest priority value is returned first.
Mutation operations (:meth:`set()`, :meth:`pop()`, :meth:`remove()`, and
:meth:`update()`) have complexity of ``O(log(n))``. Read operations
(:meth:`length()` and :meth:`peek()`) have complexity of ``O(1)``.
'''
#-------------------------------------------------------
# element container {{{
class _Element:
def __init__(self, prio, entry, pos, key):
self.prio = prio
self.entry = entry
self.pos = pos
self.key = key
def __cmp__(self, other):
return cmp(self.prio, other.prio) or \
cmp(id(self.entry), id(other.entry))
# }}}
#-------------------------------------------------------
def __init__(self, make_key = None):
'''
:param make_key: element-to-hashable converter function
If :obj:`make_key` is left unspecified, an identity function is used
(which means that the queue can only hold hashable objects).
'''
# children: (2 * i + 1), (2 * i + 2)
# parent: (i - 1) / 2
self._heap = []
self._keys = {}
if make_key is not None:
self._make_key = make_key
else:
self._make_key = lambda x: x
#-------------------------------------------------------
# dict-like operations {{{
def __len__(self):
'''
:return: queue length
Return length of the queue.
'''
return len(self._heap)
def __contains__(self, entry):
'''
:param entry: entry to check
:return: ``True`` if :obj:`entry` is in queue, ``False`` otherwise
Check whether the queue contains an entry.
'''
return (self._make_key(entry) in self._keys)
def __setitem__(self, entry, priority):
'''
:param entry: entry to add/update
:param priority: entry's priority
Set priority for an entry, either by adding a new or updating an
existing one.
'''
self.set(entry, priority)
def __getitem__(self, entry):
'''
:param entry: entry to get priority of
:return: priority
:throws: :exc:`KeyError` if entry is not in the queue
Get priority of an entry.
'''
key = self._make_key(entry)
return self._keys[key].prio # NOTE: allow the KeyError to propagate
def __delitem__(self, entry):
'''
:param entry: entry to remove
Remove an entry from the queue.
'''
self.remove(entry)
# }}}
#-------------------------------------------------------
# main operations {{{
def __iter__(self):
'''
:return: iterator
Iterate over the entries in the queue.
Order of the entries is unspecified.
'''
for element in self._heap:
yield element.entry
def iterentries(self):
'''
:return: iterator
Iterate over the entries in the queue.
Order of the entries is unspecified.
'''
for element in self._heap:
yield element.entry
def entries(self):
'''
:return: list of entries
Retrieve list of entries stored in the queue.
Order of the entries is unspecified.
'''
return [e.entry for e in self._heap]
def length(self):
'''
:return: queue length
Return length of the queue.
'''
return len(self._heap)
def set(self, entry, priority):
'''
:param entry: entry to add/update
:param priority: entry's priority
Set priority for an entry, either by adding a new or updating an
existing one.
'''
key = self._make_key(entry)
if key not in self._keys:
element = PrioQueue._Element(priority, entry, len(self._heap), key)
self._keys[key] = element
self._heap.append(element)
else:
element = self._keys[key]
element.prio = priority
self._heapify(element.pos)
def pop(self):
'''
:return: tuple ``(priority, entry)``
:throws: :exc:`IndexError` when the queue is empty
Return the entry with lowest priority value. The entry is immediately
removed from the queue.
'''
if len(self._heap) == 0:
raise IndexError("queue is empty")
element = self._heap[0]
del self._keys[element.key]
if len(self._heap) > 1:
self._heap[0] = self._heap.pop()
self._heap[0].pos = 0
self._heapify_downwards(0)
else:
# this was the last element in the queue
self._heap.pop()
return (element.prio, element.entry)
def peek(self):
'''
:return: tuple ``(priority, entry)``
:throws: :exc:`IndexError` when the queue is empty
Return the entry with lowest priority value. The entry is not removed
from the queue.
'''
if len(self._heap) == 0:
raise IndexError("queue is empty")
return (self._heap[0].prio, self._heap[0].entry)
def remove(self, entry):
'''
:return: priority of :obj:`entry` or ``None`` when :obj:`entry` was
not found
Remove an arbitrary entry from the queue.
'''
key = self._make_key(entry)
if key not in self._keys:
return None
element = self._keys.pop(key)
if element.pos < len(self._heap) - 1:
# somewhere in the middle of the queue
self._heap[element.pos] = self._heap.pop()
self._heap[element.pos].pos = element.pos
self._heapify(element.pos)
else:
# this was the last element in the queue
self._heap.pop()
return element.prio
def update(self, entry, priority):
'''
:param entry: entry to update
:param priority: entry's new priority
:return: old priority of the entry
:throws: :exc:`KeyError` if entry is not in the queue
Update priority of an arbitrary entry.
'''
key = self._make_key(entry)
element = self._keys[key] # NOTE: allow the KeyError to propagate
old_priority = element.prio
element.prio = priority
self._heapify(element.pos)
return old_priority
# }}}
#-------------------------------------------------------
# maintain heap property {{{
def _heapify(self, i):
if i > 0 and self._heap[i] < self._heap[(i - 1) / 2]:
self._heapify_upwards(i)
else:
self._heapify_downwards(i)
def _heapify_upwards(self, i):
p = (i - 1) / 2 # parent index
while p >= 0 and self._heap[i] < self._heap[p]:
# swap element and its parent
(self._heap[i], self._heap[p]) = (self._heap[p], self._heap[i])
# update positions of the elements
self._heap[i].pos = i
self._heap[p].pos = p
# now check if the parent node satisfies heap property
i = p
p = (i - 1) / 2
def _heapify_downwards(self, i):
c = 2 * i + 1 # children: (2 * i + 1), (2 * i + 2)
while c < len(self._heap):
# select the smaller child (if the other child exists)
if c + 1 < len(self._heap) and self._heap[c + 1] < self._heap[c]:
c += 1
if self._heap[i] < self._heap[c]:
# heap property satisfied, nothing left to do
return
# swap element and its smaller child
(self._heap[i], self._heap[c]) = (self._heap[c], self._heap[i])
# update positions of the elements
self._heap[i].pos = i
self._heap[c].pos = c
# now check if the smaller child satisfies heap property
i = c
c = 2 * i + 1
# }}}
#-------------------------------------------------------
#-----------------------------------------------------------------------------
# vim:ft=python:foldmethod=marker
| """
Priority queue with random access updates
-----------------------------------------
.. autoclass:: PrioQueue
:members:
:special-members:
"""
class Prioqueue:
"""
Priority queue that supports updating priority of arbitrary elements and
removing arbitrary elements.
Entry with lowest priority value is returned first.
Mutation operations (:meth:`set()`, :meth:`pop()`, :meth:`remove()`, and
:meth:`update()`) have complexity of ``O(log(n))``. Read operations
(:meth:`length()` and :meth:`peek()`) have complexity of ``O(1)``.
"""
class _Element:
def __init__(self, prio, entry, pos, key):
self.prio = prio
self.entry = entry
self.pos = pos
self.key = key
def __cmp__(self, other):
return cmp(self.prio, other.prio) or cmp(id(self.entry), id(other.entry))
def __init__(self, make_key=None):
"""
:param make_key: element-to-hashable converter function
If :obj:`make_key` is left unspecified, an identity function is used
(which means that the queue can only hold hashable objects).
"""
self._heap = []
self._keys = {}
if make_key is not None:
self._make_key = make_key
else:
self._make_key = lambda x: x
def __len__(self):
"""
:return: queue length
Return length of the queue.
"""
return len(self._heap)
def __contains__(self, entry):
"""
:param entry: entry to check
:return: ``True`` if :obj:`entry` is in queue, ``False`` otherwise
Check whether the queue contains an entry.
"""
return self._make_key(entry) in self._keys
def __setitem__(self, entry, priority):
"""
:param entry: entry to add/update
:param priority: entry's priority
Set priority for an entry, either by adding a new or updating an
existing one.
"""
self.set(entry, priority)
def __getitem__(self, entry):
"""
:param entry: entry to get priority of
:return: priority
:throws: :exc:`KeyError` if entry is not in the queue
Get priority of an entry.
"""
key = self._make_key(entry)
return self._keys[key].prio
def __delitem__(self, entry):
"""
:param entry: entry to remove
Remove an entry from the queue.
"""
self.remove(entry)
def __iter__(self):
"""
:return: iterator
Iterate over the entries in the queue.
Order of the entries is unspecified.
"""
for element in self._heap:
yield element.entry
def iterentries(self):
"""
:return: iterator
Iterate over the entries in the queue.
Order of the entries is unspecified.
"""
for element in self._heap:
yield element.entry
def entries(self):
"""
:return: list of entries
Retrieve list of entries stored in the queue.
Order of the entries is unspecified.
"""
return [e.entry for e in self._heap]
def length(self):
"""
:return: queue length
Return length of the queue.
"""
return len(self._heap)
def set(self, entry, priority):
"""
:param entry: entry to add/update
:param priority: entry's priority
Set priority for an entry, either by adding a new or updating an
existing one.
"""
key = self._make_key(entry)
if key not in self._keys:
element = PrioQueue._Element(priority, entry, len(self._heap), key)
self._keys[key] = element
self._heap.append(element)
else:
element = self._keys[key]
element.prio = priority
self._heapify(element.pos)
def pop(self):
"""
:return: tuple ``(priority, entry)``
:throws: :exc:`IndexError` when the queue is empty
Return the entry with lowest priority value. The entry is immediately
removed from the queue.
"""
if len(self._heap) == 0:
raise index_error('queue is empty')
element = self._heap[0]
del self._keys[element.key]
if len(self._heap) > 1:
self._heap[0] = self._heap.pop()
self._heap[0].pos = 0
self._heapify_downwards(0)
else:
self._heap.pop()
return (element.prio, element.entry)
def peek(self):
"""
:return: tuple ``(priority, entry)``
:throws: :exc:`IndexError` when the queue is empty
Return the entry with lowest priority value. The entry is not removed
from the queue.
"""
if len(self._heap) == 0:
raise index_error('queue is empty')
return (self._heap[0].prio, self._heap[0].entry)
def remove(self, entry):
"""
:return: priority of :obj:`entry` or ``None`` when :obj:`entry` was
not found
Remove an arbitrary entry from the queue.
"""
key = self._make_key(entry)
if key not in self._keys:
return None
element = self._keys.pop(key)
if element.pos < len(self._heap) - 1:
self._heap[element.pos] = self._heap.pop()
self._heap[element.pos].pos = element.pos
self._heapify(element.pos)
else:
self._heap.pop()
return element.prio
def update(self, entry, priority):
"""
:param entry: entry to update
:param priority: entry's new priority
:return: old priority of the entry
:throws: :exc:`KeyError` if entry is not in the queue
Update priority of an arbitrary entry.
"""
key = self._make_key(entry)
element = self._keys[key]
old_priority = element.prio
element.prio = priority
self._heapify(element.pos)
return old_priority
def _heapify(self, i):
if i > 0 and self._heap[i] < self._heap[(i - 1) / 2]:
self._heapify_upwards(i)
else:
self._heapify_downwards(i)
def _heapify_upwards(self, i):
p = (i - 1) / 2
while p >= 0 and self._heap[i] < self._heap[p]:
(self._heap[i], self._heap[p]) = (self._heap[p], self._heap[i])
self._heap[i].pos = i
self._heap[p].pos = p
i = p
p = (i - 1) / 2
def _heapify_downwards(self, i):
c = 2 * i + 1
while c < len(self._heap):
if c + 1 < len(self._heap) and self._heap[c + 1] < self._heap[c]:
c += 1
if self._heap[i] < self._heap[c]:
return
(self._heap[i], self._heap[c]) = (self._heap[c], self._heap[i])
self._heap[i].pos = i
self._heap[c].pos = c
i = c
c = 2 * i + 1 |
SETTINGS_TMPL = '''import os
from glueplate import Glue as _
settings = _(
blog = _(
title = '{blog_title}',
base_url = '{base_url}',
language = '{language}',
),
dir = _(
output = os.path.abspath(os.path.join('..', 'out'))
),
GLUE_PLATE_PLUS_BEFORE_template_dirs = [os.path.abspath(os.path.join('.', 'templates')),],
multiprocess = {multicore},
)
'''
ABOUT_TMPL = '''About {blog_title}
=========================================================
:slug: about
:date: {year}-{month:02d}-{day:02d} {hour:02d}:{minute:02d}
'''
QUESTIONS = [
{
'type': 'input',
'name': 'blog_title',
'message': 'What\'s your blog title',
},
{
'type': 'input',
'name': 'base_url',
'message': 'input your blog base url. like https://www.tsuyukimakoto.com',
},
{
'type': 'input',
'name': 'language',
'message': 'input your blog language like ja',
},
]
BIISAN_DATA_DIR = 'biisan_data'
| settings_tmpl = "import os\nfrom glueplate import Glue as _\n\nsettings = _(\n blog = _(\n title = '{blog_title}',\n base_url = '{base_url}',\n language = '{language}',\n ),\n dir = _(\n output = os.path.abspath(os.path.join('..', 'out'))\n ),\n GLUE_PLATE_PLUS_BEFORE_template_dirs = [os.path.abspath(os.path.join('.', 'templates')),],\n multiprocess = {multicore},\n)\n"
about_tmpl = 'About {blog_title}\n=========================================================\n\n:slug: about\n:date: {year}-{month:02d}-{day:02d} {hour:02d}:{minute:02d}\n\n'
questions = [{'type': 'input', 'name': 'blog_title', 'message': "What's your blog title"}, {'type': 'input', 'name': 'base_url', 'message': 'input your blog base url. like https://www.tsuyukimakoto.com'}, {'type': 'input', 'name': 'language', 'message': 'input your blog language like ja'}]
biisan_data_dir = 'biisan_data' |
class Dog:
kind = 'canine'
tricks = [] #mistaken use
def __init__(self, name):
self.name = name
self.tricksInstance = []
def add_trick(self, trick):
self.tricks.append(trick)
def add_trick_instance(self, trick):
self.tricksInstance.append(trick)
d = Dog('Fido')
e = Dog('Buddy')
print(d.kind, d.name)
print(e.kind, e.name)
d.add_trick('roll over')
e.add_trick('play dead')
print(d.tricks)
d.add_trick_instance('roll over')
e.add_trick_instance('play dead')
print(d.tricksInstance)
print(e.tricksInstance)
| class Dog:
kind = 'canine'
tricks = []
def __init__(self, name):
self.name = name
self.tricksInstance = []
def add_trick(self, trick):
self.tricks.append(trick)
def add_trick_instance(self, trick):
self.tricksInstance.append(trick)
d = dog('Fido')
e = dog('Buddy')
print(d.kind, d.name)
print(e.kind, e.name)
d.add_trick('roll over')
e.add_trick('play dead')
print(d.tricks)
d.add_trick_instance('roll over')
e.add_trick_instance('play dead')
print(d.tricksInstance)
print(e.tricksInstance) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.