content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
|---|---|
# > \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
|
"""
10. Regular Expression Matching
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
Note:
s could be empty and contains only lowercase letters a-z.
p could be empty and contains only lowercase letters a-z, and characters like . or *.
Example 1:
Input:
s = "aa"
p = "a"
Output: false
Explanation: "a" does not match the entire string "aa".
Example 2:
Input:
s = "aa"
p = "a*"
Output: true
Explanation: '*' means zero or more of the preceding element, 'a'. Therefore, by repeating 'a' once, it becomes "aa".
Example 3:
Input:
s = "ab"
p = ".*"
Output: true
Explanation: ".*" means "zero or more (*) of any character (.)".
Example 4:
Input:
s = "aab"
p = "c*a*b"
Output: true
Explanation: c can be repeated 0 times, a can be repeated 1 time. Therefore, it matches "aab".
Example 5:
Input:
s = "mississippi"
p = "mis*is*p*."
Output: false
"""
# similar to decode ways II
# regular dp, just too many cases to be considered
# time complexity could reach O(n_s^2 * n_p)
# because the existence of ".*"
# i am dying...
# Runtime: 56 ms, faster than 52.42% of Python3 online submissions for Regular Expression Matching.
# Memory Usage: 12.7 MB, less than 100.00% of Python3 online submissions for Regular Expression Matching.
class Solution:
def isMatch(self, s: str, p: str) -> bool:
n_s, n_p = len(s), len(p)
if n_p == 0:
return n_s == 0
if n_p == 1:
if n_s == 1 and (s == p or p == "."):
return True
return False
dp = [[False for _ in range(n_p+1)] for _ in range(n_s+1)]
dp[0][0] = True
for i in range(2, n_p+1, 2):
if p[i-1] == "*":
dp[0][i] = dp[0][i-2]
for i in range(1, n_s+1):
# print(dp)
for j in range(1, n_p+1):
if p[j-1] == "*":
if p[j-2] != ".":
if s[i-1] == p[j-2]:
dp[i][j] = dp[i-1][j] or dp[i][j-2]
else:
dp[i][j] = dp[i][j-2]
else:
if j == 2:
dp[i][j] = True
else:
for row in range(i+1):
dp[i][j] = dp[i][j] or dp[row][j-2]
elif p[j-1] == ".":
dp[i][j] = dp[i-1][j-1]
else:
if s[i-1] == p[j-1]:
dp[i][j] = dp[i-1][j-1]
else:
dp[i][j] = False
return dp[-1][-1]
|
"""
10. Regular Expression Matching
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
Note:
s could be empty and contains only lowercase letters a-z.
p could be empty and contains only lowercase letters a-z, and characters like . or *.
Example 1:
Input:
s = "aa"
p = "a"
Output: false
Explanation: "a" does not match the entire string "aa".
Example 2:
Input:
s = "aa"
p = "a*"
Output: true
Explanation: '*' means zero or more of the preceding element, 'a'. Therefore, by repeating 'a' once, it becomes "aa".
Example 3:
Input:
s = "ab"
p = ".*"
Output: true
Explanation: ".*" means "zero or more (*) of any character (.)".
Example 4:
Input:
s = "aab"
p = "c*a*b"
Output: true
Explanation: c can be repeated 0 times, a can be repeated 1 time. Therefore, it matches "aab".
Example 5:
Input:
s = "mississippi"
p = "mis*is*p*."
Output: false
"""
class Solution:
def is_match(self, s: str, p: str) -> bool:
(n_s, n_p) = (len(s), len(p))
if n_p == 0:
return n_s == 0
if n_p == 1:
if n_s == 1 and (s == p or p == '.'):
return True
return False
dp = [[False for _ in range(n_p + 1)] for _ in range(n_s + 1)]
dp[0][0] = True
for i in range(2, n_p + 1, 2):
if p[i - 1] == '*':
dp[0][i] = dp[0][i - 2]
for i in range(1, n_s + 1):
for j in range(1, n_p + 1):
if p[j - 1] == '*':
if p[j - 2] != '.':
if s[i - 1] == p[j - 2]:
dp[i][j] = dp[i - 1][j] or dp[i][j - 2]
else:
dp[i][j] = dp[i][j - 2]
elif j == 2:
dp[i][j] = True
else:
for row in range(i + 1):
dp[i][j] = dp[i][j] or dp[row][j - 2]
elif p[j - 1] == '.':
dp[i][j] = dp[i - 1][j - 1]
elif s[i - 1] == p[j - 1]:
dp[i][j] = dp[i - 1][j - 1]
else:
dp[i][j] = False
return dp[-1][-1]
|
#!/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)
|
""" Tuple as Data Structure
"""
|
""" Tuple as Data Structure
"""
|
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
|
test = {
'name': 'multiples_3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
scm> (car multiples-of-three)
3
scm> (list? (cdr multiples-of-three)) ; Check to make sure variable contains a stream
#f
scm> (list? (cdr (cdr-stream multiples-of-three))) ; Check to make sure rest of stream is a stream
#f
scm> (equal? (first-k multiples-of-three 5) '(3 6 9 12 15))
#t
scm> (equal? (first-k multiples-of-three 10) '(3 6 9 12 15 18 21 24 27 30))
#t
scm> (length (first-k multiples-of-three 100))
100
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
scm> (load-all ".")
scm> (define (first-k s k) (if (or (null? s) (= k 0)) nil (cons (car s) (first-k (cdr-stream s) (- k 1)))))
scm> (define (length lst) (if (null? lst) 0 (+ 1 (length (cdr lst)))))
""",
'teardown': '',
'type': 'scheme'
}
]
}
|
test = {'name': 'multiples_3', 'points': 1, 'suites': [{'cases': [{'code': "\n scm> (car multiples-of-three)\n 3\n scm> (list? (cdr multiples-of-three)) ; Check to make sure variable contains a stream\n #f\n scm> (list? (cdr (cdr-stream multiples-of-three))) ; Check to make sure rest of stream is a stream\n #f\n scm> (equal? (first-k multiples-of-three 5) '(3 6 9 12 15))\n #t\n scm> (equal? (first-k multiples-of-three 10) '(3 6 9 12 15 18 21 24 27 30))\n #t\n scm> (length (first-k multiples-of-three 100))\n 100\n ", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '\n scm> (load-all ".")\n scm> (define (first-k s k) (if (or (null? s) (= k 0)) nil (cons (car s) (first-k (cdr-stream s) (- k 1)))))\n scm> (define (length lst) (if (null? lst) 0 (+ 1 (length (cdr lst)))))\n ', 'teardown': '', 'type': 'scheme'}]}
|
#
# 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)
|
"""
Write a function that takes an unsigned integer and returns the number of 1 bits it has.
Example:
The 32-bit integer 11 has binary representation
00000000000000000000000000001011
so the function should return 3.
Note that since Java does not have unsigned int, use long for Java
"""
class Solution:
# @param A : integer
# @return an integer
def numSetBits(self, A):
num = 0
while A:
num += A & 1
A = A >> 1
return num
|
"""
Write a function that takes an unsigned integer and returns the number of 1 bits it has.
Example:
The 32-bit integer 11 has binary representation
00000000000000000000000000001011
so the function should return 3.
Note that since Java does not have unsigned int, use long for Java
"""
class Solution:
def num_set_bits(self, A):
num = 0
while A:
num += A & 1
a = A >> 1
return num
|
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)
|
"""
Module for representing PredPatt and UDS graphs
This module represents PredPatt and UDS graphs using networkx. It
incorporates the dependency parse-based graphs from the syntax module
as subgraphs.
"""
|
"""
Module for representing PredPatt and UDS graphs
This module represents PredPatt and UDS graphs using networkx. It
incorporates the dependency parse-based graphs from the syntax module
as subgraphs.
"""
|
"""{{ cookiecutter.package_name }} - {{ cookiecutter.package_description }}"""
__version__ = '{{ cookiecutter.package_version }}'
__author__ = '{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>'
__all__ = []
|
"""{{ cookiecutter.package_name }} - {{ cookiecutter.package_description }}"""
__version__ = '{{ cookiecutter.package_version }}'
__author__ = '{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>'
__all__ = []
|
# 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')
|
"""matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matriz[0][0])
print(matriz[0][1])
print(matriz[0][2])
print(matriz[1][0])
print(matriz[1][1])
print(matriz[1][2])
print(matriz[2][0])
print(matriz[2][1])
print(matriz[2][2])
print(matriz[0][0] + matriz[0][1] + matriz[0][2] + matriz[1][0] + matriz[1][1] + matriz[1][2] + matriz[2][0] + matriz[2][1] + matriz[2][2])"""
matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
soma = 0
for linha in range(3):
for coluna in range(3):
print(matriz[linha][coluna])
soma += matriz[linha][coluna]
print(soma)
|
"""matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print(matriz[0][0])
print(matriz[0][1])
print(matriz[0][2])
print(matriz[1][0])
print(matriz[1][1])
print(matriz[1][2])
print(matriz[2][0])
print(matriz[2][1])
print(matriz[2][2])
print(matriz[0][0] + matriz[0][1] + matriz[0][2] + matriz[1][0] + matriz[1][1] + matriz[1][2] + matriz[2][0] + matriz[2][1] + matriz[2][2])"""
matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
soma = 0
for linha in range(3):
for coluna in range(3):
print(matriz[linha][coluna])
soma += matriz[linha][coluna]
print(soma)
|
# -*- coding:utf-8 -*-
"""This module is used to test call stack"""
# def greet(name):
# print(name)
# fun(name)
# print('bye bye !!!')
# bye()
#
#
# def fun(name):
# print('how are you', name)
#
#
# def bye():
# print('good bye')
#
#
# greet('feifei')
def fact(x):
if x == 1:
return 1
else:
return x * fact(x - 1)
print(fact(3))
|
"""This module is used to test call stack"""
def fact(x):
if x == 1:
return 1
else:
return x * fact(x - 1)
print(fact(3))
|
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Constants used acros google.cloud.storage modules."""
# Storage classes
STANDARD_STORAGE_CLASS = "STANDARD"
"""Storage class for objects accessed more than once per month.
See: https://cloud.google.com/storage/docs/storage-classes
"""
NEARLINE_STORAGE_CLASS = "NEARLINE"
"""Storage class for objects accessed at most once per month.
See: https://cloud.google.com/storage/docs/storage-classes
"""
COLDLINE_STORAGE_CLASS = "COLDLINE"
"""Storage class for objects accessed at most once per year.
See: https://cloud.google.com/storage/docs/storage-classes
"""
ARCHIVE_STORAGE_CLASS = "ARCHIVE"
"""Storage class for objects accessed less frequently than once per year.
See: https://cloud.google.com/storage/docs/storage-classes
"""
MULTI_REGIONAL_LEGACY_STORAGE_CLASS = "MULTI_REGIONAL"
"""Legacy storage class.
Alias for :attr:`STANDARD_STORAGE_CLASS`.
Can only be used for objects in buckets whose
:attr:`~google.cloud.storage.bucket.Bucket.location_type` is
:attr:`~google.cloud.storage.bucket.Bucket.MULTI_REGION_LOCATION_TYPE`.
See: https://cloud.google.com/storage/docs/storage-classes
"""
REGIONAL_LEGACY_STORAGE_CLASS = "REGIONAL"
"""Legacy storage class.
Alias for :attr:`STANDARD_STORAGE_CLASS`.
Can only be used for objects in buckets whose
:attr:`~google.cloud.storage.bucket.Bucket.location_type` is
:attr:`~google.cloud.storage.bucket.Bucket.REGION_LOCATION_TYPE`.
See: https://cloud.google.com/storage/docs/storage-classes
"""
DURABLE_REDUCED_AVAILABILITY_LEGACY_STORAGE_CLASS = "DURABLE_REDUCED_AVAILABILITY"
"""Legacy storage class.
Similar to :attr:`NEARLINE_STORAGE_CLASS`.
"""
# Location types
MULTI_REGION_LOCATION_TYPE = "multi-region"
"""Location type: data will be replicated across regions in a multi-region.
Provides highest availability across largest area.
"""
REGION_LOCATION_TYPE = "region"
"""Location type: data will be stored within a single region.
Provides lowest latency within a single region.
"""
DUAL_REGION_LOCATION_TYPE = "dual-region"
"""Location type: data will be stored within two primary regions.
Provides high availability and low latency across two regions.
"""
# Internal constants
_DEFAULT_TIMEOUT = 60 # in seconds
"""The default request timeout in seconds if a timeout is not explicitly given.
"""
# Public Access Prevention
PUBLIC_ACCESS_PREVENTION_ENFORCED = "enforced"
"""Enforced public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
PUBLIC_ACCESS_PREVENTION_UNSPECIFIED = "unspecified"
"""Unspecified public access prevention value.
DEPRECATED: Use 'PUBLIC_ACCESS_PREVENTION_INHERITED' instead.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
PUBLIC_ACCESS_PREVENTION_INHERITED = "inherited"
"""Inherited public access prevention value.
See: https://cloud.google.com/storage/docs/public-access-prevention
"""
RPO_ASYNC_TURBO = "ASYNC_TURBO"
"""Turbo Replication RPO
See: https://cloud.google.com/storage/docs/managing-turbo-replication
"""
RPO_DEFAULT = "DEFAULT"
"""Default RPO
See: https://cloud.google.com/storage/docs/managing-turbo-replication
"""
|
"""Constants used acros google.cloud.storage modules."""
standard_storage_class = 'STANDARD'
'Storage class for objects accessed more than once per month.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
nearline_storage_class = 'NEARLINE'
'Storage class for objects accessed at most once per month.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
coldline_storage_class = 'COLDLINE'
'Storage class for objects accessed at most once per year.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
archive_storage_class = 'ARCHIVE'
'Storage class for objects accessed less frequently than once per year.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
multi_regional_legacy_storage_class = 'MULTI_REGIONAL'
'Legacy storage class.\n\nAlias for :attr:`STANDARD_STORAGE_CLASS`.\n\nCan only be used for objects in buckets whose\n:attr:`~google.cloud.storage.bucket.Bucket.location_type` is\n:attr:`~google.cloud.storage.bucket.Bucket.MULTI_REGION_LOCATION_TYPE`.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
regional_legacy_storage_class = 'REGIONAL'
'Legacy storage class.\n\nAlias for :attr:`STANDARD_STORAGE_CLASS`.\n\nCan only be used for objects in buckets whose\n:attr:`~google.cloud.storage.bucket.Bucket.location_type` is\n:attr:`~google.cloud.storage.bucket.Bucket.REGION_LOCATION_TYPE`.\n\nSee: https://cloud.google.com/storage/docs/storage-classes\n'
durable_reduced_availability_legacy_storage_class = 'DURABLE_REDUCED_AVAILABILITY'
'Legacy storage class.\n\nSimilar to :attr:`NEARLINE_STORAGE_CLASS`.\n'
multi_region_location_type = 'multi-region'
'Location type: data will be replicated across regions in a multi-region.\n\nProvides highest availability across largest area.\n'
region_location_type = 'region'
'Location type: data will be stored within a single region.\n\nProvides lowest latency within a single region.\n'
dual_region_location_type = 'dual-region'
'Location type: data will be stored within two primary regions.\n\nProvides high availability and low latency across two regions.\n'
_default_timeout = 60
'The default request timeout in seconds if a timeout is not explicitly given.\n'
public_access_prevention_enforced = 'enforced'
'Enforced public access prevention value.\n\nSee: https://cloud.google.com/storage/docs/public-access-prevention\n'
public_access_prevention_unspecified = 'unspecified'
"Unspecified public access prevention value.\n\nDEPRECATED: Use 'PUBLIC_ACCESS_PREVENTION_INHERITED' instead.\n\nSee: https://cloud.google.com/storage/docs/public-access-prevention\n"
public_access_prevention_inherited = 'inherited'
'Inherited public access prevention value.\n\nSee: https://cloud.google.com/storage/docs/public-access-prevention\n'
rpo_async_turbo = 'ASYNC_TURBO'
'Turbo Replication RPO\n\nSee: https://cloud.google.com/storage/docs/managing-turbo-replication\n'
rpo_default = 'DEFAULT'
'Default RPO\n\nSee: https://cloud.google.com/storage/docs/managing-turbo-replication\n'
|
class WolphinException(Exception):
"""
Base class for wolphin related exceptions
"""
def __init__(self, message=None):
"""
WolphinException constructor
:param message: error message for the exception
"""
self.message = message
def __str__(self):
return self.message
class NoRunningInstances(WolphinException):
"""
Raised when a project has no running instances.
"""
pass
class EC2InstanceLimitExceeded(WolphinException):
"""
Raised when ec2 instance limit is exceeded.
"""
pass
class InvalidWolphinConfiguration(WolphinException):
"""
Raised when an invalid wolphin configuration is encountered.
"""
pass
class SSHTimeoutError(WolphinException):
"""
Raised when all of a project's instances could not be made ssh-ready.
"""
pass
|
class Wolphinexception(Exception):
"""
Base class for wolphin related exceptions
"""
def __init__(self, message=None):
"""
WolphinException constructor
:param message: error message for the exception
"""
self.message = message
def __str__(self):
return self.message
class Norunninginstances(WolphinException):
"""
Raised when a project has no running instances.
"""
pass
class Ec2Instancelimitexceeded(WolphinException):
"""
Raised when ec2 instance limit is exceeded.
"""
pass
class Invalidwolphinconfiguration(WolphinException):
"""
Raised when an invalid wolphin configuration is encountered.
"""
pass
class Sshtimeouterror(WolphinException):
"""
Raised when all of a project's instances could not be made ssh-ready.
"""
pass
|
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)
|
# Style
# Uncomment the following code, then
# fix the style in this file so that it runs properly
# and there are comments explaining the program
"""
print("Hello World!")
print("This is a Python program")
age =
input("Enter your age: ")
print("Your age is " + age)
"""
|
"""
print("Hello World!")
print("This is a Python program")
age =
input("Enter your age: ")
print("Your age is " + age)
"""
|
#!/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 initialize_3d_list(a, b, c):
"""
:param a:
:param b:
:param c:
:return:
"""
lst = [[[None for _ in range(c)] for _ in range(b)] for _ in range(a)]
return lst
|
def initialize_3d_list(a, b, c):
"""
:param a:
:param b:
:param c:
:return:
"""
lst = [[[None for _ in range(c)] for _ in range(b)] for _ in range(a)]
return lst
|
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
|
# Link : https://leetcode.com/problems/valid-palindrome-ii/submissions/
# Two pointer approach
# TC : O(n)
class Solution(object):
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
# Use two pointers at the start and end of the string
# To iterate over the string from the left
a_pointer = 0
# To iterate over the string from the right
b_pointer = len(s) - 1
while(a_pointer <= b_pointer):
# Condition for palindrome is that the charachters must be same when read reverse
# Find the index where the charachters dont match for a_pointer and b_pointer
if(s[a_pointer] != s[b_pointer]):
# Skip the index where the charachters dont match
s1 = s[ : a_pointer] + s[a_pointer + 1 : ]
s2 = s[ : b_pointer] + s[b_pointer + 1 : ]
# Return True if the string is a palindrome after removing one charachter , else false
return (s1 == s1[ : :-1] or s2 == s2[ : :-1])
# Towards right
a_pointer += 1
# Towards left
b_pointer -= 1
return True
|
class Solution(object):
def valid_palindrome(self, s):
"""
:type s: str
:rtype: bool
"""
a_pointer = 0
b_pointer = len(s) - 1
while a_pointer <= b_pointer:
if s[a_pointer] != s[b_pointer]:
s1 = s[:a_pointer] + s[a_pointer + 1:]
s2 = s[:b_pointer] + s[b_pointer + 1:]
return s1 == s1[::-1] or s2 == s2[::-1]
a_pointer += 1
b_pointer -= 1
return True
|
#!/usr/bin/env python
# encoding: utf-8
"""
search_in_rotated_array_ii.py
Created by Shengwei on 2014-07-24.
"""
# https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/
# tags: medium / hard, array, search, rotated, edge cases
"""
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the array.
"""
"""
General approach for searching in rotated sorted array:
1. determine which side is sorted by comparing A[left] with A[mid]
2. if target is in the sorted range, continue searching in that range;
otherwise, searching in another half
"""
class Solution:
# @param A a list of integers
# @param target an integer
# @return a boolean
def search(self, A, target):
left, right = 0, len(A)
while left < right:
mid = (left + right) / 2
if A[mid] == target:
return True
if A[left] < A[mid]:
# left half is sorted
if A[left] <= target and target < A[mid]:
right = mid
else:
left = mid + 1
elif A[left] > A[mid]:
# right half is sorted
if A[mid] < target and target <= A[right-1]:
left = mid + 1
else:
right = mid
else:
# cannot decide which side is sorted;
# this essentially equals:
# 1. move left cursor to the right by 1;
# 2. move left and mid cursor to the right by 1;
# 3. continue until it can make a decison.
# the worst case, left meets mid and right, O(n)
left += 1
return False
|
"""
search_in_rotated_array_ii.py
Created by Shengwei on 2014-07-24.
"""
'\nFollow up for "Search in Rotated Sorted Array":\nWhat if duplicates are allowed?\n\nWould this affect the run-time complexity? How and why?\n\nWrite a function to determine if a given target is in the array.\n'
'\nGeneral approach for searching in rotated sorted array:\n1. determine which side is sorted by comparing A[left] with A[mid]\n2. if target is in the sorted range, continue searching in that range;\n otherwise, searching in another half\n'
class Solution:
def search(self, A, target):
(left, right) = (0, len(A))
while left < right:
mid = (left + right) / 2
if A[mid] == target:
return True
if A[left] < A[mid]:
if A[left] <= target and target < A[mid]:
right = mid
else:
left = mid + 1
elif A[left] > A[mid]:
if A[mid] < target and target <= A[right - 1]:
left = mid + 1
else:
right = mid
else:
left += 1
return False
|
# 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
|
def regularized_MSE_loss(output, target, weights=None, L2_penalty=0, L1_penalty=0):
"""loss function for MSE
Args:
output (torch.Tensor): output of network
target (torch.Tensor): neural response network is trying to predict
weights (torch.Tensor): fully-connected layer weights of network (net.out_layer.weight)
L2_penalty : scaling factor of sum of squared weights
L1_penalty : scalaing factor for sum of absolute weights
Returns:
(torch.Tensor) mean-squared error with L1 and L2 penalties added
"""
loss_fn = nn.MSELoss()
loss = loss_fn(output, target)
if weights is not None:
L2 = L2_penalty * torch.square(weights).sum()
L1 = L1_penalty * torch.abs(weights).sum()
loss += L1 + L2
return loss
# Initialize network
net = ConvFC(n_neurons)
# Train network
train_loss, test_loss = train(net, regularized_MSE_loss, stim_binary, resp_train,
test_data=stim_binary, test_labels=resp_test,
learning_rate=10, n_iter=500,
L2_penalty=1e-4, L1_penalty=1e-6)
# Plot the training loss over iterations of GD
with plt.xkcd():
plot_training_curves(train_loss, test_loss)
|
def regularized_mse_loss(output, target, weights=None, L2_penalty=0, L1_penalty=0):
"""loss function for MSE
Args:
output (torch.Tensor): output of network
target (torch.Tensor): neural response network is trying to predict
weights (torch.Tensor): fully-connected layer weights of network (net.out_layer.weight)
L2_penalty : scaling factor of sum of squared weights
L1_penalty : scalaing factor for sum of absolute weights
Returns:
(torch.Tensor) mean-squared error with L1 and L2 penalties added
"""
loss_fn = nn.MSELoss()
loss = loss_fn(output, target)
if weights is not None:
l2 = L2_penalty * torch.square(weights).sum()
l1 = L1_penalty * torch.abs(weights).sum()
loss += L1 + L2
return loss
net = conv_fc(n_neurons)
(train_loss, test_loss) = train(net, regularized_MSE_loss, stim_binary, resp_train, test_data=stim_binary, test_labels=resp_test, learning_rate=10, n_iter=500, L2_penalty=0.0001, L1_penalty=1e-06)
with plt.xkcd():
plot_training_curves(train_loss, test_loss)
|
"""
An Autoencoder accepts input, compresses it, and recreates it. On the other hand,
VAEs assume that the source data has some underlying distribution and attempts
to find the distribution parameters. So, VAEs are similar to GANs
(but note that GANs work differently, as we will see in the next tutorials).
""";
|
"""
An Autoencoder accepts input, compresses it, and recreates it. On the other hand,
VAEs assume that the source data has some underlying distribution and attempts
to find the distribution parameters. So, VAEs are similar to GANs
(but note that GANs work differently, as we will see in the next tutorials).
"""
|
"""
Hill Pattern
"""
print("")
n = 5
# Method 1
print("Method 1")
for a in range(n):
for b in range(a, n):
print(" ", end="")
for c in range(a + 1):
print(" * ", end="")
for d in range(a):
print(" * ", end="")
print("")
print("\n*~*~*~*~*~*~*~*~*~*~*~*\n")
# Method 2
print("Method 2")
for a in range(n):
print(" " * (n - a), end="")
print(" * " * (a + 1), end="")
print(" * " * a)
print("")
"""
Author: Jovan De Guia
Github Username: jxmked
"""
|
"""
Hill Pattern
"""
print('')
n = 5
print('Method 1')
for a in range(n):
for b in range(a, n):
print(' ', end='')
for c in range(a + 1):
print(' * ', end='')
for d in range(a):
print(' * ', end='')
print('')
print('\n*~*~*~*~*~*~*~*~*~*~*~*\n')
print('Method 2')
for a in range(n):
print(' ' * (n - a), end='')
print(' * ' * (a + 1), end='')
print(' * ' * a)
print('')
'\nAuthor: Jovan De Guia\nGithub Username: jxmked\n'
|
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 lambda_curry2(func):
"""
Returns a Curried version of a two-argument function FUNC.
>>> from operator import add
>>> curried_add = lambda_curry2(add)
>>> add_three = curried_add(3)
>>> add_three(5)
8
"""
"*** YOUR CODE HERE ***"
return ______
def compose1(f, g):
"""Return the composition function which given x, computes f(g(x)).
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> a1 = compose1(square, add_one) # (x + 1)^2
>>> a1(4)
25
>>> mul_three = lambda x: x * 3 # multiplies 3 to x
>>> a2 = compose1(mul_three, a1) # ((x + 1)^2) * 3
>>> a2(4)
75
>>> a2(5)
108
"""
return lambda x: f(g(x))
def composite_identity(f, g):
"""
Return a function with one parameter x that returns True if f(g(x)) is
equal to g(f(x)). You can assume the result of g(x) is a valid input for f
and vice versa.
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> b1 = composite_identity(square, add_one)
>>> b1(0) # (0 + 1)^2 == 0^2 + 1
True
>>> b1(4) # (4 + 1)^2 != 4^2 + 1
False
"""
"*** YOUR CODE HERE ***"
|
def lambda_curry2(func):
"""
Returns a Curried version of a two-argument function FUNC.
>>> from operator import add
>>> curried_add = lambda_curry2(add)
>>> add_three = curried_add(3)
>>> add_three(5)
8
"""
'*** YOUR CODE HERE ***'
return ______
def compose1(f, g):
"""Return the composition function which given x, computes f(g(x)).
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> a1 = compose1(square, add_one) # (x + 1)^2
>>> a1(4)
25
>>> mul_three = lambda x: x * 3 # multiplies 3 to x
>>> a2 = compose1(mul_three, a1) # ((x + 1)^2) * 3
>>> a2(4)
75
>>> a2(5)
108
"""
return lambda x: f(g(x))
def composite_identity(f, g):
"""
Return a function with one parameter x that returns True if f(g(x)) is
equal to g(f(x)). You can assume the result of g(x) is a valid input for f
and vice versa.
>>> add_one = lambda x: x + 1 # adds one to x
>>> square = lambda x: x**2
>>> b1 = composite_identity(square, add_one)
>>> b1(0) # (0 + 1)^2 == 0^2 + 1
True
>>> b1(4) # (4 + 1)^2 != 4^2 + 1
False
"""
'*** YOUR CODE HERE ***'
|
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()
|
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
class ResourceLoadException(Exception):
pass
class NoVersionFound(Exception):
pass
class RetriesExceededError(Exception):
def __init__(self, last_exception, msg='Max Retries Exceeded'):
super(RetriesExceededError, self).__init__(msg)
self.last_exception = last_exception
class S3TransferFailedError(Exception):
pass
class S3UploadFailedError(Exception):
pass
class DynamoDBOperationNotSupportedError(Exception):
"""Raised for operantions that are not supported for an operand"""
def __init__(self, operation, value):
msg = (
'%s operation cannot be applied to value %s of type %s directly. '
'Must use AttributeBase object methods (i.e. Attr().eq()). to '
'generate ConditionBase instances first.' %
(operation, value, type(value)))
Exception.__init__(self, msg)
# FIXME: Backward compatibility
DynanmoDBOperationNotSupportedError = DynamoDBOperationNotSupportedError
class DynamoDBNeedsConditionError(Exception):
"""Raised when input is not a condition"""
def __init__(self, value):
msg = (
'Expecting a ConditionBase object. Got %s of type %s. '
'Use AttributeBase object methods (i.e. Attr().eq()). to '
'generate ConditionBase instances.' % (value, type(value)))
Exception.__init__(self, msg)
class DynamoDBNeedsKeyConditionError(Exception):
pass
|
class Resourceloadexception(Exception):
pass
class Noversionfound(Exception):
pass
class Retriesexceedederror(Exception):
def __init__(self, last_exception, msg='Max Retries Exceeded'):
super(RetriesExceededError, self).__init__(msg)
self.last_exception = last_exception
class S3Transferfailederror(Exception):
pass
class S3Uploadfailederror(Exception):
pass
class Dynamodboperationnotsupportederror(Exception):
"""Raised for operantions that are not supported for an operand"""
def __init__(self, operation, value):
msg = '%s operation cannot be applied to value %s of type %s directly. Must use AttributeBase object methods (i.e. Attr().eq()). to generate ConditionBase instances first.' % (operation, value, type(value))
Exception.__init__(self, msg)
dynanmo_db_operation_not_supported_error = DynamoDBOperationNotSupportedError
class Dynamodbneedsconditionerror(Exception):
"""Raised when input is not a condition"""
def __init__(self, value):
msg = 'Expecting a ConditionBase object. Got %s of type %s. Use AttributeBase object methods (i.e. Attr().eq()). to generate ConditionBase instances.' % (value, type(value))
Exception.__init__(self, msg)
class Dynamodbneedskeyconditionerror(Exception):
pass
|
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
|
"""
Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3,5,6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below N.
"""
def solution(n):
"""Returns the sum of all the multiples of 3 or 5 below n.
>>> solution(3)
0
>>> solution(4)
3
>>> solution(10)
23
>>> solution(600)
83700
"""
a = 3
result = 0
while a < n:
if a % 3 == 0 or a % 5 == 0:
result += a
elif a % 15 == 0:
result -= a
a += 1
return result
if __name__ == "__main__":
print(solution(int(input().strip())))
|
"""
Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3,5,6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below N.
"""
def solution(n):
"""Returns the sum of all the multiples of 3 or 5 below n.
>>> solution(3)
0
>>> solution(4)
3
>>> solution(10)
23
>>> solution(600)
83700
"""
a = 3
result = 0
while a < n:
if a % 3 == 0 or a % 5 == 0:
result += a
elif a % 15 == 0:
result -= a
a += 1
return result
if __name__ == '__main__':
print(solution(int(input().strip())))
|
'''
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))
|
# encoding: utf-8
# module _symtable
# from (built-in)
# by generator 1.145
# no doc
# no imports
# Variables with simple values
CELL = 5
DEF_BOUND = 134
DEF_FREE = 32
DEF_FREE_CLASS = 64
DEF_GLOBAL = 1
DEF_IMPORT = 128
DEF_LOCAL = 2
DEF_PARAM = 4
FREE = 4
GLOBAL_EXPLICIT = 2
GLOBAL_IMPLICIT = 3
LOCAL = 1
SCOPE_MASK = 15
SCOPE_OFF = 11
TYPE_CLASS = 1
TYPE_FUNCTION = 0
TYPE_MODULE = 2
USE = 16
# functions
def symtable(*args, **kwargs): # real signature unknown
""" Return symbol and scope dictionaries used internally by compiler. """
pass
# classes
class __loader__(object):
"""
Meta path import for built-in modules.
All methods are either class or static methods to avoid the need to
instantiate the class.
"""
@classmethod
def create_module(cls, *args, **kwargs): # real signature unknown
""" Create a built-in module """
pass
@classmethod
def exec_module(cls, *args, **kwargs): # real signature unknown
""" Exec a built-in module """
pass
@classmethod
def find_module(cls, *args, **kwargs): # real signature unknown
"""
Find the built-in module.
If 'path' is ever specified then the search is considered a failure.
This method is deprecated. Use find_spec() instead.
"""
pass
@classmethod
def find_spec(cls, *args, **kwargs): # real signature unknown
pass
@classmethod
def get_code(cls, *args, **kwargs): # real signature unknown
""" Return None as built-in modules do not have code objects. """
pass
@classmethod
def get_source(cls, *args, **kwargs): # real signature unknown
""" Return None as built-in modules do not have source code. """
pass
@classmethod
def is_package(cls, *args, **kwargs): # real signature unknown
""" Return False as built-in modules are never packages. """
pass
@classmethod
def load_module(cls, *args, **kwargs): # real signature unknown
"""
Load the specified module into sys.modules and return it.
This method is deprecated. Use loader.exec_module instead.
"""
pass
def module_repr(module): # reliably restored by inspect
"""
Return repr for the module.
The method is deprecated. The import machinery does the job itself.
"""
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""list of weak references to the object (if defined)"""
__dict__ = None # (!) real value is ''
# variables with complex values
__spec__ = None # (!) real value is ''
|
cell = 5
def_bound = 134
def_free = 32
def_free_class = 64
def_global = 1
def_import = 128
def_local = 2
def_param = 4
free = 4
global_explicit = 2
global_implicit = 3
local = 1
scope_mask = 15
scope_off = 11
type_class = 1
type_function = 0
type_module = 2
use = 16
def symtable(*args, **kwargs):
""" Return symbol and scope dictionaries used internally by compiler. """
pass
class __Loader__(object):
"""
Meta path import for built-in modules.
All methods are either class or static methods to avoid the need to
instantiate the class.
"""
@classmethod
def create_module(cls, *args, **kwargs):
""" Create a built-in module """
pass
@classmethod
def exec_module(cls, *args, **kwargs):
""" Exec a built-in module """
pass
@classmethod
def find_module(cls, *args, **kwargs):
"""
Find the built-in module.
If 'path' is ever specified then the search is considered a failure.
This method is deprecated. Use find_spec() instead.
"""
pass
@classmethod
def find_spec(cls, *args, **kwargs):
pass
@classmethod
def get_code(cls, *args, **kwargs):
""" Return None as built-in modules do not have code objects. """
pass
@classmethod
def get_source(cls, *args, **kwargs):
""" Return None as built-in modules do not have source code. """
pass
@classmethod
def is_package(cls, *args, **kwargs):
""" Return False as built-in modules are never packages. """
pass
@classmethod
def load_module(cls, *args, **kwargs):
"""
Load the specified module into sys.modules and return it.
This method is deprecated. Use loader.exec_module instead.
"""
pass
def module_repr(module):
"""
Return repr for the module.
The method is deprecated. The import machinery does the job itself.
"""
pass
def __init__(self, *args, **kwargs):
pass
__weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)
'list of weak references to the object (if defined)'
__dict__ = None
__spec__ = None
|
# 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]
|
""" Asked by: Amazon [Medium]
Given a string s and an integer k, break up the string into multiple lines such that each line has a length of k or less.
You must break it up so that words don't break across lines.
Each line has to have the maximum possible amount of words.
If there's no way to break the text up, then return null.
You can assume that there are no spaces at the ends of the string
and that there is exactly one space between each word.
For example, given the string "the quick brown fox jumps over the lazy dog" and k = 10,
you should return: ["the quick", "brown fox", "jumps over", "the lazy", "dog"].
No string in the list has a length of more than 10.
"""
|
""" Asked by: Amazon [Medium]
Given a string s and an integer k, break up the string into multiple lines such that each line has a length of k or less.
You must break it up so that words don't break across lines.
Each line has to have the maximum possible amount of words.
If there's no way to break the text up, then return null.
You can assume that there are no spaces at the ends of the string
and that there is exactly one space between each word.
For example, given the string "the quick brown fox jumps over the lazy dog" and k = 10,
you should return: ["the quick", "brown fox", "jumps over", "the lazy", "dog"].
No string in the list has a length of more than 10.
"""
|
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'}]}
|
"""
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Resource base classes.
"""
__docformat__ = "reStructuredText en"
__all__ = ['RELATION_BASE_URL',
]
RELATION_BASE_URL = 'http://relations.thelma.org'
|
"""
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Resource base classes.
"""
__docformat__ = 'reStructuredText en'
__all__ = ['RELATION_BASE_URL']
relation_base_url = 'http://relations.thelma.org'
|
test = {
'name': 'FooBar',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
>>> class Foo:
... def print_one(self):
... print('foo')
... def print_two():
... print('foofoo')
>>> f = Foo()
>>> f.print_one()
foo
>>> f.print_two()
Error
>>> Foo.print_two()
foofoo
>>> class Bar(Foo):
... def print_one(self):
... print('bar')
>>> b = Bar()
>>> b.print_one()
bar
>>> Bar.print_two()
foofoo
>>> Bar.print_one = lambda x: print('new bar')
>>> b.print_one()
new bar
""",
'hidden': False,
'locked': False
}
],
'scored': False,
'type': 'wwpp'
}
]
}
|
test = {'name': 'FooBar', 'points': 0, 'suites': [{'cases': [{'code': "\n >>> class Foo:\n ... def print_one(self):\n ... print('foo')\n ... def print_two():\n ... print('foofoo')\n >>> f = Foo()\n >>> f.print_one()\n foo\n >>> f.print_two()\n Error\n >>> Foo.print_two()\n foofoo\n >>> class Bar(Foo):\n ... def print_one(self):\n ... print('bar')\n >>> b = Bar()\n >>> b.print_one()\n bar\n >>> Bar.print_two()\n foofoo\n >>> Bar.print_one = lambda x: print('new bar')\n >>> b.print_one()\n new bar\n ", 'hidden': False, 'locked': False}], 'scored': False, 'type': 'wwpp'}]}
|
# 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))
|
"""
error models for pybugsnag
"""
class PyBugsnagException(Exception):
"""base pybugsnag exception class"""
def __init__(self, *args, **kwargs):
extra = ""
if args:
extra = '\n| extra info: "{extra}"'.format(extra=args[0])
print(
"[{exception}]: {doc}{extra}".format(
exception=self.__class__.__name__, doc=self.__doc__, extra=extra
)
)
Exception.__init__(self, *args, **kwargs)
class RateLimited(PyBugsnagException):
"""request received a 429 - you are currently rate limited"""
|
"""
error models for pybugsnag
"""
class Pybugsnagexception(Exception):
"""base pybugsnag exception class"""
def __init__(self, *args, **kwargs):
extra = ''
if args:
extra = '\n| extra info: "{extra}"'.format(extra=args[0])
print('[{exception}]: {doc}{extra}'.format(exception=self.__class__.__name__, doc=self.__doc__, extra=extra))
Exception.__init__(self, *args, **kwargs)
class Ratelimited(PyBugsnagException):
"""request received a 429 - you are currently rate limited"""
|
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
|
class Peak:
"""A peak found in spectra.
Attributes:
id: Rounded X-coordinate used to collate peak data
x: X-coordinates of peak along its traversal through spectra
y: Y-coordinates of peak along its traversal through spectra
z: Z-coordinates of peak along its traversal through spectra
"""
def __init__(self, peak_id, x, y, z):
self.peak_id = peak_id
self.x = x
self.y = y
self.z = z
self.length = len(x) + len(y) + len(z)
def add_coordinates(self, x, y, z):
"""Adds x, y, z co-ordinates to their respective lists."""
self.x.extend(x)
self.y.extend(y)
self.z.extend(z)
def remove_coordinates(self, amount):
"""Removes number of co-ordinates to solve missing data problem (https://en.wikipedia.org/wiki/Missing_data)
(Length of peak data will differ across all peaks, so remove redundant
data to ensure peak data matches average length of all detected peak data."""
for i in range(amount):
self.x.pop()
self.y.pop()
self.z.pop()
def peak_length(self):
self.length = len(self.z)
return self.length
def x_coordinates(self):
return self.x
def y_coordinates(self):
return self.y
def z_coordinates(self):
return self.z
|
class Peak:
"""A peak found in spectra.
Attributes:
id: Rounded X-coordinate used to collate peak data
x: X-coordinates of peak along its traversal through spectra
y: Y-coordinates of peak along its traversal through spectra
z: Z-coordinates of peak along its traversal through spectra
"""
def __init__(self, peak_id, x, y, z):
self.peak_id = peak_id
self.x = x
self.y = y
self.z = z
self.length = len(x) + len(y) + len(z)
def add_coordinates(self, x, y, z):
"""Adds x, y, z co-ordinates to their respective lists."""
self.x.extend(x)
self.y.extend(y)
self.z.extend(z)
def remove_coordinates(self, amount):
"""Removes number of co-ordinates to solve missing data problem (https://en.wikipedia.org/wiki/Missing_data)
(Length of peak data will differ across all peaks, so remove redundant
data to ensure peak data matches average length of all detected peak data."""
for i in range(amount):
self.x.pop()
self.y.pop()
self.z.pop()
def peak_length(self):
self.length = len(self.z)
return self.length
def x_coordinates(self):
return self.x
def y_coordinates(self):
return self.y
def z_coordinates(self):
return self.z
|
_base_ = './classifier.py'
model = dict(
type='TaskIncrementalLwF',
head=dict(
type='TaskIncLwfHead'
)
)
|
_base_ = './classifier.py'
model = dict(type='TaskIncrementalLwF', head=dict(type='TaskIncLwfHead'))
|
def part_one(inputs):
return get_acc(inputs, False)
def part_two(inputs):
for current_line in range(len(inputs)):
backup = inputs[current_line]
try:
if inputs[current_line][:3] == 'nop' and inputs[current_line][4:] != '+0':
inputs[current_line] = 'jmp' + inputs[current_line][3:]
return get_acc(inputs, True)
elif inputs[current_line][:3] == 'jmp':
inputs[current_line] = 'nop' + inputs[current_line][3:]
return get_acc(inputs, True)
except:
inputs[current_line] = backup
def get_acc(inputs, raise_on_loop):
executed_lines = set()
acc = 0
current_line = 0
while current_line not in executed_lines:
if current_line >= len(inputs):
return acc
executed_lines.add(current_line)
if inputs[current_line][:3] == 'nop':
current_line += 1
elif inputs[current_line][:3] == 'jmp':
current_line += int(inputs[current_line][4:])
elif inputs[current_line][:3] == 'acc':
acc += int(inputs[current_line][4:])
current_line += 1
if raise_on_loop:
raise
else:
return acc
test_inputs = """nop +0
acc +1
jmp +4
acc +3
jmp -3
acc -99
acc +1
jmp -4
acc +6""".split('\n')
assert part_one(test_inputs) == 5
assert part_two(test_inputs) == 8
with open('day8.input') as f:
inputs = f.read().splitlines()
print(part_one(inputs))
print(part_two(inputs))
|
def part_one(inputs):
return get_acc(inputs, False)
def part_two(inputs):
for current_line in range(len(inputs)):
backup = inputs[current_line]
try:
if inputs[current_line][:3] == 'nop' and inputs[current_line][4:] != '+0':
inputs[current_line] = 'jmp' + inputs[current_line][3:]
return get_acc(inputs, True)
elif inputs[current_line][:3] == 'jmp':
inputs[current_line] = 'nop' + inputs[current_line][3:]
return get_acc(inputs, True)
except:
inputs[current_line] = backup
def get_acc(inputs, raise_on_loop):
executed_lines = set()
acc = 0
current_line = 0
while current_line not in executed_lines:
if current_line >= len(inputs):
return acc
executed_lines.add(current_line)
if inputs[current_line][:3] == 'nop':
current_line += 1
elif inputs[current_line][:3] == 'jmp':
current_line += int(inputs[current_line][4:])
elif inputs[current_line][:3] == 'acc':
acc += int(inputs[current_line][4:])
current_line += 1
if raise_on_loop:
raise
else:
return acc
test_inputs = 'nop +0\nacc +1\njmp +4\nacc +3\njmp -3\nacc -99\nacc +1\njmp -4\nacc +6'.split('\n')
assert part_one(test_inputs) == 5
assert part_two(test_inputs) == 8
with open('day8.input') as f:
inputs = f.read().splitlines()
print(part_one(inputs))
print(part_two(inputs))
|
# 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'
|
"""Top-level package for mkdocs-github-dashboard."""
__author__ = """mkdocs-github-dashboard"""
__email__ = 'ms.kataoka@gmail.com'
__version__ = '0.1.0'
|
"""Top-level package for mkdocs-github-dashboard."""
__author__ = 'mkdocs-github-dashboard'
__email__ = 'ms.kataoka@gmail.com'
__version__ = '0.1.0'
|
# -*- 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()
|
class Solution(object):
def maxProfit(self, k, prices):
"""
:type k: int
:type prices: List[int]
:rtype: int
"""
if not prices:
return 0
n=len(prices)
if k>n//2:
return sum([prices[i+1]-prices[i] if prices[i+1]>prices[i] else 0 for i in range(n-1)])
G=[[0]*n for _ in range(k+1)]
for i in range(1,k+1):
L=[0 for _ in range(n)]
for j in range(1,n):
p=prices[j]-prices[j-1]
# cal local max
L[j]=max(G[i-1][j-1]+p, L[j-1]+p)
# cal global max
G[i][j]=max(G[i][j-1], L[j])
return G[-1][-1]
|
class Solution(object):
def max_profit(self, k, prices):
"""
:type k: int
:type prices: List[int]
:rtype: int
"""
if not prices:
return 0
n = len(prices)
if k > n // 2:
return sum([prices[i + 1] - prices[i] if prices[i + 1] > prices[i] else 0 for i in range(n - 1)])
g = [[0] * n for _ in range(k + 1)]
for i in range(1, k + 1):
l = [0 for _ in range(n)]
for j in range(1, n):
p = prices[j] - prices[j - 1]
L[j] = max(G[i - 1][j - 1] + p, L[j - 1] + p)
G[i][j] = max(G[i][j - 1], L[j])
return G[-1][-1]
|
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)'
|
class Solution:
"""
@param n: An integer
@return: An integer
"""
def climbStairs(self, n):
# write your code here
# initialization:
dp = [0 for _ in range(n + 1)]
dp[0] = 1
dp[1] = 1
# state: dp[i] represents how many ways to reach step i
# function: dp[i] = dp[i - 1] + dp[i - 2]
for i in range(2, n + 1):
dp[i] = dp[i - 1] + dp[i - 2]
# answer: dp[n] represents the number of ways to reach n
return dp[n]
|
class Solution:
"""
@param n: An integer
@return: An integer
"""
def climb_stairs(self, n):
dp = [0 for _ in range(n + 1)]
dp[0] = 1
dp[1] = 1
for i in range(2, n + 1):
dp[i] = dp[i - 1] + dp[i - 2]
return dp[n]
|
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)
|
"""
After an apology from the opponent (they play C while it plays D, only happens when they play D first), if the opponent
immediately plays D, it plays another C instead of punishing in order to encourage the opponent to get back to CC-chain
(i.e. olive branch). If it plays D in this turn or the next one, go full D.
Difference between oliveOneCM is that it requires 2 turns of good relations instead of 1.
"""
# memory[0] is 2 or 1 if it is currently doing the olive branch procedure, memory[1] is true if it is playing all D.
def strategy(history, memory):
if history.shape[1] == 0:
return 1, [0, False]
elif history[1][-1] == 0 and history[0][-1] == 1: # new betrayal
if history.shape[1] > 2 and history[0][-2] == 0: # just exited apology cycle
return 1, [2, False]
elif memory[0] > 0: # betrayed during the 'good relations' period
memory[1] = True
elif history[1][-1] == 1 and memory[0] > 0:
memory[0] -= 1
if memory[1]:
return 0, memory
return history[1][-1], memory
|
"""
After an apology from the opponent (they play C while it plays D, only happens when they play D first), if the opponent
immediately plays D, it plays another C instead of punishing in order to encourage the opponent to get back to CC-chain
(i.e. olive branch). If it plays D in this turn or the next one, go full D.
Difference between oliveOneCM is that it requires 2 turns of good relations instead of 1.
"""
def strategy(history, memory):
if history.shape[1] == 0:
return (1, [0, False])
elif history[1][-1] == 0 and history[0][-1] == 1:
if history.shape[1] > 2 and history[0][-2] == 0:
return (1, [2, False])
elif memory[0] > 0:
memory[1] = True
elif history[1][-1] == 1 and memory[0] > 0:
memory[0] -= 1
if memory[1]:
return (0, memory)
return (history[1][-1], memory)
|
# 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))
|
"""
Counts total number of documents.
"""
def do_query(archives, config_file=None, logger=None, context=None):
"""
Iterate through archives and return all titles grouped by year.
"""
# [archive, archive, ...]
documents = archives.flatMap(
lambda archive: [(document.year, document) for document in list(archive)])
info = documents.map(lambda d: (d[0], d[1].title)) \
.groupByKey() \
.map(lambda d: (d[0], list(d[1]))) \
.collect()
return info
|
"""
Counts total number of documents.
"""
def do_query(archives, config_file=None, logger=None, context=None):
"""
Iterate through archives and return all titles grouped by year.
"""
documents = archives.flatMap(lambda archive: [(document.year, document) for document in list(archive)])
info = documents.map(lambda d: (d[0], d[1].title)).groupByKey().map(lambda d: (d[0], list(d[1]))).collect()
return info
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.