content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
def even_odd(*args):
args = list(args)
command = args.pop()
if command == "even":
return [x for x in args if x % 2 == 0]
return [x for x in args if not x % 2 == 0]
print(even_odd(1, 2, 3, 4, 5, 6, "even"))
print(even_odd(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "odd"))
|
def even_odd(*args):
args = list(args)
command = args.pop()
if command == 'even':
return [x for x in args if x % 2 == 0]
return [x for x in args if not x % 2 == 0]
print(even_odd(1, 2, 3, 4, 5, 6, 'even'))
print(even_odd(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'odd'))
|
"""werf_chart_repo_doit_tasks - Doit Tasks for managing Werf chart repo"""
__version__ = '1.0.6'
__author__ = 'Ilya Lesikov <[email protected]>'
__all__ = []
|
"""werf_chart_repo_doit_tasks - Doit Tasks for managing Werf chart repo"""
__version__ = '1.0.6'
__author__ = 'Ilya Lesikov <[email protected]>'
__all__ = []
|
class UnionFind():
def __init__(self, n) -> None:
self.par = [-1] * n
self.siz = [1] * n
# return root of x
def root(self, x):
if self.par[x] == -1:
return x
else:
self.par[x] = self.root(self.par[x])
return self.par[x]
# return if x and y are in the same group
def issame(self, x, y):
return self.root(x) == self.root(y)
# combine group with x and one with y
def unite(self, x, y):
x = self.root(x)
y = self.root(y)
if x == y:
return False
if self.siz[x] < self.siz[y]:
x, y = y, x
# make y child of x
self.par[y] = x
self.siz[x] += self.siz[y]
return True
def size(self, x):
return self.siz[self.root(x)]
def kruskal(edges, n, id_ommit = -1):
uf = UnionFind(len(edges))
edges_used = []
cost = 0
for i in range(len(edges)):
s, t, w = edges[i][0], edges[i][1], edges[i][2]
if (i != id_ommit) & (not uf.issame(s, t)):
uf.unite(s, t)
edges_used.append(i)
cost += w
if len(edges_used) < n - 1:
cost = 10**13 # INF
return edges_used, cost
def main():
N, M = map(int, input().split())
edges = []
for _ in range(M):
s, t, w = map(int, input().split())
edges.append([s-1, t-1, w])
edges = sorted(edges, key=lambda x: x[2])
mst, cost_mst = kruskal(edges, N)
cnt = 0
cost = 0
for id in mst:
st, cost_st = kruskal(edges, N, id)
if cost_st > cost_mst:
cnt += 1
cost += edges[id][2]
print(str(cnt) + " " + str(cost))
if __name__=='__main__':
main()
|
class Unionfind:
def __init__(self, n) -> None:
self.par = [-1] * n
self.siz = [1] * n
def root(self, x):
if self.par[x] == -1:
return x
else:
self.par[x] = self.root(self.par[x])
return self.par[x]
def issame(self, x, y):
return self.root(x) == self.root(y)
def unite(self, x, y):
x = self.root(x)
y = self.root(y)
if x == y:
return False
if self.siz[x] < self.siz[y]:
(x, y) = (y, x)
self.par[y] = x
self.siz[x] += self.siz[y]
return True
def size(self, x):
return self.siz[self.root(x)]
def kruskal(edges, n, id_ommit=-1):
uf = union_find(len(edges))
edges_used = []
cost = 0
for i in range(len(edges)):
(s, t, w) = (edges[i][0], edges[i][1], edges[i][2])
if (i != id_ommit) & (not uf.issame(s, t)):
uf.unite(s, t)
edges_used.append(i)
cost += w
if len(edges_used) < n - 1:
cost = 10 ** 13
return (edges_used, cost)
def main():
(n, m) = map(int, input().split())
edges = []
for _ in range(M):
(s, t, w) = map(int, input().split())
edges.append([s - 1, t - 1, w])
edges = sorted(edges, key=lambda x: x[2])
(mst, cost_mst) = kruskal(edges, N)
cnt = 0
cost = 0
for id in mst:
(st, cost_st) = kruskal(edges, N, id)
if cost_st > cost_mst:
cnt += 1
cost += edges[id][2]
print(str(cnt) + ' ' + str(cost))
if __name__ == '__main__':
main()
|
"""
A custom immutable dictionary data structure
"""
class CustomImmutableDict(dict):
def __getattr__(self, key):
try:
return self[key]
except KeyError as k:
raise AttributeError(k)
def __setattr__(self, key, value):
# self[key] = value
return self._immutable()
def __delattr__(self, key):
return self._immutable()
# try:
# del self[key]
# except KeyError as k:
# raise AttributeError(k)
def __repr__(self):
return '<CustomImmutableDict ' + dict.__repr__(self) + '>'
def __hash__(self):
return id(self)
def _immutable(self, *args, **kws):
raise TypeError('This object is immutable')
__setitem__ = _immutable
__delitem__ = _immutable
clear = _immutable
update = _immutable
setdefault = _immutable
pop = _immutable
popitem = _immutable
|
"""
A custom immutable dictionary data structure
"""
class Customimmutabledict(dict):
def __getattr__(self, key):
try:
return self[key]
except KeyError as k:
raise attribute_error(k)
def __setattr__(self, key, value):
return self._immutable()
def __delattr__(self, key):
return self._immutable()
def __repr__(self):
return '<CustomImmutableDict ' + dict.__repr__(self) + '>'
def __hash__(self):
return id(self)
def _immutable(self, *args, **kws):
raise type_error('This object is immutable')
__setitem__ = _immutable
__delitem__ = _immutable
clear = _immutable
update = _immutable
setdefault = _immutable
pop = _immutable
popitem = _immutable
|
class Node:
def __init__(self, k, v):
self.key = k
self.val = v
self.pre = None
self.nxt = None
class LRUCache:
def __init__(self, capacity: int):
self.store = {}
self.curCap = 0
self.cap = capacity
self.tail = Node(0, 0)
self.head = Node(0, 0)
self.head.nxt = self.tail
self.tail.pre = self.head
def get(self, key: int) -> int:
if key not in self.store:
return -1
val = self.store[key].val
self._remove(self.store[key])
self._add(Node(key, val))
return val
def put(self, key: int, value: int) -> None:
# remove the original if exists
if key in self.store:
self._remove(self.store[key])
if self.curCap == self.cap:
self._remove(self.tail.pre)
self._add(Node(key, value))
def _remove(self, Node):
p, n = Node.pre, Node.nxt
p.nxt, n.pre = n, p
assert(Node.key in self.store)
del self.store[Node.key]
self.curCap -= 1
def _add(self, Node):
# add a node to the beginning
tmp = self.head.nxt
self.head.nxt = Node
Node.nxt = tmp
tmp.pre = Node
Node.pre = self.head
assert(Node.key not in self.store)
self.store[Node.key] = Node
self.curCap += 1
# Your LRUCache object will be instantiated and called as such:
# obj = LRUCache(capacity)
# param_1 = obj.get(key)
# obj.put(key,value)
|
class Node:
def __init__(self, k, v):
self.key = k
self.val = v
self.pre = None
self.nxt = None
class Lrucache:
def __init__(self, capacity: int):
self.store = {}
self.curCap = 0
self.cap = capacity
self.tail = node(0, 0)
self.head = node(0, 0)
self.head.nxt = self.tail
self.tail.pre = self.head
def get(self, key: int) -> int:
if key not in self.store:
return -1
val = self.store[key].val
self._remove(self.store[key])
self._add(node(key, val))
return val
def put(self, key: int, value: int) -> None:
if key in self.store:
self._remove(self.store[key])
if self.curCap == self.cap:
self._remove(self.tail.pre)
self._add(node(key, value))
def _remove(self, Node):
(p, n) = (Node.pre, Node.nxt)
(p.nxt, n.pre) = (n, p)
assert Node.key in self.store
del self.store[Node.key]
self.curCap -= 1
def _add(self, Node):
tmp = self.head.nxt
self.head.nxt = Node
Node.nxt = tmp
tmp.pre = Node
Node.pre = self.head
assert Node.key not in self.store
self.store[Node.key] = Node
self.curCap += 1
|
# Lab 5
'''
G=(V,E)
Let V be the set v0,v1,v2,...
(i.e., with ascending non-negative indices)
and E be the set e0,e1,e2,...
(i.e., with ascending non-negative indices)
'''
class stack:
def __init__(self):
self.lifo = []
def push(self,ele):
self.lifo = self.lifo + [ele]
return True
def pop(self):
if self.lifo == []:
return False
else:
pop_ele = self.lifo[-1]
self.lifo = self.lifo[0:-1]
return pop_ele
def isEmpty(self):
if self.lifo == []:
return True
else:
return False
class queue:
def __init__(self):
self.fifo = []
def push(self,ele):
self.fifo = self.fifo + [ele]
return True
def pop(self):
if self.fifo == []:
return False
else:
pop_ele = self.fifo[0]
self.fifo = self.fifo[1:len(self.fifo)]
return pop_ele
def isEmpty(self):
if self.fifo == []:
return True
else:
return False
class graph:
# create an empty store for the graph, which will be an adjacency list
def __init__(self):
self.store = []
# add "n" vertices to the graph
# return the value of the final number of vertices in the graph
# if there is an error return -1
def addVertex(self,n):
if (n <= 0):
return -1
for i in range (0,n):
self.store = self.store + [[]]
return len(self.store)
# from_idx and to_idx are nonnegative integers
# directed is either True or False
# weight is any integer other than 0
# this function adds an edge (a directed edge if directed==True, otherwise an undirected edge) from vertex<from_idx> to vertex<to_idx> with "weight"
# if there is an error return False, else True
def addEdge(self,from_idx,to_idx,directed,weight):
if (from_idx not in range (0,len(self.store))) or (to_idx not in range (0,len(self.store))) or type(directed) != bool or weight == 0:
return False
self.store[from_idx] = self.store[from_idx] + [[to_idx,weight]]
if directed == False:
self.store[to_idx] = self.store[to_idx] + [[from_idx,weight]]
return True
# return a list obtained from a breadth (typeBreadth==True) or depth (typeBreadth==False) traversal of the graph
# breadth traversal uses queue
# depth traversal uses stack
# if there is an error, return an empty list
# return a list consisting of all nodes visited via the traversal
# if start is set, this will be one list
# if start is not set, this will be a list of lists
def traverse(self,start,typeBreadth):
# initialize C to empty
if typeBreadth == True: # breadth traversal
C = queue()
elif typeBreadth == False: # depth traversal
C = stack()
else:
return []
while C.isEmpty == False:
C.pop()
# initialize Discovered and Processed to have as many slots as there are v in V
# set all slots of Discovered and Processed to be False
Discovered = []
Processed = []
for i in range (0,len(self.store)):
Discovered += [False]
Processed += [False]
rlist = []
V = []
# if start==None->traversal must traverse the entire graph
if start == None:
V = list(range(0,len(self.store)))
# if start is integer in range of graph vertices indices, traversal is only to vertices that are connected to it
elif type(start) == int:
if start not in range (0,len(self.store)):
return []
V = [start]
else:
return []
for v in V:
sublist = []
if Discovered[v] == False:
C.push(v)
Discovered[v] = True
w = C.pop()
while (type(w) == int):
if (Processed[w] == False):
sublist = sublist + [w]
Processed[w] = True
# for x = all vertices adjacent to w
for x in self.store[w]:
if Discovered[x[0]] == False:
C.push(x[0])
Discovered[x[0]] = True
w = C.pop()
if start == None:
rlist = rlist + [sublist]
else:
rlist = rlist + sublist
return rlist
# return a 2-list
# element[0] is True if there is a path from vx to vy, else False
# element[1] is True if there is a path from vy to vx, else False
def connectivity(self,vx,vy):
rlist = [False,False]
for i in self.traverse(vx,False):
if (i == vy):
rlist[0] = True
for i in self.traverse(vy,False):
if (i == vx):
rlist[1] = True
return rlist
# return a 2-list
# element[0] is a list of vertices from vx to vy, if there is a path, otherwise []
# element[1] is a list of vertices from vy to vx, if there is a path, otherwise []
# include endpoints
def path(self,vx,vy):
rlist = [[],[]]
if (self.connectivity(vx,vy)[0] == True):
rlist[0] = self.helper_path(vx,vy,[])
if (self.connectivity(vx,vy)[1] == True):
rlist[1] = self.helper_path(vy,vx,[])
return rlist
def helper_path(self,vx,vy,temp_list):
found = False
if (vx == vy):
temp_list += [vx]
return temp_list
vy_idx = -1
cnt = 0
for i in self.traverse(vx,False):
if (i == vy):
found = True
vy_idx = cnt
break
cnt+=1
# find the last directly connected vertex to vx on path to vy
last_idx = -1
for i in range(0,len(self.traverse(vx,False))):
for j in range(0,len(self.store[vx])):
if (self.traverse(vx,False)[i] == self.store[vx][j]) and (i<vy_idx):
if (i > last_idx):
last_idx = i
else:
break
# add all elements in depth search from last directly connected to vy to vy to path
for i in range(last_idx+1,vy_idx):
if (self.connectivity(self.traverse(vx,False)[i],vy)[0] == True):
temp_list += [self.traverse(vx,False)[i]]
temp_list += [self.traverse(vx,False)[vy_idx]]
return temp_list
|
"""
G=(V,E)
Let V be the set v0,v1,v2,...
(i.e., with ascending non-negative indices)
and E be the set e0,e1,e2,...
(i.e., with ascending non-negative indices)
"""
class Stack:
def __init__(self):
self.lifo = []
def push(self, ele):
self.lifo = self.lifo + [ele]
return True
def pop(self):
if self.lifo == []:
return False
else:
pop_ele = self.lifo[-1]
self.lifo = self.lifo[0:-1]
return pop_ele
def is_empty(self):
if self.lifo == []:
return True
else:
return False
class Queue:
def __init__(self):
self.fifo = []
def push(self, ele):
self.fifo = self.fifo + [ele]
return True
def pop(self):
if self.fifo == []:
return False
else:
pop_ele = self.fifo[0]
self.fifo = self.fifo[1:len(self.fifo)]
return pop_ele
def is_empty(self):
if self.fifo == []:
return True
else:
return False
class Graph:
def __init__(self):
self.store = []
def add_vertex(self, n):
if n <= 0:
return -1
for i in range(0, n):
self.store = self.store + [[]]
return len(self.store)
def add_edge(self, from_idx, to_idx, directed, weight):
if from_idx not in range(0, len(self.store)) or to_idx not in range(0, len(self.store)) or type(directed) != bool or (weight == 0):
return False
self.store[from_idx] = self.store[from_idx] + [[to_idx, weight]]
if directed == False:
self.store[to_idx] = self.store[to_idx] + [[from_idx, weight]]
return True
def traverse(self, start, typeBreadth):
if typeBreadth == True:
c = queue()
elif typeBreadth == False:
c = stack()
else:
return []
while C.isEmpty == False:
C.pop()
discovered = []
processed = []
for i in range(0, len(self.store)):
discovered += [False]
processed += [False]
rlist = []
v = []
if start == None:
v = list(range(0, len(self.store)))
elif type(start) == int:
if start not in range(0, len(self.store)):
return []
v = [start]
else:
return []
for v in V:
sublist = []
if Discovered[v] == False:
C.push(v)
Discovered[v] = True
w = C.pop()
while type(w) == int:
if Processed[w] == False:
sublist = sublist + [w]
Processed[w] = True
for x in self.store[w]:
if Discovered[x[0]] == False:
C.push(x[0])
Discovered[x[0]] = True
w = C.pop()
if start == None:
rlist = rlist + [sublist]
else:
rlist = rlist + sublist
return rlist
def connectivity(self, vx, vy):
rlist = [False, False]
for i in self.traverse(vx, False):
if i == vy:
rlist[0] = True
for i in self.traverse(vy, False):
if i == vx:
rlist[1] = True
return rlist
def path(self, vx, vy):
rlist = [[], []]
if self.connectivity(vx, vy)[0] == True:
rlist[0] = self.helper_path(vx, vy, [])
if self.connectivity(vx, vy)[1] == True:
rlist[1] = self.helper_path(vy, vx, [])
return rlist
def helper_path(self, vx, vy, temp_list):
found = False
if vx == vy:
temp_list += [vx]
return temp_list
vy_idx = -1
cnt = 0
for i in self.traverse(vx, False):
if i == vy:
found = True
vy_idx = cnt
break
cnt += 1
last_idx = -1
for i in range(0, len(self.traverse(vx, False))):
for j in range(0, len(self.store[vx])):
if self.traverse(vx, False)[i] == self.store[vx][j] and i < vy_idx:
if i > last_idx:
last_idx = i
else:
break
for i in range(last_idx + 1, vy_idx):
if self.connectivity(self.traverse(vx, False)[i], vy)[0] == True:
temp_list += [self.traverse(vx, False)[i]]
temp_list += [self.traverse(vx, False)[vy_idx]]
return temp_list
|
# omnibool.py
# https://www.codewars.com/kata/5a5f9f80f5dc3f942b002309/train/python
class Omnibool():
def __eq__(self, x):
return True
if __name__ == "__main__":
omnibool = Omnibool()
print(omnibool == True and omnibool == False)
|
class Omnibool:
def __eq__(self, x):
return True
if __name__ == '__main__':
omnibool = omnibool()
print(omnibool == True and omnibool == False)
|
def get_test_accounts() -> dict:
return {
'development': {
'color': '#388E3C',
'team': 'awesome-team',
'region': 'us-east-1',
'profiles': [
{
'profile': 'developer',
'account': '123495678901',
'role': 'developer',
'default': 'true',
},
{
'profile': 'readonly',
'account': '012349567890',
'role': 'readonly',
}
]
},
'live': {
'color': '#388E3C',
'team': 'awesome-team',
'region': 'us-east-1',
'profiles': [
{
'profile': 'developer',
'account': '123456789012',
'role': 'developer',
'default': 'true',
},
{
'profile': 'readonly',
'account': '012345678901',
'role': 'readonly',
}
]
}
}
def get_test_group():
return {
'color': '#388E3C',
'team': 'awesome-team',
'region': 'us-east-1',
'profiles': [
{
'profile': 'developer',
'account': '123456789012',
'role': 'developer',
},
{
'profile': 'readonly',
'account': '012345678901',
'role': 'readonly',
'default': 'true',
}
]
}
def get_test_group_no_default():
return {
'color': '#388E3C',
'team': 'awesome-team',
'region': 'us-east-1',
'profiles': [
{
'profile': 'developer',
'account': '123456789012',
'role': 'developer',
},
{
'profile': 'readonly',
'account': '012345678901',
'role': 'readonly'
}
]
}
def get_test_group_chain_assume():
return {
'color': '#388E3C',
'team': 'awesome-team',
'region': 'us-east-1',
'profiles': [
{
'profile': 'developer',
'account': '123456789012',
'role': 'developer',
},
{
'profile': 'service',
'account': '012345678901',
'role': 'service',
'source': 'developer'
}
]
}
def get_test_profile():
return {
'profile': 'readonly',
'account': '123456789012',
'role': 'readonly-role',
'default': 'true',
}
def get_test_profile_no_default():
return {
'profile': 'readonly',
'account': '123456789012',
'role': 'readonly-role',
}
|
def get_test_accounts() -> dict:
return {'development': {'color': '#388E3C', 'team': 'awesome-team', 'region': 'us-east-1', 'profiles': [{'profile': 'developer', 'account': '123495678901', 'role': 'developer', 'default': 'true'}, {'profile': 'readonly', 'account': '012349567890', 'role': 'readonly'}]}, 'live': {'color': '#388E3C', 'team': 'awesome-team', 'region': 'us-east-1', 'profiles': [{'profile': 'developer', 'account': '123456789012', 'role': 'developer', 'default': 'true'}, {'profile': 'readonly', 'account': '012345678901', 'role': 'readonly'}]}}
def get_test_group():
return {'color': '#388E3C', 'team': 'awesome-team', 'region': 'us-east-1', 'profiles': [{'profile': 'developer', 'account': '123456789012', 'role': 'developer'}, {'profile': 'readonly', 'account': '012345678901', 'role': 'readonly', 'default': 'true'}]}
def get_test_group_no_default():
return {'color': '#388E3C', 'team': 'awesome-team', 'region': 'us-east-1', 'profiles': [{'profile': 'developer', 'account': '123456789012', 'role': 'developer'}, {'profile': 'readonly', 'account': '012345678901', 'role': 'readonly'}]}
def get_test_group_chain_assume():
return {'color': '#388E3C', 'team': 'awesome-team', 'region': 'us-east-1', 'profiles': [{'profile': 'developer', 'account': '123456789012', 'role': 'developer'}, {'profile': 'service', 'account': '012345678901', 'role': 'service', 'source': 'developer'}]}
def get_test_profile():
return {'profile': 'readonly', 'account': '123456789012', 'role': 'readonly-role', 'default': 'true'}
def get_test_profile_no_default():
return {'profile': 'readonly', 'account': '123456789012', 'role': 'readonly-role'}
|
def NoC():
paid = int(input())
moneyL = [500, 100, 50, 10, 5, 1]
count = 0
leftOver = 1000 - paid
for each in moneyL:
n = leftOver//each
if n > 0:
count += n
leftOver -= n * each
elif n == 0:
pass
return count
print(NoC())
|
def no_c():
paid = int(input())
money_l = [500, 100, 50, 10, 5, 1]
count = 0
left_over = 1000 - paid
for each in moneyL:
n = leftOver // each
if n > 0:
count += n
left_over -= n * each
elif n == 0:
pass
return count
print(no_c())
|
class SourceDto:
"""Data transfer object class for Source-type Airbyte abstractions"""
def __init__(self):
self.source_definition_id = None
self.source_id = None
self.workspace_id = None
self.connection_configuration = {}
self.name = None
self.source_name = None
self.tag = None
def to_payload(self):
"""sends this dto object to a dict formatted as a payload"""
r = {}
r['sourceDefinitionId'] = self.source_definition_id
r['sourceId'] = self.source_id
r['workspaceId'] = self.workspace_id
r['connectionConfiguration'] = self.connection_configuration
r['name'] = self.name
r['sourceName'] = self.source_name
return r
class DestinationDto:
"""Data transfer object class for Destination-type Airbyte abstractions"""
def __init__(self):
self.destination_definition_id = None
self.destination_id = None
self.workspace_id = None
self.connection_configuration = {}
self.name = None
self.destination_name = None
self.tag = None
def to_payload(self):
"""sends this dto object to a dict formatted as a payload"""
r = {}
r['destinationDefinitionId'] = self.destination_definition_id
r['destinationId'] = self.destination_id
r['workspaceId'] = self.workspace_id
r['connectionConfiguration'] = self.connection_configuration
r['name'] = self.name
r['destinationName'] = self.destination_name
return r
class ConnectionDto:
"""Data transfer object class for Connection-type Airbyte abstractions"""
def __init__(self):
self.connection_id = None
self.name = None
self.prefix = None
self.source_id = None
self.destination_id = None
self.sync_catalog = {} # sync_catalog['streams'] is a list of dicts {stream:, config:}
self.schedule = {}
self.status = None
def to_payload(self):
pass # TODO: implement the to_payload method
class StreamDto:
"""Data transfer object class for the stream, belongs to the connection abstraction"""
def __init__(self):
self.name = None
self.json_schema = {}
self.supported_sync_modes = []
self.source_defined_cursor = None
self.default_cursor_field = []
self.source_defined_primary_key = []
self.namespace = None
class StreamConfigDto:
"""Data transfer object class for the stream configuration, belongs to the connection abstraction"""
def __init__(self):
self.sync_mode = None
self.cursor_field = []
self.destination_sync_mode = None
self.primary_key = []
self.alias_name = None
self.selected = None
class WorkspaaceDto:
"""Data transfer object class for Workspace-type Airbyte abstractions"""
def __init__(self):
pass
class AirbyteDtoFactory:
"""
Builds data transfer objects, each representing an abstraction inside the Airbyte architecture
"""
def __init__(self, source_definitions, destination_definitions):
self.source_definitions = source_definitions
self.destination_definitions = destination_definitions
def populate_secrets(self, secrets, new_dtos):
# TODO: Find a better way to deal with unpredictably named secrets
if 'sources' in new_dtos:
for source in new_dtos['sources']:
if source.source_name in secrets['sources']:
if 'access_token' in source.connection_configuration:
source.connection_configuration['access_token'] = secrets['sources'][source.source_name]['access_token']
elif 'token' in source.connection_configuration:
source.connection_configuration['token'] = secrets['sources'][source.source_name]['token']
if 'destinations' in new_dtos:
for destination in new_dtos['destinations']:
if destination.destination_name in secrets['destinations']:
if 'password' in destination.connection_configuration:
destination.connection_configuration['password'] = secrets['destinations'][destination.destination_name]['password']
def build_source_dto(self, source: dict) -> SourceDto:
"""
Builds a SourceDto object from a dict representing a source
"""
r = SourceDto()
r.connection_configuration = source['connectionConfiguration']
r.name = source['name']
r.source_name = source['sourceName']
if 'sourceDefinitionId' in source:
r.source_definition_id = source['sourceDefinitionId']
else:
for definition in self.source_definitions['sourceDefinitions']:
if r.source_name == definition['name']:
r.source_definition_id = definition['sourceDefinitionId']
if 'sourceId' in source:
r.source_id = source['sourceId']
if 'workspaceId' in source:
r.workspace_id = source['workspaceId']
if 'tag' in source:
r.tag = source['tag']
# TODO: check for validity?
return r
def build_destination_dto(self, destination):
r = DestinationDto()
r.connection_configuration = destination['connectionConfiguration']
r.destination_name = destination['destinationName']
r.name = destination['name']
if 'destinationDefinitionId' in destination:
r.destination_definition_id = destination['destinationDefinitionId']
else:
for definition in self.destination_definitions['destinationDefinitions']:
if r.destination_name == definition['name']:
r.destination_definition_id = definition['destinationDefinitionId']
if 'destinationId' in destination:
r.destination_id = destination['destinationId']
if 'workspaceId' in destination:
r.workspace_id = destination['workspaceId']
if 'tag' in destination:
r.tag = destination['tag']
# TODO: check for validity?
return r
def build_connection_dto(self, connection):
r = ConnectionDto()
r.connection_id = connection['connectionId']
r.name = connection['name']
r.prefix = connection['prefix']
r.source_id = connection['sourceId']
r.destination_id = connection['destinationId']
r.sync_catalog = connection['syncCatalog']
r.schedule = connection['schedule']
r.status = connection['status']
# TODO: check for validity?
return r
|
class Sourcedto:
"""Data transfer object class for Source-type Airbyte abstractions"""
def __init__(self):
self.source_definition_id = None
self.source_id = None
self.workspace_id = None
self.connection_configuration = {}
self.name = None
self.source_name = None
self.tag = None
def to_payload(self):
"""sends this dto object to a dict formatted as a payload"""
r = {}
r['sourceDefinitionId'] = self.source_definition_id
r['sourceId'] = self.source_id
r['workspaceId'] = self.workspace_id
r['connectionConfiguration'] = self.connection_configuration
r['name'] = self.name
r['sourceName'] = self.source_name
return r
class Destinationdto:
"""Data transfer object class for Destination-type Airbyte abstractions"""
def __init__(self):
self.destination_definition_id = None
self.destination_id = None
self.workspace_id = None
self.connection_configuration = {}
self.name = None
self.destination_name = None
self.tag = None
def to_payload(self):
"""sends this dto object to a dict formatted as a payload"""
r = {}
r['destinationDefinitionId'] = self.destination_definition_id
r['destinationId'] = self.destination_id
r['workspaceId'] = self.workspace_id
r['connectionConfiguration'] = self.connection_configuration
r['name'] = self.name
r['destinationName'] = self.destination_name
return r
class Connectiondto:
"""Data transfer object class for Connection-type Airbyte abstractions"""
def __init__(self):
self.connection_id = None
self.name = None
self.prefix = None
self.source_id = None
self.destination_id = None
self.sync_catalog = {}
self.schedule = {}
self.status = None
def to_payload(self):
pass
class Streamdto:
"""Data transfer object class for the stream, belongs to the connection abstraction"""
def __init__(self):
self.name = None
self.json_schema = {}
self.supported_sync_modes = []
self.source_defined_cursor = None
self.default_cursor_field = []
self.source_defined_primary_key = []
self.namespace = None
class Streamconfigdto:
"""Data transfer object class for the stream configuration, belongs to the connection abstraction"""
def __init__(self):
self.sync_mode = None
self.cursor_field = []
self.destination_sync_mode = None
self.primary_key = []
self.alias_name = None
self.selected = None
class Workspaacedto:
"""Data transfer object class for Workspace-type Airbyte abstractions"""
def __init__(self):
pass
class Airbytedtofactory:
"""
Builds data transfer objects, each representing an abstraction inside the Airbyte architecture
"""
def __init__(self, source_definitions, destination_definitions):
self.source_definitions = source_definitions
self.destination_definitions = destination_definitions
def populate_secrets(self, secrets, new_dtos):
if 'sources' in new_dtos:
for source in new_dtos['sources']:
if source.source_name in secrets['sources']:
if 'access_token' in source.connection_configuration:
source.connection_configuration['access_token'] = secrets['sources'][source.source_name]['access_token']
elif 'token' in source.connection_configuration:
source.connection_configuration['token'] = secrets['sources'][source.source_name]['token']
if 'destinations' in new_dtos:
for destination in new_dtos['destinations']:
if destination.destination_name in secrets['destinations']:
if 'password' in destination.connection_configuration:
destination.connection_configuration['password'] = secrets['destinations'][destination.destination_name]['password']
def build_source_dto(self, source: dict) -> SourceDto:
"""
Builds a SourceDto object from a dict representing a source
"""
r = source_dto()
r.connection_configuration = source['connectionConfiguration']
r.name = source['name']
r.source_name = source['sourceName']
if 'sourceDefinitionId' in source:
r.source_definition_id = source['sourceDefinitionId']
else:
for definition in self.source_definitions['sourceDefinitions']:
if r.source_name == definition['name']:
r.source_definition_id = definition['sourceDefinitionId']
if 'sourceId' in source:
r.source_id = source['sourceId']
if 'workspaceId' in source:
r.workspace_id = source['workspaceId']
if 'tag' in source:
r.tag = source['tag']
return r
def build_destination_dto(self, destination):
r = destination_dto()
r.connection_configuration = destination['connectionConfiguration']
r.destination_name = destination['destinationName']
r.name = destination['name']
if 'destinationDefinitionId' in destination:
r.destination_definition_id = destination['destinationDefinitionId']
else:
for definition in self.destination_definitions['destinationDefinitions']:
if r.destination_name == definition['name']:
r.destination_definition_id = definition['destinationDefinitionId']
if 'destinationId' in destination:
r.destination_id = destination['destinationId']
if 'workspaceId' in destination:
r.workspace_id = destination['workspaceId']
if 'tag' in destination:
r.tag = destination['tag']
return r
def build_connection_dto(self, connection):
r = connection_dto()
r.connection_id = connection['connectionId']
r.name = connection['name']
r.prefix = connection['prefix']
r.source_id = connection['sourceId']
r.destination_id = connection['destinationId']
r.sync_catalog = connection['syncCatalog']
r.schedule = connection['schedule']
r.status = connection['status']
return r
|
def get_average(g):
return sum(g) / len(g)
n = int(input())
students_record = {}
for _ in range(n):
student, grade = input().split()
if student not in students_record:
students_record[student] = []
students_record[student].append(float(grade))
for s, g in students_record.items():
average = get_average(g)
grades = ' '.join(f"{x:.2f}" for x in g)
print(f"{s} -> {grades} (avg: {average:.2f})")
|
def get_average(g):
return sum(g) / len(g)
n = int(input())
students_record = {}
for _ in range(n):
(student, grade) = input().split()
if student not in students_record:
students_record[student] = []
students_record[student].append(float(grade))
for (s, g) in students_record.items():
average = get_average(g)
grades = ' '.join((f'{x:.2f}' for x in g))
print(f'{s} -> {grades} (avg: {average:.2f})')
|
names = ["Alan", "Bruce", "Carlos", "David", "Emma"]
scores = [90, 80, 85, 92, 81]
for name in names:
print("hello, %s!" % name)
|
names = ['Alan', 'Bruce', 'Carlos', 'David', 'Emma']
scores = [90, 80, 85, 92, 81]
for name in names:
print('hello, %s!' % name)
|
"""
This module takes an adapter as data supplier, pack data and provide data for data iterators
"""
class ProviderBaseclass(object):
"""
This is the baseclass of packer. Any other detailed packer must inherit this class.
"""
def __init__(self):
pass
def __str__(self):
return self.__class__.__name__
def __del__(self):
pass
def write(self):
"""
Write a single sample to the files
:return:
"""
raise NotImplementedError()
def read_by_index(self, index):
"""
Read a single sample
:return:
"""
raise NotImplementedError()
if __name__ == '__main__':
provider = ProviderBaseclass()
print(provider)
|
"""
This module takes an adapter as data supplier, pack data and provide data for data iterators
"""
class Providerbaseclass(object):
"""
This is the baseclass of packer. Any other detailed packer must inherit this class.
"""
def __init__(self):
pass
def __str__(self):
return self.__class__.__name__
def __del__(self):
pass
def write(self):
"""
Write a single sample to the files
:return:
"""
raise not_implemented_error()
def read_by_index(self, index):
"""
Read a single sample
:return:
"""
raise not_implemented_error()
if __name__ == '__main__':
provider = provider_baseclass()
print(provider)
|
def insertShiftArray(arr, num):
count = len(arr)
middle = len(arr) // 2
shift_arr = []
for i in range(count):
if i != middle:
shift_arr.append(arr[i])
else:
if count % 2 == 0:
shift_arr.append(num)
shift_arr.append(arr[i])
else:
shift_arr.append(arr[i])
shift_arr.append(num)
return shift_arr
|
def insert_shift_array(arr, num):
count = len(arr)
middle = len(arr) // 2
shift_arr = []
for i in range(count):
if i != middle:
shift_arr.append(arr[i])
elif count % 2 == 0:
shift_arr.append(num)
shift_arr.append(arr[i])
else:
shift_arr.append(arr[i])
shift_arr.append(num)
return shift_arr
|
"""Reusable unique item gatherer. Returns unique values with optional list_in and blacklists"""
class GatherUnique:
"""
Reusable unique item gatherer. Returns unique values with optional list_in and blacklists
"""
def __init__(self):
self._header = ''
"""Optional header to display to user when gathering entries stdin"""
self._list_in = []
"""optional input parameter, in lieu of stdin prompting"""
self._gathered = []
"""Unique items reconciled against potential blacklist(s)"""
self._black_lists = []
"""Optional list(s) of items to verify against"""
def _reset(self):
"""
Reset attributes
"""
self._header = ''
self._list_in.clear()
self._black_lists.clear()
self._gathered.clear()
def _not_in_args(self, item) -> bool:
"""
Check given item against black lists
"""
for black_list in self._black_lists:
if item in black_list:
return False
return True
def _gather_from_stdin(self) -> None:
"""
Gathers input from user, split by newline. Runs until blank line submitted.
Sorts against blacklists into _gathered
"""
print("\n" + self._header + "\n")
prompt: str = None
while prompt != '':
prompt = input('> ').lower().strip()
if prompt != '' and prompt not in self._gathered and self._not_in_args(prompt):
self._gathered.append(prompt)
def _gather_from_list_in(self):
"""
Gathers items from given list_in, sorts against blacklists into _gathered
"""
for item in self._list_in:
if item not in self._gathered and self._not_in_args(item):
self._gathered.append(item)
def _return_gathered(self) -> list:
"""
Returns gathered list, resets working attributes
"""
# Save gathered, clear attributes, return
to_return = self._gathered.copy()
self._reset()
return to_return
def run(self,
header: str = '', list_in: list = None,
**blacklists) -> list:
"""
Gathers a list of unique entries from user, with optional blacklists and header prompt
Note: Item type depends on gathering method. If using stdin, anticipate string returns.
Otherwise, use list_in
Args:
header: Header prompt to display to user on startup.
list_in: An optional input parameter. Feeding a list bypasses stdin, and straight to
unique list generation. If black lists are provided, reconciles against them.
blacklists: Optional *kwargs for one or more blacklists to check entires against.
Returned list will not contain any blacklisted entries. (Note: kwargs used only for
flexible positioning. Arg names literally do not matter)
Returns:
Unique list of values, either from stdin or list_in arg
"""
# Assign running attributes
self._header = header
self._list_in = list_in
for blist in blacklists.values():
self._black_lists.append(blist)
if list_in:
self._gather_from_list_in()
else:
self._gather_from_stdin()
return self._return_gathered()
|
"""Reusable unique item gatherer. Returns unique values with optional list_in and blacklists"""
class Gatherunique:
"""
Reusable unique item gatherer. Returns unique values with optional list_in and blacklists
"""
def __init__(self):
self._header = ''
'Optional header to display to user when gathering entries stdin'
self._list_in = []
'optional input parameter, in lieu of stdin prompting'
self._gathered = []
'Unique items reconciled against potential blacklist(s)'
self._black_lists = []
'Optional list(s) of items to verify against'
def _reset(self):
"""
Reset attributes
"""
self._header = ''
self._list_in.clear()
self._black_lists.clear()
self._gathered.clear()
def _not_in_args(self, item) -> bool:
"""
Check given item against black lists
"""
for black_list in self._black_lists:
if item in black_list:
return False
return True
def _gather_from_stdin(self) -> None:
"""
Gathers input from user, split by newline. Runs until blank line submitted.
Sorts against blacklists into _gathered
"""
print('\n' + self._header + '\n')
prompt: str = None
while prompt != '':
prompt = input('> ').lower().strip()
if prompt != '' and prompt not in self._gathered and self._not_in_args(prompt):
self._gathered.append(prompt)
def _gather_from_list_in(self):
"""
Gathers items from given list_in, sorts against blacklists into _gathered
"""
for item in self._list_in:
if item not in self._gathered and self._not_in_args(item):
self._gathered.append(item)
def _return_gathered(self) -> list:
"""
Returns gathered list, resets working attributes
"""
to_return = self._gathered.copy()
self._reset()
return to_return
def run(self, header: str='', list_in: list=None, **blacklists) -> list:
"""
Gathers a list of unique entries from user, with optional blacklists and header prompt
Note: Item type depends on gathering method. If using stdin, anticipate string returns.
Otherwise, use list_in
Args:
header: Header prompt to display to user on startup.
list_in: An optional input parameter. Feeding a list bypasses stdin, and straight to
unique list generation. If black lists are provided, reconciles against them.
blacklists: Optional *kwargs for one or more blacklists to check entires against.
Returned list will not contain any blacklisted entries. (Note: kwargs used only for
flexible positioning. Arg names literally do not matter)
Returns:
Unique list of values, either from stdin or list_in arg
"""
self._header = header
self._list_in = list_in
for blist in blacklists.values():
self._black_lists.append(blist)
if list_in:
self._gather_from_list_in()
else:
self._gather_from_stdin()
return self._return_gathered()
|
"""
consensys_utils.flask.config
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
App configuration
:copyright: Copyright 2017 by ConsenSys France.
:license: BSD, see :ref:`license` for more details.
"""
def set_app_config(app, config=None):
"""Set application configuration
:param app: Flask application
:type app: :class:`flask.Flask`
:param config: Optional Application configuration
:type config: dict
"""
if config:
app.config.update(config)
|
"""
consensys_utils.flask.config
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
App configuration
:copyright: Copyright 2017 by ConsenSys France.
:license: BSD, see :ref:`license` for more details.
"""
def set_app_config(app, config=None):
"""Set application configuration
:param app: Flask application
:type app: :class:`flask.Flask`
:param config: Optional Application configuration
:type config: dict
"""
if config:
app.config.update(config)
|
# Carve
# sigs = [255,214,124,179,233]
# msks = [0,9,3,12,6]
# Door
# sigs = [192,48]
# msks = [15,15]
# Freestanding
# sigs=[0,0,0,0,16,64,32,128,161,104,84,146]
# msks=[8,4,2,1,6,12,9,3,10,5,10,5]
# Walls
sigs=[251,233,253,84,146,80,16,144,112,208,241,248,210,177,225,120,179,0,124,104,161,64,240,128,224,176,242,244,116,232,178,212,247,214,254,192,48,96,32,160,245,250,243,249,246,252]
msks=[0,6,0,11,13,11,15,13,3,9,0,0,9,12,6,3,12,15,3,7,14,15,0,15,6,12,0,0,3,6,12,9,0,9,0,15,15,7,15,14,0,0,0,0,0,0]
l = len(sigs)
rows = [[0, 5, 3], [7, 8, 6], [1, 4, 2]]
for i in range(len(sigs)):
s = f'{sigs[i]}/{msks[i]}'
s += ' ' * (8 - len(s))
print(s, end='')
print('\n' + '-----' * l + '---' * (l-1))
for row in rows:
s = ''
for i in range(len(sigs)):
for col in row:
sig = sigs[i]
msk = msks[i]
if msk & (1<<col):
s += '* '
elif sig & (1<<col):
s += '1 '
else:
s += '0 '
s += ' '
print(s)
for i in range(len(sigs)):
sigs[i] |= msks[i]
print(sigs)
|
sigs = [251, 233, 253, 84, 146, 80, 16, 144, 112, 208, 241, 248, 210, 177, 225, 120, 179, 0, 124, 104, 161, 64, 240, 128, 224, 176, 242, 244, 116, 232, 178, 212, 247, 214, 254, 192, 48, 96, 32, 160, 245, 250, 243, 249, 246, 252]
msks = [0, 6, 0, 11, 13, 11, 15, 13, 3, 9, 0, 0, 9, 12, 6, 3, 12, 15, 3, 7, 14, 15, 0, 15, 6, 12, 0, 0, 3, 6, 12, 9, 0, 9, 0, 15, 15, 7, 15, 14, 0, 0, 0, 0, 0, 0]
l = len(sigs)
rows = [[0, 5, 3], [7, 8, 6], [1, 4, 2]]
for i in range(len(sigs)):
s = f'{sigs[i]}/{msks[i]}'
s += ' ' * (8 - len(s))
print(s, end='')
print('\n' + '-----' * l + '---' * (l - 1))
for row in rows:
s = ''
for i in range(len(sigs)):
for col in row:
sig = sigs[i]
msk = msks[i]
if msk & 1 << col:
s += '* '
elif sig & 1 << col:
s += '1 '
else:
s += '0 '
s += ' '
print(s)
for i in range(len(sigs)):
sigs[i] |= msks[i]
print(sigs)
|
# -*- coding: utf-8 -*-
"""
authors: Dawud Hage, Joost Meulenbeld, Joost Dorscheidt and Dennis van der Hoff
written for the NN course IN4015 of the TUDelft
"""
##### SETTINGS: #####
# Number of epochs to train the network over
n_epoch = 0
# Folder where the training superbatches are stored
training_folder= 'selection'
# Folder where the validation superbatches are stored
validation_folder= 'selection'
# The colorspace to run the NN in
colorspace= 'CIELab'
# Parameter folder where the parameter files are stored
param_folder = 'params_final_final'
# Parameter file to initialize the network with (do not add .npy), None for no file
param_file = 'params_fruit_Compact_more_end_fmaps_dilation_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch_25.0'
# Parameter file to save the trained parameters to every epoch (do not add .npy), None for no file
param_save_file = 'params_fruit_Compact_more_end_fmaps_dilation_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch_25.0'
# error folder where the error files are stored
error_folder = 'errors_final'
# Error file to append with the new training and validation errors (do not add .npy), None dont save
error_file = 'errors_fruit_Compact_more_end_fmaps_classifier_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch22'
# The architecture to use, can be 'Dahl' or 'Compact' or 'Compact_more_end_fmaps' or 'Dahl_classifier' or 'Dahl_Zhang' or 'Dahl_Zhang_NO_VGG16' or 'Compact_more_end_fmaps_classifier'
architecture= 'Compact_more_end_fmaps_dilation'
# Blur radius
sigma = 3;
# Turn on classification
classification=True
# Colorbin settings:
colorbins_k = 10 # k nearers neughbours
colorbins_T = 0.4 # Temperature
colorbins_sigma = 5 # K nearest neighbour sigma (blur the distance to the bin)
colorbins_nbins = 20 # Number of colorbins
colorbins_labda = 0.5 # Uniform distributie mix factor
colorbins_gridsize=10
|
"""
authors: Dawud Hage, Joost Meulenbeld, Joost Dorscheidt and Dennis van der Hoff
written for the NN course IN4015 of the TUDelft
"""
n_epoch = 0
training_folder = 'selection'
validation_folder = 'selection'
colorspace = 'CIELab'
param_folder = 'params_final_final'
param_file = 'params_fruit_Compact_more_end_fmaps_dilation_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch_25.0'
param_save_file = 'params_fruit_Compact_more_end_fmaps_dilation_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch_25.0'
error_folder = 'errors_final'
error_file = 'errors_fruit_Compact_more_end_fmaps_classifier_k10_T02_sigma5_nbins20_labda_03_gridsize10_epoch22'
architecture = 'Compact_more_end_fmaps_dilation'
sigma = 3
classification = True
colorbins_k = 10
colorbins_t = 0.4
colorbins_sigma = 5
colorbins_nbins = 20
colorbins_labda = 0.5
colorbins_gridsize = 10
|
#
# PySNMP MIB module ZONE-DEFENSE-MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZONE-DEFENSE-MGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:48:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
dlink_common_mgmt, = mibBuilder.importSymbols("DLINK-ID-REC-MIB", "dlink-common-mgmt")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, ObjectIdentity, Integer32, MibIdentifier, Counter64, ModuleIdentity, Counter32, TimeTicks, IpAddress, Gauge32, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ObjectIdentity", "Integer32", "MibIdentifier", "Counter64", "ModuleIdentity", "Counter32", "TimeTicks", "IpAddress", "Gauge32", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "NotificationType")
DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention")
swZoneDefenseMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 12, 92))
if mibBuilder.loadTexts: swZoneDefenseMIB.setLastUpdated('1004120000Z')
if mibBuilder.loadTexts: swZoneDefenseMIB.setOrganization('D-Link Corp.')
if mibBuilder.loadTexts: swZoneDefenseMIB.setContactInfo('http://support.dlink.com')
if mibBuilder.loadTexts: swZoneDefenseMIB.setDescription('The Structure of Zone Defense management for the proprietary enterprise.')
swZoneDefenseMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 171, 12, 92, 1))
swZoneDefenseTable = MibTable((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1), )
if mibBuilder.loadTexts: swZoneDefenseTable.setStatus('current')
if mibBuilder.loadTexts: swZoneDefenseTable.setDescription('This table is used to create or delete Zone Defense ACL rules. The rules for Zone Defense should have the highest priority of all ACL rules.')
swZoneDefenseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1), ).setIndexNames((0, "ZONE-DEFENSE-MGMT-MIB", "swZoneDefenseAddress"))
if mibBuilder.loadTexts: swZoneDefenseEntry.setStatus('current')
if mibBuilder.loadTexts: swZoneDefenseEntry.setDescription('Information about the Zone Defense ACL rule.')
swZoneDefenseAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1, 1), IpAddress())
if mibBuilder.loadTexts: swZoneDefenseAddress.setStatus('current')
if mibBuilder.loadTexts: swZoneDefenseAddress.setDescription('The IP address which will be blocked by the ACL.')
swZoneDefenseRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: swZoneDefenseRowStatus.setStatus('current')
if mibBuilder.loadTexts: swZoneDefenseRowStatus.setDescription('This object indicates the status of this entry.')
mibBuilder.exportSymbols("ZONE-DEFENSE-MGMT-MIB", PYSNMP_MODULE_ID=swZoneDefenseMIB, swZoneDefenseMIBObjects=swZoneDefenseMIBObjects, swZoneDefenseTable=swZoneDefenseTable, swZoneDefenseEntry=swZoneDefenseEntry, swZoneDefenseRowStatus=swZoneDefenseRowStatus, swZoneDefenseMIB=swZoneDefenseMIB, swZoneDefenseAddress=swZoneDefenseAddress)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(dlink_common_mgmt,) = mibBuilder.importSymbols('DLINK-ID-REC-MIB', 'dlink-common-mgmt')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(iso, object_identity, integer32, mib_identifier, counter64, module_identity, counter32, time_ticks, ip_address, gauge32, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ObjectIdentity', 'Integer32', 'MibIdentifier', 'Counter64', 'ModuleIdentity', 'Counter32', 'TimeTicks', 'IpAddress', 'Gauge32', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'NotificationType')
(display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention')
sw_zone_defense_mib = module_identity((1, 3, 6, 1, 4, 1, 171, 12, 92))
if mibBuilder.loadTexts:
swZoneDefenseMIB.setLastUpdated('1004120000Z')
if mibBuilder.loadTexts:
swZoneDefenseMIB.setOrganization('D-Link Corp.')
if mibBuilder.loadTexts:
swZoneDefenseMIB.setContactInfo('http://support.dlink.com')
if mibBuilder.loadTexts:
swZoneDefenseMIB.setDescription('The Structure of Zone Defense management for the proprietary enterprise.')
sw_zone_defense_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 171, 12, 92, 1))
sw_zone_defense_table = mib_table((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1))
if mibBuilder.loadTexts:
swZoneDefenseTable.setStatus('current')
if mibBuilder.loadTexts:
swZoneDefenseTable.setDescription('This table is used to create or delete Zone Defense ACL rules. The rules for Zone Defense should have the highest priority of all ACL rules.')
sw_zone_defense_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1)).setIndexNames((0, 'ZONE-DEFENSE-MGMT-MIB', 'swZoneDefenseAddress'))
if mibBuilder.loadTexts:
swZoneDefenseEntry.setStatus('current')
if mibBuilder.loadTexts:
swZoneDefenseEntry.setDescription('Information about the Zone Defense ACL rule.')
sw_zone_defense_address = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1, 1), ip_address())
if mibBuilder.loadTexts:
swZoneDefenseAddress.setStatus('current')
if mibBuilder.loadTexts:
swZoneDefenseAddress.setDescription('The IP address which will be blocked by the ACL.')
sw_zone_defense_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 12, 92, 1, 1, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
swZoneDefenseRowStatus.setStatus('current')
if mibBuilder.loadTexts:
swZoneDefenseRowStatus.setDescription('This object indicates the status of this entry.')
mibBuilder.exportSymbols('ZONE-DEFENSE-MGMT-MIB', PYSNMP_MODULE_ID=swZoneDefenseMIB, swZoneDefenseMIBObjects=swZoneDefenseMIBObjects, swZoneDefenseTable=swZoneDefenseTable, swZoneDefenseEntry=swZoneDefenseEntry, swZoneDefenseRowStatus=swZoneDefenseRowStatus, swZoneDefenseMIB=swZoneDefenseMIB, swZoneDefenseAddress=swZoneDefenseAddress)
|
class ToolStripItemEventArgs(EventArgs):
"""
Provides data for System.Windows.Forms.ToolStripItem events.
ToolStripItemEventArgs(item: ToolStripItem)
"""
def __getitem__(self, *args):
""" x.__getitem__(y) <==> x[y] """
pass
@staticmethod
def __new__(self, item):
""" __new__(cls: type,item: ToolStripItem) """
pass
Item = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Gets a System.Windows.Forms.ToolStripItem for which to handle events.
Get: Item(self: ToolStripItemEventArgs) -> ToolStripItem
"""
|
class Toolstripitemeventargs(EventArgs):
"""
Provides data for System.Windows.Forms.ToolStripItem events.
ToolStripItemEventArgs(item: ToolStripItem)
"""
def __getitem__(self, *args):
""" x.__getitem__(y) <==> x[y] """
pass
@staticmethod
def __new__(self, item):
""" __new__(cls: type,item: ToolStripItem) """
pass
item = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a System.Windows.Forms.ToolStripItem for which to handle events.\n\n\n\nGet: Item(self: ToolStripItemEventArgs) -> ToolStripItem\n\n\n\n'
|
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
class ClassPropertyDescriptor:
def __init__(self, fget):
self.fget = fget
def __get__(self, obj, klass=None):
if klass is None:
klass = type(obj)
return self.fget.__get__(obj, klass)()
def classproperty(func):
"""
Allow for getter property usage on classmethods
cf: https://stackoverflow.com/questions/5189699/how-to-make-a-class-property
"""
if not isinstance(func, (classmethod, staticmethod)):
func = classmethod(func)
return ClassPropertyDescriptor(func)
|
class Classpropertydescriptor:
def __init__(self, fget):
self.fget = fget
def __get__(self, obj, klass=None):
if klass is None:
klass = type(obj)
return self.fget.__get__(obj, klass)()
def classproperty(func):
"""
Allow for getter property usage on classmethods
cf: https://stackoverflow.com/questions/5189699/how-to-make-a-class-property
"""
if not isinstance(func, (classmethod, staticmethod)):
func = classmethod(func)
return class_property_descriptor(func)
|
print('4. testing integrated scan functions:')
print('testing xanes')
xanes(erange = [7112-30, 7112-20, 7112+30],
estep = [2, 5],
harmonic = None,
acqtime=0.2, roinum=1, i0scale = 1e8, itscale = 1e8,samplename='test',filename='test')
|
print('4. testing integrated scan functions:')
print('testing xanes')
xanes(erange=[7112 - 30, 7112 - 20, 7112 + 30], estep=[2, 5], harmonic=None, acqtime=0.2, roinum=1, i0scale=100000000.0, itscale=100000000.0, samplename='test', filename='test')
|
class CouldNotConfigureException(BaseException):
def __str__(self):
return "Could not configure the repository."
class NotABinaryExecutableException(BaseException):
def __str__(self):
return "The file given is not a binary executable"
class ParametersNotAcceptedException(BaseException):
def __str__(self):
return "The search parameters given were not accepted by the github api"
class NoCoverageInformation(BaseException):
def __init__(self, binary_path):
self.binary_path = binary_path
def __str__(self):
return "Could not get any coverage information for " + str(self.binary_path)
|
class Couldnotconfigureexception(BaseException):
def __str__(self):
return 'Could not configure the repository.'
class Notabinaryexecutableexception(BaseException):
def __str__(self):
return 'The file given is not a binary executable'
class Parametersnotacceptedexception(BaseException):
def __str__(self):
return 'The search parameters given were not accepted by the github api'
class Nocoverageinformation(BaseException):
def __init__(self, binary_path):
self.binary_path = binary_path
def __str__(self):
return 'Could not get any coverage information for ' + str(self.binary_path)
|
#
# PySNMP MIB module Nortel-MsCarrier-MscPassport-BaseSnmpMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-BaseSnmpMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:19:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection")
DisplayString, TruthValue, RowStatus, Status, StorageType, Integer32, Unsigned32 = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB", "DisplayString", "TruthValue", "RowStatus", "Status", "StorageType", "Integer32", "Unsigned32")
AsciiString, HexString, NonReplicated = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-TextualConventionsMIB", "AsciiString", "HexString", "NonReplicated")
mscPassportMIBs, = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB", "mscPassportMIBs")
mscVr, mscVrIndex = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVr", "mscVrIndex")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
ObjectIdentity, iso, IpAddress, Counter32, Gauge32, ModuleIdentity, Counter64, TimeTicks, Unsigned32, MibIdentifier, Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "iso", "IpAddress", "Counter32", "Gauge32", "ModuleIdentity", "Counter64", "TimeTicks", "Unsigned32", "MibIdentifier", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
baseSnmpMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36))
mscVrSnmp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8))
mscVrSnmpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1), )
if mibBuilder.loadTexts: mscVrSnmpRowStatusTable.setStatus('mandatory')
mscVrSnmpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"))
if mibBuilder.loadTexts: mscVrSnmpRowStatusEntry.setStatus('mandatory')
mscVrSnmpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpRowStatus.setStatus('mandatory')
mscVrSnmpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpComponentName.setStatus('mandatory')
mscVrSnmpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpStorageType.setStatus('mandatory')
mscVrSnmpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrSnmpIndex.setStatus('mandatory')
mscVrSnmpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20), )
if mibBuilder.loadTexts: mscVrSnmpProvTable.setStatus('mandatory')
mscVrSnmpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"))
if mibBuilder.loadTexts: mscVrSnmpProvEntry.setStatus('mandatory')
mscVrSnmpV1EnableAuthenTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 1), Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpV1EnableAuthenTraps.setStatus('mandatory')
mscVrSnmpV2EnableAuthenTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 2), Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpV2EnableAuthenTraps.setStatus('mandatory')
mscVrSnmpAlarmsAsTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 3), Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpAlarmsAsTraps.setStatus('mandatory')
mscVrSnmpIpStack = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("vrIp", 1), ("ipiFrIpiVc", 2))).clone('vrIp')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpIpStack.setStatus('mandatory')
mscVrSnmpCidInEntTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 5), Status()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpCidInEntTraps.setStatus('mandatory')
mscVrSnmpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21), )
if mibBuilder.loadTexts: mscVrSnmpStateTable.setStatus('mandatory')
mscVrSnmpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"))
if mibBuilder.loadTexts: mscVrSnmpStateEntry.setStatus('mandatory')
mscVrSnmpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpAdminState.setStatus('mandatory')
mscVrSnmpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOperationalState.setStatus('mandatory')
mscVrSnmpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpUsageState.setStatus('mandatory')
mscVrSnmpAvailabilityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpAvailabilityStatus.setStatus('mandatory')
mscVrSnmpProceduralStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpProceduralStatus.setStatus('mandatory')
mscVrSnmpControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpControlStatus.setStatus('mandatory')
mscVrSnmpAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpAlarmStatus.setStatus('mandatory')
mscVrSnmpStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 15))).clone(namedValues=NamedValues(("hotStandby", 0), ("coldStandby", 1), ("providingService", 2), ("notSet", 15))).clone('notSet')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpStandbyStatus.setStatus('mandatory')
mscVrSnmpUnknownStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpUnknownStatus.setStatus('mandatory')
mscVrSnmpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22), )
if mibBuilder.loadTexts: mscVrSnmpStatsTable.setStatus('mandatory')
mscVrSnmpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"))
if mibBuilder.loadTexts: mscVrSnmpStatsEntry.setStatus('mandatory')
mscVrSnmpLastOrChange = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpLastOrChange.setStatus('mandatory')
mscVrSnmpTrapsProcessed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpTrapsProcessed.setStatus('mandatory')
mscVrSnmpTrapsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpTrapsDiscarded.setStatus('mandatory')
mscVrSnmpLastAuthFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpLastAuthFailure.setStatus('mandatory')
mscVrSnmpMgrOfLastAuthFailure = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 5), IpAddress().clone(hexValue="00000000")).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMgrOfLastAuthFailure.setStatus('mandatory')
mscVrSnmpSys = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2))
mscVrSnmpSysRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1), )
if mibBuilder.loadTexts: mscVrSnmpSysRowStatusTable.setStatus('mandatory')
mscVrSnmpSysRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpSysIndex"))
if mibBuilder.loadTexts: mscVrSnmpSysRowStatusEntry.setStatus('mandatory')
mscVrSnmpSysRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysRowStatus.setStatus('mandatory')
mscVrSnmpSysComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysComponentName.setStatus('mandatory')
mscVrSnmpSysStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysStorageType.setStatus('mandatory')
mscVrSnmpSysIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrSnmpSysIndex.setStatus('mandatory')
mscVrSnmpSysProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10), )
if mibBuilder.loadTexts: mscVrSnmpSysProvTable.setStatus('mandatory')
mscVrSnmpSysProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpSysIndex"))
if mibBuilder.loadTexts: mscVrSnmpSysProvEntry.setStatus('mandatory')
mscVrSnmpSysContact = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpSysContact.setStatus('mandatory')
mscVrSnmpSysName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 2), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpSysName.setStatus('mandatory')
mscVrSnmpSysLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 3), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpSysLocation.setStatus('mandatory')
mscVrSnmpSysOpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11), )
if mibBuilder.loadTexts: mscVrSnmpSysOpTable.setStatus('mandatory')
mscVrSnmpSysOpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpSysIndex"))
if mibBuilder.loadTexts: mscVrSnmpSysOpEntry.setStatus('mandatory')
mscVrSnmpSysDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysDescription.setStatus('mandatory')
mscVrSnmpSysObjectId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysObjectId.setStatus('mandatory')
mscVrSnmpSysUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysUpTime.setStatus('mandatory')
mscVrSnmpSysServices = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 127)).clone(6)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpSysServices.setStatus('mandatory')
mscVrSnmpCom = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3))
mscVrSnmpComRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1), )
if mibBuilder.loadTexts: mscVrSnmpComRowStatusTable.setStatus('mandatory')
mscVrSnmpComRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComIndex"))
if mibBuilder.loadTexts: mscVrSnmpComRowStatusEntry.setStatus('mandatory')
mscVrSnmpComRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComRowStatus.setStatus('mandatory')
mscVrSnmpComComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpComComponentName.setStatus('mandatory')
mscVrSnmpComStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpComStorageType.setStatus('mandatory')
mscVrSnmpComIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)))
if mibBuilder.loadTexts: mscVrSnmpComIndex.setStatus('mandatory')
mscVrSnmpComProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10), )
if mibBuilder.loadTexts: mscVrSnmpComProvTable.setStatus('mandatory')
mscVrSnmpComProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComIndex"))
if mibBuilder.loadTexts: mscVrSnmpComProvEntry.setStatus('mandatory')
mscVrSnmpComCommunityString = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 255)).clone(hexValue="7075626c6963")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComCommunityString.setStatus('mandatory')
mscVrSnmpComAccessMode = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("readOnly", 1), ("readWrite", 2))).clone('readOnly')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComAccessMode.setStatus('mandatory')
mscVrSnmpComViewIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComViewIndex.setStatus('mandatory')
mscVrSnmpComTDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("snmpUdpDomain", 1))).clone('snmpUdpDomain')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComTDomain.setStatus('mandatory')
mscVrSnmpComMan = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2))
mscVrSnmpComManRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1), )
if mibBuilder.loadTexts: mscVrSnmpComManRowStatusTable.setStatus('mandatory')
mscVrSnmpComManRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComManIndex"))
if mibBuilder.loadTexts: mscVrSnmpComManRowStatusEntry.setStatus('mandatory')
mscVrSnmpComManRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComManRowStatus.setStatus('mandatory')
mscVrSnmpComManComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpComManComponentName.setStatus('mandatory')
mscVrSnmpComManStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpComManStorageType.setStatus('mandatory')
mscVrSnmpComManIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)))
if mibBuilder.loadTexts: mscVrSnmpComManIndex.setStatus('mandatory')
mscVrSnmpComManProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10), )
if mibBuilder.loadTexts: mscVrSnmpComManProvTable.setStatus('mandatory')
mscVrSnmpComManProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpComManIndex"))
if mibBuilder.loadTexts: mscVrSnmpComManProvEntry.setStatus('mandatory')
mscVrSnmpComManTransportAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComManTransportAddress.setStatus('mandatory')
mscVrSnmpComManPrivileges = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1).clone(hexValue="40")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpComManPrivileges.setStatus('mandatory')
mscVrSnmpAcl = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4))
mscVrSnmpAclRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1), )
if mibBuilder.loadTexts: mscVrSnmpAclRowStatusTable.setStatus('obsolete')
mscVrSnmpAclRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclTargetIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclSubjectIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclResourcesIndex"))
if mibBuilder.loadTexts: mscVrSnmpAclRowStatusEntry.setStatus('obsolete')
mscVrSnmpAclRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpAclRowStatus.setStatus('obsolete')
mscVrSnmpAclComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpAclComponentName.setStatus('obsolete')
mscVrSnmpAclStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpAclStorageType.setStatus('obsolete')
mscVrSnmpAclTargetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048)))
if mibBuilder.loadTexts: mscVrSnmpAclTargetIndex.setStatus('obsolete')
mscVrSnmpAclSubjectIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048)))
if mibBuilder.loadTexts: mscVrSnmpAclSubjectIndex.setStatus('obsolete')
mscVrSnmpAclResourcesIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048)))
if mibBuilder.loadTexts: mscVrSnmpAclResourcesIndex.setStatus('obsolete')
mscVrSnmpAclProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10), )
if mibBuilder.loadTexts: mscVrSnmpAclProvTable.setStatus('obsolete')
mscVrSnmpAclProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclTargetIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclSubjectIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpAclResourcesIndex"))
if mibBuilder.loadTexts: mscVrSnmpAclProvEntry.setStatus('obsolete')
mscVrSnmpAclPrivileges = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1).clone(hexValue="60")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpAclPrivileges.setStatus('obsolete')
mscVrSnmpAclRowStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3))).clone(namedValues=NamedValues(("nonVolatile", 3))).clone('nonVolatile')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpAclRowStorageType.setStatus('obsolete')
mscVrSnmpAclStdRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("active", 1))).clone('active')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpAclStdRowStatus.setStatus('obsolete')
mscVrSnmpParty = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5))
mscVrSnmpPartyRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1), )
if mibBuilder.loadTexts: mscVrSnmpPartyRowStatusTable.setStatus('obsolete')
mscVrSnmpPartyRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpPartyIdentityIndex"))
if mibBuilder.loadTexts: mscVrSnmpPartyRowStatusEntry.setStatus('obsolete')
mscVrSnmpPartyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyRowStatus.setStatus('obsolete')
mscVrSnmpPartyComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpPartyComponentName.setStatus('obsolete')
mscVrSnmpPartyStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpPartyStorageType.setStatus('obsolete')
mscVrSnmpPartyIdentityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 10), ObjectIdentifier())
if mibBuilder.loadTexts: mscVrSnmpPartyIdentityIndex.setStatus('obsolete')
mscVrSnmpPartyProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10), )
if mibBuilder.loadTexts: mscVrSnmpPartyProvTable.setStatus('obsolete')
mscVrSnmpPartyProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpPartyIdentityIndex"))
if mibBuilder.loadTexts: mscVrSnmpPartyProvEntry.setStatus('obsolete')
mscVrSnmpPartyStdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2048))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpPartyStdIndex.setStatus('obsolete')
mscVrSnmpPartyTDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("snmpUdpDomain", 1))).clone('snmpUdpDomain')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyTDomain.setStatus('obsolete')
mscVrSnmpPartyTransportAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 3), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyTransportAddress.setStatus('obsolete')
mscVrSnmpPartyMaxMessageSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(484, 65507)).clone(1400)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyMaxMessageSize.setStatus('obsolete')
mscVrSnmpPartyLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyLocal.setStatus('obsolete')
mscVrSnmpPartyAuthProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 4))).clone(namedValues=NamedValues(("noAuth", 1), ("v2Md5AuthProtocol", 4))).clone('noAuth')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyAuthProtocol.setStatus('obsolete')
mscVrSnmpPartyAuthPrivate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 7), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(hexValue="")).setMaxAccess("writeonly")
if mibBuilder.loadTexts: mscVrSnmpPartyAuthPrivate.setStatus('obsolete')
mscVrSnmpPartyAuthPublic = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 8), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyAuthPublic.setStatus('obsolete')
mscVrSnmpPartyAuthLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647)).clone(300)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyAuthLifetime.setStatus('obsolete')
mscVrSnmpPartyPrivProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2))).clone(namedValues=NamedValues(("noPriv", 2))).clone('noPriv')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyPrivProtocol.setStatus('obsolete')
mscVrSnmpPartyRowStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3))).clone(namedValues=NamedValues(("nonVolatile", 3))).clone('nonVolatile')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyRowStorageType.setStatus('obsolete')
mscVrSnmpPartyStdRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("active", 1))).clone('active')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyStdRowStatus.setStatus('obsolete')
mscVrSnmpPartyOpTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11), )
if mibBuilder.loadTexts: mscVrSnmpPartyOpTable.setStatus('obsolete')
mscVrSnmpPartyOpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpPartyIdentityIndex"))
if mibBuilder.loadTexts: mscVrSnmpPartyOpEntry.setStatus('obsolete')
mscVrSnmpPartyTrapNumbers = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpPartyTrapNumbers.setStatus('obsolete')
mscVrSnmpPartyAuthClock = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpPartyAuthClock.setStatus('obsolete')
mscVrSnmpCon = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6))
mscVrSnmpConRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1), )
if mibBuilder.loadTexts: mscVrSnmpConRowStatusTable.setStatus('obsolete')
mscVrSnmpConRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpConIdentityIndex"))
if mibBuilder.loadTexts: mscVrSnmpConRowStatusEntry.setStatus('obsolete')
mscVrSnmpConRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConRowStatus.setStatus('obsolete')
mscVrSnmpConComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpConComponentName.setStatus('obsolete')
mscVrSnmpConStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpConStorageType.setStatus('obsolete')
mscVrSnmpConIdentityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 10), ObjectIdentifier())
if mibBuilder.loadTexts: mscVrSnmpConIdentityIndex.setStatus('obsolete')
mscVrSnmpConProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10), )
if mibBuilder.loadTexts: mscVrSnmpConProvTable.setStatus('obsolete')
mscVrSnmpConProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpConIdentityIndex"))
if mibBuilder.loadTexts: mscVrSnmpConProvEntry.setStatus('obsolete')
mscVrSnmpConStdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpConStdIndex.setStatus('obsolete')
mscVrSnmpConLocal = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("true", 1))).clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConLocal.setStatus('obsolete')
mscVrSnmpConViewIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConViewIndex.setStatus('obsolete')
mscVrSnmpConLocalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("currentTime", 1))).clone('currentTime')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConLocalTime.setStatus('obsolete')
mscVrSnmpConRowStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3))).clone(namedValues=NamedValues(("nonVolatile", 3))).clone('nonVolatile')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConRowStorageType.setStatus('obsolete')
mscVrSnmpConStdRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("active", 1))).clone('active')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpConStdRowStatus.setStatus('obsolete')
mscVrSnmpView = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7))
mscVrSnmpViewRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1), )
if mibBuilder.loadTexts: mscVrSnmpViewRowStatusTable.setStatus('mandatory')
mscVrSnmpViewRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpViewIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpViewSubtreeIndex"))
if mibBuilder.loadTexts: mscVrSnmpViewRowStatusEntry.setStatus('mandatory')
mscVrSnmpViewRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpViewRowStatus.setStatus('mandatory')
mscVrSnmpViewComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpViewComponentName.setStatus('mandatory')
mscVrSnmpViewStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpViewStorageType.setStatus('mandatory')
mscVrSnmpViewIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)))
if mibBuilder.loadTexts: mscVrSnmpViewIndex.setStatus('mandatory')
mscVrSnmpViewSubtreeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 11), ObjectIdentifier())
if mibBuilder.loadTexts: mscVrSnmpViewSubtreeIndex.setStatus('mandatory')
mscVrSnmpViewProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10), )
if mibBuilder.loadTexts: mscVrSnmpViewProvTable.setStatus('mandatory')
mscVrSnmpViewProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpViewIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpViewSubtreeIndex"))
if mibBuilder.loadTexts: mscVrSnmpViewProvEntry.setStatus('mandatory')
mscVrSnmpViewMask = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 1), HexString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(hexValue="")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpViewMask.setStatus('mandatory')
mscVrSnmpViewType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("includedSubtree", 1), ("excludedSubtree", 2))).clone('includedSubtree')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpViewType.setStatus('mandatory')
mscVrSnmpViewRowStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(3))).clone(namedValues=NamedValues(("nonVolatile", 3))).clone('nonVolatile')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpViewRowStorageType.setStatus('mandatory')
mscVrSnmpViewStdRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("active", 1))).clone('active')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrSnmpViewStdRowStatus.setStatus('mandatory')
mscVrSnmpOr = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8))
mscVrSnmpOrRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1), )
if mibBuilder.loadTexts: mscVrSnmpOrRowStatusTable.setStatus('mandatory')
mscVrSnmpOrRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpOrIndex"))
if mibBuilder.loadTexts: mscVrSnmpOrRowStatusEntry.setStatus('mandatory')
mscVrSnmpOrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOrRowStatus.setStatus('mandatory')
mscVrSnmpOrComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOrComponentName.setStatus('mandatory')
mscVrSnmpOrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOrStorageType.setStatus('mandatory')
mscVrSnmpOrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)))
if mibBuilder.loadTexts: mscVrSnmpOrIndex.setStatus('mandatory')
mscVrSnmpOrOrTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10), )
if mibBuilder.loadTexts: mscVrSnmpOrOrTable.setStatus('mandatory')
mscVrSnmpOrOrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpOrIndex"))
if mibBuilder.loadTexts: mscVrSnmpOrOrEntry.setStatus('mandatory')
mscVrSnmpOrId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOrId.setStatus('mandatory')
mscVrSnmpOrDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1, 3), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpOrDescr.setStatus('mandatory')
mscVrSnmpV2Stats = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9))
mscVrSnmpV2StatsRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1), )
if mibBuilder.loadTexts: mscVrSnmpV2StatsRowStatusTable.setStatus('obsolete')
mscVrSnmpV2StatsRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpV2StatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpV2StatsRowStatusEntry.setStatus('obsolete')
mscVrSnmpV2StatsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsRowStatus.setStatus('obsolete')
mscVrSnmpV2StatsComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsComponentName.setStatus('obsolete')
mscVrSnmpV2StatsStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsStorageType.setStatus('obsolete')
mscVrSnmpV2StatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrSnmpV2StatsIndex.setStatus('obsolete')
mscVrSnmpV2StatsStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10), )
if mibBuilder.loadTexts: mscVrSnmpV2StatsStatsTable.setStatus('obsolete')
mscVrSnmpV2StatsStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpV2StatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpV2StatsStatsEntry.setStatus('obsolete')
mscVrSnmpV2StatsPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsPackets.setStatus('obsolete')
mscVrSnmpV2StatsEncodingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsEncodingErrors.setStatus('obsolete')
mscVrSnmpV2StatsUnknownSrcParties = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsUnknownSrcParties.setStatus('obsolete')
mscVrSnmpV2StatsBadAuths = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsBadAuths.setStatus('obsolete')
mscVrSnmpV2StatsNotInLifetime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsNotInLifetime.setStatus('obsolete')
mscVrSnmpV2StatsWrongDigestValues = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsWrongDigestValues.setStatus('obsolete')
mscVrSnmpV2StatsUnknownContexts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsUnknownContexts.setStatus('obsolete')
mscVrSnmpV2StatsBadOperations = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsBadOperations.setStatus('obsolete')
mscVrSnmpV2StatsSilentDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV2StatsSilentDrops.setStatus('obsolete')
mscVrSnmpV1Stats = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10))
mscVrSnmpV1StatsRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1), )
if mibBuilder.loadTexts: mscVrSnmpV1StatsRowStatusTable.setStatus('mandatory')
mscVrSnmpV1StatsRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpV1StatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpV1StatsRowStatusEntry.setStatus('mandatory')
mscVrSnmpV1StatsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV1StatsRowStatus.setStatus('mandatory')
mscVrSnmpV1StatsComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV1StatsComponentName.setStatus('mandatory')
mscVrSnmpV1StatsStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV1StatsStorageType.setStatus('mandatory')
mscVrSnmpV1StatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrSnmpV1StatsIndex.setStatus('mandatory')
mscVrSnmpV1StatsStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10), )
if mibBuilder.loadTexts: mscVrSnmpV1StatsStatsTable.setStatus('mandatory')
mscVrSnmpV1StatsStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpV1StatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpV1StatsStatsEntry.setStatus('mandatory')
mscVrSnmpV1StatsBadCommunityNames = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV1StatsBadCommunityNames.setStatus('mandatory')
mscVrSnmpV1StatsBadCommunityUses = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpV1StatsBadCommunityUses.setStatus('mandatory')
mscVrSnmpMibIIStats = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11))
mscVrSnmpMibIIStatsRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1), )
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsRowStatusTable.setStatus('mandatory')
mscVrSnmpMibIIStatsRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpMibIIStatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsRowStatusEntry.setStatus('mandatory')
mscVrSnmpMibIIStatsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsRowStatus.setStatus('mandatory')
mscVrSnmpMibIIStatsComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsComponentName.setStatus('mandatory')
mscVrSnmpMibIIStatsStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsStorageType.setStatus('mandatory')
mscVrSnmpMibIIStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsIndex.setStatus('mandatory')
mscVrSnmpMibIIStatsStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10), )
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsStatsTable.setStatus('mandatory')
mscVrSnmpMibIIStatsStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrSnmpMibIIStatsIndex"))
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsStatsEntry.setStatus('mandatory')
mscVrSnmpMibIIStatsInPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInPackets.setStatus('mandatory')
mscVrSnmpMibIIStatsInBadCommunityNames = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInBadCommunityNames.setStatus('mandatory')
mscVrSnmpMibIIStatsInBadCommunityUses = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInBadCommunityUses.setStatus('mandatory')
mscVrSnmpMibIIStatsInAsnParseErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInAsnParseErrs.setStatus('mandatory')
mscVrSnmpMibIIStatsOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutPackets.setStatus('mandatory')
mscVrSnmpMibIIStatsInBadVersions = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInBadVersions.setStatus('mandatory')
mscVrSnmpMibIIStatsInTotalReqVars = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInTotalReqVars.setStatus('mandatory')
mscVrSnmpMibIIStatsInTotalSetVars = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInTotalSetVars.setStatus('mandatory')
mscVrSnmpMibIIStatsInGetRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInGetRequests.setStatus('mandatory')
mscVrSnmpMibIIStatsInGetNexts = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInGetNexts.setStatus('mandatory')
mscVrSnmpMibIIStatsInSetRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsInSetRequests.setStatus('mandatory')
mscVrSnmpMibIIStatsOutTooBigs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutTooBigs.setStatus('mandatory')
mscVrSnmpMibIIStatsOutNoSuchNames = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 13), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutNoSuchNames.setStatus('mandatory')
mscVrSnmpMibIIStatsOutBadValues = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutBadValues.setStatus('mandatory')
mscVrSnmpMibIIStatsOutGenErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutGenErrs.setStatus('mandatory')
mscVrSnmpMibIIStatsOutGetResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 16), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutGetResponses.setStatus('mandatory')
mscVrSnmpMibIIStatsOutTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrSnmpMibIIStatsOutTraps.setStatus('mandatory')
mscVrInitSnmpConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9))
mscVrInitSnmpConfigRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1), )
if mibBuilder.loadTexts: mscVrInitSnmpConfigRowStatusTable.setStatus('obsolete')
mscVrInitSnmpConfigRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrInitSnmpConfigIndex"))
if mibBuilder.loadTexts: mscVrInitSnmpConfigRowStatusEntry.setStatus('obsolete')
mscVrInitSnmpConfigRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrInitSnmpConfigRowStatus.setStatus('obsolete')
mscVrInitSnmpConfigComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrInitSnmpConfigComponentName.setStatus('obsolete')
mscVrInitSnmpConfigStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscVrInitSnmpConfigStorageType.setStatus('obsolete')
mscVrInitSnmpConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscVrInitSnmpConfigIndex.setStatus('obsolete')
mscVrInitSnmpConfigProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10), )
if mibBuilder.loadTexts: mscVrInitSnmpConfigProvTable.setStatus('obsolete')
mscVrInitSnmpConfigProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-VirtualRouterMIB", "mscVrIndex"), (0, "Nortel-MsCarrier-MscPassport-BaseSnmpMIB", "mscVrInitSnmpConfigIndex"))
if mibBuilder.loadTexts: mscVrInitSnmpConfigProvEntry.setStatus('obsolete')
mscVrInitSnmpConfigAgentAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrInitSnmpConfigAgentAddress.setStatus('obsolete')
mscVrInitSnmpConfigManagerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1, 2), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscVrInitSnmpConfigManagerAddress.setStatus('obsolete')
baseSnmpGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1))
baseSnmpGroupCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1))
baseSnmpGroupCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1, 3))
baseSnmpGroupCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1, 3, 2))
baseSnmpCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3))
baseSnmpCapabilitiesCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1))
baseSnmpCapabilitiesCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1, 3))
baseSnmpCapabilitiesCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1, 3, 2))
mibBuilder.exportSymbols("Nortel-MsCarrier-MscPassport-BaseSnmpMIB", mscVrSnmpPartyAuthPublic=mscVrSnmpPartyAuthPublic, mscVrSnmpV2StatsNotInLifetime=mscVrSnmpV2StatsNotInLifetime, mscVrSnmpStatsTable=mscVrSnmpStatsTable, mscVrSnmpComManStorageType=mscVrSnmpComManStorageType, mscVrSnmpComManTransportAddress=mscVrSnmpComManTransportAddress, mscVrSnmpPartyProvTable=mscVrSnmpPartyProvTable, mscVrSnmpMibIIStatsOutBadValues=mscVrSnmpMibIIStatsOutBadValues, mscVrSnmpSysRowStatusTable=mscVrSnmpSysRowStatusTable, mscVrSnmpOrRowStatusTable=mscVrSnmpOrRowStatusTable, mscVrSnmpMibIIStatsStatsEntry=mscVrSnmpMibIIStatsStatsEntry, baseSnmpMIB=baseSnmpMIB, mscVrSnmpLastOrChange=mscVrSnmpLastOrChange, mscVrSnmpComMan=mscVrSnmpComMan, mscVrSnmpPartyAuthClock=mscVrSnmpPartyAuthClock, mscVrSnmpComAccessMode=mscVrSnmpComAccessMode, baseSnmpCapabilitiesCA=baseSnmpCapabilitiesCA, mscVrSnmpAclStorageType=mscVrSnmpAclStorageType, mscVrSnmpConStdIndex=mscVrSnmpConStdIndex, mscVrSnmpMibIIStatsRowStatusEntry=mscVrSnmpMibIIStatsRowStatusEntry, mscVrSnmpStateEntry=mscVrSnmpStateEntry, mscVrSnmpSysIndex=mscVrSnmpSysIndex, mscVrSnmpOrOrTable=mscVrSnmpOrOrTable, mscVrSnmpOrDescr=mscVrSnmpOrDescr, mscVrSnmpViewIndex=mscVrSnmpViewIndex, mscVrSnmp=mscVrSnmp, mscVrSnmpAclStdRowStatus=mscVrSnmpAclStdRowStatus, mscVrSnmpRowStatusEntry=mscVrSnmpRowStatusEntry, mscVrSnmpSysProvEntry=mscVrSnmpSysProvEntry, mscVrSnmpMibIIStatsOutGetResponses=mscVrSnmpMibIIStatsOutGetResponses, mscVrSnmpAdminState=mscVrSnmpAdminState, mscVrInitSnmpConfigRowStatusEntry=mscVrInitSnmpConfigRowStatusEntry, baseSnmpGroupCA=baseSnmpGroupCA, mscVrSnmpAclProvTable=mscVrSnmpAclProvTable, mscVrSnmpV1StatsComponentName=mscVrSnmpV1StatsComponentName, mscVrSnmpMibIIStatsStatsTable=mscVrSnmpMibIIStatsStatsTable, mscVrSnmpV2StatsStatsEntry=mscVrSnmpV2StatsStatsEntry, mscVrSnmpStandbyStatus=mscVrSnmpStandbyStatus, mscVrSnmpPartyStdRowStatus=mscVrSnmpPartyStdRowStatus, mscVrSnmpPartyAuthProtocol=mscVrSnmpPartyAuthProtocol, mscVrSnmpMibIIStatsInBadCommunityNames=mscVrSnmpMibIIStatsInBadCommunityNames, mscVrSnmpComComponentName=mscVrSnmpComComponentName, mscVrSnmpAclResourcesIndex=mscVrSnmpAclResourcesIndex, mscVrSnmpConProvTable=mscVrSnmpConProvTable, mscVrSnmpComponentName=mscVrSnmpComponentName, mscVrSnmpPartyLocal=mscVrSnmpPartyLocal, mscVrSnmpComRowStatusTable=mscVrSnmpComRowStatusTable, mscVrSnmpComManRowStatusTable=mscVrSnmpComManRowStatusTable, mscVrSnmpOrStorageType=mscVrSnmpOrStorageType, mscVrSnmpPartyOpTable=mscVrSnmpPartyOpTable, mscVrSnmpV2StatsSilentDrops=mscVrSnmpV2StatsSilentDrops, mscVrSnmpCidInEntTraps=mscVrSnmpCidInEntTraps, mscVrSnmpV1StatsRowStatus=mscVrSnmpV1StatsRowStatus, mscVrSnmpMibIIStatsInGetRequests=mscVrSnmpMibIIStatsInGetRequests, mscVrSnmpStorageType=mscVrSnmpStorageType, mscVrSnmpV1StatsBadCommunityNames=mscVrSnmpV1StatsBadCommunityNames, mscVrInitSnmpConfigIndex=mscVrInitSnmpConfigIndex, baseSnmpGroupCA02=baseSnmpGroupCA02, mscVrSnmpConRowStorageType=mscVrSnmpConRowStorageType, baseSnmpCapabilitiesCA02A=baseSnmpCapabilitiesCA02A, mscVrSnmpConRowStatusEntry=mscVrSnmpConRowStatusEntry, mscVrSnmpViewRowStatus=mscVrSnmpViewRowStatus, mscVrSnmpSysProvTable=mscVrSnmpSysProvTable, mscVrSnmpSysComponentName=mscVrSnmpSysComponentName, mscVrSnmpComManIndex=mscVrSnmpComManIndex, mscVrSnmpPartyIdentityIndex=mscVrSnmpPartyIdentityIndex, mscVrSnmpOperationalState=mscVrSnmpOperationalState, mscVrSnmpV2StatsComponentName=mscVrSnmpV2StatsComponentName, mscVrSnmpV2StatsIndex=mscVrSnmpV2StatsIndex, mscVrSnmpV2StatsWrongDigestValues=mscVrSnmpV2StatsWrongDigestValues, mscVrSnmpV1StatsStatsEntry=mscVrSnmpV1StatsStatsEntry, mscVrSnmpSysContact=mscVrSnmpSysContact, mscVrInitSnmpConfigProvTable=mscVrInitSnmpConfigProvTable, mscVrInitSnmpConfigManagerAddress=mscVrInitSnmpConfigManagerAddress, mscVrSnmpAclPrivileges=mscVrSnmpAclPrivileges, mscVrSnmpView=mscVrSnmpView, mscVrSnmpMibIIStatsOutGenErrs=mscVrSnmpMibIIStatsOutGenErrs, mscVrSnmpConStorageType=mscVrSnmpConStorageType, mscVrSnmpAclRowStatusEntry=mscVrSnmpAclRowStatusEntry, mscVrSnmpAclRowStatusTable=mscVrSnmpAclRowStatusTable, mscVrSnmpV2StatsStatsTable=mscVrSnmpV2StatsStatsTable, mscVrSnmpMibIIStatsOutNoSuchNames=mscVrSnmpMibIIStatsOutNoSuchNames, mscVrSnmpV2StatsPackets=mscVrSnmpV2StatsPackets, mscVrSnmpTrapsDiscarded=mscVrSnmpTrapsDiscarded, mscVrSnmpOrRowStatusEntry=mscVrSnmpOrRowStatusEntry, mscVrSnmpAclSubjectIndex=mscVrSnmpAclSubjectIndex, mscVrSnmpRowStatus=mscVrSnmpRowStatus, mscVrSnmpViewSubtreeIndex=mscVrSnmpViewSubtreeIndex, mscVrSnmpV2StatsRowStatusEntry=mscVrSnmpV2StatsRowStatusEntry, mscVrInitSnmpConfig=mscVrInitSnmpConfig, mscVrSnmpAclProvEntry=mscVrSnmpAclProvEntry, mscVrSnmpViewStdRowStatus=mscVrSnmpViewStdRowStatus, mscVrSnmpSysName=mscVrSnmpSysName, mscVrSnmpPartyMaxMessageSize=mscVrSnmpPartyMaxMessageSize, mscVrSnmpV2StatsEncodingErrors=mscVrSnmpV2StatsEncodingErrors, mscVrSnmpLastAuthFailure=mscVrSnmpLastAuthFailure, mscVrSnmpAlarmStatus=mscVrSnmpAlarmStatus, mscVrSnmpSysStorageType=mscVrSnmpSysStorageType, mscVrSnmpAclRowStorageType=mscVrSnmpAclRowStorageType, mscVrSnmpV1StatsIndex=mscVrSnmpV1StatsIndex, mscVrSnmpSysUpTime=mscVrSnmpSysUpTime, mscVrSnmpAvailabilityStatus=mscVrSnmpAvailabilityStatus, mscVrSnmpMibIIStatsRowStatus=mscVrSnmpMibIIStatsRowStatus, mscVrSnmpV1Stats=mscVrSnmpV1Stats, mscVrSnmpRowStatusTable=mscVrSnmpRowStatusTable, mscVrSnmpV2StatsUnknownContexts=mscVrSnmpV2StatsUnknownContexts, mscVrSnmpAclComponentName=mscVrSnmpAclComponentName, mscVrSnmpConComponentName=mscVrSnmpConComponentName, mscVrInitSnmpConfigRowStatusTable=mscVrInitSnmpConfigRowStatusTable, mscVrInitSnmpConfigProvEntry=mscVrInitSnmpConfigProvEntry, mscVrSnmpCon=mscVrSnmpCon, baseSnmpGroupCA02A=baseSnmpGroupCA02A, mscVrSnmpProvTable=mscVrSnmpProvTable, mscVrSnmpViewProvTable=mscVrSnmpViewProvTable, mscVrSnmpControlStatus=mscVrSnmpControlStatus, mscVrSnmpMibIIStatsInGetNexts=mscVrSnmpMibIIStatsInGetNexts, mscVrSnmpViewType=mscVrSnmpViewType, mscVrSnmpMibIIStatsComponentName=mscVrSnmpMibIIStatsComponentName, mscVrSnmpAclTargetIndex=mscVrSnmpAclTargetIndex, mscVrSnmpMibIIStatsIndex=mscVrSnmpMibIIStatsIndex, mscVrSnmpMibIIStats=mscVrSnmpMibIIStats, mscVrSnmpPartyRowStatusTable=mscVrSnmpPartyRowStatusTable, mscVrSnmpV1StatsRowStatusEntry=mscVrSnmpV1StatsRowStatusEntry, mscVrSnmpTrapsProcessed=mscVrSnmpTrapsProcessed, mscVrSnmpV2StatsBadOperations=mscVrSnmpV2StatsBadOperations, mscVrSnmpComIndex=mscVrSnmpComIndex, mscVrSnmpV2StatsStorageType=mscVrSnmpV2StatsStorageType, mscVrSnmpComCommunityString=mscVrSnmpComCommunityString, mscVrSnmpViewMask=mscVrSnmpViewMask, mscVrInitSnmpConfigAgentAddress=mscVrInitSnmpConfigAgentAddress, mscVrSnmpV1StatsStorageType=mscVrSnmpV1StatsStorageType, mscVrSnmpComTDomain=mscVrSnmpComTDomain, mscVrSnmpOrIndex=mscVrSnmpOrIndex, mscVrSnmpPartyRowStatusEntry=mscVrSnmpPartyRowStatusEntry, mscVrSnmpMibIIStatsInBadCommunityUses=mscVrSnmpMibIIStatsInBadCommunityUses, mscVrSnmpSysOpTable=mscVrSnmpSysOpTable, mscVrSnmpComManRowStatusEntry=mscVrSnmpComManRowStatusEntry, mscVrSnmpPartyTrapNumbers=mscVrSnmpPartyTrapNumbers, mscVrSnmpMibIIStatsInTotalSetVars=mscVrSnmpMibIIStatsInTotalSetVars, mscVrInitSnmpConfigComponentName=mscVrInitSnmpConfigComponentName, mscVrSnmpUsageState=mscVrSnmpUsageState, mscVrSnmpComRowStatusEntry=mscVrSnmpComRowStatusEntry, mscVrSnmpConProvEntry=mscVrSnmpConProvEntry, mscVrSnmpAcl=mscVrSnmpAcl, mscVrSnmpPartyTransportAddress=mscVrSnmpPartyTransportAddress, mscVrSnmpPartyAuthPrivate=mscVrSnmpPartyAuthPrivate, mscVrSnmpComRowStatus=mscVrSnmpComRowStatus, mscVrSnmpConRowStatusTable=mscVrSnmpConRowStatusTable, mscVrSnmpMibIIStatsRowStatusTable=mscVrSnmpMibIIStatsRowStatusTable, mscVrSnmpMibIIStatsOutTooBigs=mscVrSnmpMibIIStatsOutTooBigs, mscVrSnmpV1EnableAuthenTraps=mscVrSnmpV1EnableAuthenTraps, mscVrSnmpCom=mscVrSnmpCom, baseSnmpCapabilities=baseSnmpCapabilities, mscVrSnmpPartyComponentName=mscVrSnmpPartyComponentName, mscVrSnmpConIdentityIndex=mscVrSnmpConIdentityIndex, mscVrSnmpOrId=mscVrSnmpOrId, mscVrSnmpPartyAuthLifetime=mscVrSnmpPartyAuthLifetime, mscVrSnmpPartyProvEntry=mscVrSnmpPartyProvEntry, mscVrSnmpComStorageType=mscVrSnmpComStorageType, mscVrSnmpSysDescription=mscVrSnmpSysDescription, mscVrSnmpSysObjectId=mscVrSnmpSysObjectId, mscVrSnmpV2StatsRowStatus=mscVrSnmpV2StatsRowStatus, mscVrSnmpMibIIStatsInSetRequests=mscVrSnmpMibIIStatsInSetRequests, mscVrSnmpIndex=mscVrSnmpIndex, mscVrSnmpMgrOfLastAuthFailure=mscVrSnmpMgrOfLastAuthFailure, mscVrSnmpComManProvEntry=mscVrSnmpComManProvEntry, mscVrSnmpV2StatsUnknownSrcParties=mscVrSnmpV2StatsUnknownSrcParties, mscVrSnmpConLocalTime=mscVrSnmpConLocalTime, mscVrSnmpSys=mscVrSnmpSys, mscVrSnmpUnknownStatus=mscVrSnmpUnknownStatus, mscVrSnmpSysRowStatus=mscVrSnmpSysRowStatus, mscVrSnmpViewRowStatusTable=mscVrSnmpViewRowStatusTable, mscVrSnmpViewRowStorageType=mscVrSnmpViewRowStorageType, mscVrSnmpMibIIStatsInBadVersions=mscVrSnmpMibIIStatsInBadVersions, mscVrSnmpStateTable=mscVrSnmpStateTable, mscVrSnmpViewRowStatusEntry=mscVrSnmpViewRowStatusEntry, mscVrSnmpMibIIStatsStorageType=mscVrSnmpMibIIStatsStorageType, mscVrSnmpSysRowStatusEntry=mscVrSnmpSysRowStatusEntry, mscVrSnmpV2EnableAuthenTraps=mscVrSnmpV2EnableAuthenTraps, mscVrSnmpMibIIStatsOutPackets=mscVrSnmpMibIIStatsOutPackets, mscVrSnmpV2StatsBadAuths=mscVrSnmpV2StatsBadAuths, mscVrSnmpPartyOpEntry=mscVrSnmpPartyOpEntry, mscVrSnmpViewStorageType=mscVrSnmpViewStorageType, mscVrSnmpOrComponentName=mscVrSnmpOrComponentName, baseSnmpGroup=baseSnmpGroup, mscVrSnmpOrRowStatus=mscVrSnmpOrRowStatus, mscVrSnmpPartyTDomain=mscVrSnmpPartyTDomain, mscVrSnmpConLocal=mscVrSnmpConLocal, mscVrSnmpV1StatsStatsTable=mscVrSnmpV1StatsStatsTable, mscVrSnmpComProvTable=mscVrSnmpComProvTable, mscVrSnmpProceduralStatus=mscVrSnmpProceduralStatus, mscVrSnmpComManPrivileges=mscVrSnmpComManPrivileges, mscVrSnmpIpStack=mscVrSnmpIpStack, mscVrSnmpPartyPrivProtocol=mscVrSnmpPartyPrivProtocol, mscVrInitSnmpConfigStorageType=mscVrInitSnmpConfigStorageType, mscVrSnmpConViewIndex=mscVrSnmpConViewIndex, mscVrSnmpAclRowStatus=mscVrSnmpAclRowStatus, mscVrSnmpComManProvTable=mscVrSnmpComManProvTable, mscVrSnmpConStdRowStatus=mscVrSnmpConStdRowStatus, mscVrSnmpParty=mscVrSnmpParty, mscVrSnmpMibIIStatsOutTraps=mscVrSnmpMibIIStatsOutTraps, mscVrSnmpV1StatsBadCommunityUses=mscVrSnmpV1StatsBadCommunityUses, mscVrSnmpSysOpEntry=mscVrSnmpSysOpEntry, mscVrSnmpSysLocation=mscVrSnmpSysLocation, mscVrSnmpViewComponentName=mscVrSnmpViewComponentName, mscVrSnmpMibIIStatsInAsnParseErrs=mscVrSnmpMibIIStatsInAsnParseErrs, mscVrInitSnmpConfigRowStatus=mscVrInitSnmpConfigRowStatus, mscVrSnmpComProvEntry=mscVrSnmpComProvEntry, mscVrSnmpConRowStatus=mscVrSnmpConRowStatus, mscVrSnmpMibIIStatsInTotalReqVars=mscVrSnmpMibIIStatsInTotalReqVars, mscVrSnmpProvEntry=mscVrSnmpProvEntry, mscVrSnmpV2StatsRowStatusTable=mscVrSnmpV2StatsRowStatusTable, mscVrSnmpPartyRowStorageType=mscVrSnmpPartyRowStorageType, mscVrSnmpSysServices=mscVrSnmpSysServices, mscVrSnmpV2Stats=mscVrSnmpV2Stats, mscVrSnmpComManRowStatus=mscVrSnmpComManRowStatus, mscVrSnmpPartyRowStatus=mscVrSnmpPartyRowStatus, mscVrSnmpPartyStdIndex=mscVrSnmpPartyStdIndex, mscVrSnmpStatsEntry=mscVrSnmpStatsEntry, mscVrSnmpPartyStorageType=mscVrSnmpPartyStorageType, mscVrSnmpComManComponentName=mscVrSnmpComManComponentName, mscVrSnmpV1StatsRowStatusTable=mscVrSnmpV1StatsRowStatusTable, mscVrSnmpOrOrEntry=mscVrSnmpOrOrEntry, baseSnmpCapabilitiesCA02=baseSnmpCapabilitiesCA02, mscVrSnmpOr=mscVrSnmpOr, mscVrSnmpMibIIStatsInPackets=mscVrSnmpMibIIStatsInPackets, mscVrSnmpAlarmsAsTraps=mscVrSnmpAlarmsAsTraps, mscVrSnmpViewProvEntry=mscVrSnmpViewProvEntry, mscVrSnmpComViewIndex=mscVrSnmpComViewIndex)
|
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_union, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection')
(display_string, truth_value, row_status, status, storage_type, integer32, unsigned32) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB', 'DisplayString', 'TruthValue', 'RowStatus', 'Status', 'StorageType', 'Integer32', 'Unsigned32')
(ascii_string, hex_string, non_replicated) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-TextualConventionsMIB', 'AsciiString', 'HexString', 'NonReplicated')
(msc_passport_mi_bs,) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB', 'mscPassportMIBs')
(msc_vr, msc_vr_index) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVr', 'mscVrIndex')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(object_identity, iso, ip_address, counter32, gauge32, module_identity, counter64, time_ticks, unsigned32, mib_identifier, bits, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'iso', 'IpAddress', 'Counter32', 'Gauge32', 'ModuleIdentity', 'Counter64', 'TimeTicks', 'Unsigned32', 'MibIdentifier', 'Bits', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
base_snmp_mib = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36))
msc_vr_snmp = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8))
msc_vr_snmp_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1))
if mibBuilder.loadTexts:
mscVrSnmpRowStatusTable.setStatus('mandatory')
msc_vr_snmp_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'))
if mibBuilder.loadTexts:
mscVrSnmpRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpRowStatus.setStatus('mandatory')
msc_vr_snmp_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpComponentName.setStatus('mandatory')
msc_vr_snmp_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpStorageType.setStatus('mandatory')
msc_vr_snmp_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrSnmpIndex.setStatus('mandatory')
msc_vr_snmp_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20))
if mibBuilder.loadTexts:
mscVrSnmpProvTable.setStatus('mandatory')
msc_vr_snmp_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'))
if mibBuilder.loadTexts:
mscVrSnmpProvEntry.setStatus('mandatory')
msc_vr_snmp_v1_enable_authen_traps = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 1), status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpV1EnableAuthenTraps.setStatus('mandatory')
msc_vr_snmp_v2_enable_authen_traps = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 2), status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpV2EnableAuthenTraps.setStatus('mandatory')
msc_vr_snmp_alarms_as_traps = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 3), status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpAlarmsAsTraps.setStatus('mandatory')
msc_vr_snmp_ip_stack = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('vrIp', 1), ('ipiFrIpiVc', 2))).clone('vrIp')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpIpStack.setStatus('mandatory')
msc_vr_snmp_cid_in_ent_traps = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 20, 1, 5), status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpCidInEntTraps.setStatus('mandatory')
msc_vr_snmp_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21))
if mibBuilder.loadTexts:
mscVrSnmpStateTable.setStatus('mandatory')
msc_vr_snmp_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'))
if mibBuilder.loadTexts:
mscVrSnmpStateEntry.setStatus('mandatory')
msc_vr_snmp_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpAdminState.setStatus('mandatory')
msc_vr_snmp_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOperationalState.setStatus('mandatory')
msc_vr_snmp_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpUsageState.setStatus('mandatory')
msc_vr_snmp_availability_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpAvailabilityStatus.setStatus('mandatory')
msc_vr_snmp_procedural_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpProceduralStatus.setStatus('mandatory')
msc_vr_snmp_control_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpControlStatus.setStatus('mandatory')
msc_vr_snmp_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpAlarmStatus.setStatus('mandatory')
msc_vr_snmp_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 15))).clone(namedValues=named_values(('hotStandby', 0), ('coldStandby', 1), ('providingService', 2), ('notSet', 15))).clone('notSet')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpStandbyStatus.setStatus('mandatory')
msc_vr_snmp_unknown_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 21, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1))).clone('false')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpUnknownStatus.setStatus('mandatory')
msc_vr_snmp_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22))
if mibBuilder.loadTexts:
mscVrSnmpStatsTable.setStatus('mandatory')
msc_vr_snmp_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'))
if mibBuilder.loadTexts:
mscVrSnmpStatsEntry.setStatus('mandatory')
msc_vr_snmp_last_or_change = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpLastOrChange.setStatus('mandatory')
msc_vr_snmp_traps_processed = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpTrapsProcessed.setStatus('mandatory')
msc_vr_snmp_traps_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpTrapsDiscarded.setStatus('mandatory')
msc_vr_snmp_last_auth_failure = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpLastAuthFailure.setStatus('mandatory')
msc_vr_snmp_mgr_of_last_auth_failure = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 22, 1, 5), ip_address().clone(hexValue='00000000')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMgrOfLastAuthFailure.setStatus('mandatory')
msc_vr_snmp_sys = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2))
msc_vr_snmp_sys_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1))
if mibBuilder.loadTexts:
mscVrSnmpSysRowStatusTable.setStatus('mandatory')
msc_vr_snmp_sys_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpSysIndex'))
if mibBuilder.loadTexts:
mscVrSnmpSysRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_sys_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysRowStatus.setStatus('mandatory')
msc_vr_snmp_sys_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysComponentName.setStatus('mandatory')
msc_vr_snmp_sys_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysStorageType.setStatus('mandatory')
msc_vr_snmp_sys_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrSnmpSysIndex.setStatus('mandatory')
msc_vr_snmp_sys_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10))
if mibBuilder.loadTexts:
mscVrSnmpSysProvTable.setStatus('mandatory')
msc_vr_snmp_sys_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpSysIndex'))
if mibBuilder.loadTexts:
mscVrSnmpSysProvEntry.setStatus('mandatory')
msc_vr_snmp_sys_contact = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpSysContact.setStatus('mandatory')
msc_vr_snmp_sys_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 2), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpSysName.setStatus('mandatory')
msc_vr_snmp_sys_location = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 10, 1, 3), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpSysLocation.setStatus('mandatory')
msc_vr_snmp_sys_op_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11))
if mibBuilder.loadTexts:
mscVrSnmpSysOpTable.setStatus('mandatory')
msc_vr_snmp_sys_op_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpSysIndex'))
if mibBuilder.loadTexts:
mscVrSnmpSysOpEntry.setStatus('mandatory')
msc_vr_snmp_sys_description = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysDescription.setStatus('mandatory')
msc_vr_snmp_sys_object_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 2), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysObjectId.setStatus('mandatory')
msc_vr_snmp_sys_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysUpTime.setStatus('mandatory')
msc_vr_snmp_sys_services = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 2, 11, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 127)).clone(6)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpSysServices.setStatus('mandatory')
msc_vr_snmp_com = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3))
msc_vr_snmp_com_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1))
if mibBuilder.loadTexts:
mscVrSnmpComRowStatusTable.setStatus('mandatory')
msc_vr_snmp_com_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComIndex'))
if mibBuilder.loadTexts:
mscVrSnmpComRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_com_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComRowStatus.setStatus('mandatory')
msc_vr_snmp_com_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpComComponentName.setStatus('mandatory')
msc_vr_snmp_com_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpComStorageType.setStatus('mandatory')
msc_vr_snmp_com_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024)))
if mibBuilder.loadTexts:
mscVrSnmpComIndex.setStatus('mandatory')
msc_vr_snmp_com_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10))
if mibBuilder.loadTexts:
mscVrSnmpComProvTable.setStatus('mandatory')
msc_vr_snmp_com_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComIndex'))
if mibBuilder.loadTexts:
mscVrSnmpComProvEntry.setStatus('mandatory')
msc_vr_snmp_com_community_string = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 255)).clone(hexValue='7075626c6963')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComCommunityString.setStatus('mandatory')
msc_vr_snmp_com_access_mode = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('readOnly', 1), ('readWrite', 2))).clone('readOnly')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComAccessMode.setStatus('mandatory')
msc_vr_snmp_com_view_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComViewIndex.setStatus('mandatory')
msc_vr_snmp_com_t_domain = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('snmpUdpDomain', 1))).clone('snmpUdpDomain')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComTDomain.setStatus('mandatory')
msc_vr_snmp_com_man = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2))
msc_vr_snmp_com_man_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1))
if mibBuilder.loadTexts:
mscVrSnmpComManRowStatusTable.setStatus('mandatory')
msc_vr_snmp_com_man_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComManIndex'))
if mibBuilder.loadTexts:
mscVrSnmpComManRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_com_man_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComManRowStatus.setStatus('mandatory')
msc_vr_snmp_com_man_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpComManComponentName.setStatus('mandatory')
msc_vr_snmp_com_man_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpComManStorageType.setStatus('mandatory')
msc_vr_snmp_com_man_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 100)))
if mibBuilder.loadTexts:
mscVrSnmpComManIndex.setStatus('mandatory')
msc_vr_snmp_com_man_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10))
if mibBuilder.loadTexts:
mscVrSnmpComManProvTable.setStatus('mandatory')
msc_vr_snmp_com_man_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpComManIndex'))
if mibBuilder.loadTexts:
mscVrSnmpComManProvEntry.setStatus('mandatory')
msc_vr_snmp_com_man_transport_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComManTransportAddress.setStatus('mandatory')
msc_vr_snmp_com_man_privileges = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 3, 2, 10, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1).clone(hexValue='40')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpComManPrivileges.setStatus('mandatory')
msc_vr_snmp_acl = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4))
msc_vr_snmp_acl_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1))
if mibBuilder.loadTexts:
mscVrSnmpAclRowStatusTable.setStatus('obsolete')
msc_vr_snmp_acl_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclTargetIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclSubjectIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclResourcesIndex'))
if mibBuilder.loadTexts:
mscVrSnmpAclRowStatusEntry.setStatus('obsolete')
msc_vr_snmp_acl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpAclRowStatus.setStatus('obsolete')
msc_vr_snmp_acl_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpAclComponentName.setStatus('obsolete')
msc_vr_snmp_acl_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpAclStorageType.setStatus('obsolete')
msc_vr_snmp_acl_target_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 2048)))
if mibBuilder.loadTexts:
mscVrSnmpAclTargetIndex.setStatus('obsolete')
msc_vr_snmp_acl_subject_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 2048)))
if mibBuilder.loadTexts:
mscVrSnmpAclSubjectIndex.setStatus('obsolete')
msc_vr_snmp_acl_resources_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 2048)))
if mibBuilder.loadTexts:
mscVrSnmpAclResourcesIndex.setStatus('obsolete')
msc_vr_snmp_acl_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10))
if mibBuilder.loadTexts:
mscVrSnmpAclProvTable.setStatus('obsolete')
msc_vr_snmp_acl_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclTargetIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclSubjectIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpAclResourcesIndex'))
if mibBuilder.loadTexts:
mscVrSnmpAclProvEntry.setStatus('obsolete')
msc_vr_snmp_acl_privileges = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1).clone(hexValue='60')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpAclPrivileges.setStatus('obsolete')
msc_vr_snmp_acl_row_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3))).clone(namedValues=named_values(('nonVolatile', 3))).clone('nonVolatile')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpAclRowStorageType.setStatus('obsolete')
msc_vr_snmp_acl_std_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 4, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('active', 1))).clone('active')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpAclStdRowStatus.setStatus('obsolete')
msc_vr_snmp_party = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5))
msc_vr_snmp_party_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1))
if mibBuilder.loadTexts:
mscVrSnmpPartyRowStatusTable.setStatus('obsolete')
msc_vr_snmp_party_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpPartyIdentityIndex'))
if mibBuilder.loadTexts:
mscVrSnmpPartyRowStatusEntry.setStatus('obsolete')
msc_vr_snmp_party_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyRowStatus.setStatus('obsolete')
msc_vr_snmp_party_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpPartyComponentName.setStatus('obsolete')
msc_vr_snmp_party_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpPartyStorageType.setStatus('obsolete')
msc_vr_snmp_party_identity_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 1, 1, 10), object_identifier())
if mibBuilder.loadTexts:
mscVrSnmpPartyIdentityIndex.setStatus('obsolete')
msc_vr_snmp_party_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10))
if mibBuilder.loadTexts:
mscVrSnmpPartyProvTable.setStatus('obsolete')
msc_vr_snmp_party_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpPartyIdentityIndex'))
if mibBuilder.loadTexts:
mscVrSnmpPartyProvEntry.setStatus('obsolete')
msc_vr_snmp_party_std_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2048))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpPartyStdIndex.setStatus('obsolete')
msc_vr_snmp_party_t_domain = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('snmpUdpDomain', 1))).clone('snmpUdpDomain')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyTDomain.setStatus('obsolete')
msc_vr_snmp_party_transport_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 3), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyTransportAddress.setStatus('obsolete')
msc_vr_snmp_party_max_message_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(484, 65507)).clone(1400)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyMaxMessageSize.setStatus('obsolete')
msc_vr_snmp_party_local = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyLocal.setStatus('obsolete')
msc_vr_snmp_party_auth_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 4))).clone(namedValues=named_values(('noAuth', 1), ('v2Md5AuthProtocol', 4))).clone('noAuth')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyAuthProtocol.setStatus('obsolete')
msc_vr_snmp_party_auth_private = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 7), hex_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone(hexValue='')).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
mscVrSnmpPartyAuthPrivate.setStatus('obsolete')
msc_vr_snmp_party_auth_public = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 8), hex_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyAuthPublic.setStatus('obsolete')
msc_vr_snmp_party_auth_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647)).clone(300)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyAuthLifetime.setStatus('obsolete')
msc_vr_snmp_party_priv_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2))).clone(namedValues=named_values(('noPriv', 2))).clone('noPriv')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyPrivProtocol.setStatus('obsolete')
msc_vr_snmp_party_row_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3))).clone(namedValues=named_values(('nonVolatile', 3))).clone('nonVolatile')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyRowStorageType.setStatus('obsolete')
msc_vr_snmp_party_std_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 10, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('active', 1))).clone('active')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyStdRowStatus.setStatus('obsolete')
msc_vr_snmp_party_op_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11))
if mibBuilder.loadTexts:
mscVrSnmpPartyOpTable.setStatus('obsolete')
msc_vr_snmp_party_op_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpPartyIdentityIndex'))
if mibBuilder.loadTexts:
mscVrSnmpPartyOpEntry.setStatus('obsolete')
msc_vr_snmp_party_trap_numbers = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpPartyTrapNumbers.setStatus('obsolete')
msc_vr_snmp_party_auth_clock = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 5, 11, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpPartyAuthClock.setStatus('obsolete')
msc_vr_snmp_con = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6))
msc_vr_snmp_con_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1))
if mibBuilder.loadTexts:
mscVrSnmpConRowStatusTable.setStatus('obsolete')
msc_vr_snmp_con_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpConIdentityIndex'))
if mibBuilder.loadTexts:
mscVrSnmpConRowStatusEntry.setStatus('obsolete')
msc_vr_snmp_con_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConRowStatus.setStatus('obsolete')
msc_vr_snmp_con_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpConComponentName.setStatus('obsolete')
msc_vr_snmp_con_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpConStorageType.setStatus('obsolete')
msc_vr_snmp_con_identity_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 1, 1, 10), object_identifier())
if mibBuilder.loadTexts:
mscVrSnmpConIdentityIndex.setStatus('obsolete')
msc_vr_snmp_con_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10))
if mibBuilder.loadTexts:
mscVrSnmpConProvTable.setStatus('obsolete')
msc_vr_snmp_con_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpConIdentityIndex'))
if mibBuilder.loadTexts:
mscVrSnmpConProvEntry.setStatus('obsolete')
msc_vr_snmp_con_std_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpConStdIndex.setStatus('obsolete')
msc_vr_snmp_con_local = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('true', 1))).clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConLocal.setStatus('obsolete')
msc_vr_snmp_con_view_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConViewIndex.setStatus('obsolete')
msc_vr_snmp_con_local_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('currentTime', 1))).clone('currentTime')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConLocalTime.setStatus('obsolete')
msc_vr_snmp_con_row_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3))).clone(namedValues=named_values(('nonVolatile', 3))).clone('nonVolatile')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConRowStorageType.setStatus('obsolete')
msc_vr_snmp_con_std_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 6, 10, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('active', 1))).clone('active')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpConStdRowStatus.setStatus('obsolete')
msc_vr_snmp_view = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7))
msc_vr_snmp_view_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1))
if mibBuilder.loadTexts:
mscVrSnmpViewRowStatusTable.setStatus('mandatory')
msc_vr_snmp_view_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpViewIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpViewSubtreeIndex'))
if mibBuilder.loadTexts:
mscVrSnmpViewRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_view_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpViewRowStatus.setStatus('mandatory')
msc_vr_snmp_view_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpViewComponentName.setStatus('mandatory')
msc_vr_snmp_view_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpViewStorageType.setStatus('mandatory')
msc_vr_snmp_view_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024)))
if mibBuilder.loadTexts:
mscVrSnmpViewIndex.setStatus('mandatory')
msc_vr_snmp_view_subtree_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 1, 1, 11), object_identifier())
if mibBuilder.loadTexts:
mscVrSnmpViewSubtreeIndex.setStatus('mandatory')
msc_vr_snmp_view_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10))
if mibBuilder.loadTexts:
mscVrSnmpViewProvTable.setStatus('mandatory')
msc_vr_snmp_view_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpViewIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpViewSubtreeIndex'))
if mibBuilder.loadTexts:
mscVrSnmpViewProvEntry.setStatus('mandatory')
msc_vr_snmp_view_mask = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 1), hex_string().subtype(subtypeSpec=value_size_constraint(0, 16)).clone(hexValue='')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpViewMask.setStatus('mandatory')
msc_vr_snmp_view_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('includedSubtree', 1), ('excludedSubtree', 2))).clone('includedSubtree')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpViewType.setStatus('mandatory')
msc_vr_snmp_view_row_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(3))).clone(namedValues=named_values(('nonVolatile', 3))).clone('nonVolatile')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpViewRowStorageType.setStatus('mandatory')
msc_vr_snmp_view_std_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 7, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('active', 1))).clone('active')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrSnmpViewStdRowStatus.setStatus('mandatory')
msc_vr_snmp_or = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8))
msc_vr_snmp_or_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1))
if mibBuilder.loadTexts:
mscVrSnmpOrRowStatusTable.setStatus('mandatory')
msc_vr_snmp_or_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpOrIndex'))
if mibBuilder.loadTexts:
mscVrSnmpOrRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_or_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOrRowStatus.setStatus('mandatory')
msc_vr_snmp_or_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOrComponentName.setStatus('mandatory')
msc_vr_snmp_or_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOrStorageType.setStatus('mandatory')
msc_vr_snmp_or_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024)))
if mibBuilder.loadTexts:
mscVrSnmpOrIndex.setStatus('mandatory')
msc_vr_snmp_or_or_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10))
if mibBuilder.loadTexts:
mscVrSnmpOrOrTable.setStatus('mandatory')
msc_vr_snmp_or_or_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpOrIndex'))
if mibBuilder.loadTexts:
mscVrSnmpOrOrEntry.setStatus('mandatory')
msc_vr_snmp_or_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1, 2), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOrId.setStatus('mandatory')
msc_vr_snmp_or_descr = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 8, 10, 1, 3), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpOrDescr.setStatus('mandatory')
msc_vr_snmp_v2_stats = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9))
msc_vr_snmp_v2_stats_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1))
if mibBuilder.loadTexts:
mscVrSnmpV2StatsRowStatusTable.setStatus('obsolete')
msc_vr_snmp_v2_stats_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpV2StatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpV2StatsRowStatusEntry.setStatus('obsolete')
msc_vr_snmp_v2_stats_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsRowStatus.setStatus('obsolete')
msc_vr_snmp_v2_stats_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsComponentName.setStatus('obsolete')
msc_vr_snmp_v2_stats_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsStorageType.setStatus('obsolete')
msc_vr_snmp_v2_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrSnmpV2StatsIndex.setStatus('obsolete')
msc_vr_snmp_v2_stats_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10))
if mibBuilder.loadTexts:
mscVrSnmpV2StatsStatsTable.setStatus('obsolete')
msc_vr_snmp_v2_stats_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpV2StatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpV2StatsStatsEntry.setStatus('obsolete')
msc_vr_snmp_v2_stats_packets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsPackets.setStatus('obsolete')
msc_vr_snmp_v2_stats_encoding_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsEncodingErrors.setStatus('obsolete')
msc_vr_snmp_v2_stats_unknown_src_parties = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsUnknownSrcParties.setStatus('obsolete')
msc_vr_snmp_v2_stats_bad_auths = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsBadAuths.setStatus('obsolete')
msc_vr_snmp_v2_stats_not_in_lifetime = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsNotInLifetime.setStatus('obsolete')
msc_vr_snmp_v2_stats_wrong_digest_values = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsWrongDigestValues.setStatus('obsolete')
msc_vr_snmp_v2_stats_unknown_contexts = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsUnknownContexts.setStatus('obsolete')
msc_vr_snmp_v2_stats_bad_operations = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsBadOperations.setStatus('obsolete')
msc_vr_snmp_v2_stats_silent_drops = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 9, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV2StatsSilentDrops.setStatus('obsolete')
msc_vr_snmp_v1_stats = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10))
msc_vr_snmp_v1_stats_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1))
if mibBuilder.loadTexts:
mscVrSnmpV1StatsRowStatusTable.setStatus('mandatory')
msc_vr_snmp_v1_stats_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpV1StatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpV1StatsRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_v1_stats_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV1StatsRowStatus.setStatus('mandatory')
msc_vr_snmp_v1_stats_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV1StatsComponentName.setStatus('mandatory')
msc_vr_snmp_v1_stats_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV1StatsStorageType.setStatus('mandatory')
msc_vr_snmp_v1_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrSnmpV1StatsIndex.setStatus('mandatory')
msc_vr_snmp_v1_stats_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10))
if mibBuilder.loadTexts:
mscVrSnmpV1StatsStatsTable.setStatus('mandatory')
msc_vr_snmp_v1_stats_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpV1StatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpV1StatsStatsEntry.setStatus('mandatory')
msc_vr_snmp_v1_stats_bad_community_names = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV1StatsBadCommunityNames.setStatus('mandatory')
msc_vr_snmp_v1_stats_bad_community_uses = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 10, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpV1StatsBadCommunityUses.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11))
msc_vr_snmp_mib_ii_stats_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1))
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsRowStatusTable.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpMibIIStatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsRowStatusEntry.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsRowStatus.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsComponentName.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsStorageType.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsIndex.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10))
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsStatsTable.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrSnmpMibIIStatsIndex'))
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsStatsEntry.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_packets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInPackets.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_bad_community_names = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInBadCommunityNames.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_bad_community_uses = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInBadCommunityUses.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_asn_parse_errs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInAsnParseErrs.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutPackets.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_bad_versions = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInBadVersions.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_total_req_vars = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInTotalReqVars.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_total_set_vars = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInTotalSetVars.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_get_requests = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInGetRequests.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_get_nexts = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInGetNexts.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_in_set_requests = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsInSetRequests.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_too_bigs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutTooBigs.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_no_such_names = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 13), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutNoSuchNames.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_bad_values = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutBadValues.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_gen_errs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutGenErrs.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_get_responses = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 16), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutGetResponses.setStatus('mandatory')
msc_vr_snmp_mib_ii_stats_out_traps = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 8, 11, 10, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrSnmpMibIIStatsOutTraps.setStatus('mandatory')
msc_vr_init_snmp_config = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9))
msc_vr_init_snmp_config_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1))
if mibBuilder.loadTexts:
mscVrInitSnmpConfigRowStatusTable.setStatus('obsolete')
msc_vr_init_snmp_config_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrInitSnmpConfigIndex'))
if mibBuilder.loadTexts:
mscVrInitSnmpConfigRowStatusEntry.setStatus('obsolete')
msc_vr_init_snmp_config_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrInitSnmpConfigRowStatus.setStatus('obsolete')
msc_vr_init_snmp_config_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrInitSnmpConfigComponentName.setStatus('obsolete')
msc_vr_init_snmp_config_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscVrInitSnmpConfigStorageType.setStatus('obsolete')
msc_vr_init_snmp_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscVrInitSnmpConfigIndex.setStatus('obsolete')
msc_vr_init_snmp_config_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10))
if mibBuilder.loadTexts:
mscVrInitSnmpConfigProvTable.setStatus('obsolete')
msc_vr_init_snmp_config_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-VirtualRouterMIB', 'mscVrIndex'), (0, 'Nortel-MsCarrier-MscPassport-BaseSnmpMIB', 'mscVrInitSnmpConfigIndex'))
if mibBuilder.loadTexts:
mscVrInitSnmpConfigProvEntry.setStatus('obsolete')
msc_vr_init_snmp_config_agent_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrInitSnmpConfigAgentAddress.setStatus('obsolete')
msc_vr_init_snmp_config_manager_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 100, 9, 10, 1, 2), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscVrInitSnmpConfigManagerAddress.setStatus('obsolete')
base_snmp_group = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1))
base_snmp_group_ca = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1))
base_snmp_group_ca02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1, 3))
base_snmp_group_ca02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 1, 1, 3, 2))
base_snmp_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3))
base_snmp_capabilities_ca = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1))
base_snmp_capabilities_ca02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1, 3))
base_snmp_capabilities_ca02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 36, 3, 1, 3, 2))
mibBuilder.exportSymbols('Nortel-MsCarrier-MscPassport-BaseSnmpMIB', mscVrSnmpPartyAuthPublic=mscVrSnmpPartyAuthPublic, mscVrSnmpV2StatsNotInLifetime=mscVrSnmpV2StatsNotInLifetime, mscVrSnmpStatsTable=mscVrSnmpStatsTable, mscVrSnmpComManStorageType=mscVrSnmpComManStorageType, mscVrSnmpComManTransportAddress=mscVrSnmpComManTransportAddress, mscVrSnmpPartyProvTable=mscVrSnmpPartyProvTable, mscVrSnmpMibIIStatsOutBadValues=mscVrSnmpMibIIStatsOutBadValues, mscVrSnmpSysRowStatusTable=mscVrSnmpSysRowStatusTable, mscVrSnmpOrRowStatusTable=mscVrSnmpOrRowStatusTable, mscVrSnmpMibIIStatsStatsEntry=mscVrSnmpMibIIStatsStatsEntry, baseSnmpMIB=baseSnmpMIB, mscVrSnmpLastOrChange=mscVrSnmpLastOrChange, mscVrSnmpComMan=mscVrSnmpComMan, mscVrSnmpPartyAuthClock=mscVrSnmpPartyAuthClock, mscVrSnmpComAccessMode=mscVrSnmpComAccessMode, baseSnmpCapabilitiesCA=baseSnmpCapabilitiesCA, mscVrSnmpAclStorageType=mscVrSnmpAclStorageType, mscVrSnmpConStdIndex=mscVrSnmpConStdIndex, mscVrSnmpMibIIStatsRowStatusEntry=mscVrSnmpMibIIStatsRowStatusEntry, mscVrSnmpStateEntry=mscVrSnmpStateEntry, mscVrSnmpSysIndex=mscVrSnmpSysIndex, mscVrSnmpOrOrTable=mscVrSnmpOrOrTable, mscVrSnmpOrDescr=mscVrSnmpOrDescr, mscVrSnmpViewIndex=mscVrSnmpViewIndex, mscVrSnmp=mscVrSnmp, mscVrSnmpAclStdRowStatus=mscVrSnmpAclStdRowStatus, mscVrSnmpRowStatusEntry=mscVrSnmpRowStatusEntry, mscVrSnmpSysProvEntry=mscVrSnmpSysProvEntry, mscVrSnmpMibIIStatsOutGetResponses=mscVrSnmpMibIIStatsOutGetResponses, mscVrSnmpAdminState=mscVrSnmpAdminState, mscVrInitSnmpConfigRowStatusEntry=mscVrInitSnmpConfigRowStatusEntry, baseSnmpGroupCA=baseSnmpGroupCA, mscVrSnmpAclProvTable=mscVrSnmpAclProvTable, mscVrSnmpV1StatsComponentName=mscVrSnmpV1StatsComponentName, mscVrSnmpMibIIStatsStatsTable=mscVrSnmpMibIIStatsStatsTable, mscVrSnmpV2StatsStatsEntry=mscVrSnmpV2StatsStatsEntry, mscVrSnmpStandbyStatus=mscVrSnmpStandbyStatus, mscVrSnmpPartyStdRowStatus=mscVrSnmpPartyStdRowStatus, mscVrSnmpPartyAuthProtocol=mscVrSnmpPartyAuthProtocol, mscVrSnmpMibIIStatsInBadCommunityNames=mscVrSnmpMibIIStatsInBadCommunityNames, mscVrSnmpComComponentName=mscVrSnmpComComponentName, mscVrSnmpAclResourcesIndex=mscVrSnmpAclResourcesIndex, mscVrSnmpConProvTable=mscVrSnmpConProvTable, mscVrSnmpComponentName=mscVrSnmpComponentName, mscVrSnmpPartyLocal=mscVrSnmpPartyLocal, mscVrSnmpComRowStatusTable=mscVrSnmpComRowStatusTable, mscVrSnmpComManRowStatusTable=mscVrSnmpComManRowStatusTable, mscVrSnmpOrStorageType=mscVrSnmpOrStorageType, mscVrSnmpPartyOpTable=mscVrSnmpPartyOpTable, mscVrSnmpV2StatsSilentDrops=mscVrSnmpV2StatsSilentDrops, mscVrSnmpCidInEntTraps=mscVrSnmpCidInEntTraps, mscVrSnmpV1StatsRowStatus=mscVrSnmpV1StatsRowStatus, mscVrSnmpMibIIStatsInGetRequests=mscVrSnmpMibIIStatsInGetRequests, mscVrSnmpStorageType=mscVrSnmpStorageType, mscVrSnmpV1StatsBadCommunityNames=mscVrSnmpV1StatsBadCommunityNames, mscVrInitSnmpConfigIndex=mscVrInitSnmpConfigIndex, baseSnmpGroupCA02=baseSnmpGroupCA02, mscVrSnmpConRowStorageType=mscVrSnmpConRowStorageType, baseSnmpCapabilitiesCA02A=baseSnmpCapabilitiesCA02A, mscVrSnmpConRowStatusEntry=mscVrSnmpConRowStatusEntry, mscVrSnmpViewRowStatus=mscVrSnmpViewRowStatus, mscVrSnmpSysProvTable=mscVrSnmpSysProvTable, mscVrSnmpSysComponentName=mscVrSnmpSysComponentName, mscVrSnmpComManIndex=mscVrSnmpComManIndex, mscVrSnmpPartyIdentityIndex=mscVrSnmpPartyIdentityIndex, mscVrSnmpOperationalState=mscVrSnmpOperationalState, mscVrSnmpV2StatsComponentName=mscVrSnmpV2StatsComponentName, mscVrSnmpV2StatsIndex=mscVrSnmpV2StatsIndex, mscVrSnmpV2StatsWrongDigestValues=mscVrSnmpV2StatsWrongDigestValues, mscVrSnmpV1StatsStatsEntry=mscVrSnmpV1StatsStatsEntry, mscVrSnmpSysContact=mscVrSnmpSysContact, mscVrInitSnmpConfigProvTable=mscVrInitSnmpConfigProvTable, mscVrInitSnmpConfigManagerAddress=mscVrInitSnmpConfigManagerAddress, mscVrSnmpAclPrivileges=mscVrSnmpAclPrivileges, mscVrSnmpView=mscVrSnmpView, mscVrSnmpMibIIStatsOutGenErrs=mscVrSnmpMibIIStatsOutGenErrs, mscVrSnmpConStorageType=mscVrSnmpConStorageType, mscVrSnmpAclRowStatusEntry=mscVrSnmpAclRowStatusEntry, mscVrSnmpAclRowStatusTable=mscVrSnmpAclRowStatusTable, mscVrSnmpV2StatsStatsTable=mscVrSnmpV2StatsStatsTable, mscVrSnmpMibIIStatsOutNoSuchNames=mscVrSnmpMibIIStatsOutNoSuchNames, mscVrSnmpV2StatsPackets=mscVrSnmpV2StatsPackets, mscVrSnmpTrapsDiscarded=mscVrSnmpTrapsDiscarded, mscVrSnmpOrRowStatusEntry=mscVrSnmpOrRowStatusEntry, mscVrSnmpAclSubjectIndex=mscVrSnmpAclSubjectIndex, mscVrSnmpRowStatus=mscVrSnmpRowStatus, mscVrSnmpViewSubtreeIndex=mscVrSnmpViewSubtreeIndex, mscVrSnmpV2StatsRowStatusEntry=mscVrSnmpV2StatsRowStatusEntry, mscVrInitSnmpConfig=mscVrInitSnmpConfig, mscVrSnmpAclProvEntry=mscVrSnmpAclProvEntry, mscVrSnmpViewStdRowStatus=mscVrSnmpViewStdRowStatus, mscVrSnmpSysName=mscVrSnmpSysName, mscVrSnmpPartyMaxMessageSize=mscVrSnmpPartyMaxMessageSize, mscVrSnmpV2StatsEncodingErrors=mscVrSnmpV2StatsEncodingErrors, mscVrSnmpLastAuthFailure=mscVrSnmpLastAuthFailure, mscVrSnmpAlarmStatus=mscVrSnmpAlarmStatus, mscVrSnmpSysStorageType=mscVrSnmpSysStorageType, mscVrSnmpAclRowStorageType=mscVrSnmpAclRowStorageType, mscVrSnmpV1StatsIndex=mscVrSnmpV1StatsIndex, mscVrSnmpSysUpTime=mscVrSnmpSysUpTime, mscVrSnmpAvailabilityStatus=mscVrSnmpAvailabilityStatus, mscVrSnmpMibIIStatsRowStatus=mscVrSnmpMibIIStatsRowStatus, mscVrSnmpV1Stats=mscVrSnmpV1Stats, mscVrSnmpRowStatusTable=mscVrSnmpRowStatusTable, mscVrSnmpV2StatsUnknownContexts=mscVrSnmpV2StatsUnknownContexts, mscVrSnmpAclComponentName=mscVrSnmpAclComponentName, mscVrSnmpConComponentName=mscVrSnmpConComponentName, mscVrInitSnmpConfigRowStatusTable=mscVrInitSnmpConfigRowStatusTable, mscVrInitSnmpConfigProvEntry=mscVrInitSnmpConfigProvEntry, mscVrSnmpCon=mscVrSnmpCon, baseSnmpGroupCA02A=baseSnmpGroupCA02A, mscVrSnmpProvTable=mscVrSnmpProvTable, mscVrSnmpViewProvTable=mscVrSnmpViewProvTable, mscVrSnmpControlStatus=mscVrSnmpControlStatus, mscVrSnmpMibIIStatsInGetNexts=mscVrSnmpMibIIStatsInGetNexts, mscVrSnmpViewType=mscVrSnmpViewType, mscVrSnmpMibIIStatsComponentName=mscVrSnmpMibIIStatsComponentName, mscVrSnmpAclTargetIndex=mscVrSnmpAclTargetIndex, mscVrSnmpMibIIStatsIndex=mscVrSnmpMibIIStatsIndex, mscVrSnmpMibIIStats=mscVrSnmpMibIIStats, mscVrSnmpPartyRowStatusTable=mscVrSnmpPartyRowStatusTable, mscVrSnmpV1StatsRowStatusEntry=mscVrSnmpV1StatsRowStatusEntry, mscVrSnmpTrapsProcessed=mscVrSnmpTrapsProcessed, mscVrSnmpV2StatsBadOperations=mscVrSnmpV2StatsBadOperations, mscVrSnmpComIndex=mscVrSnmpComIndex, mscVrSnmpV2StatsStorageType=mscVrSnmpV2StatsStorageType, mscVrSnmpComCommunityString=mscVrSnmpComCommunityString, mscVrSnmpViewMask=mscVrSnmpViewMask, mscVrInitSnmpConfigAgentAddress=mscVrInitSnmpConfigAgentAddress, mscVrSnmpV1StatsStorageType=mscVrSnmpV1StatsStorageType, mscVrSnmpComTDomain=mscVrSnmpComTDomain, mscVrSnmpOrIndex=mscVrSnmpOrIndex, mscVrSnmpPartyRowStatusEntry=mscVrSnmpPartyRowStatusEntry, mscVrSnmpMibIIStatsInBadCommunityUses=mscVrSnmpMibIIStatsInBadCommunityUses, mscVrSnmpSysOpTable=mscVrSnmpSysOpTable, mscVrSnmpComManRowStatusEntry=mscVrSnmpComManRowStatusEntry, mscVrSnmpPartyTrapNumbers=mscVrSnmpPartyTrapNumbers, mscVrSnmpMibIIStatsInTotalSetVars=mscVrSnmpMibIIStatsInTotalSetVars, mscVrInitSnmpConfigComponentName=mscVrInitSnmpConfigComponentName, mscVrSnmpUsageState=mscVrSnmpUsageState, mscVrSnmpComRowStatusEntry=mscVrSnmpComRowStatusEntry, mscVrSnmpConProvEntry=mscVrSnmpConProvEntry, mscVrSnmpAcl=mscVrSnmpAcl, mscVrSnmpPartyTransportAddress=mscVrSnmpPartyTransportAddress, mscVrSnmpPartyAuthPrivate=mscVrSnmpPartyAuthPrivate, mscVrSnmpComRowStatus=mscVrSnmpComRowStatus, mscVrSnmpConRowStatusTable=mscVrSnmpConRowStatusTable, mscVrSnmpMibIIStatsRowStatusTable=mscVrSnmpMibIIStatsRowStatusTable, mscVrSnmpMibIIStatsOutTooBigs=mscVrSnmpMibIIStatsOutTooBigs, mscVrSnmpV1EnableAuthenTraps=mscVrSnmpV1EnableAuthenTraps, mscVrSnmpCom=mscVrSnmpCom, baseSnmpCapabilities=baseSnmpCapabilities, mscVrSnmpPartyComponentName=mscVrSnmpPartyComponentName, mscVrSnmpConIdentityIndex=mscVrSnmpConIdentityIndex, mscVrSnmpOrId=mscVrSnmpOrId, mscVrSnmpPartyAuthLifetime=mscVrSnmpPartyAuthLifetime, mscVrSnmpPartyProvEntry=mscVrSnmpPartyProvEntry, mscVrSnmpComStorageType=mscVrSnmpComStorageType, mscVrSnmpSysDescription=mscVrSnmpSysDescription, mscVrSnmpSysObjectId=mscVrSnmpSysObjectId, mscVrSnmpV2StatsRowStatus=mscVrSnmpV2StatsRowStatus, mscVrSnmpMibIIStatsInSetRequests=mscVrSnmpMibIIStatsInSetRequests, mscVrSnmpIndex=mscVrSnmpIndex, mscVrSnmpMgrOfLastAuthFailure=mscVrSnmpMgrOfLastAuthFailure, mscVrSnmpComManProvEntry=mscVrSnmpComManProvEntry, mscVrSnmpV2StatsUnknownSrcParties=mscVrSnmpV2StatsUnknownSrcParties, mscVrSnmpConLocalTime=mscVrSnmpConLocalTime, mscVrSnmpSys=mscVrSnmpSys, mscVrSnmpUnknownStatus=mscVrSnmpUnknownStatus, mscVrSnmpSysRowStatus=mscVrSnmpSysRowStatus, mscVrSnmpViewRowStatusTable=mscVrSnmpViewRowStatusTable, mscVrSnmpViewRowStorageType=mscVrSnmpViewRowStorageType, mscVrSnmpMibIIStatsInBadVersions=mscVrSnmpMibIIStatsInBadVersions, mscVrSnmpStateTable=mscVrSnmpStateTable, mscVrSnmpViewRowStatusEntry=mscVrSnmpViewRowStatusEntry, mscVrSnmpMibIIStatsStorageType=mscVrSnmpMibIIStatsStorageType, mscVrSnmpSysRowStatusEntry=mscVrSnmpSysRowStatusEntry, mscVrSnmpV2EnableAuthenTraps=mscVrSnmpV2EnableAuthenTraps, mscVrSnmpMibIIStatsOutPackets=mscVrSnmpMibIIStatsOutPackets, mscVrSnmpV2StatsBadAuths=mscVrSnmpV2StatsBadAuths, mscVrSnmpPartyOpEntry=mscVrSnmpPartyOpEntry, mscVrSnmpViewStorageType=mscVrSnmpViewStorageType, mscVrSnmpOrComponentName=mscVrSnmpOrComponentName, baseSnmpGroup=baseSnmpGroup, mscVrSnmpOrRowStatus=mscVrSnmpOrRowStatus, mscVrSnmpPartyTDomain=mscVrSnmpPartyTDomain, mscVrSnmpConLocal=mscVrSnmpConLocal, mscVrSnmpV1StatsStatsTable=mscVrSnmpV1StatsStatsTable, mscVrSnmpComProvTable=mscVrSnmpComProvTable, mscVrSnmpProceduralStatus=mscVrSnmpProceduralStatus, mscVrSnmpComManPrivileges=mscVrSnmpComManPrivileges, mscVrSnmpIpStack=mscVrSnmpIpStack, mscVrSnmpPartyPrivProtocol=mscVrSnmpPartyPrivProtocol, mscVrInitSnmpConfigStorageType=mscVrInitSnmpConfigStorageType, mscVrSnmpConViewIndex=mscVrSnmpConViewIndex, mscVrSnmpAclRowStatus=mscVrSnmpAclRowStatus, mscVrSnmpComManProvTable=mscVrSnmpComManProvTable, mscVrSnmpConStdRowStatus=mscVrSnmpConStdRowStatus, mscVrSnmpParty=mscVrSnmpParty, mscVrSnmpMibIIStatsOutTraps=mscVrSnmpMibIIStatsOutTraps, mscVrSnmpV1StatsBadCommunityUses=mscVrSnmpV1StatsBadCommunityUses, mscVrSnmpSysOpEntry=mscVrSnmpSysOpEntry, mscVrSnmpSysLocation=mscVrSnmpSysLocation, mscVrSnmpViewComponentName=mscVrSnmpViewComponentName, mscVrSnmpMibIIStatsInAsnParseErrs=mscVrSnmpMibIIStatsInAsnParseErrs, mscVrInitSnmpConfigRowStatus=mscVrInitSnmpConfigRowStatus, mscVrSnmpComProvEntry=mscVrSnmpComProvEntry, mscVrSnmpConRowStatus=mscVrSnmpConRowStatus, mscVrSnmpMibIIStatsInTotalReqVars=mscVrSnmpMibIIStatsInTotalReqVars, mscVrSnmpProvEntry=mscVrSnmpProvEntry, mscVrSnmpV2StatsRowStatusTable=mscVrSnmpV2StatsRowStatusTable, mscVrSnmpPartyRowStorageType=mscVrSnmpPartyRowStorageType, mscVrSnmpSysServices=mscVrSnmpSysServices, mscVrSnmpV2Stats=mscVrSnmpV2Stats, mscVrSnmpComManRowStatus=mscVrSnmpComManRowStatus, mscVrSnmpPartyRowStatus=mscVrSnmpPartyRowStatus, mscVrSnmpPartyStdIndex=mscVrSnmpPartyStdIndex, mscVrSnmpStatsEntry=mscVrSnmpStatsEntry, mscVrSnmpPartyStorageType=mscVrSnmpPartyStorageType, mscVrSnmpComManComponentName=mscVrSnmpComManComponentName, mscVrSnmpV1StatsRowStatusTable=mscVrSnmpV1StatsRowStatusTable, mscVrSnmpOrOrEntry=mscVrSnmpOrOrEntry, baseSnmpCapabilitiesCA02=baseSnmpCapabilitiesCA02, mscVrSnmpOr=mscVrSnmpOr, mscVrSnmpMibIIStatsInPackets=mscVrSnmpMibIIStatsInPackets, mscVrSnmpAlarmsAsTraps=mscVrSnmpAlarmsAsTraps, mscVrSnmpViewProvEntry=mscVrSnmpViewProvEntry, mscVrSnmpComViewIndex=mscVrSnmpComViewIndex)
|
c = open("__21_d03.txt")
lin = c.readlines()
## Part 1
klin = [list([lin[i].split("\n")[0] for i in range(len(lin))][j]) for j in range(len(lin))]
k2 = [1 if [klin[jj][len(klin[0])-ii-1] for jj in range(len(lin))].count('1') > [klin[jj][len(klin[0])-ii-1] for jj in range(len(lin))].count('0') else 0 for ii in range(len(klin[0]))]
prod = sum([k2[ii]*2**ii for ii in range(len(k2))])*sum([abs(k2[ii]-1)*2**ii for ii in range(len(k2))])
print(prod)
## Part 2
ii = 0
klin22 = klin.copy()
while len(klin) > 1:
klin2 = '1' if [klin[jj][ii] for jj in range(len(klin))].count('1') >= [klin[jj][ii] for jj in range(len(klin))].count('0') else '0'
klin = [klin[jj] for jj in range(len(klin)) if klin[jj][ii] == klin2]
ii += 1
k_1 = klin
klin = klin22.copy()
ii = 0
while len(klin) > 1:
klin3 = '1' if [klin[jj][ii] for jj in range(len(klin))].count('1') < [klin[jj][ii] for jj in range(len(klin))].count(
'0') else '0'
klin = [klin[jj] for jj in range(len(klin)) if klin[jj][ii] == klin3]
ii += 1
k_1 = k_1[0]
k_2 = klin[0]
i3 = sum([int(k_1[ii])*2**(len(k_1)-ii-1) for ii in range(len(k_1))])
j3 = sum([int(k_2[ii])*2**(len(k_2)-ii-1) for ii in range(len(k_2))])
print(i3*j3)
|
c = open('__21_d03.txt')
lin = c.readlines()
klin = [list([lin[i].split('\n')[0] for i in range(len(lin))][j]) for j in range(len(lin))]
k2 = [1 if [klin[jj][len(klin[0]) - ii - 1] for jj in range(len(lin))].count('1') > [klin[jj][len(klin[0]) - ii - 1] for jj in range(len(lin))].count('0') else 0 for ii in range(len(klin[0]))]
prod = sum([k2[ii] * 2 ** ii for ii in range(len(k2))]) * sum([abs(k2[ii] - 1) * 2 ** ii for ii in range(len(k2))])
print(prod)
ii = 0
klin22 = klin.copy()
while len(klin) > 1:
klin2 = '1' if [klin[jj][ii] for jj in range(len(klin))].count('1') >= [klin[jj][ii] for jj in range(len(klin))].count('0') else '0'
klin = [klin[jj] for jj in range(len(klin)) if klin[jj][ii] == klin2]
ii += 1
k_1 = klin
klin = klin22.copy()
ii = 0
while len(klin) > 1:
klin3 = '1' if [klin[jj][ii] for jj in range(len(klin))].count('1') < [klin[jj][ii] for jj in range(len(klin))].count('0') else '0'
klin = [klin[jj] for jj in range(len(klin)) if klin[jj][ii] == klin3]
ii += 1
k_1 = k_1[0]
k_2 = klin[0]
i3 = sum([int(k_1[ii]) * 2 ** (len(k_1) - ii - 1) for ii in range(len(k_1))])
j3 = sum([int(k_2[ii]) * 2 ** (len(k_2) - ii - 1) for ii in range(len(k_2))])
print(i3 * j3)
|
# config.py
# encoding:utf-8
DEBUG = True
JSON_AS_ASCII = False
|
debug = True
json_as_ascii = False
|
num = 42
list_of_numbers = []
for i in range(1, num+1):
list_of_numbers.append(i)
print(list_of_numbers)
death = 3
for i in list_of_numbers:
if i == num:
if i == death:
print("XX")
else:
print(i)
elif i < 10:
if i == death:
print(f"XX", end=" - ")
else:
print(f"0{i}", end=" - ")
elif i % 10 == 0:
if i == death:
print("XX")
else:
print(i)
else:
if i == death:
print("XX")
else:
print(f"{i}", end=" - ")
|
num = 42
list_of_numbers = []
for i in range(1, num + 1):
list_of_numbers.append(i)
print(list_of_numbers)
death = 3
for i in list_of_numbers:
if i == num:
if i == death:
print('XX')
else:
print(i)
elif i < 10:
if i == death:
print(f'XX', end=' - ')
else:
print(f'0{i}', end=' - ')
elif i % 10 == 0:
if i == death:
print('XX')
else:
print(i)
elif i == death:
print('XX')
else:
print(f'{i}', end=' - ')
|
class Solution:
def numMovesStonesII(self, stones: List[int]) -> List[int]:
def helper():
n = len(stones)
if (stones[-2] - stones[0] == n - 2 and stones[-1] - stones[-2] > 2) or (stones[-1] - stones[1] == n - 2 and stones[1] - stones[0] > 2):
return 2
dq = collections.deque()
ans = 0
for num in stones:
dq.append(num)
while dq[-1] - dq[0] + 1 > n:
dq.popleft()
ans = max(ans, len(dq))
return n - ans
stones.sort()
n = len(stones)
mx = 0
for i in range(n - 1):
a, b = stones[i], stones[i + 1]
mx += max(b - a - 1, 0)
mx -= max(min(stones[1] - stones[0] - 1, stones[-1] - stones[-2] - 1), 0)
return helper(), mx
|
class Solution:
def num_moves_stones_ii(self, stones: List[int]) -> List[int]:
def helper():
n = len(stones)
if stones[-2] - stones[0] == n - 2 and stones[-1] - stones[-2] > 2 or (stones[-1] - stones[1] == n - 2 and stones[1] - stones[0] > 2):
return 2
dq = collections.deque()
ans = 0
for num in stones:
dq.append(num)
while dq[-1] - dq[0] + 1 > n:
dq.popleft()
ans = max(ans, len(dq))
return n - ans
stones.sort()
n = len(stones)
mx = 0
for i in range(n - 1):
(a, b) = (stones[i], stones[i + 1])
mx += max(b - a - 1, 0)
mx -= max(min(stones[1] - stones[0] - 1, stones[-1] - stones[-2] - 1), 0)
return (helper(), mx)
|
class Solution:
def isAlienSorted(self, words: List[str], order: str) -> bool:
order_indx = {}
for idx,letter in enumerate(order):
order_indx[letter] = idx
# compare adjacent words
for i in range(len(words)-1):
word1 = words[i]
word2 = words[i+1]
# words that are the same can be skipped
if word1 == word2:
continue
# longer words, that start with the adjacent word, should not come first
if len(word1)>len(word2):
if word1.startswith(word2):
return False
# compare each character, it must be smaller or equal to that of the adjacent word
for k in range(min(len(word1),len(word2))):
if order_indx[word1[k]]<order_indx[word2[k]]:
break
elif order_indx[word1[k]]==order_indx[word2[k]]:
continue
else:
return False
return True
# Time: O(C): C is total content of words
# Space:O(1)
|
class Solution:
def is_alien_sorted(self, words: List[str], order: str) -> bool:
order_indx = {}
for (idx, letter) in enumerate(order):
order_indx[letter] = idx
for i in range(len(words) - 1):
word1 = words[i]
word2 = words[i + 1]
if word1 == word2:
continue
if len(word1) > len(word2):
if word1.startswith(word2):
return False
for k in range(min(len(word1), len(word2))):
if order_indx[word1[k]] < order_indx[word2[k]]:
break
elif order_indx[word1[k]] == order_indx[word2[k]]:
continue
else:
return False
return True
|
def center(win, width=100, height=100):
win.update_idletasks()
width = width
frm_width = win.winfo_rootx() - win.winfo_x()
win_width = width + 2 * frm_width
height = height
titlebar_height = win.winfo_rooty() - win.winfo_y()
win_height = height + titlebar_height + frm_width
x = win.winfo_screenwidth() // 2 - win_width // 2
y = win.winfo_screenheight() // 2 - win_height // 2
win.geometry('{}x{}+{}+{}'.format(width, height, x, y))
win.deiconify()
|
def center(win, width=100, height=100):
win.update_idletasks()
width = width
frm_width = win.winfo_rootx() - win.winfo_x()
win_width = width + 2 * frm_width
height = height
titlebar_height = win.winfo_rooty() - win.winfo_y()
win_height = height + titlebar_height + frm_width
x = win.winfo_screenwidth() // 2 - win_width // 2
y = win.winfo_screenheight() // 2 - win_height // 2
win.geometry('{}x{}+{}+{}'.format(width, height, x, y))
win.deiconify()
|
array = list(map(int, input('Enter the array of integers to be sorted(separated by spaces):').split()))
for i in range(len(array)):
min_idx = i
for j in range(i + 1, len(array)):
if array[min_idx] > array[j]:
min_idx = j
array[i], array[min_idx] = array[min_idx], array[i]
print("Sorted array is:")
print(*array)
|
array = list(map(int, input('Enter the array of integers to be sorted(separated by spaces):').split()))
for i in range(len(array)):
min_idx = i
for j in range(i + 1, len(array)):
if array[min_idx] > array[j]:
min_idx = j
(array[i], array[min_idx]) = (array[min_idx], array[i])
print('Sorted array is:')
print(*array)
|
# -*- coding: utf-8 -*-
class CertstreamObject(object):
"""Base class for all the certstream data classes"""
@classmethod
def from_dict(cls, data):
"""
Returns a copy of the passed data
:param data: The dict from which an object should be created from
:return: copy of data or None
"""
if not data:
return None
data = data.copy()
return data
|
class Certstreamobject(object):
"""Base class for all the certstream data classes"""
@classmethod
def from_dict(cls, data):
"""
Returns a copy of the passed data
:param data: The dict from which an object should be created from
:return: copy of data or None
"""
if not data:
return None
data = data.copy()
return data
|
batch_size = 192*4
config = {}
# set the parameters related to the training and testing set
data_train_opt = {}
data_train_opt['batch_size'] = batch_size
data_train_opt['unsupervised'] = True
data_train_opt['epoch_size'] = None
data_train_opt['random_sized_crop'] = False
data_train_opt['dataset_name'] = 'imagenet'
data_train_opt['split'] = 'train'
data_test_opt = {}
data_test_opt['batch_size'] = batch_size
data_test_opt['unsupervised'] = True
data_test_opt['epoch_size'] = None
data_test_opt['random_sized_crop'] = False
data_test_opt['dataset_name'] = 'imagenet'
data_test_opt['split'] = 'val'
config['data_train_opt'] = data_train_opt
config['data_test_opt'] = data_test_opt
config['max_num_epochs'] = 200
net_opt = {}
net_opt['num_classes'] = 8
net_opt['num_stages'] = 4
networks = {}
net_optim_params = {'optim_type': 'sgd', 'lr': 0.01, 'momentum':0.9, 'weight_decay': 5e-4, 'nesterov': True, 'LUT_lr':[(100, 0.01),(150,0.001),(200,0.0001)]}
networks['model'] = {'def_file': 'architectures/AlexNet.py', 'pretrained': None, 'opt': net_opt, 'optim_params': net_optim_params}
config['networks'] = networks
criterions = {}
criterions['loss'] = {'ctype':'MSELoss', 'opt':True}
config['criterions'] = criterions
config['algorithm_type'] = 'UnsupervisedModel'
|
batch_size = 192 * 4
config = {}
data_train_opt = {}
data_train_opt['batch_size'] = batch_size
data_train_opt['unsupervised'] = True
data_train_opt['epoch_size'] = None
data_train_opt['random_sized_crop'] = False
data_train_opt['dataset_name'] = 'imagenet'
data_train_opt['split'] = 'train'
data_test_opt = {}
data_test_opt['batch_size'] = batch_size
data_test_opt['unsupervised'] = True
data_test_opt['epoch_size'] = None
data_test_opt['random_sized_crop'] = False
data_test_opt['dataset_name'] = 'imagenet'
data_test_opt['split'] = 'val'
config['data_train_opt'] = data_train_opt
config['data_test_opt'] = data_test_opt
config['max_num_epochs'] = 200
net_opt = {}
net_opt['num_classes'] = 8
net_opt['num_stages'] = 4
networks = {}
net_optim_params = {'optim_type': 'sgd', 'lr': 0.01, 'momentum': 0.9, 'weight_decay': 0.0005, 'nesterov': True, 'LUT_lr': [(100, 0.01), (150, 0.001), (200, 0.0001)]}
networks['model'] = {'def_file': 'architectures/AlexNet.py', 'pretrained': None, 'opt': net_opt, 'optim_params': net_optim_params}
config['networks'] = networks
criterions = {}
criterions['loss'] = {'ctype': 'MSELoss', 'opt': True}
config['criterions'] = criterions
config['algorithm_type'] = 'UnsupervisedModel'
|
# -*- coding: utf-8 -*-
def main():
n = int(input())
ans = 0
for i in range(1, int(n ** 0.5) + 1):
if n % i == 0 and (i ** 2) != n:
m = n // i - 1
if n // m == n % m:
ans += m
print(ans)
if __name__ == '__main__':
main()
|
def main():
n = int(input())
ans = 0
for i in range(1, int(n ** 0.5) + 1):
if n % i == 0 and i ** 2 != n:
m = n // i - 1
if n // m == n % m:
ans += m
print(ans)
if __name__ == '__main__':
main()
|
"""
Collection of lists and dicts representing types in the python C-API
"""
"""
CPython's function pointers as dict:
typename: (return_type, (args,))
"""
FUNCTIONS = {
"unaryfunc": ("PyObject*", ("PyObject*",)),
"binaryfunc": ("PyObject*", ("PyObject*", "PyObject*")),
"ternaryfunc": ("PyObject*", ("PyObject*", "PyObject*", "PyObject*")),
"inquiry": ("int", ("PyObject*",)),
"lenfunc": ("Py_ssize_t", ("PyObject*",)),
"ssizeargfunc": ("PyObject*", ("PyObject*", "Py_ssize_t")),
"ssizessizeargfunc": ("PyObject*", ("PyObject*", "Py_ssize_t", "Py_ssize_t")),
"ssizeobjargproc": ("int", ("PyObject*", "Py_ssize_t", "PyObject*")),
"ssizessizeobjargproc": ("int", ("PyObject*", "Py_ssize_t", "Py_ssize_t", "PyObject*")),
"objobjargproc": ("int", ("PyObject*", "PyObject*", "PyObject*")),
"freefunc": ("void", ("void*",)),
"destructor": ("void", ("PyObject*",)),
"printfunc": ("int", ("PyObject*", "FILE*", "int")),
"getattrfunc": ("PyObject*", ("PyObject*", "char*")),
"getattrofunc": ("PyObject*", ("PyObject*", "PyObject*")),
"setattrfunc": ("int", ("PyObject*", "char*", "PyObject*")),
"setattrofunc": ("int", ("PyObject*", "PyObject*", "PyObject*")),
"reprfunc": ("PyObject*", ("PyObject*",)),
"hashfunc": ("Py_hash_t", ("PyObject*",)),
"richcmpfunc": ("PyObject*", ("PyObject*", "PyObject*", "int")),
"getiterfunc": ("PyObject*", ("PyObject*",)),
"iternextfunc": ("PyObject*", ("PyObject*",)),
"descrgetfunc": ("PyObject*", ("PyObject*", "PyObject*", "PyObject*")),
"descrsetfunc": ("int", ("PyObject*", "PyObject*", "PyObject*")),
"initproc": ("int", ("PyObject*", "PyObject*", "PyObject*")),
"newfunc": ("PyObject*", ("struct _typeobject*", "PyObject*", "PyObject*")),
"allocfunc": ("PyObject*", ("struct _typeobject*", "Py_ssize_t")),
"getter": ("PyObject*", ("PyObject*", "void*")),
"setter": ("int", ("PyObject*", "PyObject*", "void*")),
"objobjproc": ("int", ("PyObject*", "PyObject*")),
"visitproc": ("int", ("PyObject*", "void*")),
"traverseproc": ("int", ("PyObject*", "visitproc", "void*")),
}
"""
All members of PyTypeObject (member_name, type)
"""
PyTypeObject = [
("tp_name", "const char*"),
("tp_basicsize", "Py_ssize_t"),
("tp_itemsize", "Py_ssize_t"),
("tp_dealloc", "destructor"),
("tp_print", "printfunc"),
("tp_getattr", "getattrfunc"),
("tp_setattr", "setattrfunc"),
("tp_reserved", "void*"),
("tp_repr", "reprfunc"),
("tp_as_number", "PyNumberMethods*"),
("tp_as_sequence", "PySequenceMethods*"),
("tp_as_mapping", "PyMappingMethods*"),
("tp_hash", "hashfunc"),
("tp_call", "ternaryfunc"),
("tp_str", "reprfunc"),
("tp_getattro", "getattrofunc"),
("tp_setattro", "setattrofunc"),
("tp_as_buffer", "PyBufferProcs*"),
("tp_flags", "unsigned long"),
("tp_doc", "const char*"),
("tp_traverse", "traverseproc"),
("tp_clear", "inquiry"),
("tp_richcompare", "richcmpfunc"),
("tp_weaklistoffset", "Py_ssize_t"),
("tp_iter", "getiterfunc"),
("tp_iternext", "iternextfunc"),
("tp_methods", "struct PyMethodDef*"),
("tp_members", "struct PyMemberDef*"),
("tp_getset", "struct PyGetSetDef*"),
("tp_base", "struct _typeobject*"),
("tp_dict", "PyObject*"),
("tp_descr_get", "descrgetfunc"),
("tp_descr_set", "descrsetfunc"),
("tp_dictoffset", "Py_ssize_t"),
("tp_init", "initproc"),
("tp_alloc", "allocfunc"),
("tp_new", "newfunc"),
("tp_free", "freefunc"),
("tp_is_gc", "inquiry"),
("tp_bases", "PyObject*"),
("tp_mro", "PyObject*"),
("tp_cache", "PyObject*"),
("tp_subclasses", "PyObject*"),
("tp_weaklist", "PyObject*"),
("tp_del", "destructor"),
("tp_version_tag", "unsigned int"),
("tp_finalize", "destructor"),
]
PyNumberMethods = [
("nb_add", "binaryfunc"),
("nb_subtract", "binaryfunc"),
("nb_multiply", "binaryfunc"),
("nb_remainder", "binaryfunc"),
("nb_divmod", "binaryfunc"),
("nb_power", "ternaryfunc"),
("nb_negative", "unaryfunc"),
("nb_positive", "unaryfunc"),
("nb_absolute", "unaryfunc"),
("nb_bool", "inquiry"),
("nb_invert", "unaryfunc"),
("nb_lshift", "binaryfunc"),
("nb_rshift", "binaryfunc"),
("nb_and", "binaryfunc"),
("nb_xor", "binaryfunc"),
("nb_or", "binaryfunc"),
("nb_int", "unaryfunc"),
("nb_reserved", "void*"),
("nb_float", "unaryfunc"),
("nb_inplace_add", "binaryfunc"),
("nb_inplace_subtract", "binaryfunc"),
("nb_inplace_multiply", "binaryfunc"),
("nb_inplace_remainder", "binaryfunc"),
("nb_inplace_power", "ternaryfunc"),
("nb_inplace_lshift", "binaryfunc"),
("nb_inplace_rshift", "binaryfunc"),
("nb_inplace_and", "binaryfunc"),
("nb_inplace_xor", "binaryfunc"),
("nb_inplace_or", "binaryfunc"),
("nb_floor_divide", "binaryfunc"),
("nb_true_divide", "binaryfunc"),
("nb_inplace_floor_divide", "binaryfunc"),
("nb_inplace_true_divide", "binaryfunc"),
("nb_index", "unaryfunc"),
]
PySequenceMethods = [
("sq_length", "lenfunc"),
("sq_concat", "binaryfunc"),
("sq_repeat", "ssizeargfunc"),
("sq_item", "ssizeargfunc"),
("was_sq_slice", "void*"),
("sq_ass_item", "ssizeobjargproc"),
("was_sq_ass_slice", "void*"),
("sq_contains", "objobjproc"),
("sq_inplace_concat", "binaryfunc"),
("sq_inplace_repeat", "ssizeargfunc"),
]
PyMappingMethods = [
("mp_length", "lenfunc"),
("mp_subscript", "binaryfunc"),
("mp_ass_subscript", "objobjargproc"),
]
PyBufferProcs = [
("bf_getbuffer", "getbufferproc"),
("bf_releasebuffer", "releasebufferproc"),
]
PyModuleDef = [
("m_name", "const char*"),
("m_doc", "const char*"),
("m_size", "Py_ssize_t"),
("m_methods", "PyMethodDef*"),
("m_reload", "inquiry"),
("m_traverse", "traverseproc"),
("m_clear", "inquiry"),
("m_free", "freefunc"),
]
SEQUENCE_FUNCS = [
("__len__", "sq_length"),
("__???__", "sq_concat"),
("__???__", "sq_repeat"),
("__getitem__", "sq_item"),
("__???___", "was_sq_slice"),
("__setitem__", "sq_ass_item"),
("__???___", "was_sq_ass_slice"),
("__contains__", "sq_contains"),
("__???___", "sq_inplace_concat"),
("__???___", "sq_inplace_repeat"),
]
NUMBER_FUNCS = [
("__add__", "nb_add", "binaryfunc"),
("__sub__", "nb_subtract", "binaryfunc"),
("__mul__", "nb_multiply", "binaryfunc"),
("__mod__", "nb_remainder", "binaryfunc"),
("__???__", "nb_divmod", "binaryfunc"),
("__pow__", "nb_power", "ternaryfunc"),
("__neg__", "nb_negative", "unaryfunc"),
("__pos__", "nb_positive", "unaryfunc"),
("__abs__", "nb_absolute", "unaryfunc"),
("__bool__", "nb_bool", "inquiry"),
("__???__", "nb_invert", "unaryfunc"),
("__???__", "nb_lshift", "binaryfunc"),
("__???__", "nb_rshift", "binaryfunc"),
("__and__", "nb_and", "binaryfunc"),
("__xor__", "nb_xor", "binaryfunc"),
("__or__", "nb_or", "binaryfunc"),
("__???__", "nb_int", "unaryfunc"),
("__???__", "nb_reserved", "void*"),
("__???__", "nb_float", "unaryfunc"),
("__iadd__", "nb_inplace_add", "binaryfunc"),
("__isub__", "nb_inplace_subtract", "binaryfunc"),
("__imul__", "nb_inplace_multiply", "binaryfunc"),
("__imod__", "nb_inplace_remainder", "binaryfunc"),
("__ipow__", "nb_inplace_power", "ternaryfunc"),
("__???__", "nb_inplace_lshift", "binaryfunc"),
("__???__", "nb_inplace_rshift", "binaryfunc"),
("__iand__", "nb_inplace_and", "binaryfunc"),
("__ixor__", "nb_inplace_xor", "binaryfunc"),
("__ior__", "nb_inplace_or", "binaryfunc"),
("__floordiv__", "nb_floor_divide", "binaryfunc"),
("__truediv__", "nb_true_divide", "binaryfunc"),
("__ifloordiv__", "nb_inplace_floor_divide", "binaryfunc"),
("__itruediv__", "nb_inplace_true_divide", "binaryfunc"),
("__???__", "nb_index", "unaryfunc"),
]
TYPE_FUNCS = [
("__str__", "tp_str"),
("__unicode__", "tp_str"),
("__repr__", "tp_repr"),
("__init__", "tp_init"),
("__eq__", "tp_richcompare")
]
# otherwise PyObject*
SPECIAL_RETURN_TYPES = {
"__init__": "int",
"__len__": "Py_ssize_t",
"__setitem__": "int",
}
SPECIAL_ARGUMENTS = {
"__getitem__": ", Py_ssize_t index",
"__setitem__": ", Py_ssize_t index, PyObject* arg",
}
FUNCNAME_TO_STRUCT_MEMBER = dict()
for i in SEQUENCE_FUNCS + NUMBER_FUNCS + TYPE_FUNCS:
FUNCNAME_TO_STRUCT_MEMBER.setdefault(i[0], i[1])
STRUCT_MEMBER_TO_TYPE = dict()
for i in PyModuleDef + PyBufferProcs + PyMappingMethods + PySequenceMethods + PyNumberMethods + PyTypeObject:
STRUCT_MEMBER_TO_TYPE.setdefault(i[0], i[1])
FUNCNAME_TO_TYPE = dict()
for i in FUNCNAME_TO_STRUCT_MEMBER:
mem = FUNCNAME_TO_STRUCT_MEMBER.get(i)
if mem in STRUCT_MEMBER_TO_TYPE:
FUNCNAME_TO_TYPE.setdefault(i, STRUCT_MEMBER_TO_TYPE[mem])
|
"""
Collection of lists and dicts representing types in the python C-API
"""
"\nCPython's function pointers as dict:\ntypename: (return_type, (args,))\n"
functions = {'unaryfunc': ('PyObject*', ('PyObject*',)), 'binaryfunc': ('PyObject*', ('PyObject*', 'PyObject*')), 'ternaryfunc': ('PyObject*', ('PyObject*', 'PyObject*', 'PyObject*')), 'inquiry': ('int', ('PyObject*',)), 'lenfunc': ('Py_ssize_t', ('PyObject*',)), 'ssizeargfunc': ('PyObject*', ('PyObject*', 'Py_ssize_t')), 'ssizessizeargfunc': ('PyObject*', ('PyObject*', 'Py_ssize_t', 'Py_ssize_t')), 'ssizeobjargproc': ('int', ('PyObject*', 'Py_ssize_t', 'PyObject*')), 'ssizessizeobjargproc': ('int', ('PyObject*', 'Py_ssize_t', 'Py_ssize_t', 'PyObject*')), 'objobjargproc': ('int', ('PyObject*', 'PyObject*', 'PyObject*')), 'freefunc': ('void', ('void*',)), 'destructor': ('void', ('PyObject*',)), 'printfunc': ('int', ('PyObject*', 'FILE*', 'int')), 'getattrfunc': ('PyObject*', ('PyObject*', 'char*')), 'getattrofunc': ('PyObject*', ('PyObject*', 'PyObject*')), 'setattrfunc': ('int', ('PyObject*', 'char*', 'PyObject*')), 'setattrofunc': ('int', ('PyObject*', 'PyObject*', 'PyObject*')), 'reprfunc': ('PyObject*', ('PyObject*',)), 'hashfunc': ('Py_hash_t', ('PyObject*',)), 'richcmpfunc': ('PyObject*', ('PyObject*', 'PyObject*', 'int')), 'getiterfunc': ('PyObject*', ('PyObject*',)), 'iternextfunc': ('PyObject*', ('PyObject*',)), 'descrgetfunc': ('PyObject*', ('PyObject*', 'PyObject*', 'PyObject*')), 'descrsetfunc': ('int', ('PyObject*', 'PyObject*', 'PyObject*')), 'initproc': ('int', ('PyObject*', 'PyObject*', 'PyObject*')), 'newfunc': ('PyObject*', ('struct _typeobject*', 'PyObject*', 'PyObject*')), 'allocfunc': ('PyObject*', ('struct _typeobject*', 'Py_ssize_t')), 'getter': ('PyObject*', ('PyObject*', 'void*')), 'setter': ('int', ('PyObject*', 'PyObject*', 'void*')), 'objobjproc': ('int', ('PyObject*', 'PyObject*')), 'visitproc': ('int', ('PyObject*', 'void*')), 'traverseproc': ('int', ('PyObject*', 'visitproc', 'void*'))}
'\nAll members of PyTypeObject (member_name, type)\n'
py_type_object = [('tp_name', 'const char*'), ('tp_basicsize', 'Py_ssize_t'), ('tp_itemsize', 'Py_ssize_t'), ('tp_dealloc', 'destructor'), ('tp_print', 'printfunc'), ('tp_getattr', 'getattrfunc'), ('tp_setattr', 'setattrfunc'), ('tp_reserved', 'void*'), ('tp_repr', 'reprfunc'), ('tp_as_number', 'PyNumberMethods*'), ('tp_as_sequence', 'PySequenceMethods*'), ('tp_as_mapping', 'PyMappingMethods*'), ('tp_hash', 'hashfunc'), ('tp_call', 'ternaryfunc'), ('tp_str', 'reprfunc'), ('tp_getattro', 'getattrofunc'), ('tp_setattro', 'setattrofunc'), ('tp_as_buffer', 'PyBufferProcs*'), ('tp_flags', 'unsigned long'), ('tp_doc', 'const char*'), ('tp_traverse', 'traverseproc'), ('tp_clear', 'inquiry'), ('tp_richcompare', 'richcmpfunc'), ('tp_weaklistoffset', 'Py_ssize_t'), ('tp_iter', 'getiterfunc'), ('tp_iternext', 'iternextfunc'), ('tp_methods', 'struct PyMethodDef*'), ('tp_members', 'struct PyMemberDef*'), ('tp_getset', 'struct PyGetSetDef*'), ('tp_base', 'struct _typeobject*'), ('tp_dict', 'PyObject*'), ('tp_descr_get', 'descrgetfunc'), ('tp_descr_set', 'descrsetfunc'), ('tp_dictoffset', 'Py_ssize_t'), ('tp_init', 'initproc'), ('tp_alloc', 'allocfunc'), ('tp_new', 'newfunc'), ('tp_free', 'freefunc'), ('tp_is_gc', 'inquiry'), ('tp_bases', 'PyObject*'), ('tp_mro', 'PyObject*'), ('tp_cache', 'PyObject*'), ('tp_subclasses', 'PyObject*'), ('tp_weaklist', 'PyObject*'), ('tp_del', 'destructor'), ('tp_version_tag', 'unsigned int'), ('tp_finalize', 'destructor')]
py_number_methods = [('nb_add', 'binaryfunc'), ('nb_subtract', 'binaryfunc'), ('nb_multiply', 'binaryfunc'), ('nb_remainder', 'binaryfunc'), ('nb_divmod', 'binaryfunc'), ('nb_power', 'ternaryfunc'), ('nb_negative', 'unaryfunc'), ('nb_positive', 'unaryfunc'), ('nb_absolute', 'unaryfunc'), ('nb_bool', 'inquiry'), ('nb_invert', 'unaryfunc'), ('nb_lshift', 'binaryfunc'), ('nb_rshift', 'binaryfunc'), ('nb_and', 'binaryfunc'), ('nb_xor', 'binaryfunc'), ('nb_or', 'binaryfunc'), ('nb_int', 'unaryfunc'), ('nb_reserved', 'void*'), ('nb_float', 'unaryfunc'), ('nb_inplace_add', 'binaryfunc'), ('nb_inplace_subtract', 'binaryfunc'), ('nb_inplace_multiply', 'binaryfunc'), ('nb_inplace_remainder', 'binaryfunc'), ('nb_inplace_power', 'ternaryfunc'), ('nb_inplace_lshift', 'binaryfunc'), ('nb_inplace_rshift', 'binaryfunc'), ('nb_inplace_and', 'binaryfunc'), ('nb_inplace_xor', 'binaryfunc'), ('nb_inplace_or', 'binaryfunc'), ('nb_floor_divide', 'binaryfunc'), ('nb_true_divide', 'binaryfunc'), ('nb_inplace_floor_divide', 'binaryfunc'), ('nb_inplace_true_divide', 'binaryfunc'), ('nb_index', 'unaryfunc')]
py_sequence_methods = [('sq_length', 'lenfunc'), ('sq_concat', 'binaryfunc'), ('sq_repeat', 'ssizeargfunc'), ('sq_item', 'ssizeargfunc'), ('was_sq_slice', 'void*'), ('sq_ass_item', 'ssizeobjargproc'), ('was_sq_ass_slice', 'void*'), ('sq_contains', 'objobjproc'), ('sq_inplace_concat', 'binaryfunc'), ('sq_inplace_repeat', 'ssizeargfunc')]
py_mapping_methods = [('mp_length', 'lenfunc'), ('mp_subscript', 'binaryfunc'), ('mp_ass_subscript', 'objobjargproc')]
py_buffer_procs = [('bf_getbuffer', 'getbufferproc'), ('bf_releasebuffer', 'releasebufferproc')]
py_module_def = [('m_name', 'const char*'), ('m_doc', 'const char*'), ('m_size', 'Py_ssize_t'), ('m_methods', 'PyMethodDef*'), ('m_reload', 'inquiry'), ('m_traverse', 'traverseproc'), ('m_clear', 'inquiry'), ('m_free', 'freefunc')]
sequence_funcs = [('__len__', 'sq_length'), ('__???__', 'sq_concat'), ('__???__', 'sq_repeat'), ('__getitem__', 'sq_item'), ('__???___', 'was_sq_slice'), ('__setitem__', 'sq_ass_item'), ('__???___', 'was_sq_ass_slice'), ('__contains__', 'sq_contains'), ('__???___', 'sq_inplace_concat'), ('__???___', 'sq_inplace_repeat')]
number_funcs = [('__add__', 'nb_add', 'binaryfunc'), ('__sub__', 'nb_subtract', 'binaryfunc'), ('__mul__', 'nb_multiply', 'binaryfunc'), ('__mod__', 'nb_remainder', 'binaryfunc'), ('__???__', 'nb_divmod', 'binaryfunc'), ('__pow__', 'nb_power', 'ternaryfunc'), ('__neg__', 'nb_negative', 'unaryfunc'), ('__pos__', 'nb_positive', 'unaryfunc'), ('__abs__', 'nb_absolute', 'unaryfunc'), ('__bool__', 'nb_bool', 'inquiry'), ('__???__', 'nb_invert', 'unaryfunc'), ('__???__', 'nb_lshift', 'binaryfunc'), ('__???__', 'nb_rshift', 'binaryfunc'), ('__and__', 'nb_and', 'binaryfunc'), ('__xor__', 'nb_xor', 'binaryfunc'), ('__or__', 'nb_or', 'binaryfunc'), ('__???__', 'nb_int', 'unaryfunc'), ('__???__', 'nb_reserved', 'void*'), ('__???__', 'nb_float', 'unaryfunc'), ('__iadd__', 'nb_inplace_add', 'binaryfunc'), ('__isub__', 'nb_inplace_subtract', 'binaryfunc'), ('__imul__', 'nb_inplace_multiply', 'binaryfunc'), ('__imod__', 'nb_inplace_remainder', 'binaryfunc'), ('__ipow__', 'nb_inplace_power', 'ternaryfunc'), ('__???__', 'nb_inplace_lshift', 'binaryfunc'), ('__???__', 'nb_inplace_rshift', 'binaryfunc'), ('__iand__', 'nb_inplace_and', 'binaryfunc'), ('__ixor__', 'nb_inplace_xor', 'binaryfunc'), ('__ior__', 'nb_inplace_or', 'binaryfunc'), ('__floordiv__', 'nb_floor_divide', 'binaryfunc'), ('__truediv__', 'nb_true_divide', 'binaryfunc'), ('__ifloordiv__', 'nb_inplace_floor_divide', 'binaryfunc'), ('__itruediv__', 'nb_inplace_true_divide', 'binaryfunc'), ('__???__', 'nb_index', 'unaryfunc')]
type_funcs = [('__str__', 'tp_str'), ('__unicode__', 'tp_str'), ('__repr__', 'tp_repr'), ('__init__', 'tp_init'), ('__eq__', 'tp_richcompare')]
special_return_types = {'__init__': 'int', '__len__': 'Py_ssize_t', '__setitem__': 'int'}
special_arguments = {'__getitem__': ', Py_ssize_t index', '__setitem__': ', Py_ssize_t index, PyObject* arg'}
funcname_to_struct_member = dict()
for i in SEQUENCE_FUNCS + NUMBER_FUNCS + TYPE_FUNCS:
FUNCNAME_TO_STRUCT_MEMBER.setdefault(i[0], i[1])
struct_member_to_type = dict()
for i in PyModuleDef + PyBufferProcs + PyMappingMethods + PySequenceMethods + PyNumberMethods + PyTypeObject:
STRUCT_MEMBER_TO_TYPE.setdefault(i[0], i[1])
funcname_to_type = dict()
for i in FUNCNAME_TO_STRUCT_MEMBER:
mem = FUNCNAME_TO_STRUCT_MEMBER.get(i)
if mem in STRUCT_MEMBER_TO_TYPE:
FUNCNAME_TO_TYPE.setdefault(i, STRUCT_MEMBER_TO_TYPE[mem])
|
#
# PySNMP MIB module DOT3-OAM-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/DOT3-OAM-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:10:39 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Integer, OctetString, ObjectIdentifier, ) = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint")
( CounterBasedGauge64, ) = mibBuilder.importSymbols("HCNUM-TC", "CounterBasedGauge64")
( ifIndex, ) = mibBuilder.importSymbols("IF-MIB", "ifIndex")
( ObjectGroup, ModuleCompliance, NotificationGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
( Bits, Gauge32, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, TimeTicks, ModuleIdentity, Unsigned32, IpAddress, NotificationType, iso, mib_2, ObjectIdentity, Integer32, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Gauge32", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "TimeTicks", "ModuleIdentity", "Unsigned32", "IpAddress", "NotificationType", "iso", "mib-2", "ObjectIdentity", "Integer32", "Counter32")
( TruthValue, TextualConvention, MacAddress, TimeStamp, DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "MacAddress", "TimeStamp", "DisplayString")
dot3OamMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 158)).setRevisions(("2007-06-14 00:00",))
if mibBuilder.loadTexts: dot3OamMIB.setLastUpdated('200706140000Z')
if mibBuilder.loadTexts: dot3OamMIB.setOrganization('IETF Ethernet Interfaces and Hub MIB Working Group')
if mibBuilder.loadTexts: dot3OamMIB.setContactInfo('WG Charter:\n http://www.ietf.org/html.charters/hubmib-charter.html\n Mailing lists:\n General Discussion: [email protected]\n To Subscribe: [email protected]\n In Body: subscribe your_email_address\n Chair: Bert Wijnen\n Alcatel-Lucent\n Email: bwijnen at alcatel-lucent dot com\n Editor: Matt Squire\n Hatteras Networks\n E-mail: msquire at hatterasnetworks dot com\n ')
if mibBuilder.loadTexts: dot3OamMIB.setDescription("The MIB module for managing the new Ethernet OAM features\n introduced by the Ethernet in the First Mile taskforce (IEEE\n 802.3ah). The functionality presented here is based on IEEE\n 802.3ah [802.3ah], released in October, 2004. [802.3ah] was\n prepared as an addendum to the standing version of IEEE 802.3\n [802.3-2002]. Since then, [802.3ah] has been\n merged into the base IEEE 802.3 specification in [802.3-2005].\n\n In particular, this MIB focuses on the new OAM functions\n introduced in Clause 57 of [802.3ah]. The OAM functionality\n of Clause 57 is controlled by new management attributes\n introduced in Clause 30 of [802.3ah]. The OAM functions are\n not specific to any particular Ethernet physical layer, and\n can be generically applied to any Ethernet interface of\n [802.3-2002].\n\n An Ethernet OAM protocol data unit is a valid Ethernet frame\n with a destination MAC address equal to the reserved MAC\n address for Slow Protocols (See 43B of [802.3ah]), a\n lengthOrType field equal to the reserved type for Slow\n Protocols, and a Slow Protocols subtype equal to that of the\n subtype reserved for Ethernet OAM. OAMPDU is used throughout\n this document as an abbreviation for Ethernet OAM protocol\n data unit.\n\n The following reference is used throughout this MIB module:\n\n [802.3ah] refers to:\n IEEE Std 802.3ah-2004: 'Draft amendment to -\n Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n October 2004.\n\n [802.3-2002] refers to:\n IEEE Std 802.3-2002:\n 'Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n March 2002.\n\n [802.3-2005] refers to:\n IEEE Std 802.3-2005:\n 'Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n December 2005.\n\n [802-2001] refers to:\n 'IEEE Standard for LAN/MAN (Local Area\n Network/Metropolitan Area Network): Overview and\n Architecture', IEEE 802, June 2001.\n\n Copyright (c) The IETF Trust (2007). This version of\n this MIB module is part of RFC 4878; See the RFC itself for\n full legal notices. ")
dot3OamNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 158, 0))
dot3OamObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 158, 1))
dot3OamConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 158, 2))
class EightOTwoOui(OctetString, TextualConvention):
subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(3,3)
fixedLength = 3
dot3OamTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 1), )
if mibBuilder.loadTexts: dot3OamTable.setDescription('This table contains the primary controls and status for the\n OAM capabilities of an Ethernet-like interface. There will be\n one row in this table for each Ethernet-like interface in the\n system that supports the OAM functions defined in [802.3ah].\n ')
dot3OamEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: dot3OamEntry.setDescription('An entry in the table that contains information on the\n Ethernet OAM function for a single Ethernet like interface.\n Entries in the table are created automatically for each\n interface supporting Ethernet OAM. The status of the row\n entry can be determined from dot3OamOperStatus.\n\n A dot3OamEntry is indexed in the dot3OamTable by the ifIndex\n object of the Interfaces MIB.\n ')
dot3OamAdminState = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamAdminState.setDescription('This object is used to provision the default administrative\n OAM mode for this interface. This object represents the\n desired state of OAM for this interface.\n\n The dot3OamAdminState always starts in the disabled(2) state\n until an explicit management action or configuration\n information retained by the system causes a transition to the\n enabled(1) state. When enabled(1), Ethernet OAM will attempt\n to operate over this interface.\n ')
dot3OamOperStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10,))).clone(namedValues=NamedValues(("disabled", 1), ("linkFault", 2), ("passiveWait", 3), ("activeSendLocal", 4), ("sendLocalAndRemote", 5), ("sendLocalAndRemoteOk", 6), ("oamPeeringLocallyRejected", 7), ("oamPeeringRemotelyRejected", 8), ("operational", 9), ("nonOperHalfDuplex", 10),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamOperStatus.setDescription('At initialization and failure conditions, two OAM entities on\n\n the same full-duplex Ethernet link begin a discovery phase to\n determine what OAM capabilities may be used on that link. The\n progress of this initialization is controlled by the OA\n sublayer.\n\n This value is always disabled(1) if OAM is disabled on this\n interface via the dot3OamAdminState.\n\n If the link has detected a fault and is transmitting OAMPDUs\n with a link fault indication, the value is linkFault(2).\n Also, if the interface is not operational (ifOperStatus is\n not up(1)), linkFault(2) is returned. Note that the object\n ifOperStatus may not be up(1) as a result of link failure or\n administrative action (ifAdminState being down(2) or\n testing(3)).\n\n The passiveWait(3) state is returned only by OAM entities in\n passive mode (dot3OamMode) and reflects the state in which the\n OAM entity is waiting to see if the peer device is OA\n capable. The activeSendLocal(4) value is used by active mode\n devices (dot3OamMode) and reflects the OAM entity actively\n trying to discover whether the peer has OAM capability but has\n not yet made that determination.\n\n The state sendLocalAndRemote(5) reflects that the local OA\n entity has discovered the peer but has not yet accepted or\n rejected the configuration of the peer. The local device can,\n for whatever reason, decide that the peer device is\n unacceptable and decline OAM peering. If the local OAM entity\n rejects the peer OAM entity, the state becomes\n oamPeeringLocallyRejected(7). If the OAM peering is allowed\n by the local device, the state moves to\n sendLocalAndRemoteOk(6). Note that both the\n sendLocalAndRemote(5) and oamPeeringLocallyRejected(7) states\n fall within the state SEND_LOCAL_REMOTE of the Discovery state\n diagram [802.3ah, Figure 57-5], with the difference being\n whether the local OAM client has actively rejected the peering\n or has just not indicated any decision yet. Whether a peering\n decision has been made is indicated via the local flags field\n in the OAMPDU (reflected in the aOAMLocalFlagsField of\n 30.3.6.1.10).\n\n If the remote OAM entity rejects the peering, the state\n becomes oamPeeringRemotelyRejected(8). Note that both the\n sendLocalAndRemoteOk(6) and oamPeeringRemotelyRejected(8)\n states fall within the state SEND_LOCAL_REMOTE_OK of the\n Discovery state diagram [802.3ah, Figure 57-5], with the\n difference being whether the remote OAM client has rejected\n\n the peering or has just not yet decided. This is indicated\n via the remote flags field in the OAMPDU (reflected in the\n aOAMRemoteFlagsField of 30.3.6.1.11).\n\n When the local OAM entity learns that both it and the remote\n OAM entity have accepted the peering, the state moves to\n operational(9) corresponding to the SEND_ANY state of the\n Discovery state diagram [802.3ah, Figure 57-5].\n\n Since Ethernet OAM functions are not designed to work\n completely over half-duplex interfaces, the value\n nonOperHalfDuplex(10) is returned whenever Ethernet OAM is\n enabled (dot3OamAdminState is enabled(1)), but the interface\n is in half-duplex operation.\n ')
dot3OamMode = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("passive", 1), ("active", 2),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamMode.setDescription("This object configures the mode of OAM operation for this\n Ethernet-like interface. OAM on Ethernet interfaces may be in\n 'active' mode or 'passive' mode. These two modes differ in\n that active mode provides additional capabilities to initiate\n monitoring activities with the remote OAM peer entity, while\n passive mode generally waits for the peer to initiate OA\n actions with it. As an example, an active OAM entity can put\n the remote OAM entity in a loopback state, where a passive OA\n entity cannot.\n\n The default value of dot3OamMode is dependent on the type of\n system on which this Ethernet-like interface resides. The\n default value should be 'active(2)' unless it is known that\n this system should take on a subservient role to the other\n device connected over this interface.\n\n Changing this value results in incrementing the configuration\n revision field of locally generated OAMPDUs (30.3.6.1.12) and\n potentially re-doing the OAM discovery process if the\n dot3OamOperStatus was already operational(9).\n ")
dot3OamMaxOamPduSize = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(64,1518))).setUnits('octets').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamMaxOamPduSize.setDescription('The largest OAMPDU that the OAM entity supports. OA\n entities exchange maximum OAMPDU sizes and negotiate to use\n the smaller of the two maximum OAMPDU sizes between the peers.\n This value is determined by the local implementation.\n ')
dot3OamConfigRevision = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamConfigRevision.setDescription('The configuration revision of the OAM entity as reflected in\n the latest OAMPDU sent by the OAM entity. The config revision\n is used by OAM entities to indicate that configuration changes\n have occurred, which might require the peer OAM entity to\n re-evaluate whether OAM peering is allowed.\n ')
dot3OamFunctionsSupported = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 6), Bits().clone(namedValues=NamedValues(("unidirectionalSupport", 0), ("loopbackSupport", 1), ("eventSupport", 2), ("variableSupport", 3),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamFunctionsSupported.setDescription("The OAM functions supported on this Ethernet-like interface.\n OAM consists of separate functional sets beyond the basic\n discovery process that is always required. These functional\n groups can be supported independently by any implementation.\n These values are communicated to the peer via the local\n configuration field of Information OAMPDUs.\n\n Setting 'unidirectionalSupport(0)' indicates that the OA\n\n entity supports the transmission of OAMPDUs on links that are\n operating in unidirectional mode (traffic flowing in one\n direction only). Setting 'loopbackSupport(1)' indicates that\n the OAM entity can initiate and respond to loopback commands.\n Setting 'eventSupport(2)' indicates that the OAM entity can\n send and receive Event Notification OAMPDUs. Setting\n 'variableSupport(3)' indicates that the OAM entity can send\n and receive Variable Request and Response OAMPDUs.\n ")
dot3OamPeerTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 2), )
if mibBuilder.loadTexts: dot3OamPeerTable.setDescription('This table contains information about the OAM peer for a\n particular Ethernet-like interface. OAM entities communicate\n with a single OAM peer entity on Ethernet links on which OA\n is enabled and operating properly. There is one entry in this\n table for each entry in the dot3OamTable for which information\n on the peer OAM entity is available.\n ')
dot3OamPeerEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: dot3OamPeerEntry.setDescription('An entry in the table containing information on the peer OA\n entity for a single Ethernet-like interface.\n\n Note that there is at most one OAM peer for each Ethernet-like\n interface. Entries are automatically created when information\n about the OAM peer entity becomes available, and automatically\n deleted when the OAM peer entity is no longer in\n communication. Peer information is not available when\n dot3OamOperStatus is disabled(1), linkFault(2),\n passiveWait(3), activeSendLocal(4), or nonOperHalfDuplex(10).\n ')
dot3OamPeerMacAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerMacAddress.setDescription('The MAC address of the peer OAM entity. The MAC address is\n derived from the most recently received OAMPDU.\n ')
dot3OamPeerVendorOui = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 2), EightOTwoOui()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerVendorOui.setDescription('The OUI of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV. The\n OUI can be used to identify the vendor of the remote OA\n entity. This value is initialized to three octets of zero\n before any Local Information TLV is received.\n ')
dot3OamPeerVendorInfo = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerVendorInfo.setDescription('The Vendor Info of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV.\n The semantics of the Vendor Information field is proprietary\n and specific to the vendor (identified by the\n dot3OamPeerVendorOui). This information could, for example,\n\n be used to identify a specific product or product family.\n This value is initialized to zero before any Local\n Information TLV is received.\n ')
dot3OamPeerMode = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("passive", 1), ("active", 2), ("unknown", 3),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerMode.setDescription('The mode of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV. The\n mode of the peer can be determined from the Configuration\n field in the Local Information TLV of the last Information\n OAMPDU received from the peer. The value is unknown(3)\n whenever no Local Information TLV has been received. The\n values of active(2) and passive(1) are returned when a Local\n Information TLV has been received indicating that the peer is\n in active or passive mode, respectively.\n ')
dot3OamPeerMaxOamPduSize = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 5), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(64,1518),))).setUnits('octets').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerMaxOamPduSize.setDescription("The maximum size of OAMPDU supported by the peer as reflected\n in the latest Information OAMPDU received with a Local\n Information TLV. Ethernet OAM on this interface must not use\n OAMPDUs that exceed this size. The maximum OAMPDU size can be\n determined from the PDU Configuration field of the Local\n Information TLV of the last Information OAMPDU received from\n the peer. A value of zero is returned if no Local Information\n TLV has been received. Otherwise, the value of the OAM peer's\n maximum OAMPDU size is returned in this value.\n ")
dot3OamPeerConfigRevision = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerConfigRevision.setDescription('The configuration revision of the OAM peer as reflected in\n the latest OAMPDU. This attribute is changed by the peer\n whenever it has a local configuration change for Ethernet OA\n on this interface. The configuration revision can be\n determined from the Revision field of the Local Information\n TLV of the most recently received Information OAMPDU with\n a Local Information TLV. A value of zero is returned if\n no Local Information TLV has been received.\n ')
dot3OamPeerFunctionsSupported = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 7), Bits().clone(namedValues=NamedValues(("unidirectionalSupport", 0), ("loopbackSupport", 1), ("eventSupport", 2), ("variableSupport", 3),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamPeerFunctionsSupported.setDescription('The OAM functions supported on this Ethernet-like interface.\n OAM consists of separate functionality sets above the basic\n discovery process. This value indicates the capabilities of\n the peer OAM entity with respect to these functions. This\n value is initialized so all bits are clear.\n\n If unidirectionalSupport(0) is set, then the peer OAM entity\n supports sending OAM frames on Ethernet interfaces when the\n receive path is known to be inoperable. If\n loopbackSupport(1) is set, then the peer OAM entity can send\n and receive OAM loopback commands. If eventSupport(2) is set,\n then the peer OAM entity can send and receive event OAMPDUs to\n signal various error conditions. If variableSupport(3) is\n set, then the peer OAM entity can send and receive variable\n requests to monitor the attribute value as described in Clause\n 57 of [802.3ah].\n\n The capabilities of the OAM peer can be determined from the\n configuration field of the Local Information TLV of the most\n recently received Information OAMPDU with a Local Information\n TLV. All zeros are returned if no Local Information TLV has\n\n yet been received.\n ')
dot3OamLoopbackTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 3), )
if mibBuilder.loadTexts: dot3OamLoopbackTable.setDescription("This table contains controls for the loopback state of the\n local link as well as indicates the status of the loopback\n function. There is one entry in this table for each entry in\n dot3OamTable that supports loopback functionality (where\n dot3OamFunctionsSupported includes the loopbackSupport bit\n set).\n\n Loopback can be used to place the remote OAM entity in a state\n where every received frame (except OAMPDUs) is echoed back\n over the same interface on which they were received. In this\n state, at the remote entity, 'normal' traffic is disabled as\n only the looped back frames are transmitted on the interface.\n Loopback is thus an intrusive operation that prohibits normal\n data flow and should be used accordingly.\n ")
dot3OamLoopbackEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: dot3OamLoopbackEntry.setDescription('An entry in the table, containing information on the loopback\n status for a single Ethernet-like interface. Entries in the\n table are automatically created whenever the local OAM entity\n supports loopback capabilities. The loopback status on the\n interface can be determined from the dot3OamLoopbackStatus\n object.\n ')
dot3OamLoopbackStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6,))).clone(namedValues=NamedValues(("noLoopback", 1), ("initiatingLoopback", 2), ("remoteLoopback", 3), ("terminatingLoopback", 4), ("localLoopback", 5), ("unknown", 6),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamLoopbackStatus.setDescription("The loopback status of the OAM entity. This status is\n determined by a combination of the local parser and\n multiplexer states, the remote parser and multiplexer states,\n as well as by the actions of the local OAM client. When\n operating in normal mode with no loopback in progress, the\n status reads noLoopback(1).\n\n The values initiatingLoopback(2) and terminatingLoopback(4)\n can be read or written. The other values can only be read -\n they can never be written. Writing initiatingLoopback causes\n the local OAM entity to start the loopback process with its\n peer. This value can only be written when the status is\n noLoopback(1). Writing the value initiatingLoopback(2) in any\n other state has no effect. When in remoteLoopback(3), writing\n terminatingLoopback(4) causes the local OAM entity to initiate\n the termination of the loopback state. Writing\n terminatingLoopack(4) in any other state has no effect.\n\n If the OAM client initiates a loopback and has sent a\n Loopback OAMPDU and is waiting for a response, where the local\n parser and multiplexer states are DISCARD (see [802.3ah,\n 57.2.11.1]), the status is 'initiatingLoopback'. In this\n case, the local OAM entity has yet to receive any\n acknowledgment that the remote OAM entity has received its\n loopback command request.\n\n If the local OAM client knows that the remote OAM entity is in\n loopback mode (via the remote state information as described\n in [802.3ah, 57.2.11.1, 30.3.6.1.15]), the status is\n remoteLoopback(3). If the local OAM client is in the process\n of terminating the remote loopback [802.3ah, 57.2.11.3,\n 30.3.6.1.14] with its local multiplexer and parser states in\n DISCARD, the status is terminatingLoopback(4). If the remote\n OAM client has put the local OAM entity in loopback mode as\n indicated by its local parser state, the status is\n localLoopback(5).\n\n The unknown(6) status indicates that the parser and\n multiplexer combination is unexpected. This status may be\n returned if the OAM loopback is in a transition state but\n should not persist.\n\n The values of this attribute correspond to the following\n values of the local and remote parser and multiplexer states.\n\n value LclPrsr LclMux RmtPrsr RmtMux\n noLoopback FWD FWD FWD FWD\n initLoopback DISCARD DISCARD FWD FWD\n rmtLoopback DISCARD FWD LPBK DISCARD\n tmtngLoopback DISCARD DISCARD LPBK DISCARD\n lclLoopback LPBK DISCARD DISCARD FWD\n unknown *** any other combination ***\n ")
dot3OamLoopbackIgnoreRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("ignore", 1), ("process", 2),))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamLoopbackIgnoreRx.setDescription('Since OAM loopback is a disruptive operation (user traffic\n does not pass), this attribute provides a mechanism to provide\n controls over whether received OAM loopback commands are\n processed or ignored. When the value is ignore(1), received\n loopback commands are ignored. When the value is process(2),\n OAM loopback commands are processed. The default value is to\n ignore loopback commands (ignore(1)).\n ')
dot3OamStatsTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 4), )
if mibBuilder.loadTexts: dot3OamStatsTable.setDescription('This table contains statistics for the OAM function on a\n particular Ethernet-like interface. There is an entry in the\n table for every entry in the dot3OamTable.\n\n The counters in this table are defined as 32-bit entries to\n match the counter size as defined in [802.3ah]. Given that\n the OA protocol is a slow protocol, the counters increment at\n a slow rate.\n ')
dot3OamStatsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: dot3OamStatsEntry.setDescription('An entry in the table containing statistics information on\n the Ethernet OAM function for a single Ethernet-like\n interface. Entries are automatically created for every entry\n in the dot3OamTable. Counters are maintained across\n transitions in dot3OamOperStatus.\n ')
dot3OamInformationTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamInformationTx.setDescription('A count of the number of Information OAMPDUs transmitted on\n this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime. ')
dot3OamInformationRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamInformationRx.setDescription('A count of the number of Information OAMPDUs received on this\n interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamUniqueEventNotificationTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamUniqueEventNotificationTx.setDescription('A count of the number of unique Event OAMPDUs transmitted on\n this interface. Event Notifications may be sent in duplicate\n to increase the probability of successfully being received,\n\n given the possibility that a frame may be lost in transit.\n Duplicate Event Notification transmissions are counted by\n dot3OamDuplicateEventNotificationTx.\n\n A unique Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n distinct from the previously transmitted Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamUniqueEventNotificationRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamUniqueEventNotificationRx.setDescription('A count of the number of unique Event OAMPDUs received on\n this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit. Duplicate Event Notification receptions are counted\n by dot3OamDuplicateEventNotificationRx.\n\n A unique Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n distinct from the previously received Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamDuplicateEventNotificationTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 5), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamDuplicateEventNotificationTx.setDescription('A count of the number of duplicate Event OAMPDUs transmitted\n\n on this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit.\n\n A duplicate Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n identical to the previously transmitted Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamDuplicateEventNotificationRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 6), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamDuplicateEventNotificationRx.setDescription('A count of the number of duplicate Event OAMPDUs received on\n this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit.\n\n A duplicate Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n identical to the previously received Event Notification OAMPDU\n Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamLoopbackControlTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 7), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamLoopbackControlTx.setDescription('A count of the number of Loopback Control OAMPDUs transmitted\n\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamLoopbackControlRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 8), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamLoopbackControlRx.setDescription('A count of the number of Loopback Control OAMPDUs received\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamVariableRequestTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 9), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamVariableRequestTx.setDescription('A count of the number of Variable Request OAMPDUs transmitted\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamVariableRequestRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 10), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamVariableRequestRx.setDescription('A count of the number of Variable Request OAMPDUs received on\n\n this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamVariableResponseTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 11), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamVariableResponseTx.setDescription('A count of the number of Variable Response OAMPDUs\n transmitted on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamVariableResponseRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 12), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamVariableResponseRx.setDescription('A count of the number of Variable Response OAMPDUs received\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamOrgSpecificTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 13), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamOrgSpecificTx.setDescription('A count of the number of Organization Specific OAMPDUs\n\n transmitted on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamOrgSpecificRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 14), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamOrgSpecificRx.setDescription('A count of the number of Organization Specific OAMPDUs\n received on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamUnsupportedCodesTx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 15), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamUnsupportedCodesTx.setDescription('A count of the number of OAMPDUs transmitted on this\n interface with an unsupported op-code.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamUnsupportedCodesRx = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 16), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamUnsupportedCodesRx.setDescription('A count of the number of OAMPDUs received on this interface\n\n with an unsupported op-code.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3OamFramesLostDueToOam = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 17), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamFramesLostDueToOam.setDescription("A count of the number of frames that were dropped by the OA\n multiplexer. Since the OAM multiplexer has multiple inputs\n and a single output, there may be cases where frames are\n dropped due to transmit resource contention. This counter is\n incremented whenever a frame is dropped by the OAM layer.\n Note that any Ethernet frame, not just OAMPDUs, may be dropped\n by the OAM layer. This can occur when an OAMPDU takes\n precedence over a 'normal' frame resulting in the 'normal'\n frame being dropped.\n\n When this counter is incremented, no other counters in this\n MIB are incremented.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ")
dot3OamEventConfigTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 5), )
if mibBuilder.loadTexts: dot3OamEventConfigTable.setDescription('Ethernet OAM includes the ability to generate and receive\n Event Notification OAMPDUs to indicate various link problems.\n This table contains the mechanisms to enable Event\n\n Notifications and configure the thresholds to generate the\n standard Ethernet OAM events. There is one entry in the table\n for every entry in dot3OamTable that supports OAM events\n (where dot3OamFunctionsSupported includes the eventSupport\n bit set). The values in the table are maintained across\n changes to dot3OamOperStatus.\n\n The standard threshold crossing events are:\n - Errored Symbol Period Event. Generated when the number of\n symbol errors exceeds a threshold within a given window\n defined by a number of symbols (for example, 1,000 symbols\n out of 1,000,000 had errors).\n - Errored Frame Period Event. Generated when the number of\n frame errors exceeds a threshold within a given window\n defined by a number of frames (for example, 10 frames out\n of 1000 had errors).\n - Errored Frame Event. Generated when the number of frame\n errors exceeds a threshold within a given window defined\n by a period of time (for example, 10 frames in 1 second\n had errors).\n - Errored Frame Seconds Summary Event. Generated when the\n number of errored frame seconds exceeds a threshold within\n a given time period (for example, 10 errored frame seconds\n within the last 100 seconds). An errored frame second is\n defined as a 1 second interval which had >0 frame errors.\n There are other events (dying gasp, critical events) that are\n not threshold crossing events but which can be\n enabled/disabled via this table.\n ')
dot3OamEventConfigEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: dot3OamEventConfigEntry.setDescription('Entries are automatically created and deleted from this\n table, and exist whenever the OAM entity supports Ethernet OA\n events (as indicated by the eventSupport bit in\n dot3OamFunctionsSuppported). Values in the table are\n maintained across changes to the value of dot3OamOperStatus.\n\n Event configuration controls when the local management entity\n sends Event Notification OAMPDUs to its OAM peer, and when\n certain event flags are set or cleared in OAMPDUs.\n ')
dot3OamErrSymPeriodWindowHi = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 1), Unsigned32()).setUnits('2^32 symbols').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrSymPeriodWindowHi.setDescription('The two objects dot3OamErrSymPeriodWindowHi and\n dot3OamErrSymPeriodLo together form an unsigned 64-bit\n integer representing the number of symbols over which this\n threshold event is defined. This is defined as\n dot3OamErrSymPeriodWindow = ((2^32)*dot3OamErrSymPeriodWindowHi)\n + dot3OamErrSymPeriodWindowLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodWindow is the number\n of symbols in one second for the underlying physical layer.\n ')
dot3OamErrSymPeriodWindowLo = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 2), Unsigned32()).setUnits('symbols').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrSymPeriodWindowLo.setDescription('The two objects dot3OamErrSymPeriodWindowHi and\n dot3OamErrSymPeriodWindowLo together form an unsigned 64-bit\n integer representing the number of symbols over which this\n threshold event is defined. This is defined as\n\n dot3OamErrSymPeriodWindow = ((2^32)*dot3OamErrSymPeriodWindowHi)\n + dot3OamErrSymPeriodWindowLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodWindow is the number\n of symbols in one second for the underlying physical layer.\n ')
dot3OamErrSymPeriodThresholdHi = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 3), Unsigned32()).setUnits('2^32 symbols').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrSymPeriodThresholdHi.setDescription('The two objects dot3OamErrSymPeriodThresholdHi and\n dot3OamErrSymPeriodThresholdLo together form an unsigned\n 64-bit integer representing the number of symbol errors that\n must occur within a given window to cause this event.\n\n This is defined as\n\n dot3OamErrSymPeriodThreshold =\n ((2^32) * dot3OamErrSymPeriodThresholdHi)\n + dot3OamErrSymPeriodThresholdLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodThreshold is one\n symbol errors. If the threshold value is zero, then an Event\n\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n ')
dot3OamErrSymPeriodThresholdLo = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 4), Unsigned32()).setUnits('symbols').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrSymPeriodThresholdLo.setDescription('The two objects dot3OamErrSymPeriodThresholdHi and\n dot3OamErrSymPeriodThresholdLo together form an unsigned\n 64-bit integer representing the number of symbol errors that\n must occur within a given window to cause this event.\n\n This is defined as\n\n dot3OamErrSymPeriodThreshold =\n ((2^32) * dot3OamErrSymPeriodThresholdHi)\n + dot3OamErrSymPeriodThresholdLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodThreshold is one\n symbol error. If the threshold value is zero, then an Event\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n ')
dot3OamErrSymPeriodEvNotifEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrSymPeriodEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Symbol Period Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3OamErrFramePeriodWindow = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 6), Unsigned32()).setUnits('frames').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFramePeriodWindow.setDescription('The number of frames over which the threshold is defined.\n The default value of the window is the number of minimum size\n Ethernet frames that can be received over the physical layer\n in one second.\n\n If dot3OamErrFramePeriodThreshold frame errors occur within a\n window of dot3OamErrFramePeriodWindow frames, an Event\n Notification OAMPDU should be generated with an Errored Frame\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n ')
dot3OamErrFramePeriodThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 7), Unsigned32()).setUnits('frames').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFramePeriodThreshold.setDescription('The number of frame errors that must occur for this event to\n be triggered. The default value is one frame error. If the\n threshold value is zero, then an Event Notification OAMPDU is\n sent periodically (at the end of every window). This can be\n used as an asynchronous notification to the peer OAM entity of\n the statistics related to this threshold crossing alarm.\n\n If dot3OamErrFramePeriodThreshold frame errors occur within a\n window of dot3OamErrFramePeriodWindow frames, an Event\n Notification OAMPDU should be generated with an Errored Frame\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n ')
dot3OamErrFramePeriodEvNotifEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFramePeriodEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Frame Period Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3OamErrFrameWindow = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 9), Unsigned32().clone(10)).setUnits('tenths of a second').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameWindow.setDescription('The amount of time (in 100ms increments) over which the\n threshold is defined. The default value is 10 (1 second).\n\n If dot3OamErrFrameThreshold frame errors occur within a window\n of dot3OamErrFrameWindow seconds (measured in tenths of\n seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Event TLV indicating that the threshold\n has been crossed in this window.\n ')
dot3OamErrFrameThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 10), Unsigned32().clone(1)).setUnits('frames').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameThreshold.setDescription('The number of frame errors that must occur for this event to\n be triggered. The default value is one frame error. If the\n threshold value is zero, then an Event Notification OAMPDU is\n sent periodically (at the end of every window). This can be\n used as an asynchronous notification to the peer OAM entity of\n the statistics related to this threshold crossing alarm.\n\n If dot3OamErrFrameThreshold frame errors occur within a window\n of dot3OamErrFrameWindow (in tenths of seconds), an Event\n Notification OAMPDU should be generated with an Errored Frame\n Event TLV indicating the threshold has been crossed in this\n window.\n ')
dot3OamErrFrameEvNotifEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 11), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Frame Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3OamErrFrameSecsSummaryWindow = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100,9000)).clone(100)).setUnits('tenths of a second').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameSecsSummaryWindow.setDescription('The amount of time (in 100 ms intervals) over which the\n threshold is defined. The default value is 100 (10 seconds).\n\n If dot3OamErrFrameSecsSummaryThreshold frame errors occur\n within a window of dot3OamErrFrameSecsSummaryWindow (in tenths\n of seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Seconds Summary Event TLV indicating\n that the threshold has been crossed in this window.\n ')
dot3OamErrFrameSecsSummaryThreshold = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,900)).clone(1)).setUnits('errored frame seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameSecsSummaryThreshold.setDescription('The number of errored frame seconds that must occur for this\n event to be triggered. The default value is one errored frame\n second. If the threshold value is zero, then an Event\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n\n If dot3OamErrFrameSecsSummaryThreshold frame errors occur\n within a window of dot3OamErrFrameSecsSummaryWindow (in tenths\n of seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Seconds Summary Event TLV indicating\n that the threshold has been crossed in this window.\n ')
dot3OamErrFrameSecsEvNotifEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 14), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamErrFrameSecsEvNotifEnable.setDescription('If true, the local OAM entity should send an Event\n Notification OAMPDU when an Errored Frame Seconds Event\n occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3OamDyingGaspEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 15), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamDyingGaspEnable.setDescription("If true, the local OAM entity should attempt to indicate a\n dying gasp via the OAMPDU flags field to its peer OAM entity\n when a dying gasp event occurs. The exact definition of a\n dying gasp event is implementation dependent. If the system\n\n does not support dying gasp capability, setting this object\n has no effect, and reading the object should always result in\n 'false'.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ")
dot3OamCriticalEventEnable = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 16), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dot3OamCriticalEventEnable.setDescription("If true, the local OAM entity should attempt to indicate a\n critical event via the OAMPDU flags to its peer OAM entity\n when a critical event occurs. The exact definition of a\n critical event is implementation dependent. If the system\n does not support critical event capability, setting this\n object has no effect, and reading the object should always\n result in 'false'.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ")
dot3OamEventLogTable = MibTable((1, 3, 6, 1, 2, 1, 158, 1, 6), )
if mibBuilder.loadTexts: dot3OamEventLogTable.setDescription("This table records a history of the events that have occurred\n at the Ethernet OAM level. These events can include locally\n detected events, which may result in locally generated\n OAMPDUs, and remotely detected events, which are detected by\n the OAM peer entity and signaled to the local entity via\n\n Ethernet OAM. Ethernet OAM events can be signaled by Event\n Notification OAMPDUs or by the flags field in any OAMPDU.\n\n This table contains both threshold crossing events and\n non-threshold crossing events. The parameters for the\n threshold window, threshold value, and actual value\n (dot3OamEventLogWindowXX, dot3OamEventLogThresholdXX,\n dot3OamEventLogValue) are only applicable to threshold\n crossing events, and are returned as all F's (2^32 - 1) for\n non-threshold crossing events.\n\n Entries in the table are automatically created when such\n events are detected. The size of the table is implementation\n dependent. When the table reaches its maximum size, older\n entries are automatically deleted to make room for newer\n entries.\n ")
dot3OamEventLogEntry = MibTableRow((1, 3, 6, 1, 2, 1, 158, 1, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "DOT3-OAM-MIB", "dot3OamEventLogIndex"))
if mibBuilder.loadTexts: dot3OamEventLogEntry.setDescription('An entry in the dot3OamEventLogTable. Entries are\n automatically created whenever Ethernet OAM events occur at\n the local OAM entity, and when Event Notification OAMPDUs are\n received at the local OAM entity (indicating that events have\n occurred at the peer OAM entity). The size of the table is\n implementation dependent, but when the table becomes full,\n older events are automatically deleted to make room for newer\n events. The table index dot3OamEventLogIndex increments for\n each new entry, and when the maximum value is reached, the\n value restarts at zero.\n ')
dot3OamEventLogIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295)))
if mibBuilder.loadTexts: dot3OamEventLogIndex.setDescription('An arbitrary integer for identifying individual events\n within the event log. ')
dot3OamEventLogTimestamp = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 2), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogTimestamp.setDescription('The value of sysUpTime at the time of the logged event. For\n locally generated events, the time of the event can be\n accurately retrieved from sysUpTime. For remotely generated\n events, the time of the event is indicated by the reception of\n the Event Notification OAMPDU indicating that the event\n occurred on the peer. A system may attempt to adjust the\n timestamp value to more accurately reflect the time of the\n event at the peer OAM entity by using other information, such\n as that found in the timestamp found of the Event Notification\n TLVs, which provides an indication of the relative time\n between events at the peer entity. ')
dot3OamEventLogOui = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 3), EightOTwoOui()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogOui.setDescription('The OUI of the entity defining the object type. All IEEE\n 802.3 defined events (as appearing in [802.3ah] except for the\n Organizationally Unique Event TLVs) use the IEEE 802.3 OUI of\n 0x0180C2. Organizations defining their own Event Notification\n TLVs include their OUI in the Event Notification TLV that\n gets reflected here. ')
dot3OamEventLogType = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogType.setDescription("The type of event that generated this entry in the event log.\n When the OUI is the IEEE 802.3 OUI of 0x0180C2, the following\n event types are defined:\n erroredSymbolEvent(1),\n erroredFramePeriodEvent(2),\n erroredFrameEvent(3),\n erroredFrameSecondsEvent(4),\n linkFault(256),\n dyingGaspEvent(257),\n criticalLinkEvent(258)\n The first four are considered threshold crossing events, as\n they are generated when a metric exceeds a given value within\n a specified window. The other three are not threshold\n crossing events.\n\n When the OUI is not 71874 (0x0180C2 in hex), then some other\n organization has defined the event space. If event subtyping\n is known to the implementation, it may be reflected here.\n Otherwise, this value should return all F's (2^32 - 1).\n ")
dot3OamEventLogLocation = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("local", 1), ("remote", 2),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogLocation.setDescription('Whether this event occurred locally (local(1)), or was\n received from the OAM peer via Ethernet OAM (remote(2)).\n ')
dot3OamEventLogWindowHi = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogWindowHi.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventWindowHi and dot3OamEventWindowLo, form\n an unsigned 64-bit integer yielding the window over which the\n value was measured for the threshold crossing event (for\n example, 5, when 11 occurrences happened in 5 seconds while\n the threshold was 10). The two objects are combined as:\n\n dot3OamEventLogWindow = ((2^32) * dot3OamEventLogWindowHi)\n + dot3OamEventLogWindowLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3OamEventLogWindowLo = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogWindowLo.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventWindowHi and dot3OamEventWindowLo form an\n unsigned 64-bit integer yielding the window over which the\n value was measured for the threshold crossing event (for\n example, 5, when 11 occurrences happened in 5 seconds while\n the threshold was 10). The two objects are combined as:\n\n dot3OamEventLogWindow = ((2^32) * dot3OamEventLogWindowHi)\n + dot3OamEventLogWindowLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3OamEventLogThresholdHi = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogThresholdHi.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventThresholdHi and dot3OamEventThresholdLo\n form an unsigned 64-bit integer yielding the value that was\n crossed for the threshold crossing event (for example, 10,\n when 11 occurrences happened in 5 seconds while the threshold\n was 10). The two objects are combined as:\n\n dot3OamEventLogThreshold = ((2^32) * dot3OamEventLogThresholdHi)\n + dot3OamEventLogThresholdLo\n\n Otherwise, this value is returned as all F's (2^32 -1) and\n adds no useful information.\n ")
dot3OamEventLogThresholdLo = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogThresholdLo.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventThresholdHi and dot3OamEventThresholdLo\n form an unsigned 64-bit integer yielding the value that was\n crossed for the threshold crossing event (for example, 10,\n when 11 occurrences happened in 5 seconds while the threshold\n was 10). The two objects are combined as:\n\n dot3OamEventLogThreshold = ((2^32) * dot3OamEventLogThresholdHi)\n + dot3OamEventLogThresholdLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3OamEventLogValue = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 10), CounterBasedGauge64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogValue.setDescription("If the event represents a threshold crossing event, this\n value indicates the value of the parameter within the given\n window that generated this event (for example, 11, when 11\n occurrences happened in 5 seconds while the threshold was 10).\n\n Otherwise, this value is returned as all F's\n (2^64 - 1) and adds no useful information.\n ")
dot3OamEventLogRunningTotal = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 11), CounterBasedGauge64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogRunningTotal.setDescription('Each Event Notification TLV contains a running total of the\n number of times an event has occurred, as well as the number\n of times an Event Notification for the event has been\n\n transmitted. For non-threshold crossing events, the number of\n events (dot3OamLogRunningTotal) and the number of resultant\n Event Notifications (dot3OamLogEventTotal) should be\n identical.\n\n For threshold crossing events, since multiple occurrences may\n be required to cross the threshold, these values are likely\n different. This value represents the total number of times\n this event has happened since the last reset (for example,\n 3253, when 3253 symbol errors have occurred since the last\n reset, which has resulted in 51 symbol error threshold\n crossing events since the last reset).\n ')
dot3OamEventLogEventTotal = MibTableColumn((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dot3OamEventLogEventTotal.setDescription('Each Event Notification TLV contains a running total of the\n number of times an event has occurred, as well as the number\n of times an Event Notification for the event has been\n transmitted. For non-threshold crossing events, the number of\n events (dot3OamLogRunningTotal) and the number of resultant\n Event Notifications (dot3OamLogEventTotal) should be\n identical.\n\n For threshold crossing events, since multiple occurrences may\n be required to cross the threshold, these values are likely\n different. This value represents the total number of times\n one or more of these occurrences have resulted in an Event\n Notification (for example, 51 when 3253 symbol errors have\n occurred since the last reset, which has resulted in 51 symbol\n error threshold crossing events since the last reset).\n ')
dot3OamThresholdEvent = NotificationType((1, 3, 6, 1, 2, 1, 158, 0, 1)).setObjects(*(("DOT3-OAM-MIB", "dot3OamEventLogTimestamp"), ("DOT3-OAM-MIB", "dot3OamEventLogOui"), ("DOT3-OAM-MIB", "dot3OamEventLogType"), ("DOT3-OAM-MIB", "dot3OamEventLogLocation"), ("DOT3-OAM-MIB", "dot3OamEventLogWindowHi"), ("DOT3-OAM-MIB", "dot3OamEventLogWindowLo"), ("DOT3-OAM-MIB", "dot3OamEventLogThresholdHi"), ("DOT3-OAM-MIB", "dot3OamEventLogThresholdLo"), ("DOT3-OAM-MIB", "dot3OamEventLogValue"), ("DOT3-OAM-MIB", "dot3OamEventLogRunningTotal"), ("DOT3-OAM-MIB", "dot3OamEventLogEventTotal"),))
if mibBuilder.loadTexts: dot3OamThresholdEvent.setDescription('A dot3OamThresholdEvent notification is sent when a local or\n remote threshold crossing event is detected. A local\n threshold crossing event is detected by the local entity,\n while a remote threshold crossing event is detected by the\n reception of an Ethernet OAM Event Notification OAMPDU\n that indicates a threshold event.\n\n This notification should not be sent more than once per\n second.\n\n The OAM entity can be derived from extracting the ifIndex from\n the variable bindings. The objects in the notification\n correspond to the values in a row instance in the\n dot3OamEventLogTable.\n\n The management entity should periodically check\n dot3OamEventLogTable to detect any missed events.')
dot3OamNonThresholdEvent = NotificationType((1, 3, 6, 1, 2, 1, 158, 0, 2)).setObjects(*(("DOT3-OAM-MIB", "dot3OamEventLogTimestamp"), ("DOT3-OAM-MIB", "dot3OamEventLogOui"), ("DOT3-OAM-MIB", "dot3OamEventLogType"), ("DOT3-OAM-MIB", "dot3OamEventLogLocation"), ("DOT3-OAM-MIB", "dot3OamEventLogEventTotal"),))
if mibBuilder.loadTexts: dot3OamNonThresholdEvent.setDescription('A dot3OamNonThresholdEvent notification is sent when a local\n or remote non-threshold crossing event is detected. A local\n event is detected by the local entity, while a remote event is\n detected by the reception of an Ethernet OAM Event\n Notification OAMPDU that indicates a non-threshold crossing\n event.\n\n This notification should not be sent more than once per\n\n second.\n\n The OAM entity can be derived from extracting the ifIndex from\n the variable bindings. The objects in the notification\n correspond to the values in a row instance of the\n dot3OamEventLogTable.\n\n The management entity should periodically check\n dot3OamEventLogTable to detect any missed events.')
dot3OamGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 158, 2, 1))
dot3OamCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 158, 2, 2))
dot3OamCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 158, 2, 2, 1)).setObjects(*(("DOT3-OAM-MIB", "dot3OamControlGroup"), ("DOT3-OAM-MIB", "dot3OamPeerGroup"), ("DOT3-OAM-MIB", "dot3OamStatsBaseGroup"), ("DOT3-OAM-MIB", "dot3OamLoopbackGroup"), ("DOT3-OAM-MIB", "dot3OamErrSymbolPeriodEventGroup"), ("DOT3-OAM-MIB", "dot3OamErrFramePeriodEventGroup"), ("DOT3-OAM-MIB", "dot3OamErrFrameEventGroup"), ("DOT3-OAM-MIB", "dot3OamErrFrameSecsSummaryEventGroup"), ("DOT3-OAM-MIB", "dot3OamFlagEventGroup"), ("DOT3-OAM-MIB", "dot3OamEventLogGroup"), ("DOT3-OAM-MIB", "dot3OamNotificationGroup"),))
if mibBuilder.loadTexts: dot3OamCompliance.setDescription('The compliance statement for managed entities\n supporting OAM on Ethernet-like interfaces.\n ')
dot3OamControlGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 1)).setObjects(*(("DOT3-OAM-MIB", "dot3OamAdminState"), ("DOT3-OAM-MIB", "dot3OamOperStatus"), ("DOT3-OAM-MIB", "dot3OamMode"), ("DOT3-OAM-MIB", "dot3OamMaxOamPduSize"), ("DOT3-OAM-MIB", "dot3OamConfigRevision"), ("DOT3-OAM-MIB", "dot3OamFunctionsSupported"),))
if mibBuilder.loadTexts: dot3OamControlGroup.setDescription('A collection of objects providing the abilities,\n configuration, and status of an Ethernet OAM entity. ')
dot3OamPeerGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 2)).setObjects(*(("DOT3-OAM-MIB", "dot3OamPeerMacAddress"), ("DOT3-OAM-MIB", "dot3OamPeerVendorOui"), ("DOT3-OAM-MIB", "dot3OamPeerVendorInfo"), ("DOT3-OAM-MIB", "dot3OamPeerMode"), ("DOT3-OAM-MIB", "dot3OamPeerFunctionsSupported"), ("DOT3-OAM-MIB", "dot3OamPeerMaxOamPduSize"), ("DOT3-OAM-MIB", "dot3OamPeerConfigRevision"),))
if mibBuilder.loadTexts: dot3OamPeerGroup.setDescription('A collection of objects providing the abilities,\n configuration, and status of a peer Ethernet OAM entity. ')
dot3OamStatsBaseGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 3)).setObjects(*(("DOT3-OAM-MIB", "dot3OamInformationTx"), ("DOT3-OAM-MIB", "dot3OamInformationRx"), ("DOT3-OAM-MIB", "dot3OamUniqueEventNotificationTx"), ("DOT3-OAM-MIB", "dot3OamUniqueEventNotificationRx"), ("DOT3-OAM-MIB", "dot3OamDuplicateEventNotificationTx"), ("DOT3-OAM-MIB", "dot3OamDuplicateEventNotificationRx"), ("DOT3-OAM-MIB", "dot3OamLoopbackControlTx"), ("DOT3-OAM-MIB", "dot3OamLoopbackControlRx"), ("DOT3-OAM-MIB", "dot3OamVariableRequestTx"), ("DOT3-OAM-MIB", "dot3OamVariableRequestRx"), ("DOT3-OAM-MIB", "dot3OamVariableResponseTx"), ("DOT3-OAM-MIB", "dot3OamVariableResponseRx"), ("DOT3-OAM-MIB", "dot3OamOrgSpecificTx"), ("DOT3-OAM-MIB", "dot3OamOrgSpecificRx"), ("DOT3-OAM-MIB", "dot3OamUnsupportedCodesTx"), ("DOT3-OAM-MIB", "dot3OamUnsupportedCodesRx"), ("DOT3-OAM-MIB", "dot3OamFramesLostDueToOam"),))
if mibBuilder.loadTexts: dot3OamStatsBaseGroup.setDescription('A collection of objects providing the statistics for the\n number of various transmit and receive events for OAM on an\n Ethernet-like interface. Note that all of these counters must\n be supported even if the related function (as described in\n dot3OamFunctionsSupported) is not supported. ')
dot3OamLoopbackGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 4)).setObjects(*(("DOT3-OAM-MIB", "dot3OamLoopbackStatus"), ("DOT3-OAM-MIB", "dot3OamLoopbackIgnoreRx"),))
if mibBuilder.loadTexts: dot3OamLoopbackGroup.setDescription('A collection of objects for controlling the OAM remote\n\n loopback function. ')
dot3OamErrSymbolPeriodEventGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 5)).setObjects(*(("DOT3-OAM-MIB", "dot3OamErrSymPeriodWindowHi"), ("DOT3-OAM-MIB", "dot3OamErrSymPeriodWindowLo"), ("DOT3-OAM-MIB", "dot3OamErrSymPeriodThresholdHi"), ("DOT3-OAM-MIB", "dot3OamErrSymPeriodThresholdLo"), ("DOT3-OAM-MIB", "dot3OamErrSymPeriodEvNotifEnable"),))
if mibBuilder.loadTexts: dot3OamErrSymbolPeriodEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Symbol Period Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3OamErrFramePeriodEventGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 6)).setObjects(*(("DOT3-OAM-MIB", "dot3OamErrFramePeriodWindow"), ("DOT3-OAM-MIB", "dot3OamErrFramePeriodThreshold"), ("DOT3-OAM-MIB", "dot3OamErrFramePeriodEvNotifEnable"),))
if mibBuilder.loadTexts: dot3OamErrFramePeriodEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Period Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3OamErrFrameEventGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 7)).setObjects(*(("DOT3-OAM-MIB", "dot3OamErrFrameWindow"), ("DOT3-OAM-MIB", "dot3OamErrFrameThreshold"), ("DOT3-OAM-MIB", "dot3OamErrFrameEvNotifEnable"),))
if mibBuilder.loadTexts: dot3OamErrFrameEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3OamErrFrameSecsSummaryEventGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 8)).setObjects(*(("DOT3-OAM-MIB", "dot3OamErrFrameSecsSummaryWindow"), ("DOT3-OAM-MIB", "dot3OamErrFrameSecsSummaryThreshold"), ("DOT3-OAM-MIB", "dot3OamErrFrameSecsEvNotifEnable"),))
if mibBuilder.loadTexts: dot3OamErrFrameSecsSummaryEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Seconds Summary Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3OamFlagEventGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 9)).setObjects(*(("DOT3-OAM-MIB", "dot3OamDyingGaspEnable"), ("DOT3-OAM-MIB", "dot3OamCriticalEventEnable"),))
if mibBuilder.loadTexts: dot3OamFlagEventGroup.setDescription('A collection of objects for configuring the sending OAMPDUs\n with the critical event flag or dying gasp flag enabled. ')
dot3OamEventLogGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 10)).setObjects(*(("DOT3-OAM-MIB", "dot3OamEventLogTimestamp"), ("DOT3-OAM-MIB", "dot3OamEventLogOui"), ("DOT3-OAM-MIB", "dot3OamEventLogType"), ("DOT3-OAM-MIB", "dot3OamEventLogLocation"), ("DOT3-OAM-MIB", "dot3OamEventLogWindowHi"), ("DOT3-OAM-MIB", "dot3OamEventLogWindowLo"), ("DOT3-OAM-MIB", "dot3OamEventLogThresholdHi"), ("DOT3-OAM-MIB", "dot3OamEventLogThresholdLo"), ("DOT3-OAM-MIB", "dot3OamEventLogValue"), ("DOT3-OAM-MIB", "dot3OamEventLogRunningTotal"), ("DOT3-OAM-MIB", "dot3OamEventLogEventTotal"),))
if mibBuilder.loadTexts: dot3OamEventLogGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Seconds Summary Event and maintaining the event\n information. ')
dot3OamNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 158, 2, 1, 11)).setObjects(*(("DOT3-OAM-MIB", "dot3OamThresholdEvent"), ("DOT3-OAM-MIB", "dot3OamNonThresholdEvent"),))
if mibBuilder.loadTexts: dot3OamNotificationGroup.setDescription('A collection of notifications used by Ethernet OAM to signal\n to a management entity that local or remote events have\n occurred on a specified Ethernet link. ')
mibBuilder.exportSymbols("DOT3-OAM-MIB", dot3OamLoopbackControlTx=dot3OamLoopbackControlTx, dot3OamEventLogEventTotal=dot3OamEventLogEventTotal, dot3OamEventLogLocation=dot3OamEventLogLocation, dot3OamEventLogEntry=dot3OamEventLogEntry, dot3OamEventLogWindowHi=dot3OamEventLogWindowHi, dot3OamPeerVendorOui=dot3OamPeerVendorOui, dot3OamNonThresholdEvent=dot3OamNonThresholdEvent, dot3OamEventLogRunningTotal=dot3OamEventLogRunningTotal, dot3OamMaxOamPduSize=dot3OamMaxOamPduSize, dot3OamErrSymbolPeriodEventGroup=dot3OamErrSymbolPeriodEventGroup, dot3OamPeerGroup=dot3OamPeerGroup, dot3OamFlagEventGroup=dot3OamFlagEventGroup, dot3OamErrSymPeriodWindowLo=dot3OamErrSymPeriodWindowLo, dot3OamLoopbackEntry=dot3OamLoopbackEntry, dot3OamUniqueEventNotificationTx=dot3OamUniqueEventNotificationTx, dot3OamLoopbackTable=dot3OamLoopbackTable, dot3OamLoopbackGroup=dot3OamLoopbackGroup, dot3OamCompliances=dot3OamCompliances, dot3OamErrSymPeriodWindowHi=dot3OamErrSymPeriodWindowHi, dot3OamErrFramePeriodEventGroup=dot3OamErrFramePeriodEventGroup, dot3OamInformationTx=dot3OamInformationTx, dot3OamPeerMode=dot3OamPeerMode, dot3OamErrSymPeriodThresholdHi=dot3OamErrSymPeriodThresholdHi, dot3OamInformationRx=dot3OamInformationRx, dot3OamFramesLostDueToOam=dot3OamFramesLostDueToOam, dot3OamOrgSpecificRx=dot3OamOrgSpecificRx, dot3OamUniqueEventNotificationRx=dot3OamUniqueEventNotificationRx, dot3OamMode=dot3OamMode, dot3OamUnsupportedCodesRx=dot3OamUnsupportedCodesRx, dot3OamNotificationGroup=dot3OamNotificationGroup, dot3OamPeerVendorInfo=dot3OamPeerVendorInfo, dot3OamEventLogGroup=dot3OamEventLogGroup, dot3OamDuplicateEventNotificationRx=dot3OamDuplicateEventNotificationRx, dot3OamUnsupportedCodesTx=dot3OamUnsupportedCodesTx, dot3OamErrFrameEventGroup=dot3OamErrFrameEventGroup, dot3OamStatsEntry=dot3OamStatsEntry, dot3OamErrFrameSecsSummaryWindow=dot3OamErrFrameSecsSummaryWindow, dot3OamPeerTable=dot3OamPeerTable, dot3OamObjects=dot3OamObjects, dot3OamErrFramePeriodWindow=dot3OamErrFramePeriodWindow, dot3OamErrFrameWindow=dot3OamErrFrameWindow, dot3OamVariableResponseRx=dot3OamVariableResponseRx, dot3OamPeerMacAddress=dot3OamPeerMacAddress, dot3OamVariableRequestTx=dot3OamVariableRequestTx, dot3OamErrFrameThreshold=dot3OamErrFrameThreshold, dot3OamEventLogOui=dot3OamEventLogOui, dot3OamConformance=dot3OamConformance, dot3OamOperStatus=dot3OamOperStatus, dot3OamEventConfigEntry=dot3OamEventConfigEntry, dot3OamErrFrameEvNotifEnable=dot3OamErrFrameEvNotifEnable, dot3OamEventLogWindowLo=dot3OamEventLogWindowLo, dot3OamVariableResponseTx=dot3OamVariableResponseTx, dot3OamTable=dot3OamTable, dot3OamErrFramePeriodEvNotifEnable=dot3OamErrFramePeriodEvNotifEnable, dot3OamEventLogThresholdHi=dot3OamEventLogThresholdHi, dot3OamCompliance=dot3OamCompliance, dot3OamOrgSpecificTx=dot3OamOrgSpecificTx, EightOTwoOui=EightOTwoOui, dot3OamEventLogTimestamp=dot3OamEventLogTimestamp, dot3OamErrSymPeriodEvNotifEnable=dot3OamErrSymPeriodEvNotifEnable, dot3OamErrFrameSecsSummaryEventGroup=dot3OamErrFrameSecsSummaryEventGroup, dot3OamPeerMaxOamPduSize=dot3OamPeerMaxOamPduSize, dot3OamPeerFunctionsSupported=dot3OamPeerFunctionsSupported, dot3OamEventLogType=dot3OamEventLogType, dot3OamStatsBaseGroup=dot3OamStatsBaseGroup, dot3OamLoopbackControlRx=dot3OamLoopbackControlRx, dot3OamPeerEntry=dot3OamPeerEntry, dot3OamCriticalEventEnable=dot3OamCriticalEventEnable, dot3OamErrFrameSecsSummaryThreshold=dot3OamErrFrameSecsSummaryThreshold, dot3OamLoopbackIgnoreRx=dot3OamLoopbackIgnoreRx, dot3OamGroups=dot3OamGroups, dot3OamLoopbackStatus=dot3OamLoopbackStatus, dot3OamConfigRevision=dot3OamConfigRevision, dot3OamEventLogThresholdLo=dot3OamEventLogThresholdLo, dot3OamErrFrameSecsEvNotifEnable=dot3OamErrFrameSecsEvNotifEnable, PYSNMP_MODULE_ID=dot3OamMIB, dot3OamDyingGaspEnable=dot3OamDyingGaspEnable, dot3OamNotifications=dot3OamNotifications, dot3OamPeerConfigRevision=dot3OamPeerConfigRevision, dot3OamEventLogValue=dot3OamEventLogValue, dot3OamEventLogTable=dot3OamEventLogTable, dot3OamThresholdEvent=dot3OamThresholdEvent, dot3OamFunctionsSupported=dot3OamFunctionsSupported, dot3OamVariableRequestRx=dot3OamVariableRequestRx, dot3OamEventConfigTable=dot3OamEventConfigTable, dot3OamDuplicateEventNotificationTx=dot3OamDuplicateEventNotificationTx, dot3OamErrSymPeriodThresholdLo=dot3OamErrSymPeriodThresholdLo, dot3OamControlGroup=dot3OamControlGroup, dot3OamEntry=dot3OamEntry, dot3OamStatsTable=dot3OamStatsTable, dot3OamMIB=dot3OamMIB, dot3OamAdminState=dot3OamAdminState, dot3OamEventLogIndex=dot3OamEventLogIndex, dot3OamErrFramePeriodThreshold=dot3OamErrFramePeriodThreshold)
|
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint')
(counter_based_gauge64,) = mibBuilder.importSymbols('HCNUM-TC', 'CounterBasedGauge64')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(bits, gauge32, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, time_ticks, module_identity, unsigned32, ip_address, notification_type, iso, mib_2, object_identity, integer32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Gauge32', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'TimeTicks', 'ModuleIdentity', 'Unsigned32', 'IpAddress', 'NotificationType', 'iso', 'mib-2', 'ObjectIdentity', 'Integer32', 'Counter32')
(truth_value, textual_convention, mac_address, time_stamp, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'TextualConvention', 'MacAddress', 'TimeStamp', 'DisplayString')
dot3_oam_mib = module_identity((1, 3, 6, 1, 2, 1, 158)).setRevisions(('2007-06-14 00:00',))
if mibBuilder.loadTexts:
dot3OamMIB.setLastUpdated('200706140000Z')
if mibBuilder.loadTexts:
dot3OamMIB.setOrganization('IETF Ethernet Interfaces and Hub MIB Working Group')
if mibBuilder.loadTexts:
dot3OamMIB.setContactInfo('WG Charter:\n http://www.ietf.org/html.charters/hubmib-charter.html\n Mailing lists:\n General Discussion: [email protected]\n To Subscribe: [email protected]\n In Body: subscribe your_email_address\n Chair: Bert Wijnen\n Alcatel-Lucent\n Email: bwijnen at alcatel-lucent dot com\n Editor: Matt Squire\n Hatteras Networks\n E-mail: msquire at hatterasnetworks dot com\n ')
if mibBuilder.loadTexts:
dot3OamMIB.setDescription("The MIB module for managing the new Ethernet OAM features\n introduced by the Ethernet in the First Mile taskforce (IEEE\n 802.3ah). The functionality presented here is based on IEEE\n 802.3ah [802.3ah], released in October, 2004. [802.3ah] was\n prepared as an addendum to the standing version of IEEE 802.3\n [802.3-2002]. Since then, [802.3ah] has been\n merged into the base IEEE 802.3 specification in [802.3-2005].\n\n In particular, this MIB focuses on the new OAM functions\n introduced in Clause 57 of [802.3ah]. The OAM functionality\n of Clause 57 is controlled by new management attributes\n introduced in Clause 30 of [802.3ah]. The OAM functions are\n not specific to any particular Ethernet physical layer, and\n can be generically applied to any Ethernet interface of\n [802.3-2002].\n\n An Ethernet OAM protocol data unit is a valid Ethernet frame\n with a destination MAC address equal to the reserved MAC\n address for Slow Protocols (See 43B of [802.3ah]), a\n lengthOrType field equal to the reserved type for Slow\n Protocols, and a Slow Protocols subtype equal to that of the\n subtype reserved for Ethernet OAM. OAMPDU is used throughout\n this document as an abbreviation for Ethernet OAM protocol\n data unit.\n\n The following reference is used throughout this MIB module:\n\n [802.3ah] refers to:\n IEEE Std 802.3ah-2004: 'Draft amendment to -\n Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n October 2004.\n\n [802.3-2002] refers to:\n IEEE Std 802.3-2002:\n 'Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n March 2002.\n\n [802.3-2005] refers to:\n IEEE Std 802.3-2005:\n 'Information technology - Telecommunications and\n information exchange between systems - Local and\n metropolitan area networks - Specific requirements - Part\n 3: Carrier sense multiple access with collision detection\n (CSMA/CD) access method and physical layer specifications\n - Media Access Control Parameters, Physical Layers and\n Management Parameters for subscriber access networks',\n December 2005.\n\n [802-2001] refers to:\n 'IEEE Standard for LAN/MAN (Local Area\n Network/Metropolitan Area Network): Overview and\n Architecture', IEEE 802, June 2001.\n\n Copyright (c) The IETF Trust (2007). This version of\n this MIB module is part of RFC 4878; See the RFC itself for\n full legal notices. ")
dot3_oam_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 158, 0))
dot3_oam_objects = mib_identifier((1, 3, 6, 1, 2, 1, 158, 1))
dot3_oam_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 158, 2))
class Eightotwooui(OctetString, TextualConvention):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(3, 3)
fixed_length = 3
dot3_oam_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 1))
if mibBuilder.loadTexts:
dot3OamTable.setDescription('This table contains the primary controls and status for the\n OAM capabilities of an Ethernet-like interface. There will be\n one row in this table for each Ethernet-like interface in the\n system that supports the OAM functions defined in [802.3ah].\n ')
dot3_oam_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
dot3OamEntry.setDescription('An entry in the table that contains information on the\n Ethernet OAM function for a single Ethernet like interface.\n Entries in the table are created automatically for each\n interface supporting Ethernet OAM. The status of the row\n entry can be determined from dot3OamOperStatus.\n\n A dot3OamEntry is indexed in the dot3OamTable by the ifIndex\n object of the Interfaces MIB.\n ')
dot3_oam_admin_state = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamAdminState.setDescription('This object is used to provision the default administrative\n OAM mode for this interface. This object represents the\n desired state of OAM for this interface.\n\n The dot3OamAdminState always starts in the disabled(2) state\n until an explicit management action or configuration\n information retained by the system causes a transition to the\n enabled(1) state. When enabled(1), Ethernet OAM will attempt\n to operate over this interface.\n ')
dot3_oam_oper_status = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('disabled', 1), ('linkFault', 2), ('passiveWait', 3), ('activeSendLocal', 4), ('sendLocalAndRemote', 5), ('sendLocalAndRemoteOk', 6), ('oamPeeringLocallyRejected', 7), ('oamPeeringRemotelyRejected', 8), ('operational', 9), ('nonOperHalfDuplex', 10)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamOperStatus.setDescription('At initialization and failure conditions, two OAM entities on\n\n the same full-duplex Ethernet link begin a discovery phase to\n determine what OAM capabilities may be used on that link. The\n progress of this initialization is controlled by the OA\n sublayer.\n\n This value is always disabled(1) if OAM is disabled on this\n interface via the dot3OamAdminState.\n\n If the link has detected a fault and is transmitting OAMPDUs\n with a link fault indication, the value is linkFault(2).\n Also, if the interface is not operational (ifOperStatus is\n not up(1)), linkFault(2) is returned. Note that the object\n ifOperStatus may not be up(1) as a result of link failure or\n administrative action (ifAdminState being down(2) or\n testing(3)).\n\n The passiveWait(3) state is returned only by OAM entities in\n passive mode (dot3OamMode) and reflects the state in which the\n OAM entity is waiting to see if the peer device is OA\n capable. The activeSendLocal(4) value is used by active mode\n devices (dot3OamMode) and reflects the OAM entity actively\n trying to discover whether the peer has OAM capability but has\n not yet made that determination.\n\n The state sendLocalAndRemote(5) reflects that the local OA\n entity has discovered the peer but has not yet accepted or\n rejected the configuration of the peer. The local device can,\n for whatever reason, decide that the peer device is\n unacceptable and decline OAM peering. If the local OAM entity\n rejects the peer OAM entity, the state becomes\n oamPeeringLocallyRejected(7). If the OAM peering is allowed\n by the local device, the state moves to\n sendLocalAndRemoteOk(6). Note that both the\n sendLocalAndRemote(5) and oamPeeringLocallyRejected(7) states\n fall within the state SEND_LOCAL_REMOTE of the Discovery state\n diagram [802.3ah, Figure 57-5], with the difference being\n whether the local OAM client has actively rejected the peering\n or has just not indicated any decision yet. Whether a peering\n decision has been made is indicated via the local flags field\n in the OAMPDU (reflected in the aOAMLocalFlagsField of\n 30.3.6.1.10).\n\n If the remote OAM entity rejects the peering, the state\n becomes oamPeeringRemotelyRejected(8). Note that both the\n sendLocalAndRemoteOk(6) and oamPeeringRemotelyRejected(8)\n states fall within the state SEND_LOCAL_REMOTE_OK of the\n Discovery state diagram [802.3ah, Figure 57-5], with the\n difference being whether the remote OAM client has rejected\n\n the peering or has just not yet decided. This is indicated\n via the remote flags field in the OAMPDU (reflected in the\n aOAMRemoteFlagsField of 30.3.6.1.11).\n\n When the local OAM entity learns that both it and the remote\n OAM entity have accepted the peering, the state moves to\n operational(9) corresponding to the SEND_ANY state of the\n Discovery state diagram [802.3ah, Figure 57-5].\n\n Since Ethernet OAM functions are not designed to work\n completely over half-duplex interfaces, the value\n nonOperHalfDuplex(10) is returned whenever Ethernet OAM is\n enabled (dot3OamAdminState is enabled(1)), but the interface\n is in half-duplex operation.\n ')
dot3_oam_mode = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('passive', 1), ('active', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamMode.setDescription("This object configures the mode of OAM operation for this\n Ethernet-like interface. OAM on Ethernet interfaces may be in\n 'active' mode or 'passive' mode. These two modes differ in\n that active mode provides additional capabilities to initiate\n monitoring activities with the remote OAM peer entity, while\n passive mode generally waits for the peer to initiate OA\n actions with it. As an example, an active OAM entity can put\n the remote OAM entity in a loopback state, where a passive OA\n entity cannot.\n\n The default value of dot3OamMode is dependent on the type of\n system on which this Ethernet-like interface resides. The\n default value should be 'active(2)' unless it is known that\n this system should take on a subservient role to the other\n device connected over this interface.\n\n Changing this value results in incrementing the configuration\n revision field of locally generated OAMPDUs (30.3.6.1.12) and\n potentially re-doing the OAM discovery process if the\n dot3OamOperStatus was already operational(9).\n ")
dot3_oam_max_oam_pdu_size = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(64, 1518))).setUnits('octets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamMaxOamPduSize.setDescription('The largest OAMPDU that the OAM entity supports. OA\n entities exchange maximum OAMPDU sizes and negotiate to use\n the smaller of the two maximum OAMPDU sizes between the peers.\n This value is determined by the local implementation.\n ')
dot3_oam_config_revision = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamConfigRevision.setDescription('The configuration revision of the OAM entity as reflected in\n the latest OAMPDU sent by the OAM entity. The config revision\n is used by OAM entities to indicate that configuration changes\n have occurred, which might require the peer OAM entity to\n re-evaluate whether OAM peering is allowed.\n ')
dot3_oam_functions_supported = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 1, 1, 6), bits().clone(namedValues=named_values(('unidirectionalSupport', 0), ('loopbackSupport', 1), ('eventSupport', 2), ('variableSupport', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamFunctionsSupported.setDescription("The OAM functions supported on this Ethernet-like interface.\n OAM consists of separate functional sets beyond the basic\n discovery process that is always required. These functional\n groups can be supported independently by any implementation.\n These values are communicated to the peer via the local\n configuration field of Information OAMPDUs.\n\n Setting 'unidirectionalSupport(0)' indicates that the OA\n\n entity supports the transmission of OAMPDUs on links that are\n operating in unidirectional mode (traffic flowing in one\n direction only). Setting 'loopbackSupport(1)' indicates that\n the OAM entity can initiate and respond to loopback commands.\n Setting 'eventSupport(2)' indicates that the OAM entity can\n send and receive Event Notification OAMPDUs. Setting\n 'variableSupport(3)' indicates that the OAM entity can send\n and receive Variable Request and Response OAMPDUs.\n ")
dot3_oam_peer_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 2))
if mibBuilder.loadTexts:
dot3OamPeerTable.setDescription('This table contains information about the OAM peer for a\n particular Ethernet-like interface. OAM entities communicate\n with a single OAM peer entity on Ethernet links on which OA\n is enabled and operating properly. There is one entry in this\n table for each entry in the dot3OamTable for which information\n on the peer OAM entity is available.\n ')
dot3_oam_peer_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
dot3OamPeerEntry.setDescription('An entry in the table containing information on the peer OA\n entity for a single Ethernet-like interface.\n\n Note that there is at most one OAM peer for each Ethernet-like\n interface. Entries are automatically created when information\n about the OAM peer entity becomes available, and automatically\n deleted when the OAM peer entity is no longer in\n communication. Peer information is not available when\n dot3OamOperStatus is disabled(1), linkFault(2),\n passiveWait(3), activeSendLocal(4), or nonOperHalfDuplex(10).\n ')
dot3_oam_peer_mac_address = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerMacAddress.setDescription('The MAC address of the peer OAM entity. The MAC address is\n derived from the most recently received OAMPDU.\n ')
dot3_oam_peer_vendor_oui = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 2), eight_o_two_oui()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerVendorOui.setDescription('The OUI of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV. The\n OUI can be used to identify the vendor of the remote OA\n entity. This value is initialized to three octets of zero\n before any Local Information TLV is received.\n ')
dot3_oam_peer_vendor_info = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerVendorInfo.setDescription('The Vendor Info of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV.\n The semantics of the Vendor Information field is proprietary\n and specific to the vendor (identified by the\n dot3OamPeerVendorOui). This information could, for example,\n\n be used to identify a specific product or product family.\n This value is initialized to zero before any Local\n Information TLV is received.\n ')
dot3_oam_peer_mode = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('passive', 1), ('active', 2), ('unknown', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerMode.setDescription('The mode of the OAM peer as reflected in the latest\n Information OAMPDU received with a Local Information TLV. The\n mode of the peer can be determined from the Configuration\n field in the Local Information TLV of the last Information\n OAMPDU received from the peer. The value is unknown(3)\n whenever no Local Information TLV has been received. The\n values of active(2) and passive(1) are returned when a Local\n Information TLV has been received indicating that the peer is\n in active or passive mode, respectively.\n ')
dot3_oam_peer_max_oam_pdu_size = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 5), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(64, 1518)))).setUnits('octets').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerMaxOamPduSize.setDescription("The maximum size of OAMPDU supported by the peer as reflected\n in the latest Information OAMPDU received with a Local\n Information TLV. Ethernet OAM on this interface must not use\n OAMPDUs that exceed this size. The maximum OAMPDU size can be\n determined from the PDU Configuration field of the Local\n Information TLV of the last Information OAMPDU received from\n the peer. A value of zero is returned if no Local Information\n TLV has been received. Otherwise, the value of the OAM peer's\n maximum OAMPDU size is returned in this value.\n ")
dot3_oam_peer_config_revision = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerConfigRevision.setDescription('The configuration revision of the OAM peer as reflected in\n the latest OAMPDU. This attribute is changed by the peer\n whenever it has a local configuration change for Ethernet OA\n on this interface. The configuration revision can be\n determined from the Revision field of the Local Information\n TLV of the most recently received Information OAMPDU with\n a Local Information TLV. A value of zero is returned if\n no Local Information TLV has been received.\n ')
dot3_oam_peer_functions_supported = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 2, 1, 7), bits().clone(namedValues=named_values(('unidirectionalSupport', 0), ('loopbackSupport', 1), ('eventSupport', 2), ('variableSupport', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamPeerFunctionsSupported.setDescription('The OAM functions supported on this Ethernet-like interface.\n OAM consists of separate functionality sets above the basic\n discovery process. This value indicates the capabilities of\n the peer OAM entity with respect to these functions. This\n value is initialized so all bits are clear.\n\n If unidirectionalSupport(0) is set, then the peer OAM entity\n supports sending OAM frames on Ethernet interfaces when the\n receive path is known to be inoperable. If\n loopbackSupport(1) is set, then the peer OAM entity can send\n and receive OAM loopback commands. If eventSupport(2) is set,\n then the peer OAM entity can send and receive event OAMPDUs to\n signal various error conditions. If variableSupport(3) is\n set, then the peer OAM entity can send and receive variable\n requests to monitor the attribute value as described in Clause\n 57 of [802.3ah].\n\n The capabilities of the OAM peer can be determined from the\n configuration field of the Local Information TLV of the most\n recently received Information OAMPDU with a Local Information\n TLV. All zeros are returned if no Local Information TLV has\n\n yet been received.\n ')
dot3_oam_loopback_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 3))
if mibBuilder.loadTexts:
dot3OamLoopbackTable.setDescription("This table contains controls for the loopback state of the\n local link as well as indicates the status of the loopback\n function. There is one entry in this table for each entry in\n dot3OamTable that supports loopback functionality (where\n dot3OamFunctionsSupported includes the loopbackSupport bit\n set).\n\n Loopback can be used to place the remote OAM entity in a state\n where every received frame (except OAMPDUs) is echoed back\n over the same interface on which they were received. In this\n state, at the remote entity, 'normal' traffic is disabled as\n only the looped back frames are transmitted on the interface.\n Loopback is thus an intrusive operation that prohibits normal\n data flow and should be used accordingly.\n ")
dot3_oam_loopback_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
dot3OamLoopbackEntry.setDescription('An entry in the table, containing information on the loopback\n status for a single Ethernet-like interface. Entries in the\n table are automatically created whenever the local OAM entity\n supports loopback capabilities. The loopback status on the\n interface can be determined from the dot3OamLoopbackStatus\n object.\n ')
dot3_oam_loopback_status = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('noLoopback', 1), ('initiatingLoopback', 2), ('remoteLoopback', 3), ('terminatingLoopback', 4), ('localLoopback', 5), ('unknown', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamLoopbackStatus.setDescription("The loopback status of the OAM entity. This status is\n determined by a combination of the local parser and\n multiplexer states, the remote parser and multiplexer states,\n as well as by the actions of the local OAM client. When\n operating in normal mode with no loopback in progress, the\n status reads noLoopback(1).\n\n The values initiatingLoopback(2) and terminatingLoopback(4)\n can be read or written. The other values can only be read -\n they can never be written. Writing initiatingLoopback causes\n the local OAM entity to start the loopback process with its\n peer. This value can only be written when the status is\n noLoopback(1). Writing the value initiatingLoopback(2) in any\n other state has no effect. When in remoteLoopback(3), writing\n terminatingLoopback(4) causes the local OAM entity to initiate\n the termination of the loopback state. Writing\n terminatingLoopack(4) in any other state has no effect.\n\n If the OAM client initiates a loopback and has sent a\n Loopback OAMPDU and is waiting for a response, where the local\n parser and multiplexer states are DISCARD (see [802.3ah,\n 57.2.11.1]), the status is 'initiatingLoopback'. In this\n case, the local OAM entity has yet to receive any\n acknowledgment that the remote OAM entity has received its\n loopback command request.\n\n If the local OAM client knows that the remote OAM entity is in\n loopback mode (via the remote state information as described\n in [802.3ah, 57.2.11.1, 30.3.6.1.15]), the status is\n remoteLoopback(3). If the local OAM client is in the process\n of terminating the remote loopback [802.3ah, 57.2.11.3,\n 30.3.6.1.14] with its local multiplexer and parser states in\n DISCARD, the status is terminatingLoopback(4). If the remote\n OAM client has put the local OAM entity in loopback mode as\n indicated by its local parser state, the status is\n localLoopback(5).\n\n The unknown(6) status indicates that the parser and\n multiplexer combination is unexpected. This status may be\n returned if the OAM loopback is in a transition state but\n should not persist.\n\n The values of this attribute correspond to the following\n values of the local and remote parser and multiplexer states.\n\n value LclPrsr LclMux RmtPrsr RmtMux\n noLoopback FWD FWD FWD FWD\n initLoopback DISCARD DISCARD FWD FWD\n rmtLoopback DISCARD FWD LPBK DISCARD\n tmtngLoopback DISCARD DISCARD LPBK DISCARD\n lclLoopback LPBK DISCARD DISCARD FWD\n unknown *** any other combination ***\n ")
dot3_oam_loopback_ignore_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ignore', 1), ('process', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamLoopbackIgnoreRx.setDescription('Since OAM loopback is a disruptive operation (user traffic\n does not pass), this attribute provides a mechanism to provide\n controls over whether received OAM loopback commands are\n processed or ignored. When the value is ignore(1), received\n loopback commands are ignored. When the value is process(2),\n OAM loopback commands are processed. The default value is to\n ignore loopback commands (ignore(1)).\n ')
dot3_oam_stats_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 4))
if mibBuilder.loadTexts:
dot3OamStatsTable.setDescription('This table contains statistics for the OAM function on a\n particular Ethernet-like interface. There is an entry in the\n table for every entry in the dot3OamTable.\n\n The counters in this table are defined as 32-bit entries to\n match the counter size as defined in [802.3ah]. Given that\n the OA protocol is a slow protocol, the counters increment at\n a slow rate.\n ')
dot3_oam_stats_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
dot3OamStatsEntry.setDescription('An entry in the table containing statistics information on\n the Ethernet OAM function for a single Ethernet-like\n interface. Entries are automatically created for every entry\n in the dot3OamTable. Counters are maintained across\n transitions in dot3OamOperStatus.\n ')
dot3_oam_information_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 1), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamInformationTx.setDescription('A count of the number of Information OAMPDUs transmitted on\n this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime. ')
dot3_oam_information_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 2), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamInformationRx.setDescription('A count of the number of Information OAMPDUs received on this\n interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_unique_event_notification_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 3), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamUniqueEventNotificationTx.setDescription('A count of the number of unique Event OAMPDUs transmitted on\n this interface. Event Notifications may be sent in duplicate\n to increase the probability of successfully being received,\n\n given the possibility that a frame may be lost in transit.\n Duplicate Event Notification transmissions are counted by\n dot3OamDuplicateEventNotificationTx.\n\n A unique Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n distinct from the previously transmitted Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_unique_event_notification_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamUniqueEventNotificationRx.setDescription('A count of the number of unique Event OAMPDUs received on\n this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit. Duplicate Event Notification receptions are counted\n by dot3OamDuplicateEventNotificationRx.\n\n A unique Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n distinct from the previously received Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_duplicate_event_notification_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 5), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamDuplicateEventNotificationTx.setDescription('A count of the number of duplicate Event OAMPDUs transmitted\n\n on this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit.\n\n A duplicate Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n identical to the previously transmitted Event Notification\n OAMPDU Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_duplicate_event_notification_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 6), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamDuplicateEventNotificationRx.setDescription('A count of the number of duplicate Event OAMPDUs received on\n this interface. Event Notification OAMPDUs may be sent in\n duplicate to increase the probability of successfully being\n received, given the possibility that a frame may be lost in\n transit.\n\n A duplicate Event Notification OAMPDU is indicated as an Event\n Notification OAMPDU with a Sequence Number field that is\n identical to the previously received Event Notification OAMPDU\n Sequence Number.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_loopback_control_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 7), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamLoopbackControlTx.setDescription('A count of the number of Loopback Control OAMPDUs transmitted\n\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_loopback_control_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 8), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamLoopbackControlRx.setDescription('A count of the number of Loopback Control OAMPDUs received\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_variable_request_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 9), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamVariableRequestTx.setDescription('A count of the number of Variable Request OAMPDUs transmitted\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_variable_request_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 10), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamVariableRequestRx.setDescription('A count of the number of Variable Request OAMPDUs received on\n\n this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_variable_response_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 11), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamVariableResponseTx.setDescription('A count of the number of Variable Response OAMPDUs\n transmitted on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_variable_response_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 12), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamVariableResponseRx.setDescription('A count of the number of Variable Response OAMPDUs received\n on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_org_specific_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 13), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamOrgSpecificTx.setDescription('A count of the number of Organization Specific OAMPDUs\n\n transmitted on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_org_specific_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 14), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamOrgSpecificRx.setDescription('A count of the number of Organization Specific OAMPDUs\n received on this interface.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_unsupported_codes_tx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 15), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamUnsupportedCodesTx.setDescription('A count of the number of OAMPDUs transmitted on this\n interface with an unsupported op-code.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_unsupported_codes_rx = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 16), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamUnsupportedCodesRx.setDescription('A count of the number of OAMPDUs received on this interface\n\n with an unsupported op-code.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ')
dot3_oam_frames_lost_due_to_oam = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 4, 1, 17), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamFramesLostDueToOam.setDescription("A count of the number of frames that were dropped by the OA\n multiplexer. Since the OAM multiplexer has multiple inputs\n and a single output, there may be cases where frames are\n dropped due to transmit resource contention. This counter is\n incremented whenever a frame is dropped by the OAM layer.\n Note that any Ethernet frame, not just OAMPDUs, may be dropped\n by the OAM layer. This can occur when an OAMPDU takes\n precedence over a 'normal' frame resulting in the 'normal'\n frame being dropped.\n\n When this counter is incremented, no other counters in this\n MIB are incremented.\n\n Discontinuities of this counter can occur at re-initialization\n of the management system, and at other times as indicated by\n the value of the ifCounterDiscontinuityTime.\n ")
dot3_oam_event_config_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 5))
if mibBuilder.loadTexts:
dot3OamEventConfigTable.setDescription('Ethernet OAM includes the ability to generate and receive\n Event Notification OAMPDUs to indicate various link problems.\n This table contains the mechanisms to enable Event\n\n Notifications and configure the thresholds to generate the\n standard Ethernet OAM events. There is one entry in the table\n for every entry in dot3OamTable that supports OAM events\n (where dot3OamFunctionsSupported includes the eventSupport\n bit set). The values in the table are maintained across\n changes to dot3OamOperStatus.\n\n The standard threshold crossing events are:\n - Errored Symbol Period Event. Generated when the number of\n symbol errors exceeds a threshold within a given window\n defined by a number of symbols (for example, 1,000 symbols\n out of 1,000,000 had errors).\n - Errored Frame Period Event. Generated when the number of\n frame errors exceeds a threshold within a given window\n defined by a number of frames (for example, 10 frames out\n of 1000 had errors).\n - Errored Frame Event. Generated when the number of frame\n errors exceeds a threshold within a given window defined\n by a period of time (for example, 10 frames in 1 second\n had errors).\n - Errored Frame Seconds Summary Event. Generated when the\n number of errored frame seconds exceeds a threshold within\n a given time period (for example, 10 errored frame seconds\n within the last 100 seconds). An errored frame second is\n defined as a 1 second interval which had >0 frame errors.\n There are other events (dying gasp, critical events) that are\n not threshold crossing events but which can be\n enabled/disabled via this table.\n ')
dot3_oam_event_config_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
dot3OamEventConfigEntry.setDescription('Entries are automatically created and deleted from this\n table, and exist whenever the OAM entity supports Ethernet OA\n events (as indicated by the eventSupport bit in\n dot3OamFunctionsSuppported). Values in the table are\n maintained across changes to the value of dot3OamOperStatus.\n\n Event configuration controls when the local management entity\n sends Event Notification OAMPDUs to its OAM peer, and when\n certain event flags are set or cleared in OAMPDUs.\n ')
dot3_oam_err_sym_period_window_hi = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 1), unsigned32()).setUnits('2^32 symbols').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrSymPeriodWindowHi.setDescription('The two objects dot3OamErrSymPeriodWindowHi and\n dot3OamErrSymPeriodLo together form an unsigned 64-bit\n integer representing the number of symbols over which this\n threshold event is defined. This is defined as\n dot3OamErrSymPeriodWindow = ((2^32)*dot3OamErrSymPeriodWindowHi)\n + dot3OamErrSymPeriodWindowLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodWindow is the number\n of symbols in one second for the underlying physical layer.\n ')
dot3_oam_err_sym_period_window_lo = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 2), unsigned32()).setUnits('symbols').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrSymPeriodWindowLo.setDescription('The two objects dot3OamErrSymPeriodWindowHi and\n dot3OamErrSymPeriodWindowLo together form an unsigned 64-bit\n integer representing the number of symbols over which this\n threshold event is defined. This is defined as\n\n dot3OamErrSymPeriodWindow = ((2^32)*dot3OamErrSymPeriodWindowHi)\n + dot3OamErrSymPeriodWindowLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodWindow is the number\n of symbols in one second for the underlying physical layer.\n ')
dot3_oam_err_sym_period_threshold_hi = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 3), unsigned32()).setUnits('2^32 symbols').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrSymPeriodThresholdHi.setDescription('The two objects dot3OamErrSymPeriodThresholdHi and\n dot3OamErrSymPeriodThresholdLo together form an unsigned\n 64-bit integer representing the number of symbol errors that\n must occur within a given window to cause this event.\n\n This is defined as\n\n dot3OamErrSymPeriodThreshold =\n ((2^32) * dot3OamErrSymPeriodThresholdHi)\n + dot3OamErrSymPeriodThresholdLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodThreshold is one\n symbol errors. If the threshold value is zero, then an Event\n\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n ')
dot3_oam_err_sym_period_threshold_lo = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 4), unsigned32()).setUnits('symbols').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrSymPeriodThresholdLo.setDescription('The two objects dot3OamErrSymPeriodThresholdHi and\n dot3OamErrSymPeriodThresholdLo together form an unsigned\n 64-bit integer representing the number of symbol errors that\n must occur within a given window to cause this event.\n\n This is defined as\n\n dot3OamErrSymPeriodThreshold =\n ((2^32) * dot3OamErrSymPeriodThresholdHi)\n + dot3OamErrSymPeriodThresholdLo\n\n If dot3OamErrSymPeriodThreshold symbol errors occur within a\n window of dot3OamErrSymPeriodWindow symbols, an Event\n Notification OAMPDU should be generated with an Errored Symbol\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n\n The default value for dot3OamErrSymPeriodThreshold is one\n symbol error. If the threshold value is zero, then an Event\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n ')
dot3_oam_err_sym_period_ev_notif_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrSymPeriodEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Symbol Period Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3_oam_err_frame_period_window = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 6), unsigned32()).setUnits('frames').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFramePeriodWindow.setDescription('The number of frames over which the threshold is defined.\n The default value of the window is the number of minimum size\n Ethernet frames that can be received over the physical layer\n in one second.\n\n If dot3OamErrFramePeriodThreshold frame errors occur within a\n window of dot3OamErrFramePeriodWindow frames, an Event\n Notification OAMPDU should be generated with an Errored Frame\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n ')
dot3_oam_err_frame_period_threshold = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 7), unsigned32()).setUnits('frames').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFramePeriodThreshold.setDescription('The number of frame errors that must occur for this event to\n be triggered. The default value is one frame error. If the\n threshold value is zero, then an Event Notification OAMPDU is\n sent periodically (at the end of every window). This can be\n used as an asynchronous notification to the peer OAM entity of\n the statistics related to this threshold crossing alarm.\n\n If dot3OamErrFramePeriodThreshold frame errors occur within a\n window of dot3OamErrFramePeriodWindow frames, an Event\n Notification OAMPDU should be generated with an Errored Frame\n Period Event TLV indicating that the threshold has been\n crossed in this window.\n ')
dot3_oam_err_frame_period_ev_notif_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 8), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFramePeriodEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Frame Period Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3_oam_err_frame_window = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 9), unsigned32().clone(10)).setUnits('tenths of a second').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameWindow.setDescription('The amount of time (in 100ms increments) over which the\n threshold is defined. The default value is 10 (1 second).\n\n If dot3OamErrFrameThreshold frame errors occur within a window\n of dot3OamErrFrameWindow seconds (measured in tenths of\n seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Event TLV indicating that the threshold\n has been crossed in this window.\n ')
dot3_oam_err_frame_threshold = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 10), unsigned32().clone(1)).setUnits('frames').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameThreshold.setDescription('The number of frame errors that must occur for this event to\n be triggered. The default value is one frame error. If the\n threshold value is zero, then an Event Notification OAMPDU is\n sent periodically (at the end of every window). This can be\n used as an asynchronous notification to the peer OAM entity of\n the statistics related to this threshold crossing alarm.\n\n If dot3OamErrFrameThreshold frame errors occur within a window\n of dot3OamErrFrameWindow (in tenths of seconds), an Event\n Notification OAMPDU should be generated with an Errored Frame\n Event TLV indicating the threshold has been crossed in this\n window.\n ')
dot3_oam_err_frame_ev_notif_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 11), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameEvNotifEnable.setDescription('If true, the OAM entity should send an Event Notification\n OAMPDU when an Errored Frame Event occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3_oam_err_frame_secs_summary_window = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(100, 9000)).clone(100)).setUnits('tenths of a second').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameSecsSummaryWindow.setDescription('The amount of time (in 100 ms intervals) over which the\n threshold is defined. The default value is 100 (10 seconds).\n\n If dot3OamErrFrameSecsSummaryThreshold frame errors occur\n within a window of dot3OamErrFrameSecsSummaryWindow (in tenths\n of seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Seconds Summary Event TLV indicating\n that the threshold has been crossed in this window.\n ')
dot3_oam_err_frame_secs_summary_threshold = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 900)).clone(1)).setUnits('errored frame seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameSecsSummaryThreshold.setDescription('The number of errored frame seconds that must occur for this\n event to be triggered. The default value is one errored frame\n second. If the threshold value is zero, then an Event\n Notification OAMPDU is sent periodically (at the end of every\n window). This can be used as an asynchronous notification to\n the peer OAM entity of the statistics related to this\n threshold crossing alarm.\n\n If dot3OamErrFrameSecsSummaryThreshold frame errors occur\n within a window of dot3OamErrFrameSecsSummaryWindow (in tenths\n of seconds), an Event Notification OAMPDU should be generated\n with an Errored Frame Seconds Summary Event TLV indicating\n that the threshold has been crossed in this window.\n ')
dot3_oam_err_frame_secs_ev_notif_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 14), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamErrFrameSecsEvNotifEnable.setDescription('If true, the local OAM entity should send an Event\n Notification OAMPDU when an Errored Frame Seconds Event\n occurs.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ')
dot3_oam_dying_gasp_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 15), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamDyingGaspEnable.setDescription("If true, the local OAM entity should attempt to indicate a\n dying gasp via the OAMPDU flags field to its peer OAM entity\n when a dying gasp event occurs. The exact definition of a\n dying gasp event is implementation dependent. If the system\n\n does not support dying gasp capability, setting this object\n has no effect, and reading the object should always result in\n 'false'.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ")
dot3_oam_critical_event_enable = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 5, 1, 16), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dot3OamCriticalEventEnable.setDescription("If true, the local OAM entity should attempt to indicate a\n critical event via the OAMPDU flags to its peer OAM entity\n when a critical event occurs. The exact definition of a\n critical event is implementation dependent. If the system\n does not support critical event capability, setting this\n object has no effect, and reading the object should always\n result in 'false'.\n\n By default, this object should have the value true for\n Ethernet-like interfaces that support OAM. If the OAM layer\n does not support Event Notifications (as indicated via the\n dot3OamFunctionsSupported attribute), this value is ignored.\n ")
dot3_oam_event_log_table = mib_table((1, 3, 6, 1, 2, 1, 158, 1, 6))
if mibBuilder.loadTexts:
dot3OamEventLogTable.setDescription("This table records a history of the events that have occurred\n at the Ethernet OAM level. These events can include locally\n detected events, which may result in locally generated\n OAMPDUs, and remotely detected events, which are detected by\n the OAM peer entity and signaled to the local entity via\n\n Ethernet OAM. Ethernet OAM events can be signaled by Event\n Notification OAMPDUs or by the flags field in any OAMPDU.\n\n This table contains both threshold crossing events and\n non-threshold crossing events. The parameters for the\n threshold window, threshold value, and actual value\n (dot3OamEventLogWindowXX, dot3OamEventLogThresholdXX,\n dot3OamEventLogValue) are only applicable to threshold\n crossing events, and are returned as all F's (2^32 - 1) for\n non-threshold crossing events.\n\n Entries in the table are automatically created when such\n events are detected. The size of the table is implementation\n dependent. When the table reaches its maximum size, older\n entries are automatically deleted to make room for newer\n entries.\n ")
dot3_oam_event_log_entry = mib_table_row((1, 3, 6, 1, 2, 1, 158, 1, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'DOT3-OAM-MIB', 'dot3OamEventLogIndex'))
if mibBuilder.loadTexts:
dot3OamEventLogEntry.setDescription('An entry in the dot3OamEventLogTable. Entries are\n automatically created whenever Ethernet OAM events occur at\n the local OAM entity, and when Event Notification OAMPDUs are\n received at the local OAM entity (indicating that events have\n occurred at the peer OAM entity). The size of the table is\n implementation dependent, but when the table becomes full,\n older events are automatically deleted to make room for newer\n events. The table index dot3OamEventLogIndex increments for\n each new entry, and when the maximum value is reached, the\n value restarts at zero.\n ')
dot3_oam_event_log_index = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
dot3OamEventLogIndex.setDescription('An arbitrary integer for identifying individual events\n within the event log. ')
dot3_oam_event_log_timestamp = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 2), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogTimestamp.setDescription('The value of sysUpTime at the time of the logged event. For\n locally generated events, the time of the event can be\n accurately retrieved from sysUpTime. For remotely generated\n events, the time of the event is indicated by the reception of\n the Event Notification OAMPDU indicating that the event\n occurred on the peer. A system may attempt to adjust the\n timestamp value to more accurately reflect the time of the\n event at the peer OAM entity by using other information, such\n as that found in the timestamp found of the Event Notification\n TLVs, which provides an indication of the relative time\n between events at the peer entity. ')
dot3_oam_event_log_oui = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 3), eight_o_two_oui()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogOui.setDescription('The OUI of the entity defining the object type. All IEEE\n 802.3 defined events (as appearing in [802.3ah] except for the\n Organizationally Unique Event TLVs) use the IEEE 802.3 OUI of\n 0x0180C2. Organizations defining their own Event Notification\n TLVs include their OUI in the Event Notification TLV that\n gets reflected here. ')
dot3_oam_event_log_type = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogType.setDescription("The type of event that generated this entry in the event log.\n When the OUI is the IEEE 802.3 OUI of 0x0180C2, the following\n event types are defined:\n erroredSymbolEvent(1),\n erroredFramePeriodEvent(2),\n erroredFrameEvent(3),\n erroredFrameSecondsEvent(4),\n linkFault(256),\n dyingGaspEvent(257),\n criticalLinkEvent(258)\n The first four are considered threshold crossing events, as\n they are generated when a metric exceeds a given value within\n a specified window. The other three are not threshold\n crossing events.\n\n When the OUI is not 71874 (0x0180C2 in hex), then some other\n organization has defined the event space. If event subtyping\n is known to the implementation, it may be reflected here.\n Otherwise, this value should return all F's (2^32 - 1).\n ")
dot3_oam_event_log_location = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogLocation.setDescription('Whether this event occurred locally (local(1)), or was\n received from the OAM peer via Ethernet OAM (remote(2)).\n ')
dot3_oam_event_log_window_hi = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogWindowHi.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventWindowHi and dot3OamEventWindowLo, form\n an unsigned 64-bit integer yielding the window over which the\n value was measured for the threshold crossing event (for\n example, 5, when 11 occurrences happened in 5 seconds while\n the threshold was 10). The two objects are combined as:\n\n dot3OamEventLogWindow = ((2^32) * dot3OamEventLogWindowHi)\n + dot3OamEventLogWindowLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3_oam_event_log_window_lo = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogWindowLo.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventWindowHi and dot3OamEventWindowLo form an\n unsigned 64-bit integer yielding the window over which the\n value was measured for the threshold crossing event (for\n example, 5, when 11 occurrences happened in 5 seconds while\n the threshold was 10). The two objects are combined as:\n\n dot3OamEventLogWindow = ((2^32) * dot3OamEventLogWindowHi)\n + dot3OamEventLogWindowLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3_oam_event_log_threshold_hi = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogThresholdHi.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventThresholdHi and dot3OamEventThresholdLo\n form an unsigned 64-bit integer yielding the value that was\n crossed for the threshold crossing event (for example, 10,\n when 11 occurrences happened in 5 seconds while the threshold\n was 10). The two objects are combined as:\n\n dot3OamEventLogThreshold = ((2^32) * dot3OamEventLogThresholdHi)\n + dot3OamEventLogThresholdLo\n\n Otherwise, this value is returned as all F's (2^32 -1) and\n adds no useful information.\n ")
dot3_oam_event_log_threshold_lo = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogThresholdLo.setDescription("If the event represents a threshold crossing event, the two\n objects dot3OamEventThresholdHi and dot3OamEventThresholdLo\n form an unsigned 64-bit integer yielding the value that was\n crossed for the threshold crossing event (for example, 10,\n when 11 occurrences happened in 5 seconds while the threshold\n was 10). The two objects are combined as:\n\n dot3OamEventLogThreshold = ((2^32) * dot3OamEventLogThresholdHi)\n + dot3OamEventLogThresholdLo\n\n Otherwise, this value is returned as all F's (2^32 - 1) and\n adds no useful information.\n ")
dot3_oam_event_log_value = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 10), counter_based_gauge64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogValue.setDescription("If the event represents a threshold crossing event, this\n value indicates the value of the parameter within the given\n window that generated this event (for example, 11, when 11\n occurrences happened in 5 seconds while the threshold was 10).\n\n Otherwise, this value is returned as all F's\n (2^64 - 1) and adds no useful information.\n ")
dot3_oam_event_log_running_total = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 11), counter_based_gauge64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogRunningTotal.setDescription('Each Event Notification TLV contains a running total of the\n number of times an event has occurred, as well as the number\n of times an Event Notification for the event has been\n\n transmitted. For non-threshold crossing events, the number of\n events (dot3OamLogRunningTotal) and the number of resultant\n Event Notifications (dot3OamLogEventTotal) should be\n identical.\n\n For threshold crossing events, since multiple occurrences may\n be required to cross the threshold, these values are likely\n different. This value represents the total number of times\n this event has happened since the last reset (for example,\n 3253, when 3253 symbol errors have occurred since the last\n reset, which has resulted in 51 symbol error threshold\n crossing events since the last reset).\n ')
dot3_oam_event_log_event_total = mib_table_column((1, 3, 6, 1, 2, 1, 158, 1, 6, 1, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dot3OamEventLogEventTotal.setDescription('Each Event Notification TLV contains a running total of the\n number of times an event has occurred, as well as the number\n of times an Event Notification for the event has been\n transmitted. For non-threshold crossing events, the number of\n events (dot3OamLogRunningTotal) and the number of resultant\n Event Notifications (dot3OamLogEventTotal) should be\n identical.\n\n For threshold crossing events, since multiple occurrences may\n be required to cross the threshold, these values are likely\n different. This value represents the total number of times\n one or more of these occurrences have resulted in an Event\n Notification (for example, 51 when 3253 symbol errors have\n occurred since the last reset, which has resulted in 51 symbol\n error threshold crossing events since the last reset).\n ')
dot3_oam_threshold_event = notification_type((1, 3, 6, 1, 2, 1, 158, 0, 1)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamEventLogTimestamp'), ('DOT3-OAM-MIB', 'dot3OamEventLogOui'), ('DOT3-OAM-MIB', 'dot3OamEventLogType'), ('DOT3-OAM-MIB', 'dot3OamEventLogLocation'), ('DOT3-OAM-MIB', 'dot3OamEventLogWindowHi'), ('DOT3-OAM-MIB', 'dot3OamEventLogWindowLo'), ('DOT3-OAM-MIB', 'dot3OamEventLogThresholdHi'), ('DOT3-OAM-MIB', 'dot3OamEventLogThresholdLo'), ('DOT3-OAM-MIB', 'dot3OamEventLogValue'), ('DOT3-OAM-MIB', 'dot3OamEventLogRunningTotal'), ('DOT3-OAM-MIB', 'dot3OamEventLogEventTotal')))
if mibBuilder.loadTexts:
dot3OamThresholdEvent.setDescription('A dot3OamThresholdEvent notification is sent when a local or\n remote threshold crossing event is detected. A local\n threshold crossing event is detected by the local entity,\n while a remote threshold crossing event is detected by the\n reception of an Ethernet OAM Event Notification OAMPDU\n that indicates a threshold event.\n\n This notification should not be sent more than once per\n second.\n\n The OAM entity can be derived from extracting the ifIndex from\n the variable bindings. The objects in the notification\n correspond to the values in a row instance in the\n dot3OamEventLogTable.\n\n The management entity should periodically check\n dot3OamEventLogTable to detect any missed events.')
dot3_oam_non_threshold_event = notification_type((1, 3, 6, 1, 2, 1, 158, 0, 2)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamEventLogTimestamp'), ('DOT3-OAM-MIB', 'dot3OamEventLogOui'), ('DOT3-OAM-MIB', 'dot3OamEventLogType'), ('DOT3-OAM-MIB', 'dot3OamEventLogLocation'), ('DOT3-OAM-MIB', 'dot3OamEventLogEventTotal')))
if mibBuilder.loadTexts:
dot3OamNonThresholdEvent.setDescription('A dot3OamNonThresholdEvent notification is sent when a local\n or remote non-threshold crossing event is detected. A local\n event is detected by the local entity, while a remote event is\n detected by the reception of an Ethernet OAM Event\n Notification OAMPDU that indicates a non-threshold crossing\n event.\n\n This notification should not be sent more than once per\n\n second.\n\n The OAM entity can be derived from extracting the ifIndex from\n the variable bindings. The objects in the notification\n correspond to the values in a row instance of the\n dot3OamEventLogTable.\n\n The management entity should periodically check\n dot3OamEventLogTable to detect any missed events.')
dot3_oam_groups = mib_identifier((1, 3, 6, 1, 2, 1, 158, 2, 1))
dot3_oam_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 158, 2, 2))
dot3_oam_compliance = module_compliance((1, 3, 6, 1, 2, 1, 158, 2, 2, 1)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamControlGroup'), ('DOT3-OAM-MIB', 'dot3OamPeerGroup'), ('DOT3-OAM-MIB', 'dot3OamStatsBaseGroup'), ('DOT3-OAM-MIB', 'dot3OamLoopbackGroup'), ('DOT3-OAM-MIB', 'dot3OamErrSymbolPeriodEventGroup'), ('DOT3-OAM-MIB', 'dot3OamErrFramePeriodEventGroup'), ('DOT3-OAM-MIB', 'dot3OamErrFrameEventGroup'), ('DOT3-OAM-MIB', 'dot3OamErrFrameSecsSummaryEventGroup'), ('DOT3-OAM-MIB', 'dot3OamFlagEventGroup'), ('DOT3-OAM-MIB', 'dot3OamEventLogGroup'), ('DOT3-OAM-MIB', 'dot3OamNotificationGroup')))
if mibBuilder.loadTexts:
dot3OamCompliance.setDescription('The compliance statement for managed entities\n supporting OAM on Ethernet-like interfaces.\n ')
dot3_oam_control_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 1)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamAdminState'), ('DOT3-OAM-MIB', 'dot3OamOperStatus'), ('DOT3-OAM-MIB', 'dot3OamMode'), ('DOT3-OAM-MIB', 'dot3OamMaxOamPduSize'), ('DOT3-OAM-MIB', 'dot3OamConfigRevision'), ('DOT3-OAM-MIB', 'dot3OamFunctionsSupported')))
if mibBuilder.loadTexts:
dot3OamControlGroup.setDescription('A collection of objects providing the abilities,\n configuration, and status of an Ethernet OAM entity. ')
dot3_oam_peer_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 2)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamPeerMacAddress'), ('DOT3-OAM-MIB', 'dot3OamPeerVendorOui'), ('DOT3-OAM-MIB', 'dot3OamPeerVendorInfo'), ('DOT3-OAM-MIB', 'dot3OamPeerMode'), ('DOT3-OAM-MIB', 'dot3OamPeerFunctionsSupported'), ('DOT3-OAM-MIB', 'dot3OamPeerMaxOamPduSize'), ('DOT3-OAM-MIB', 'dot3OamPeerConfigRevision')))
if mibBuilder.loadTexts:
dot3OamPeerGroup.setDescription('A collection of objects providing the abilities,\n configuration, and status of a peer Ethernet OAM entity. ')
dot3_oam_stats_base_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 3)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamInformationTx'), ('DOT3-OAM-MIB', 'dot3OamInformationRx'), ('DOT3-OAM-MIB', 'dot3OamUniqueEventNotificationTx'), ('DOT3-OAM-MIB', 'dot3OamUniqueEventNotificationRx'), ('DOT3-OAM-MIB', 'dot3OamDuplicateEventNotificationTx'), ('DOT3-OAM-MIB', 'dot3OamDuplicateEventNotificationRx'), ('DOT3-OAM-MIB', 'dot3OamLoopbackControlTx'), ('DOT3-OAM-MIB', 'dot3OamLoopbackControlRx'), ('DOT3-OAM-MIB', 'dot3OamVariableRequestTx'), ('DOT3-OAM-MIB', 'dot3OamVariableRequestRx'), ('DOT3-OAM-MIB', 'dot3OamVariableResponseTx'), ('DOT3-OAM-MIB', 'dot3OamVariableResponseRx'), ('DOT3-OAM-MIB', 'dot3OamOrgSpecificTx'), ('DOT3-OAM-MIB', 'dot3OamOrgSpecificRx'), ('DOT3-OAM-MIB', 'dot3OamUnsupportedCodesTx'), ('DOT3-OAM-MIB', 'dot3OamUnsupportedCodesRx'), ('DOT3-OAM-MIB', 'dot3OamFramesLostDueToOam')))
if mibBuilder.loadTexts:
dot3OamStatsBaseGroup.setDescription('A collection of objects providing the statistics for the\n number of various transmit and receive events for OAM on an\n Ethernet-like interface. Note that all of these counters must\n be supported even if the related function (as described in\n dot3OamFunctionsSupported) is not supported. ')
dot3_oam_loopback_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 4)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamLoopbackStatus'), ('DOT3-OAM-MIB', 'dot3OamLoopbackIgnoreRx')))
if mibBuilder.loadTexts:
dot3OamLoopbackGroup.setDescription('A collection of objects for controlling the OAM remote\n\n loopback function. ')
dot3_oam_err_symbol_period_event_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 5)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamErrSymPeriodWindowHi'), ('DOT3-OAM-MIB', 'dot3OamErrSymPeriodWindowLo'), ('DOT3-OAM-MIB', 'dot3OamErrSymPeriodThresholdHi'), ('DOT3-OAM-MIB', 'dot3OamErrSymPeriodThresholdLo'), ('DOT3-OAM-MIB', 'dot3OamErrSymPeriodEvNotifEnable')))
if mibBuilder.loadTexts:
dot3OamErrSymbolPeriodEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Symbol Period Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3_oam_err_frame_period_event_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 6)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamErrFramePeriodWindow'), ('DOT3-OAM-MIB', 'dot3OamErrFramePeriodThreshold'), ('DOT3-OAM-MIB', 'dot3OamErrFramePeriodEvNotifEnable')))
if mibBuilder.loadTexts:
dot3OamErrFramePeriodEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Period Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3_oam_err_frame_event_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 7)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamErrFrameWindow'), ('DOT3-OAM-MIB', 'dot3OamErrFrameThreshold'), ('DOT3-OAM-MIB', 'dot3OamErrFrameEvNotifEnable')))
if mibBuilder.loadTexts:
dot3OamErrFrameEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3_oam_err_frame_secs_summary_event_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 8)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamErrFrameSecsSummaryWindow'), ('DOT3-OAM-MIB', 'dot3OamErrFrameSecsSummaryThreshold'), ('DOT3-OAM-MIB', 'dot3OamErrFrameSecsEvNotifEnable')))
if mibBuilder.loadTexts:
dot3OamErrFrameSecsSummaryEventGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Seconds Summary Event.\n\n Each [802.3ah] defined Event Notification TLV has its own\n conformance group because each event can be implemented\n independently of any other. ')
dot3_oam_flag_event_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 9)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamDyingGaspEnable'), ('DOT3-OAM-MIB', 'dot3OamCriticalEventEnable')))
if mibBuilder.loadTexts:
dot3OamFlagEventGroup.setDescription('A collection of objects for configuring the sending OAMPDUs\n with the critical event flag or dying gasp flag enabled. ')
dot3_oam_event_log_group = object_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 10)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamEventLogTimestamp'), ('DOT3-OAM-MIB', 'dot3OamEventLogOui'), ('DOT3-OAM-MIB', 'dot3OamEventLogType'), ('DOT3-OAM-MIB', 'dot3OamEventLogLocation'), ('DOT3-OAM-MIB', 'dot3OamEventLogWindowHi'), ('DOT3-OAM-MIB', 'dot3OamEventLogWindowLo'), ('DOT3-OAM-MIB', 'dot3OamEventLogThresholdHi'), ('DOT3-OAM-MIB', 'dot3OamEventLogThresholdLo'), ('DOT3-OAM-MIB', 'dot3OamEventLogValue'), ('DOT3-OAM-MIB', 'dot3OamEventLogRunningTotal'), ('DOT3-OAM-MIB', 'dot3OamEventLogEventTotal')))
if mibBuilder.loadTexts:
dot3OamEventLogGroup.setDescription('A collection of objects for configuring the thresholds for an\n Errored Frame Seconds Summary Event and maintaining the event\n information. ')
dot3_oam_notification_group = notification_group((1, 3, 6, 1, 2, 1, 158, 2, 1, 11)).setObjects(*(('DOT3-OAM-MIB', 'dot3OamThresholdEvent'), ('DOT3-OAM-MIB', 'dot3OamNonThresholdEvent')))
if mibBuilder.loadTexts:
dot3OamNotificationGroup.setDescription('A collection of notifications used by Ethernet OAM to signal\n to a management entity that local or remote events have\n occurred on a specified Ethernet link. ')
mibBuilder.exportSymbols('DOT3-OAM-MIB', dot3OamLoopbackControlTx=dot3OamLoopbackControlTx, dot3OamEventLogEventTotal=dot3OamEventLogEventTotal, dot3OamEventLogLocation=dot3OamEventLogLocation, dot3OamEventLogEntry=dot3OamEventLogEntry, dot3OamEventLogWindowHi=dot3OamEventLogWindowHi, dot3OamPeerVendorOui=dot3OamPeerVendorOui, dot3OamNonThresholdEvent=dot3OamNonThresholdEvent, dot3OamEventLogRunningTotal=dot3OamEventLogRunningTotal, dot3OamMaxOamPduSize=dot3OamMaxOamPduSize, dot3OamErrSymbolPeriodEventGroup=dot3OamErrSymbolPeriodEventGroup, dot3OamPeerGroup=dot3OamPeerGroup, dot3OamFlagEventGroup=dot3OamFlagEventGroup, dot3OamErrSymPeriodWindowLo=dot3OamErrSymPeriodWindowLo, dot3OamLoopbackEntry=dot3OamLoopbackEntry, dot3OamUniqueEventNotificationTx=dot3OamUniqueEventNotificationTx, dot3OamLoopbackTable=dot3OamLoopbackTable, dot3OamLoopbackGroup=dot3OamLoopbackGroup, dot3OamCompliances=dot3OamCompliances, dot3OamErrSymPeriodWindowHi=dot3OamErrSymPeriodWindowHi, dot3OamErrFramePeriodEventGroup=dot3OamErrFramePeriodEventGroup, dot3OamInformationTx=dot3OamInformationTx, dot3OamPeerMode=dot3OamPeerMode, dot3OamErrSymPeriodThresholdHi=dot3OamErrSymPeriodThresholdHi, dot3OamInformationRx=dot3OamInformationRx, dot3OamFramesLostDueToOam=dot3OamFramesLostDueToOam, dot3OamOrgSpecificRx=dot3OamOrgSpecificRx, dot3OamUniqueEventNotificationRx=dot3OamUniqueEventNotificationRx, dot3OamMode=dot3OamMode, dot3OamUnsupportedCodesRx=dot3OamUnsupportedCodesRx, dot3OamNotificationGroup=dot3OamNotificationGroup, dot3OamPeerVendorInfo=dot3OamPeerVendorInfo, dot3OamEventLogGroup=dot3OamEventLogGroup, dot3OamDuplicateEventNotificationRx=dot3OamDuplicateEventNotificationRx, dot3OamUnsupportedCodesTx=dot3OamUnsupportedCodesTx, dot3OamErrFrameEventGroup=dot3OamErrFrameEventGroup, dot3OamStatsEntry=dot3OamStatsEntry, dot3OamErrFrameSecsSummaryWindow=dot3OamErrFrameSecsSummaryWindow, dot3OamPeerTable=dot3OamPeerTable, dot3OamObjects=dot3OamObjects, dot3OamErrFramePeriodWindow=dot3OamErrFramePeriodWindow, dot3OamErrFrameWindow=dot3OamErrFrameWindow, dot3OamVariableResponseRx=dot3OamVariableResponseRx, dot3OamPeerMacAddress=dot3OamPeerMacAddress, dot3OamVariableRequestTx=dot3OamVariableRequestTx, dot3OamErrFrameThreshold=dot3OamErrFrameThreshold, dot3OamEventLogOui=dot3OamEventLogOui, dot3OamConformance=dot3OamConformance, dot3OamOperStatus=dot3OamOperStatus, dot3OamEventConfigEntry=dot3OamEventConfigEntry, dot3OamErrFrameEvNotifEnable=dot3OamErrFrameEvNotifEnable, dot3OamEventLogWindowLo=dot3OamEventLogWindowLo, dot3OamVariableResponseTx=dot3OamVariableResponseTx, dot3OamTable=dot3OamTable, dot3OamErrFramePeriodEvNotifEnable=dot3OamErrFramePeriodEvNotifEnable, dot3OamEventLogThresholdHi=dot3OamEventLogThresholdHi, dot3OamCompliance=dot3OamCompliance, dot3OamOrgSpecificTx=dot3OamOrgSpecificTx, EightOTwoOui=EightOTwoOui, dot3OamEventLogTimestamp=dot3OamEventLogTimestamp, dot3OamErrSymPeriodEvNotifEnable=dot3OamErrSymPeriodEvNotifEnable, dot3OamErrFrameSecsSummaryEventGroup=dot3OamErrFrameSecsSummaryEventGroup, dot3OamPeerMaxOamPduSize=dot3OamPeerMaxOamPduSize, dot3OamPeerFunctionsSupported=dot3OamPeerFunctionsSupported, dot3OamEventLogType=dot3OamEventLogType, dot3OamStatsBaseGroup=dot3OamStatsBaseGroup, dot3OamLoopbackControlRx=dot3OamLoopbackControlRx, dot3OamPeerEntry=dot3OamPeerEntry, dot3OamCriticalEventEnable=dot3OamCriticalEventEnable, dot3OamErrFrameSecsSummaryThreshold=dot3OamErrFrameSecsSummaryThreshold, dot3OamLoopbackIgnoreRx=dot3OamLoopbackIgnoreRx, dot3OamGroups=dot3OamGroups, dot3OamLoopbackStatus=dot3OamLoopbackStatus, dot3OamConfigRevision=dot3OamConfigRevision, dot3OamEventLogThresholdLo=dot3OamEventLogThresholdLo, dot3OamErrFrameSecsEvNotifEnable=dot3OamErrFrameSecsEvNotifEnable, PYSNMP_MODULE_ID=dot3OamMIB, dot3OamDyingGaspEnable=dot3OamDyingGaspEnable, dot3OamNotifications=dot3OamNotifications, dot3OamPeerConfigRevision=dot3OamPeerConfigRevision, dot3OamEventLogValue=dot3OamEventLogValue, dot3OamEventLogTable=dot3OamEventLogTable, dot3OamThresholdEvent=dot3OamThresholdEvent, dot3OamFunctionsSupported=dot3OamFunctionsSupported, dot3OamVariableRequestRx=dot3OamVariableRequestRx, dot3OamEventConfigTable=dot3OamEventConfigTable, dot3OamDuplicateEventNotificationTx=dot3OamDuplicateEventNotificationTx, dot3OamErrSymPeriodThresholdLo=dot3OamErrSymPeriodThresholdLo, dot3OamControlGroup=dot3OamControlGroup, dot3OamEntry=dot3OamEntry, dot3OamStatsTable=dot3OamStatsTable, dot3OamMIB=dot3OamMIB, dot3OamAdminState=dot3OamAdminState, dot3OamEventLogIndex=dot3OamEventLogIndex, dot3OamErrFramePeriodThreshold=dot3OamErrFramePeriodThreshold)
|
# base
class FyException(Exception):
def __init__(s, message):
s.message = '\n;;;;;\n'
s.message += s.__class__.__name__.replace('_', ' ')
s.message += '\n'
s.message += str(message)
def __str__(s):
return s.message
# exception
class a_function_cannot_be_dotted(FyException):
pass
class cannot_indent_on_first_line(FyException):
pass
class cannot_find_attribute_in_class(FyException):
pass
class cannot_find_attribute_setter_in_class(FyException):
pass
class cannot_find_targetted_ast(FyException):
pass
class cannot_mix_args_and_kwargs(FyException):
pass
class cannot_overwrite_spec(FyException):
pass
class cannot_resolve_modifier(FyException):
pass
class cannot_set_reference_with_a_property_setter(FyException):
pass
class cannot_find_class_definition_in_module(FyException):
pass
class compilation_error(FyException):
pass
class else_without_if_elif_where_or_elwhere(FyException):
pass
class error_in_interpolant(FyException):
pass
class fortran_file_not_found(FyException):
pass
class guid_override_error(FyException):
pass
class indentation_increased_by_more_than_one_level(FyException):
pass
class indentation_without_colon(FyException):
pass
class inconsistent_mro(FyException):
pass
class intrinsic_type_cannot_be_dotted(FyException):
pass
class invalid_url(FyException):
pass
class left_element_in_aliased_import_is_not_an_url(FyException):
pass
class interpretation_error(FyException):
pass
class lexical_interpolation_is_only_on_routine_or_class(FyException):
pass
class linking_error(FyException):
pass
class mark_newlinex_lexing_error(FyException):
pass
class mixed_indentation(FyException):
pass
class nb_of_arguments_mismatch(FyException):
pass
class no_element_specified_in_slice_import(FyException):
pass
class no_fortran_compiler_found(FyException):
pass
class only_aliased_namespace_star_or_slice_import_are_allowed(FyException):
pass
class only_attribute_or_method_can_be_inherited(FyException):
pass
class only_star_import_allowed_for_shared_library(FyException):
pass
class only_star_or_slice_import_allowed_for_fortran(FyException):
pass
class python_import_error(FyException):
pass
class space_tab_mixed(FyException):
pass
class syntax_error(FyException):
pass
class unbalanced_parenthesis(FyException):
pass
class fml_error(FyException):
pass
class module_not_found(FyException):
pass
class name_not_found_in_fython_module(FyException):
pass
class package_not_found(FyException):
pass
class resolution_error(FyException):
pass
class string_format_error(FyException):
pass
class unknown_identifier(FyException):
pass
class unknown_print_mode(FyException):
pass
|
class Fyexception(Exception):
def __init__(s, message):
s.message = '\n;;;;;\n'
s.message += s.__class__.__name__.replace('_', ' ')
s.message += '\n'
s.message += str(message)
def __str__(s):
return s.message
class A_Function_Cannot_Be_Dotted(FyException):
pass
class Cannot_Indent_On_First_Line(FyException):
pass
class Cannot_Find_Attribute_In_Class(FyException):
pass
class Cannot_Find_Attribute_Setter_In_Class(FyException):
pass
class Cannot_Find_Targetted_Ast(FyException):
pass
class Cannot_Mix_Args_And_Kwargs(FyException):
pass
class Cannot_Overwrite_Spec(FyException):
pass
class Cannot_Resolve_Modifier(FyException):
pass
class Cannot_Set_Reference_With_A_Property_Setter(FyException):
pass
class Cannot_Find_Class_Definition_In_Module(FyException):
pass
class Compilation_Error(FyException):
pass
class Else_Without_If_Elif_Where_Or_Elwhere(FyException):
pass
class Error_In_Interpolant(FyException):
pass
class Fortran_File_Not_Found(FyException):
pass
class Guid_Override_Error(FyException):
pass
class Indentation_Increased_By_More_Than_One_Level(FyException):
pass
class Indentation_Without_Colon(FyException):
pass
class Inconsistent_Mro(FyException):
pass
class Intrinsic_Type_Cannot_Be_Dotted(FyException):
pass
class Invalid_Url(FyException):
pass
class Left_Element_In_Aliased_Import_Is_Not_An_Url(FyException):
pass
class Interpretation_Error(FyException):
pass
class Lexical_Interpolation_Is_Only_On_Routine_Or_Class(FyException):
pass
class Linking_Error(FyException):
pass
class Mark_Newlinex_Lexing_Error(FyException):
pass
class Mixed_Indentation(FyException):
pass
class Nb_Of_Arguments_Mismatch(FyException):
pass
class No_Element_Specified_In_Slice_Import(FyException):
pass
class No_Fortran_Compiler_Found(FyException):
pass
class Only_Aliased_Namespace_Star_Or_Slice_Import_Are_Allowed(FyException):
pass
class Only_Attribute_Or_Method_Can_Be_Inherited(FyException):
pass
class Only_Star_Import_Allowed_For_Shared_Library(FyException):
pass
class Only_Star_Or_Slice_Import_Allowed_For_Fortran(FyException):
pass
class Python_Import_Error(FyException):
pass
class Space_Tab_Mixed(FyException):
pass
class Syntax_Error(FyException):
pass
class Unbalanced_Parenthesis(FyException):
pass
class Fml_Error(FyException):
pass
class Module_Not_Found(FyException):
pass
class Name_Not_Found_In_Fython_Module(FyException):
pass
class Package_Not_Found(FyException):
pass
class Resolution_Error(FyException):
pass
class String_Format_Error(FyException):
pass
class Unknown_Identifier(FyException):
pass
class Unknown_Print_Mode(FyException):
pass
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("//antlir/bzl:shape.bzl", "shape")
load("//antlir/bzl:target_helpers.bzl", "antlir_dep")
load("//antlir/bzl:target_tagger.bzl", "new_target_tagger", "target_tagger_to_feature")
load(":symlink.shape.bzl", "symlink_t")
def _build_symlink_feature(link_target, link_name, symlinks_to_arg):
symlink_spec = shape.new(
symlink_t,
dest = link_name,
source = link_target,
)
return target_tagger_to_feature(
new_target_tagger(),
items = struct(**{symlinks_to_arg: [symlink_spec]}),
# The `fake_macro_library` docblock explains this self-dependency
extra_deps = [antlir_dep("bzl/image/feature:symlink")],
)
def feature_ensure_dir_symlink(link_target, link_name):
"""
The operation follows rsync convention for a destination (`link_name`):
`ends/in/slash/` means "write into this directory", `does/not/end/with/slash`
means "write with the specified filename":
- `feature.ensure_dir_symlink("/d", "/e/")` symlinks directory `/d` to `/e/d`
- `feature.ensure_dir_symlink("/a", "/b/c")` symlinks directory `/a` to `/b/c`
Both arguments are mandatory:
- `link_target` is the image-absolute source file/dir of the symlink.
This file must exist as we do not support dangling symlinks.
IMPORTANT: The emitted symlink will be **relative** by default, enabling
easier inspection if images via `buck-image-out`. If this is a problem
for you, we can add an `absolute` boolean kwarg.
- `link_name` is an image-absolute path. A trailing / is significant.
A `link_name` that does NOT end in / is a full path in the new image,
ending with a filename for the new symlink.
As with `image.clone`, a traling / means that `link_name` must be a
pre-existing directory in the image (e.g. created via
`image.ensure_dirs_exist`), and the actual link will be placed at
`link_name/(basename of link_target)`.
This item is indempotent: it is a no-op if a symlink already exists that
matches the spec.
"""
return _build_symlink_feature(link_target, link_name, "symlinks_to_dirs")
def feature_ensure_file_symlink(link_target, link_name):
"""
The operation follows rsync convention for a destination (`link_name`):
`ends/in/slash/` means "write into this directory", `does/not/end/with/slash`
means "write with the specified filename":
- `feature.ensure_file_symlink("/d", "/e/")` symlinks file `/d` to `/e/d`
- `feature.ensure_file_symlink("/a", "/b/c")` symlinks file `/a` to `/b/c`
Both arguments are mandatory:
- `link_target` is the image-absolute source file/dir of the symlink.
This file must exist as we do not support dangling symlinks.
IMPORTANT: The emitted symlink will be **relative** by default, enabling
easier inspection if images via `buck-image-out`. If this is a problem
for you, we can add an `absolute` boolean kwarg.
- `link_name` is an image-absolute path. A trailing / is significant.
A `link_name` that does NOT end in / is a full path in the new image,
ending with a filename for the new symlink.
As with `image.clone`, a traling / means that `link_name` must be a
pre-existing directory in the image (e.g. created via
`image.ensure_dirs_exist`), and the actual link will be placed at
`link_name/(basename of link_target)`.
This item is indempotent: it is a no-op if a symlink already exists that
matches the spec.
"""
return _build_symlink_feature(link_target, link_name, "symlinks_to_files")
|
load('//antlir/bzl:shape.bzl', 'shape')
load('//antlir/bzl:target_helpers.bzl', 'antlir_dep')
load('//antlir/bzl:target_tagger.bzl', 'new_target_tagger', 'target_tagger_to_feature')
load(':symlink.shape.bzl', 'symlink_t')
def _build_symlink_feature(link_target, link_name, symlinks_to_arg):
symlink_spec = shape.new(symlink_t, dest=link_name, source=link_target)
return target_tagger_to_feature(new_target_tagger(), items=struct(**{symlinks_to_arg: [symlink_spec]}), extra_deps=[antlir_dep('bzl/image/feature:symlink')])
def feature_ensure_dir_symlink(link_target, link_name):
"""
The operation follows rsync convention for a destination (`link_name`):
`ends/in/slash/` means "write into this directory", `does/not/end/with/slash`
means "write with the specified filename":
- `feature.ensure_dir_symlink("/d", "/e/")` symlinks directory `/d` to `/e/d`
- `feature.ensure_dir_symlink("/a", "/b/c")` symlinks directory `/a` to `/b/c`
Both arguments are mandatory:
- `link_target` is the image-absolute source file/dir of the symlink.
This file must exist as we do not support dangling symlinks.
IMPORTANT: The emitted symlink will be **relative** by default, enabling
easier inspection if images via `buck-image-out`. If this is a problem
for you, we can add an `absolute` boolean kwarg.
- `link_name` is an image-absolute path. A trailing / is significant.
A `link_name` that does NOT end in / is a full path in the new image,
ending with a filename for the new symlink.
As with `image.clone`, a traling / means that `link_name` must be a
pre-existing directory in the image (e.g. created via
`image.ensure_dirs_exist`), and the actual link will be placed at
`link_name/(basename of link_target)`.
This item is indempotent: it is a no-op if a symlink already exists that
matches the spec.
"""
return _build_symlink_feature(link_target, link_name, 'symlinks_to_dirs')
def feature_ensure_file_symlink(link_target, link_name):
"""
The operation follows rsync convention for a destination (`link_name`):
`ends/in/slash/` means "write into this directory", `does/not/end/with/slash`
means "write with the specified filename":
- `feature.ensure_file_symlink("/d", "/e/")` symlinks file `/d` to `/e/d`
- `feature.ensure_file_symlink("/a", "/b/c")` symlinks file `/a` to `/b/c`
Both arguments are mandatory:
- `link_target` is the image-absolute source file/dir of the symlink.
This file must exist as we do not support dangling symlinks.
IMPORTANT: The emitted symlink will be **relative** by default, enabling
easier inspection if images via `buck-image-out`. If this is a problem
for you, we can add an `absolute` boolean kwarg.
- `link_name` is an image-absolute path. A trailing / is significant.
A `link_name` that does NOT end in / is a full path in the new image,
ending with a filename for the new symlink.
As with `image.clone`, a traling / means that `link_name` must be a
pre-existing directory in the image (e.g. created via
`image.ensure_dirs_exist`), and the actual link will be placed at
`link_name/(basename of link_target)`.
This item is indempotent: it is a no-op if a symlink already exists that
matches the spec.
"""
return _build_symlink_feature(link_target, link_name, 'symlinks_to_files')
|
# Palanquin (9110107) | Outside Ninja Castle (800040000)
mushroomShrine = 800000000
response = sm.sendAskYesNo("Would you like to go to #m" + str(mushroomShrine) + "m#?")
if response:
sm.warp(mushroomShrine)
|
mushroom_shrine = 800000000
response = sm.sendAskYesNo('Would you like to go to #m' + str(mushroomShrine) + 'm#?')
if response:
sm.warp(mushroomShrine)
|
f = open("./three.txt", "r")
lines = [x.strip() for x in f.readlines()]
gamma = ""
for index in range(len(lines[0])):
bits = [line[index] for line in lines]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros > ones:
gamma += "0"
else:
gamma += "1"
epsilon = ""
for index in range(len(lines[0])):
bits = [line[index] for line in lines]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros < ones:
epsilon += "0"
else:
epsilon += "1"
print("Star 1", int(epsilon, 2) * int(gamma, 2))
oxygen_valid = list(lines)
index = 0
while len(oxygen_valid) > 1:
bits = [line[index] for line in oxygen_valid]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros > ones:
oxygen_valid = [line for line in oxygen_valid if line[index] == "0"]
else:
oxygen_valid = [line for line in oxygen_valid if line[index] == "1"]
index += 1
co = list(lines)
index = 0
while len(co) > 1:
bits = [line[index] for line in co]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros <= ones:
co = [line for line in co if line[index] == "0"]
else:
co = [line for line in co if line[index] == "1"]
index += 1
print("Star 2", int(oxygen_valid[0], 2) * int(co[0], 2))
|
f = open('./three.txt', 'r')
lines = [x.strip() for x in f.readlines()]
gamma = ''
for index in range(len(lines[0])):
bits = [line[index] for line in lines]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros > ones:
gamma += '0'
else:
gamma += '1'
epsilon = ''
for index in range(len(lines[0])):
bits = [line[index] for line in lines]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros < ones:
epsilon += '0'
else:
epsilon += '1'
print('Star 1', int(epsilon, 2) * int(gamma, 2))
oxygen_valid = list(lines)
index = 0
while len(oxygen_valid) > 1:
bits = [line[index] for line in oxygen_valid]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros > ones:
oxygen_valid = [line for line in oxygen_valid if line[index] == '0']
else:
oxygen_valid = [line for line in oxygen_valid if line[index] == '1']
index += 1
co = list(lines)
index = 0
while len(co) > 1:
bits = [line[index] for line in co]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros <= ones:
co = [line for line in co if line[index] == '0']
else:
co = [line for line in co if line[index] == '1']
index += 1
print('Star 2', int(oxygen_valid[0], 2) * int(co[0], 2))
|
#!/usr/bin/python
#
# Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
#
# 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.
#
IN = None
INOUT = None
FILE_IN = None
FILE_OUT = None
FILE_INOUT = None
COLLECTION_IN = None
COLLECTION_INOUT = None
COLLECTION_OUT = None
# Aliases for parameter definition as dictionary
Type = 'type' # parameter type
Direction = 'direction' # parameter type
StdIOStream = 'stream' # parameter stream
Prefix = 'prefix' # parameter prefix
Depth = 'depth' # collection recursive depth
block_count = 'block_count'
block_length = 'block_length'
stride = 'stride'
|
in = None
inout = None
file_in = None
file_out = None
file_inout = None
collection_in = None
collection_inout = None
collection_out = None
type = 'type'
direction = 'direction'
std_io_stream = 'stream'
prefix = 'prefix'
depth = 'depth'
block_count = 'block_count'
block_length = 'block_length'
stride = 'stride'
|
"""
Test group in a different order
.. pii: Group 1 - Annotation 1
.. pii_retirement: local_api, consumer_api
.. pii_types: id, name
"""
|
"""
Test group in a different order
.. pii: Group 1 - Annotation 1
.. pii_retirement: local_api, consumer_api
.. pii_types: id, name
"""
|
def bin_search_lower(a, x):
l, r = -1, len(a)
while l + 1 < r:
m = (l + r) // 2
if a[m] <= x:
l = m
else:
r = m
return l
n, k = map(int, input().split())
array = list(map(int, input().split()))
for x in map(int, input().split()):
print(bin_search_lower(array, x) + 1)
|
def bin_search_lower(a, x):
(l, r) = (-1, len(a))
while l + 1 < r:
m = (l + r) // 2
if a[m] <= x:
l = m
else:
r = m
return l
(n, k) = map(int, input().split())
array = list(map(int, input().split()))
for x in map(int, input().split()):
print(bin_search_lower(array, x) + 1)
|
class State:
def __init__(self, client) -> None:
self.client = client
def get_input_command(self):
return input(f"JogoDaVelha> ").strip().split() or [""]
def handle_input_command(self, *input_command):
pass
def handle_opponent_command(self, *command):
pass
def handle_new_connection_command(self, *command):
pass
def _handle_skip(self):
pass
def _handle_default(self, *args):
print("Invalid command!")
def _handle_exit(self):
self.client.stop()
|
class State:
def __init__(self, client) -> None:
self.client = client
def get_input_command(self):
return input(f'JogoDaVelha> ').strip().split() or ['']
def handle_input_command(self, *input_command):
pass
def handle_opponent_command(self, *command):
pass
def handle_new_connection_command(self, *command):
pass
def _handle_skip(self):
pass
def _handle_default(self, *args):
print('Invalid command!')
def _handle_exit(self):
self.client.stop()
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
spinMultiplicity = 2
energy = {
'CCSD(T)-F12/cc-pVTZ-F12': MolproLog('TSN09_f12.out'),
}
frequencies = GaussianLog('ts3-freq.log')
rotors = [HinderedRotor(scanLog=ScanLog('scan_0.log'), pivots=[4,10], top=[10,11,12,13,14], symmetry=1, fit='best'),
HinderedRotor(scanLog=ScanLog('scan_1.log'), pivots=[10,13], top=[13,14], symmetry=1, fit='best'),
HinderedRotor(scanLog=ScanLog('scan_2.log'), pivots=[4,6], top=[6,7,8,9], symmetry=3, fit='best'),]
|
spin_multiplicity = 2
energy = {'CCSD(T)-F12/cc-pVTZ-F12': molpro_log('TSN09_f12.out')}
frequencies = gaussian_log('ts3-freq.log')
rotors = [hindered_rotor(scanLog=scan_log('scan_0.log'), pivots=[4, 10], top=[10, 11, 12, 13, 14], symmetry=1, fit='best'), hindered_rotor(scanLog=scan_log('scan_1.log'), pivots=[10, 13], top=[13, 14], symmetry=1, fit='best'), hindered_rotor(scanLog=scan_log('scan_2.log'), pivots=[4, 6], top=[6, 7, 8, 9], symmetry=3, fit='best')]
|
"""
Featurizers will always output arrays
but they will use structure-oriented methods
underneath to do it.
"""
|
"""
Featurizers will always output arrays
but they will use structure-oriented methods
underneath to do it.
"""
|
a, b = map(int, input().split())
a = str(a)
b = str(b)
count = 0
c = int(a)
d = int(b)
for i in range(c, d + 1):
i = str(i)
if i[0] == i[4] and i[1] == i[3]:
count += 1
print(count)
|
(a, b) = map(int, input().split())
a = str(a)
b = str(b)
count = 0
c = int(a)
d = int(b)
for i in range(c, d + 1):
i = str(i)
if i[0] == i[4] and i[1] == i[3]:
count += 1
print(count)
|
#!/usr/local/bin/python
# coding: utf-8
VERSION = '2.1.1'
# 0: CRITICAL, 1: INFO, 2: DEBUG
VERBOSE_LEVEL = 1
# 0: CONSOLE, 1: FILE, 2: CONSOLE & FILE
LOG_TYPE = 0
LOG_DIR = 'output'
HTML = False
DEBUG = True
|
version = '2.1.1'
verbose_level = 1
log_type = 0
log_dir = 'output'
html = False
debug = True
|
class Human:
def __init__(self, name, age):
self.name = name
self.age = age
def greeting(self):
print(f"Hello {self.name}!")
def get_name(self):
return self.name
def get_age(self):
return self.age
def set_age(self, age):
self.age = age
h = Human("Andrei", 31)
h.greeting()
print(h.get_name())
h.set_age(48)
print(h.get_age())
|
class Human:
def __init__(self, name, age):
self.name = name
self.age = age
def greeting(self):
print(f'Hello {self.name}!')
def get_name(self):
return self.name
def get_age(self):
return self.age
def set_age(self, age):
self.age = age
h = human('Andrei', 31)
h.greeting()
print(h.get_name())
h.set_age(48)
print(h.get_age())
|
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
num_len = len(nums)
prefix_products, postfix_products = [1] * (num_len + 1), [1] * (num_len + 1)
prefix_product, postfix_product = 1, 1
for prefix_index in range(num_len):
prefix_product *= nums[prefix_index]
prefix_products[prefix_index+1] = prefix_product
postfix_index = num_len - 1 - prefix_index
postfix_product *= nums[postfix_index]
postfix_products[postfix_index] = postfix_product
infix_products = []
for index in range(num_len):
infix_products.append(prefix_products[index] * postfix_products[index+1])
return infix_products
|
class Solution:
def product_except_self(self, nums: List[int]) -> List[int]:
num_len = len(nums)
(prefix_products, postfix_products) = ([1] * (num_len + 1), [1] * (num_len + 1))
(prefix_product, postfix_product) = (1, 1)
for prefix_index in range(num_len):
prefix_product *= nums[prefix_index]
prefix_products[prefix_index + 1] = prefix_product
postfix_index = num_len - 1 - prefix_index
postfix_product *= nums[postfix_index]
postfix_products[postfix_index] = postfix_product
infix_products = []
for index in range(num_len):
infix_products.append(prefix_products[index] * postfix_products[index + 1])
return infix_products
|
CREATE_GAME = 'game_create'
JOIN_GAME = 'game_join'
LEAVE_GAME = 'game_abort'
SET_NICK = 'nickname_set'
INIT_BOARD = 'board_init'
FIRE = 'attack'
NUKE = 'special_attack'
MOVE = 'move'
SURRENDER = 'surrender'
CHAT_SEND = 'chat_send'
|
create_game = 'game_create'
join_game = 'game_join'
leave_game = 'game_abort'
set_nick = 'nickname_set'
init_board = 'board_init'
fire = 'attack'
nuke = 'special_attack'
move = 'move'
surrender = 'surrender'
chat_send = 'chat_send'
|
# -*- coding: utf-8 -*-
class Stack(object):
""" Implements a simple stack data structure.
Attrs:
top: object, a pointer to the top object in the stack.
count: int, a counter of the number of elements in the stack.
"""
def __init__(self):
self.top = None
self.count = 0
def __len__(self):
return self.count
def is_empty(self):
return self.count == 0
def pop(self):
""" Returns the value at the top of the stack. """
if self.top == None:
return None
value = self.top['value']
self.top = self.top['prev']
self.count -= 1
return value
def push(self, value):
""" Adds a new value on top of the stack. """
node = {'value': value, 'prev': None}
if self.top == None:
self.top = node
else:
node['prev'] = self.top
self.top = node
self.count += 1
def peek(self):
""" Returns the value of the top element in the stack without removing
it from the data structure.
"""
if self.top == None:
return None
return self.top['value']
|
class Stack(object):
""" Implements a simple stack data structure.
Attrs:
top: object, a pointer to the top object in the stack.
count: int, a counter of the number of elements in the stack.
"""
def __init__(self):
self.top = None
self.count = 0
def __len__(self):
return self.count
def is_empty(self):
return self.count == 0
def pop(self):
""" Returns the value at the top of the stack. """
if self.top == None:
return None
value = self.top['value']
self.top = self.top['prev']
self.count -= 1
return value
def push(self, value):
""" Adds a new value on top of the stack. """
node = {'value': value, 'prev': None}
if self.top == None:
self.top = node
else:
node['prev'] = self.top
self.top = node
self.count += 1
def peek(self):
""" Returns the value of the top element in the stack without removing
it from the data structure.
"""
if self.top == None:
return None
return self.top['value']
|
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1:
return l2
if not l2:
return l1
res = ListNode(-1)
if l1.val<l2.val:
res.val = l1.val
res.next = self.mergeTwoLists(l1.next,l2)
else:
res.val = l2.val
res.next = self.mergeTwoLists(l1,l2.next)
return res
|
class Solution:
def merge_two_lists(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1:
return l2
if not l2:
return l1
res = list_node(-1)
if l1.val < l2.val:
res.val = l1.val
res.next = self.mergeTwoLists(l1.next, l2)
else:
res.val = l2.val
res.next = self.mergeTwoLists(l1, l2.next)
return res
|
# Depth-first Search
# Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing subsequence should be at least 2 .
#
# Example:
# Input: [4, 6, 7, 7]
# Output: [[4, 6], [4, 7], [4, 6, 7], [4, 6, 7, 7], [6, 7], [6, 7, 7], [7,7], [4,7,7]]
# Note:
# The length of the given array will not exceed 15.
# The range of integer in the given array is [-100,100].
# The given array may contain duplicates, and two equal integers should also be considered as a special case of increasing sequence.
class Solution:
def findSubsequences(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
self.subsets(nums, 0, [], res)
return res
def subsets(self, nums, index, temp, res):
if len(nums) >= index and len(temp) >= 2:
res.append(temp[:])
used = {}
for i in range(index, len(nums)):
if len(temp) > 0 and temp[-1] > nums[i]:
continue
if nums[i] in used:
continue
used[nums[i]] = True
temp.append(nums[i])
self.subsets(nums, i+1, temp, res)
temp.pop()
|
class Solution:
def find_subsequences(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
self.subsets(nums, 0, [], res)
return res
def subsets(self, nums, index, temp, res):
if len(nums) >= index and len(temp) >= 2:
res.append(temp[:])
used = {}
for i in range(index, len(nums)):
if len(temp) > 0 and temp[-1] > nums[i]:
continue
if nums[i] in used:
continue
used[nums[i]] = True
temp.append(nums[i])
self.subsets(nums, i + 1, temp, res)
temp.pop()
|
odds = {1, 3, 5, 7}
evens = set([0, 2, 4, 6, 8])
print(odds.union(evens))
odds.intersection()
odds.difference()
|
odds = {1, 3, 5, 7}
evens = set([0, 2, 4, 6, 8])
print(odds.union(evens))
odds.intersection()
odds.difference()
|
def f1():
print(11)
yield
print(22)
yield
print(33)
def f2():
print(55)
yield
print(66)
yield
print(77)
v1 = f1()
v2 = f2()
next(v1) # v1.send(None)
next(v2) # v1.send(None)
next(v1) # v1.send(None)
next(v2) # v1.send(None)
next(v1) # v1.send(None)
next(v2) # v1.send(None)
|
def f1():
print(11)
yield
print(22)
yield
print(33)
def f2():
print(55)
yield
print(66)
yield
print(77)
v1 = f1()
v2 = f2()
next(v1)
next(v2)
next(v1)
next(v2)
next(v1)
next(v2)
|
## Gerenators
def mygenerator(x):
for i in range(x):
yield i
values = mygenerator(100)
for i in values:
print(i)
print(next(mygenerator))
|
def mygenerator(x):
for i in range(x):
yield i
values = mygenerator(100)
for i in values:
print(i)
print(next(mygenerator))
|
__author__ = 'yinjun'
#@see http://www.jiuzhang.com/solutions/longest-common-subsequence/
class Solution:
"""
@param A, B: Two strings.
@return: The length of longest common subsequence of A and B.
"""
def longestCommonSubsequence(self, A, B):
# write your code here
x = len(A)
y = len(B)
dp = [[0 for j in range(y+1)] for i in range(x+1)]
for i in range(1, x+1):
for j in range(1, y+1):
if A[i-1] == B[j-1]:
dp[i][j] = dp[i-1][j-1] + 1
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])
return dp[x][y]
|
__author__ = 'yinjun'
class Solution:
"""
@param A, B: Two strings.
@return: The length of longest common subsequence of A and B.
"""
def longest_common_subsequence(self, A, B):
x = len(A)
y = len(B)
dp = [[0 for j in range(y + 1)] for i in range(x + 1)]
for i in range(1, x + 1):
for j in range(1, y + 1):
if A[i - 1] == B[j - 1]:
dp[i][j] = dp[i - 1][j - 1] + 1
else:
dp[i][j] = max(dp[i - 1][j], dp[i][j - 1])
return dp[x][y]
|
class Node:
def __init__(self, key):
self.key = key
self.child = []
def newNode(key):
temp = Node(key)
return temp
def LevelOrderTraversal(root):
if (root == None):
return;
# Standard level order traversal code
# using queue
q = [] # Create a queue
q.append(root); # Enqueue root
while (len(q) != 0):
n = len(q);
# If this node has children
while (n > 0):
# Dequeue an item from queue and print it
p = q[0]
q.pop(0);
print(p.key, end='->')
if len(p.child) > 0:
for e in p.child:
print(e.key.get("name"), end=",")
print()
# Enqueue all children of the dequeued item
for i in range(len(p.child)):
q.append(p.child[i]);
n -= 1
print() # Print new line between two levels
def add_node(root, index, value):
if (root == None):
return;
# Standard level order traversal code
# using queue
q = [] # Create a queue
q.append(root); # Enqueue root
while (len(q) != 0):
n = len(q);
# If this node has children
while (n > 0):
p = q[0]
q.pop(0);
tmp_key = {'id': p.key['id'], 'name': p.key['name']}
if tmp_key == index:
tmp_value = {'id': value['id'], 'name': value['name']}
if len(list(filter(lambda e: {'id': e.key['id'], 'name': e.key['name']} == tmp_value, p.child))) == 0:
p.child.append(newNode(value))
# Enqueue all children of the dequeued item
for i in range(len(p.child)):
q.append(p.child[i]);
n -= 1
def get_direct_sub_node(root, index):
if root is None:
return
# Standard level order traversal code
# using queue
q = [] # Create a queue
q.append(root) # Enqueue root
while len(q) != 0:
n = len(q)
# If this node has children
while n > 0:
p = q[0]
q.pop(0)
if index['id']: # if id != None
if index['id'] == p.key['id']:
return p.key, p.child
else:
tmp_key = {"id": p.key["id"], "name": p.key["name"]}
if tmp_key == index:
return p.key, p.child
# Enqueue all children of the dequeued item
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
return None
def find_node_by_canonicalPath(root, path):
if root is None:
return
q = [] # Create a queue
q.append(root) # Enqueue root
while len(q) != 0:
n = len(q)
# If this node has children
while n > 0:
p = q[0]
q.pop(0)
if p.key.get("canonicalPath") == path:
return p
# Enqueue all children of the dequeued item
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
return None
|
class Node:
def __init__(self, key):
self.key = key
self.child = []
def new_node(key):
temp = node(key)
return temp
def level_order_traversal(root):
if root == None:
return
q = []
q.append(root)
while len(q) != 0:
n = len(q)
while n > 0:
p = q[0]
q.pop(0)
print(p.key, end='->')
if len(p.child) > 0:
for e in p.child:
print(e.key.get('name'), end=',')
print()
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
print()
def add_node(root, index, value):
if root == None:
return
q = []
q.append(root)
while len(q) != 0:
n = len(q)
while n > 0:
p = q[0]
q.pop(0)
tmp_key = {'id': p.key['id'], 'name': p.key['name']}
if tmp_key == index:
tmp_value = {'id': value['id'], 'name': value['name']}
if len(list(filter(lambda e: {'id': e.key['id'], 'name': e.key['name']} == tmp_value, p.child))) == 0:
p.child.append(new_node(value))
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
def get_direct_sub_node(root, index):
if root is None:
return
q = []
q.append(root)
while len(q) != 0:
n = len(q)
while n > 0:
p = q[0]
q.pop(0)
if index['id']:
if index['id'] == p.key['id']:
return (p.key, p.child)
else:
tmp_key = {'id': p.key['id'], 'name': p.key['name']}
if tmp_key == index:
return (p.key, p.child)
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
return None
def find_node_by_canonical_path(root, path):
if root is None:
return
q = []
q.append(root)
while len(q) != 0:
n = len(q)
while n > 0:
p = q[0]
q.pop(0)
if p.key.get('canonicalPath') == path:
return p
for i in range(len(p.child)):
q.append(p.child[i])
n -= 1
return None
|
def add_up(nums):
return sum(nums)
def test_answer():
assert add_up([1,2,2]) == 5
|
def add_up(nums):
return sum(nums)
def test_answer():
assert add_up([1, 2, 2]) == 5
|
#!/usr/bin/python3
def read_file(filename=""):
'''open a given file'''
with open(filename, 'r') as f:
print("{}".format(f.read()), end="")
|
def read_file(filename=''):
"""open a given file"""
with open(filename, 'r') as f:
print('{}'.format(f.read()), end='')
|
class Node:
def __init__(self, x, y):
self.g = 0
self.h = 0
self.f = 0
self.parent = None
self.cost = 1
self.x = x
self.y = y
self.left_child = None
self.right_child = None
self.top_child = None
self.down_child = None
def update_h(self, goal):
self.h = abs(self.x - goal.x) + abs(self.y - goal.y)
self.f = self.h + self.g
def update_hnew(self, goalC):
self.h = goalC - self.g
self.f = self.h + self.g
def update_g(self, new_g):
self.g = new_g
self.f = new_g + self.h
def update_f(self, new_f):
self.f = new_f
def print(self):
print("(", self.x, ", ", self.y, ")")
def traverse_children(self, i):
if i == 0: return self.right_child
if i == 1: return self.left_child
if i == 2: return self.top_child
return self.down_child
|
class Node:
def __init__(self, x, y):
self.g = 0
self.h = 0
self.f = 0
self.parent = None
self.cost = 1
self.x = x
self.y = y
self.left_child = None
self.right_child = None
self.top_child = None
self.down_child = None
def update_h(self, goal):
self.h = abs(self.x - goal.x) + abs(self.y - goal.y)
self.f = self.h + self.g
def update_hnew(self, goalC):
self.h = goalC - self.g
self.f = self.h + self.g
def update_g(self, new_g):
self.g = new_g
self.f = new_g + self.h
def update_f(self, new_f):
self.f = new_f
def print(self):
print('(', self.x, ', ', self.y, ')')
def traverse_children(self, i):
if i == 0:
return self.right_child
if i == 1:
return self.left_child
if i == 2:
return self.top_child
return self.down_child
|
def clever_format(num, format="%.2f"):
if num > 1e12:
return format % (num / 1e12) + "T"
if num > 1e9:
return format % (num / 1e9) + "G"
if num > 1e6:
return format % (num / 1e6) + "M"
if num > 1e3:
return format % (num / 1e3) + "K"
|
def clever_format(num, format='%.2f'):
if num > 1000000000000.0:
return format % (num / 1000000000000.0) + 'T'
if num > 1000000000.0:
return format % (num / 1000000000.0) + 'G'
if num > 1000000.0:
return format % (num / 1000000.0) + 'M'
if num > 1000.0:
return format % (num / 1000.0) + 'K'
|
## PACKAGE THIS FUNCTION INTO MAVENN
def split_dataset(data_df,
set_col='set',
train_set_name='training',
val_set_name='validation',
test_set_name='test'):
"""
Splits dataset into
(1) `trainval_df`: training + validation set
(2) `train_df`: test set
based on the value of the column `set_col`, which is then dropped. Also
adds a `val_set_name` column to trainval_df indicating which data is to be
reserved for validation (as opposed to gradient descent).
Parameters
----------
data_df: (pd.DataFrame)
Dataset to split
set_col: (str)
Column of data_df indicating training, validation, or test set
train_set_name: (str)
Value in data_df[set_col] indicating allocation to training set
val_set_name: (str)
Value in data_df[set_col] indicating allocation to validation set
test_set_name: (str)
Value in data_df[set_col] indicating allocation to test set
Returns
-------
trainval_df: (pd.DataFrame)
Training + validation dataset. Contains a column named `val_set_name`
indicating whether a row is allocated to the training or validation
set.
test_df: (pd.DataFrame)
Test dataset.
"""
# Specify training + validation sets
trainval_ix = data_df[set_col].isin([train_set_name, val_set_name])
trainval_df = data_df[trainval_ix].copy().reset_index(drop=True)
trainval_df.insert(loc=0,
column=val_set_name,
value=trainval_df[set_col].eq(val_set_name))
trainval_df.drop(columns=set_col, inplace=True)
# Specify test set
test_ix = data_df[set_col].eq(test_set_name)
test_df = data_df[test_ix].copy().reset_index(drop=True)
test_df.drop(columns=set_col, inplace=True)
# return
return trainval_df, test_df
|
def split_dataset(data_df, set_col='set', train_set_name='training', val_set_name='validation', test_set_name='test'):
"""
Splits dataset into
(1) `trainval_df`: training + validation set
(2) `train_df`: test set
based on the value of the column `set_col`, which is then dropped. Also
adds a `val_set_name` column to trainval_df indicating which data is to be
reserved for validation (as opposed to gradient descent).
Parameters
----------
data_df: (pd.DataFrame)
Dataset to split
set_col: (str)
Column of data_df indicating training, validation, or test set
train_set_name: (str)
Value in data_df[set_col] indicating allocation to training set
val_set_name: (str)
Value in data_df[set_col] indicating allocation to validation set
test_set_name: (str)
Value in data_df[set_col] indicating allocation to test set
Returns
-------
trainval_df: (pd.DataFrame)
Training + validation dataset. Contains a column named `val_set_name`
indicating whether a row is allocated to the training or validation
set.
test_df: (pd.DataFrame)
Test dataset.
"""
trainval_ix = data_df[set_col].isin([train_set_name, val_set_name])
trainval_df = data_df[trainval_ix].copy().reset_index(drop=True)
trainval_df.insert(loc=0, column=val_set_name, value=trainval_df[set_col].eq(val_set_name))
trainval_df.drop(columns=set_col, inplace=True)
test_ix = data_df[set_col].eq(test_set_name)
test_df = data_df[test_ix].copy().reset_index(drop=True)
test_df.drop(columns=set_col, inplace=True)
return (trainval_df, test_df)
|
n,k=map(int,input().split())
x=sorted(list(map(int,input().split())))
a=[]
for i in range(n-k+1):
l=x[i]
r=x[i+k-1]
a.append(min(abs(l)+abs(r-l),abs(r)+abs(l-r)))
print(min(a))
|
(n, k) = map(int, input().split())
x = sorted(list(map(int, input().split())))
a = []
for i in range(n - k + 1):
l = x[i]
r = x[i + k - 1]
a.append(min(abs(l) + abs(r - l), abs(r) + abs(l - r)))
print(min(a))
|
class Cell:
def __init__(self, alive = False):
self.currentState = alive
self.futureState = alive
def updateState(self, state):
self.futureState = state
def refresh(self):
self.currentState = self.futureState
def isAlive(self):
return self.currentState
def __str__(self):
return "O" if self.currentState else "."
|
class Cell:
def __init__(self, alive=False):
self.currentState = alive
self.futureState = alive
def update_state(self, state):
self.futureState = state
def refresh(self):
self.currentState = self.futureState
def is_alive(self):
return self.currentState
def __str__(self):
return 'O' if self.currentState else '.'
|
str1 = input()
str2 = input()
a = [0 for i in range(0,27)]
for i in str1:
a[ord(i)-ord('a')] += 1
for i in str2:
a[ord(i)-ord('a')] -= 1
ans = 0
for i in a:
if ( i < 0 ):
ans += -i
else:
ans += i
print(ans)
|
str1 = input()
str2 = input()
a = [0 for i in range(0, 27)]
for i in str1:
a[ord(i) - ord('a')] += 1
for i in str2:
a[ord(i) - ord('a')] -= 1
ans = 0
for i in a:
if i < 0:
ans += -i
else:
ans += i
print(ans)
|
class GameInfo(object):
"""
holds player information for the current game
"""
def __init__(self, team_name, match_token, team_password, client_token = ''):
self.client_token = client_token
self.team_name = team_name
self.match_token = match_token
self.team_password = team_password
|
class Gameinfo(object):
"""
holds player information for the current game
"""
def __init__(self, team_name, match_token, team_password, client_token=''):
self.client_token = client_token
self.team_name = team_name
self.match_token = match_token
self.team_password = team_password
|
#############################################################################
#
#
# RGB/A Colour webGenFramework module to BFA c7
#
#
#############################################################################
""" This is a rgb/a colour module for bfa colours.
Dependencies:
None
note:: Author(s): Mitch last-check: 07.07.2021 """
# noinspection PyUnusedLocal
def __preload__(forClient: bool = True):
pass
# noinspection PyUnusedLocal
def __postload__(forClient: bool = True):
pass
class Colour:
""" Base class for representing any colour.
:param name: Name of this colour.
note:: Author(s): Mitch """
def __init__(self, name):
self.name = name
def toCSS(self):
""" To be overridden. """
pass
class RGB_Colour(Colour):
""" Represents a colour in rgb encoding.
:param name: Name of this colour.
:param red: Red value of this colour.
:param green: Green value of this colour.
:param blue: Blue value of this colour.
note:: Author(s): Mitch """
def __init__(self, name: str, red: int, green: int, blue: int):
super().__init__(name)
self.red = red
self.green = green
self.blue = blue
def toCSS(self):
""" Converts the colour to a CSS readable string.
:return: CSS string.
note:: Author(s): Mitch """
return "rgb(" + ",".join([str(self.red), str(self.green), str(self.blue)]) + ")"
@classmethod
def fromHex(cls, name: str, hexString: str):
""" Alternative constructor to instantiate a colour via its hex-string definition.
:param name: Name of the colour
:param hexString: The hex-string containing the rgb values of the colour.
:return: The rgb colour corresponding to the hex-string.
note:: Author(s): Mitch """
return cls(name, int(hexString[:2], 16), int(hexString[2:4], 16), int(hexString[4:], 16))
class RGBA_Colour(RGB_Colour):
""" Represents a colour in rgba encoding.
:param name: Name of this colour.
:param alpha: Alpha(opacity) value of this colour.
note:: Author(s): Mitch """
def __init__(self, name: str, red: int, green: int, blue: int, alpha: float):
super().__init__(name, red, green, blue)
self.alpha = alpha
def toCSS(self):
""" Converts the colour to a CSS readable string.
:return: CSS string.
note:: Author(s): Mitch """
return "rgba(" + ",".join([str(self.red), str(self.green), str(self.blue), str("%.2f" % self.alpha)]) + ")"
def toRGB(self):
""" Converts the RGBA colour to an RGB colour.
:return: RGB colour disregarding the alpha value.
note:: Author(s): Mitch """
return RGB_Colour(self.name, self.red, self.green, self.blue)
def createVariant(self, variation: str):
""" Creates a variant of this colour.
:param variation: The type of variation that's desired.
:return: RGBA colour variation if applicable, otherwise None.
note:: Author(s): Mitch """
if variation == 'faint':
if self.alpha > 0.21:
return RGBA_Colour(variation + self.name, self.red, self.green, self.blue, self.alpha-0.21)
elif variation == 'fainter':
if self.alpha > 0.8:
return RGBA_Colour(variation + self.name, self.red, self.green, self.blue, self.alpha-0.8)
return None
|
""" This is a rgb/a colour module for bfa colours.
Dependencies:
None
note:: Author(s): Mitch last-check: 07.07.2021 """
def __preload__(forClient: bool=True):
pass
def __postload__(forClient: bool=True):
pass
class Colour:
""" Base class for representing any colour.
:param name: Name of this colour.
note:: Author(s): Mitch """
def __init__(self, name):
self.name = name
def to_css(self):
""" To be overridden. """
pass
class Rgb_Colour(Colour):
""" Represents a colour in rgb encoding.
:param name: Name of this colour.
:param red: Red value of this colour.
:param green: Green value of this colour.
:param blue: Blue value of this colour.
note:: Author(s): Mitch """
def __init__(self, name: str, red: int, green: int, blue: int):
super().__init__(name)
self.red = red
self.green = green
self.blue = blue
def to_css(self):
""" Converts the colour to a CSS readable string.
:return: CSS string.
note:: Author(s): Mitch """
return 'rgb(' + ','.join([str(self.red), str(self.green), str(self.blue)]) + ')'
@classmethod
def from_hex(cls, name: str, hexString: str):
""" Alternative constructor to instantiate a colour via its hex-string definition.
:param name: Name of the colour
:param hexString: The hex-string containing the rgb values of the colour.
:return: The rgb colour corresponding to the hex-string.
note:: Author(s): Mitch """
return cls(name, int(hexString[:2], 16), int(hexString[2:4], 16), int(hexString[4:], 16))
class Rgba_Colour(RGB_Colour):
""" Represents a colour in rgba encoding.
:param name: Name of this colour.
:param alpha: Alpha(opacity) value of this colour.
note:: Author(s): Mitch """
def __init__(self, name: str, red: int, green: int, blue: int, alpha: float):
super().__init__(name, red, green, blue)
self.alpha = alpha
def to_css(self):
""" Converts the colour to a CSS readable string.
:return: CSS string.
note:: Author(s): Mitch """
return 'rgba(' + ','.join([str(self.red), str(self.green), str(self.blue), str('%.2f' % self.alpha)]) + ')'
def to_rgb(self):
""" Converts the RGBA colour to an RGB colour.
:return: RGB colour disregarding the alpha value.
note:: Author(s): Mitch """
return rgb__colour(self.name, self.red, self.green, self.blue)
def create_variant(self, variation: str):
""" Creates a variant of this colour.
:param variation: The type of variation that's desired.
:return: RGBA colour variation if applicable, otherwise None.
note:: Author(s): Mitch """
if variation == 'faint':
if self.alpha > 0.21:
return rgba__colour(variation + self.name, self.red, self.green, self.blue, self.alpha - 0.21)
elif variation == 'fainter':
if self.alpha > 0.8:
return rgba__colour(variation + self.name, self.red, self.green, self.blue, self.alpha - 0.8)
return None
|
def serializeCgiToServer(coors): #coors is a n by 2 2D array of doubles
string = ""
for i in range(0, len(coors)):
string += str(coors[i][0]) + "," + str(coors[i][1]) # add comma between x and y coor
string += ";" # add semicolon to seperate coors
string += "\n" #ending character
return string.encode('utf-8')
def deserializeCgiToServer(string):
string = string.decode('utf-8')
splitted = string.split(";")
coors = [None]*(len(splitted)-1) # create list: [None, None, None,...] with length len(splitted)-1
for i in range(0,len(splitted)-1):
coors[i] = splitted[i].split(",")
coors[i] = [float(x) for x in coors[i]] # convert to float
return coors
def serializeServerToCgi(distanceMatrix): # distanceMatrix is matrix of doubles
string = ""
for i in range(0, len(distanceMatrix)):
for j in range(0, len(distanceMatrix[i])):
string += str(distanceMatrix[i][j]) + "," # seperate distances with comma
string += ";" # seperate rows with semicolon
string += "\n" # ending character
return string.encode('utf-8')
def deserializeServerToCgi(string):
string = string.decode('utf-8')
splitted = string.split(";")
distanceMatrix = [None]*(len(splitted)-1)
for i in range(0,len(splitted)-1):
row = splitted[i].split(",")
distanceMatrix[i] = row[0:len(row)-1]
distanceMatrix[i] = [float(x) for x in distanceMatrix[i]] # convert to float
return distanceMatrix
def testFunctions():
string = serializeCgiToServer([[1,2]])
coors = deserializeCgiToServer(string)
print(coors)
string = serializeServerToCgi([[10,6,5]])
distanceMatrix = deserializeServerToCgi(string)
print(distanceMatrix)
#if __name__ == '__main__':
# testFunctions()
|
def serialize_cgi_to_server(coors):
string = ''
for i in range(0, len(coors)):
string += str(coors[i][0]) + ',' + str(coors[i][1])
string += ';'
string += '\n'
return string.encode('utf-8')
def deserialize_cgi_to_server(string):
string = string.decode('utf-8')
splitted = string.split(';')
coors = [None] * (len(splitted) - 1)
for i in range(0, len(splitted) - 1):
coors[i] = splitted[i].split(',')
coors[i] = [float(x) for x in coors[i]]
return coors
def serialize_server_to_cgi(distanceMatrix):
string = ''
for i in range(0, len(distanceMatrix)):
for j in range(0, len(distanceMatrix[i])):
string += str(distanceMatrix[i][j]) + ','
string += ';'
string += '\n'
return string.encode('utf-8')
def deserialize_server_to_cgi(string):
string = string.decode('utf-8')
splitted = string.split(';')
distance_matrix = [None] * (len(splitted) - 1)
for i in range(0, len(splitted) - 1):
row = splitted[i].split(',')
distanceMatrix[i] = row[0:len(row) - 1]
distanceMatrix[i] = [float(x) for x in distanceMatrix[i]]
return distanceMatrix
def test_functions():
string = serialize_cgi_to_server([[1, 2]])
coors = deserialize_cgi_to_server(string)
print(coors)
string = serialize_server_to_cgi([[10, 6, 5]])
distance_matrix = deserialize_server_to_cgi(string)
print(distanceMatrix)
|
#
# PySNMP MIB module CISCOSB-SENSORENTMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-SENSORENTMIB
# Produced by pysmi-0.3.4 at Wed May 1 12:23:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
rlEnv, = mibBuilder.importSymbols("CISCOSB-HWENVIROMENT", "rlEnv")
entityPhysicalGroup, entPhysicalIndex = mibBuilder.importSymbols("ENTITY-MIB", "entityPhysicalGroup", "entPhysicalIndex")
EntitySensorValue, entPhySensorEntry = mibBuilder.importSymbols("ENTITY-SENSOR-MIB", "EntitySensorValue", "entPhySensorEntry")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
TimeTicks, ModuleIdentity, Unsigned32, Gauge32, mib_2, NotificationType, ObjectIdentity, IpAddress, Counter64, Bits, Integer32, Counter32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "Unsigned32", "Gauge32", "mib-2", "NotificationType", "ObjectIdentity", "IpAddress", "Counter64", "Bits", "Integer32", "Counter32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier")
DisplayString, TimeStamp, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention")
rlSensor = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 4))
rlSensor.setRevisions(('2003-09-21 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rlSensor.setRevisionsDescriptions(('ADDED this MODULE-IDENTITY clause.',))
if mibBuilder.loadTexts: rlSensor.setLastUpdated('200309210000Z')
if mibBuilder.loadTexts: rlSensor.setOrganization('Cisco Small Business')
if mibBuilder.loadTexts: rlSensor.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Home http://www.cisco.com/smb>;, Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>')
if mibBuilder.loadTexts: rlSensor.setDescription('The private MIB module definition for sensors in Cisco devices.')
rlEntPhySensorTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3), )
if mibBuilder.loadTexts: rlEntPhySensorTable.setStatus('current')
if mibBuilder.loadTexts: rlEntPhySensorTable.setDescription('The addition to the table of sensors maintained by the environmental monitor.')
rlEntPhySensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1), )
entPhySensorEntry.registerAugmentions(("CISCOSB-SENSORENTMIB", "rlEntPhySensorEntry"))
rlEntPhySensorEntry.setIndexNames(*entPhySensorEntry.getIndexNames())
if mibBuilder.loadTexts: rlEntPhySensorEntry.setStatus('current')
if mibBuilder.loadTexts: rlEntPhySensorEntry.setDescription('An additon to the entry in the sensor table, representing the maximum/minimum values for the sensor associated.')
rlEnvPhySensorMinValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 1), EntitySensorValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlEnvPhySensorMinValue.setStatus('current')
if mibBuilder.loadTexts: rlEnvPhySensorMinValue.setDescription('Minimum value for the Sensor being instrumented.')
rlEnvPhySensorMaxValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 2), EntitySensorValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlEnvPhySensorMaxValue.setStatus('current')
if mibBuilder.loadTexts: rlEnvPhySensorMaxValue.setDescription('Maximum value for the Sensor being instrumented.')
rlEnvPhySensorTestValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 3), EntitySensorValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlEnvPhySensorTestValue.setStatus('current')
if mibBuilder.loadTexts: rlEnvPhySensorTestValue.setDescription('Test/reference value for the Sensor being instrumented.')
mibBuilder.exportSymbols("CISCOSB-SENSORENTMIB", rlEntPhySensorEntry=rlEntPhySensorEntry, rlSensor=rlSensor, rlEnvPhySensorMaxValue=rlEnvPhySensorMaxValue, rlEnvPhySensorTestValue=rlEnvPhySensorTestValue, PYSNMP_MODULE_ID=rlSensor, rlEntPhySensorTable=rlEntPhySensorTable, rlEnvPhySensorMinValue=rlEnvPhySensorMinValue)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(rl_env,) = mibBuilder.importSymbols('CISCOSB-HWENVIROMENT', 'rlEnv')
(entity_physical_group, ent_physical_index) = mibBuilder.importSymbols('ENTITY-MIB', 'entityPhysicalGroup', 'entPhysicalIndex')
(entity_sensor_value, ent_phy_sensor_entry) = mibBuilder.importSymbols('ENTITY-SENSOR-MIB', 'EntitySensorValue', 'entPhySensorEntry')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(time_ticks, module_identity, unsigned32, gauge32, mib_2, notification_type, object_identity, ip_address, counter64, bits, integer32, counter32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'Unsigned32', 'Gauge32', 'mib-2', 'NotificationType', 'ObjectIdentity', 'IpAddress', 'Counter64', 'Bits', 'Integer32', 'Counter32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier')
(display_string, time_stamp, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'TextualConvention')
rl_sensor = module_identity((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 4))
rlSensor.setRevisions(('2003-09-21 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
rlSensor.setRevisionsDescriptions(('ADDED this MODULE-IDENTITY clause.',))
if mibBuilder.loadTexts:
rlSensor.setLastUpdated('200309210000Z')
if mibBuilder.loadTexts:
rlSensor.setOrganization('Cisco Small Business')
if mibBuilder.loadTexts:
rlSensor.setContactInfo('Postal: 170 West Tasman Drive San Jose , CA 95134-1706 USA Website: Cisco Small Business Home http://www.cisco.com/smb>;, Cisco Small Business Support Community <http://www.cisco.com/go/smallbizsupport>')
if mibBuilder.loadTexts:
rlSensor.setDescription('The private MIB module definition for sensors in Cisco devices.')
rl_ent_phy_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3))
if mibBuilder.loadTexts:
rlEntPhySensorTable.setStatus('current')
if mibBuilder.loadTexts:
rlEntPhySensorTable.setDescription('The addition to the table of sensors maintained by the environmental monitor.')
rl_ent_phy_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1))
entPhySensorEntry.registerAugmentions(('CISCOSB-SENSORENTMIB', 'rlEntPhySensorEntry'))
rlEntPhySensorEntry.setIndexNames(*entPhySensorEntry.getIndexNames())
if mibBuilder.loadTexts:
rlEntPhySensorEntry.setStatus('current')
if mibBuilder.loadTexts:
rlEntPhySensorEntry.setDescription('An additon to the entry in the sensor table, representing the maximum/minimum values for the sensor associated.')
rl_env_phy_sensor_min_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 1), entity_sensor_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlEnvPhySensorMinValue.setStatus('current')
if mibBuilder.loadTexts:
rlEnvPhySensorMinValue.setDescription('Minimum value for the Sensor being instrumented.')
rl_env_phy_sensor_max_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 2), entity_sensor_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlEnvPhySensorMaxValue.setStatus('current')
if mibBuilder.loadTexts:
rlEnvPhySensorMaxValue.setDescription('Maximum value for the Sensor being instrumented.')
rl_env_phy_sensor_test_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 83, 3, 1, 3), entity_sensor_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlEnvPhySensorTestValue.setStatus('current')
if mibBuilder.loadTexts:
rlEnvPhySensorTestValue.setDescription('Test/reference value for the Sensor being instrumented.')
mibBuilder.exportSymbols('CISCOSB-SENSORENTMIB', rlEntPhySensorEntry=rlEntPhySensorEntry, rlSensor=rlSensor, rlEnvPhySensorMaxValue=rlEnvPhySensorMaxValue, rlEnvPhySensorTestValue=rlEnvPhySensorTestValue, PYSNMP_MODULE_ID=rlSensor, rlEntPhySensorTable=rlEntPhySensorTable, rlEnvPhySensorMinValue=rlEnvPhySensorMinValue)
|
count = 0
fields = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"]
hex_not = "1234567890abcdef"
ecls = ["amb", "blu", "brn", "gry", "grn", "hzl", "oth"]
def check_pprt(pprt):
global count
flag = True
i = 0
while flag and i < len(fields):
flag = flag and fields[i] in pprt
i = i + 1
if flag:
try:
byr = int(pprt["byr"])
flag = flag and (byr >= 1920 and byr <= 2002)
iyr = int(pprt["iyr"])
flag = flag and (iyr >= 2010 and iyr <= 2020)
eyr = int(pprt["eyr"])
flag = flag and (eyr >= 2020 and eyr <= 2030)
hgt = int(pprt["hgt"][:-2])
is_cm = pprt["hgt"][-2:] == "cm"
lwr = 150 if is_cm else 59
upr = 193 if is_cm else 76
flag = flag and (hgt >= lwr and hgt <= upr)
flag = flag and pprt["hcl"][0] == "#"
for ch in pprt["hcl"][1:]:
flag = flag and ch in hex_not
flag = flag and pprt["ecl"] in ecls
flag = flag and len(pprt["pid"]) == 9
except:
flag = False
count = count + flag
pprt = dict()
while True:
try:
ln = input()
if not ln.strip():
check_pprt(pprt)
pprt = dict()
continue
data = ln.split(" ")
for d in data:
d_spl = d.split(":")
pprt[d_spl[0]] = d_spl[1]
except EOFError:
check_pprt(pprt)
break
print(count)
|
count = 0
fields = ['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid']
hex_not = '1234567890abcdef'
ecls = ['amb', 'blu', 'brn', 'gry', 'grn', 'hzl', 'oth']
def check_pprt(pprt):
global count
flag = True
i = 0
while flag and i < len(fields):
flag = flag and fields[i] in pprt
i = i + 1
if flag:
try:
byr = int(pprt['byr'])
flag = flag and (byr >= 1920 and byr <= 2002)
iyr = int(pprt['iyr'])
flag = flag and (iyr >= 2010 and iyr <= 2020)
eyr = int(pprt['eyr'])
flag = flag and (eyr >= 2020 and eyr <= 2030)
hgt = int(pprt['hgt'][:-2])
is_cm = pprt['hgt'][-2:] == 'cm'
lwr = 150 if is_cm else 59
upr = 193 if is_cm else 76
flag = flag and (hgt >= lwr and hgt <= upr)
flag = flag and pprt['hcl'][0] == '#'
for ch in pprt['hcl'][1:]:
flag = flag and ch in hex_not
flag = flag and pprt['ecl'] in ecls
flag = flag and len(pprt['pid']) == 9
except:
flag = False
count = count + flag
pprt = dict()
while True:
try:
ln = input()
if not ln.strip():
check_pprt(pprt)
pprt = dict()
continue
data = ln.split(' ')
for d in data:
d_spl = d.split(':')
pprt[d_spl[0]] = d_spl[1]
except EOFError:
check_pprt(pprt)
break
print(count)
|
#OPERATOR PENUGASAN
#input mengisi nilai
nilai_x=int(input("masukan nilai x: "))
#operator penjumlahan
nilai_x +=20
print("hasil jumlah: ", nilai_x)
nilai_x=int(input("masukan nilai x: "))
#operator pengurangan
nilai_x -=10
print("hasil kurang:",nilai_x)
nilai_x=int(input("masukan nilai x: "))
#operator perkalian
nilai_x *=10
print("hasil kali:",nilai_x)
nilai_x=int(input("masukan nilai x: "))
#operator pembagian
nilai_x /=30
print("hasil bagi:",nilai_x)
nilai_x=int(input("masukan nilai x: "))
#operator perpangkatan
nilai_x **=5
print("hasil pangkat:",nilai_x)
nilai_x=int(input("masukan nilai x: "))
#operator sisa bagi
nilai_x %=35
print("hasil sisa bagi:",nilai_x)
|
nilai_x = int(input('masukan nilai x: '))
nilai_x += 20
print('hasil jumlah: ', nilai_x)
nilai_x = int(input('masukan nilai x: '))
nilai_x -= 10
print('hasil kurang:', nilai_x)
nilai_x = int(input('masukan nilai x: '))
nilai_x *= 10
print('hasil kali:', nilai_x)
nilai_x = int(input('masukan nilai x: '))
nilai_x /= 30
print('hasil bagi:', nilai_x)
nilai_x = int(input('masukan nilai x: '))
nilai_x **= 5
print('hasil pangkat:', nilai_x)
nilai_x = int(input('masukan nilai x: '))
nilai_x %= 35
print('hasil sisa bagi:', nilai_x)
|
#author SANKALP SAXENA
# Enter your code here. Read input from STDIN. Print output to STDOUT
n = int(input())
s = set()
for i in range(0, n) :
s.add(input())
print(len(s))
|
n = int(input())
s = set()
for i in range(0, n):
s.add(input())
print(len(s))
|
def find_prefix_entry(message, dictionary):
"""
Find the longest entry in dictionary which is a prefix of the given message
"""
for entry in dictionary[::-1]:
if message.startswith(entry[0]):
return dictionary.index(entry)
return -1
def lz78_encode(message, *args, **kwargs):
dictionary = []
while len(message) > 0:
prefix_entry = find_prefix_entry(message, dictionary)
if prefix_entry == -1:
next_char = message[0]
entry = (next_char, (0, next_char))
message = message[1:]
else:
prefix = dictionary[prefix_entry][0]
next_char = message[len(prefix)]
value = prefix + next_char
entry = (value, (prefix_entry + 1, next_char))
message = message[len(value) :]
dictionary.append(entry)
return dictionary
def lz78_decode(outputs, *args, **kwargs):
dictionary = []
message = ""
for i, c in outputs:
if i == 0:
suffix = c
dictionary.append((c, (i, c)))
else:
entry = dictionary[i - 1]
suffix = entry[0] + c
dictionary.append((entry[0] + c, (i, c)))
message += suffix
return message
|
def find_prefix_entry(message, dictionary):
"""
Find the longest entry in dictionary which is a prefix of the given message
"""
for entry in dictionary[::-1]:
if message.startswith(entry[0]):
return dictionary.index(entry)
return -1
def lz78_encode(message, *args, **kwargs):
dictionary = []
while len(message) > 0:
prefix_entry = find_prefix_entry(message, dictionary)
if prefix_entry == -1:
next_char = message[0]
entry = (next_char, (0, next_char))
message = message[1:]
else:
prefix = dictionary[prefix_entry][0]
next_char = message[len(prefix)]
value = prefix + next_char
entry = (value, (prefix_entry + 1, next_char))
message = message[len(value):]
dictionary.append(entry)
return dictionary
def lz78_decode(outputs, *args, **kwargs):
dictionary = []
message = ''
for (i, c) in outputs:
if i == 0:
suffix = c
dictionary.append((c, (i, c)))
else:
entry = dictionary[i - 1]
suffix = entry[0] + c
dictionary.append((entry[0] + c, (i, c)))
message += suffix
return message
|
def swap_case(s):
swapped = s.swapcase()
return swapped
|
def swap_case(s):
swapped = s.swapcase()
return swapped
|
#-----------------------------------------------------------------------------
# Runtime: 84ms
# Memory Usage:
# Link:
#-----------------------------------------------------------------------------
class Solution:
def multiply(self, num1: str, num2: str) -> str:
if num1 == '0' or num2 == '0':
return '0'
len_num1 = len(num1)
len_num2 = len(num2)
num1 = num1[::-1]
num2 = num2[::-1]
result_list = [0] * 220
dic = {'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9}
for i in range(len_num1):
for j in range(len_num2):
result_list[i + j] += dic[num1[i]] * dic[num2[j]]
carry = 0
result = ""
for i in range(len_num1 + len_num2):
carry, rest = divmod(result_list[i] + carry, 10)
result = str(rest) + result
for i, ch in enumerate(result):
if ch != '0':
break
return result[i:]
|
class Solution:
def multiply(self, num1: str, num2: str) -> str:
if num1 == '0' or num2 == '0':
return '0'
len_num1 = len(num1)
len_num2 = len(num2)
num1 = num1[::-1]
num2 = num2[::-1]
result_list = [0] * 220
dic = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}
for i in range(len_num1):
for j in range(len_num2):
result_list[i + j] += dic[num1[i]] * dic[num2[j]]
carry = 0
result = ''
for i in range(len_num1 + len_num2):
(carry, rest) = divmod(result_list[i] + carry, 10)
result = str(rest) + result
for (i, ch) in enumerate(result):
if ch != '0':
break
return result[i:]
|
"""
[7/23/2014] Challenge#172 [Intermediate] Image Rendering 101...010101000101
https://www.reddit.com/r/dailyprogrammer/comments/2ba3nf/7232014_challenge172_intermediate_image_rendering/
#Description
You may have noticed from our
[easy](http://www.reddit.com/r/dailyprogrammer/comments/2ba3g3/7212014_challenge_172_easy/) challenge that finding a
program to render the PBM format is either very difficult or usually just a spammy program that no one would dare
download.
Your mission today, given the knowledge you have gained from last weeks challenge is to create a Renderer for the PBM
format.
For those who didn't do mondays challenge, here's a recap
* a PBM usually starts with 'P1' denoting that it is a .PBM file
* The next line consists of 2 integers representing the width and height of our image
* Finally, the pixel data. 0 is white and 1 is black.
This Wikipedia article will tell you more
http://en.wikipedia.org/wiki/Netpbm_format
#Formal Inputs & Outputs
##Input description
On standard console input you should be prompted to pass the .PBM file you have created from the easy challenge.
##Output description
The output will be a .PBM file rendered to the screen following the conventions where 0 is a white pixel, 1 is a black
pixel
#Notes
This task is considerably harder in some languages. Some languages have large support for image handling (.NET and
others) whilst some will require a bit more grunt work (C and even Python) .
It's up to you to decide the language, but easier alternatives probably do exist.
#Bonus
Create a renderer for the other versions of .PBM (P2 and P3) and output these to the screen.
#Finally
Have a good challenge idea?
Consider submitting it to /r/dailyprogrammer_ideas
"""
def main():
pass
if __name__ == "__main__":
main()
|
"""
[7/23/2014] Challenge#172 [Intermediate] Image Rendering 101...010101000101
https://www.reddit.com/r/dailyprogrammer/comments/2ba3nf/7232014_challenge172_intermediate_image_rendering/
#Description
You may have noticed from our
[easy](http://www.reddit.com/r/dailyprogrammer/comments/2ba3g3/7212014_challenge_172_easy/) challenge that finding a
program to render the PBM format is either very difficult or usually just a spammy program that no one would dare
download.
Your mission today, given the knowledge you have gained from last weeks challenge is to create a Renderer for the PBM
format.
For those who didn't do mondays challenge, here's a recap
* a PBM usually starts with 'P1' denoting that it is a .PBM file
* The next line consists of 2 integers representing the width and height of our image
* Finally, the pixel data. 0 is white and 1 is black.
This Wikipedia article will tell you more
http://en.wikipedia.org/wiki/Netpbm_format
#Formal Inputs & Outputs
##Input description
On standard console input you should be prompted to pass the .PBM file you have created from the easy challenge.
##Output description
The output will be a .PBM file rendered to the screen following the conventions where 0 is a white pixel, 1 is a black
pixel
#Notes
This task is considerably harder in some languages. Some languages have large support for image handling (.NET and
others) whilst some will require a bit more grunt work (C and even Python) .
It's up to you to decide the language, but easier alternatives probably do exist.
#Bonus
Create a renderer for the other versions of .PBM (P2 and P3) and output these to the screen.
#Finally
Have a good challenge idea?
Consider submitting it to /r/dailyprogrammer_ideas
"""
def main():
pass
if __name__ == '__main__':
main()
|
# This file is part of the DMComm project by BladeSabre. License: MIT.
"""
`dmcomm.protocol.barcode`
=========================
Functions for generating EAN-13 patterns.
"""
# https://en.wikipedia.org/wiki/International_Article_Number
_START_END = "101"
_CENTRE = "01010"
_CODES = {
"L": ["0001101", "0011001", "0010011", "0111101", "0100011", "0110001", "0101111", "0111011", "0110111", "0001011"],
"G": ["0100111", "0110011", "0011011", "0100001", "0011101", "0111001", "0000101", "0010001", "0001001", "0010111"],
"R": ["1110010", "1100110", "1101100", "1000010", "1011100", "1001110", "1010000", "1000100", "1001000", "1110100"],
}
_SELECT = ["LLLLLL", "LLGLGG", "LLGGLG", "LLGGGL", "LGLLGG", "LGGLLG", "LGGGLL", "LGLGLG", "LGLGGL", "LGGLGL"]
def ean13_bits(barcode_number: list) -> str:
result = [_START_END]
selection = _SELECT[barcode_number[0]]
for i in range(6):
digit = barcode_number[i + 1]
code = _CODES[selection[i]][digit]
result.append(code)
result.append(_CENTRE)
for i in range(6):
digit = barcode_number[i + 7]
code = _CODES["R"][digit]
result.append(code)
result.append(_START_END)
return "".join(result)
def run_lengths(seq) -> list:
if len(seq) == 0:
return []
result = []
prev = seq[0]
count = 1
for item in seq[1:]:
if item == prev:
count += 1
else:
result.append(count)
count = 1
prev = item
result.append(count)
return result
def ean13_lengths(barcode_number: list) -> list:
return run_lengths(ean13_bits(barcode_number))
|
"""
`dmcomm.protocol.barcode`
=========================
Functions for generating EAN-13 patterns.
"""
_start_end = '101'
_centre = '01010'
_codes = {'L': ['0001101', '0011001', '0010011', '0111101', '0100011', '0110001', '0101111', '0111011', '0110111', '0001011'], 'G': ['0100111', '0110011', '0011011', '0100001', '0011101', '0111001', '0000101', '0010001', '0001001', '0010111'], 'R': ['1110010', '1100110', '1101100', '1000010', '1011100', '1001110', '1010000', '1000100', '1001000', '1110100']}
_select = ['LLLLLL', 'LLGLGG', 'LLGGLG', 'LLGGGL', 'LGLLGG', 'LGGLLG', 'LGGGLL', 'LGLGLG', 'LGLGGL', 'LGGLGL']
def ean13_bits(barcode_number: list) -> str:
result = [_START_END]
selection = _SELECT[barcode_number[0]]
for i in range(6):
digit = barcode_number[i + 1]
code = _CODES[selection[i]][digit]
result.append(code)
result.append(_CENTRE)
for i in range(6):
digit = barcode_number[i + 7]
code = _CODES['R'][digit]
result.append(code)
result.append(_START_END)
return ''.join(result)
def run_lengths(seq) -> list:
if len(seq) == 0:
return []
result = []
prev = seq[0]
count = 1
for item in seq[1:]:
if item == prev:
count += 1
else:
result.append(count)
count = 1
prev = item
result.append(count)
return result
def ean13_lengths(barcode_number: list) -> list:
return run_lengths(ean13_bits(barcode_number))
|
# program that takes a text file as input and returns the number of words of a given text file.
def count_words(filepath):
with open(filepath) as f:
data = f.read()
data.replace(",", " ")
return len(data.split(" "))
print(count_words("words.txt"))
|
def count_words(filepath):
with open(filepath) as f:
data = f.read()
data.replace(',', ' ')
return len(data.split(' '))
print(count_words('words.txt'))
|
#get the user input for Position
position = input("Position : ")
while position != "M" and position != "m" and position != "S" and position != "s":
print("Invalid Input")
position = input("Position : ")
#get the user input for sales amount
sales = input("Sales amount : ")
sales = float(sales)
#get the basic salary by the user input
if position == "M" or position == "m":
basic = 50000
else:
basic = 75000
#check the sales amount for commission
if sales >= 30000:
commission = sales * 10 / 100
else:
commission = 0
#calculate the salary
salary = basic + commission
#display the commission and the salary
print("Commission : " + str(commission))
print("Salary : " + str(salary))
|
position = input('Position : ')
while position != 'M' and position != 'm' and (position != 'S') and (position != 's'):
print('Invalid Input')
position = input('Position : ')
sales = input('Sales amount : ')
sales = float(sales)
if position == 'M' or position == 'm':
basic = 50000
else:
basic = 75000
if sales >= 30000:
commission = sales * 10 / 100
else:
commission = 0
salary = basic + commission
print('Commission : ' + str(commission))
print('Salary : ' + str(salary))
|
# Created by MechAviv
# Quest ID :: 23600
# Not coded yet
OBJECT_6 = sm.getIntroNpcObjectID(2159377)
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.sendDelay(900)
sm.moveCamera(False, 100, -307, -41)
sm.sendDelay(2604)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext("Good, very good! I am very satisfied with these results. Just a few more fine adjustments and...")
sm.startQuest(23724)
sm.completeQuest(23600)
sm.changeBGM("Bgm30.img/fromUnderToUpper", 0, 0)
sm.showEffect("Effect/Direction12.img/effect/tuto/BalloonMsg1/0", 1200, 0, -120, 0, OBJECT_6, False, 0)
sm.moveNpcByObjectId(OBJECT_6, True, 1, 100)
sm.sendDelay(90)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext("An intruder?! It could be Orchid. Turn on the monitor!")
sm.startQuest(23725)
sm.sendDelay(2100)
sm.completeQuest(23725)
sm.sendDelay(1200)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext("Is it the Resistance? I suppose that would be better than Orchid, but... this is the worst possible time!")
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendSay("Wait, wait, wait. Maybe this will work. One more test, yes... they will be perfect... Hahaha... MWAHAHAHA!")
sm.warp(931050940, 0)
|
object_6 = sm.getIntroNpcObjectID(2159377)
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.sendDelay(900)
sm.moveCamera(False, 100, -307, -41)
sm.sendDelay(2604)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext('Good, very good! I am very satisfied with these results. Just a few more fine adjustments and...')
sm.startQuest(23724)
sm.completeQuest(23600)
sm.changeBGM('Bgm30.img/fromUnderToUpper', 0, 0)
sm.showEffect('Effect/Direction12.img/effect/tuto/BalloonMsg1/0', 1200, 0, -120, 0, OBJECT_6, False, 0)
sm.moveNpcByObjectId(OBJECT_6, True, 1, 100)
sm.sendDelay(90)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext('An intruder?! It could be Orchid. Turn on the monitor!')
sm.startQuest(23725)
sm.sendDelay(2100)
sm.completeQuest(23725)
sm.sendDelay(1200)
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendNext('Is it the Resistance? I suppose that would be better than Orchid, but... this is the worst possible time!')
sm.setSpeakerID(2159377)
sm.removeEscapeButton()
sm.setSpeakerType(3)
sm.sendSay('Wait, wait, wait. Maybe this will work. One more test, yes... they will be perfect... Hahaha... MWAHAHAHA!')
sm.warp(931050940, 0)
|
"""
This package contains the portions of the library used only when
implementing an OpenID consumer.
"""
__all__ = ['consumer', 'discover']
|
"""
This package contains the portions of the library used only when
implementing an OpenID consumer.
"""
__all__ = ['consumer', 'discover']
|
rgb = input()
rgb = rgb.replace(" ", "")
if int(rgb) % 4 == 0:
print("YES")
else:
print("NO")
|
rgb = input()
rgb = rgb.replace(' ', '')
if int(rgb) % 4 == 0:
print('YES')
else:
print('NO')
|
class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) != len(t):
return False
# if it is a large {key: value} in dict, the list way is slower than dict way
# usedList = []
hashTable = {}
valueTable = {}
for i in range(len(s)):
if s[i] in hashTable:
if hashTable[s[i]] != t[i]:
return False
else:
continue
else:
# if t[i] in usedList:
if t[i] in valueTable:
return False
# usedList.append(t[i])
hashTable[s[i]] = t[i]
valueTable[t[i]] = s[i]
return True
if __name__ == "__main__":
s = 'egg'
t = 'add'
res = Solution()
print(res.isIsomorphic(s, t))
|
class Solution(object):
def is_isomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) != len(t):
return False
hash_table = {}
value_table = {}
for i in range(len(s)):
if s[i] in hashTable:
if hashTable[s[i]] != t[i]:
return False
else:
continue
else:
if t[i] in valueTable:
return False
hashTable[s[i]] = t[i]
valueTable[t[i]] = s[i]
return True
if __name__ == '__main__':
s = 'egg'
t = 'add'
res = solution()
print(res.isIsomorphic(s, t))
|
def main() -> None:
n = int(input())
def f(a: int, b: int) -> int:
return a**3 + (a + b) * a * b + b**3
def binary_search(a: int) -> int:
lo = -1
hi = 1 << 20
while hi - lo > 1:
# print(lo, hi)
b = (lo + hi) // 2
if f(a, b) >= n:
hi = b
else:
lo = b
return hi
mn = 1 << 64
for a in range(1 << 20):
b = binary_search(a)
x = f(a, b)
mn = min(mn, x)
print(mn)
if __name__ == "__main__":
main()
|
def main() -> None:
n = int(input())
def f(a: int, b: int) -> int:
return a ** 3 + (a + b) * a * b + b ** 3
def binary_search(a: int) -> int:
lo = -1
hi = 1 << 20
while hi - lo > 1:
b = (lo + hi) // 2
if f(a, b) >= n:
hi = b
else:
lo = b
return hi
mn = 1 << 64
for a in range(1 << 20):
b = binary_search(a)
x = f(a, b)
mn = min(mn, x)
print(mn)
if __name__ == '__main__':
main()
|
def raw_response(function=None):
def decorator(function):
function.raw_response = True
return function
if function:
return decorator(function)
return decorator
|
def raw_response(function=None):
def decorator(function):
function.raw_response = True
return function
if function:
return decorator(function)
return decorator
|
class StringBuilder(object):
def __init__(self, strr=''):
self.str_list = [s for s in strr]
def __getitem__(self, item):
return ''.join(self.str_list[item])
def __setitem__(self, key, value):
self.str_list[key] = value
def __repr__(self):
return ''.join(self.str_list)
def __len__(self):
return len(self.str_list)
def __iter__(self):
for s in self.str_list:
yield s
def __add__(self, other):
for s in other:
self.str_list.append(s)
return self
def append(self, other):
return self.__add__(other)
def __str__(self):
return self.__repr__()
def __delitem__(self, key):
self.str_list.pop(key)
def remove(self, key):
self.__delitem__(key)
def to_string(self):
return self.__str__()
|
class Stringbuilder(object):
def __init__(self, strr=''):
self.str_list = [s for s in strr]
def __getitem__(self, item):
return ''.join(self.str_list[item])
def __setitem__(self, key, value):
self.str_list[key] = value
def __repr__(self):
return ''.join(self.str_list)
def __len__(self):
return len(self.str_list)
def __iter__(self):
for s in self.str_list:
yield s
def __add__(self, other):
for s in other:
self.str_list.append(s)
return self
def append(self, other):
return self.__add__(other)
def __str__(self):
return self.__repr__()
def __delitem__(self, key):
self.str_list.pop(key)
def remove(self, key):
self.__delitem__(key)
def to_string(self):
return self.__str__()
|
#from math import hypot
co = float(input('Quanto mede o cateto oposto? '))
ca = float(input('Quanto mede o cateto adjacente? '))
hi = hypot(co, ca)
print(f'A hipotenusa vai medir {hi:.2f}')
'''
import math
co = float(input('Quanto mede o cateto oposto? '))
ca = float(input('Quanto mede o cateto adjacente? '))
hi = math.hypot(co, ca)
print(f'A hipotenusa vai medir {hi:.2f}')
'''
|
co = float(input('Quanto mede o cateto oposto? '))
ca = float(input('Quanto mede o cateto adjacente? '))
hi = hypot(co, ca)
print(f'A hipotenusa vai medir {hi:.2f}')
"\nimport math\nco = float(input('Quanto mede o cateto oposto? '))\nca = float(input('Quanto mede o cateto adjacente? '))\nhi = math.hypot(co, ca)\nprint(f'A hipotenusa vai medir {hi:.2f}')\n\n"
|
class Person:
IS = None
def __init__(self, name, hours, rate):
self.name = name
self.hours = hours
self.rate = rate
def __new__(cls, *args, **kwargs):
if cls.IS == None:
cls.IS = object.__new__(Person)
return cls.IS
def pay(self):
return self.hours * self.rate
z = Person('Bob', 14, 4)
x = Person('Jack', 44, 4)
print(z, x)
print(z.hours, x.hours)
|
class Person:
is = None
def __init__(self, name, hours, rate):
self.name = name
self.hours = hours
self.rate = rate
def __new__(cls, *args, **kwargs):
if cls.IS == None:
cls.IS = object.__new__(Person)
return cls.IS
def pay(self):
return self.hours * self.rate
z = person('Bob', 14, 4)
x = person('Jack', 44, 4)
print(z, x)
print(z.hours, x.hours)
|
data_matrix = [
[2, 3, 1, 1],
[1, 2, 3, 1],
[1, 1, 2, 3],
[3, 1, 1, 2]
]
def fill_zeros(data_val):
return bin(int(data_val, 16))[2:].zfill(8)
input_hex = [0xd4, 0xbf, 0x5d, 0x30]
input_bin = []
for i, bin_num in enumerate(input_hex):
bin_num = bin(input_hex[i])[2:].zfill(8)
print(bin_num)
bin_num = int(bin_num, 2)
input_bin.append(bin_num)
print(input_bin)
for col in data_matrix:
print("+++++++++++++++++++++++\nThe {} round\n\n".format(col))
result_row_1 = []
for i, row in enumerate(col):
if row == 2:
print("2")
a = input_bin[i]
a = bin(input_bin[i])[2:].zfill(8)
print("AAAAAAAAAAAAAAAAA\n")
print("a = {}".format(a))
print(type(a))
print("\nAAAAAAAAAAAAAAAA")
if int(a[0]) == 1:
a = input_bin[i] << 1
a = bin(a)[3:].zfill(8)
print("I am a leftshifted a: {}".format(a))
a = int(a, 2)
xor_row_1 = a ^ 0x1b
xor_row_1 = bin(xor_row_1)[2:].zfill(8)
print("I am == 1: {}".format(xor_row_1))
else:
a = input_bin[i] << 1
a = bin(a)[3:].zfill(8)
a = int(a, 2)
xor_row_1 = a
xor_row_1 = bin(xor_row_1)[2:].zfill(8)
print("I am == 0: {}".format(xor_row_1))
xor_row_1 = a
elif row == 3:
print("3")
b = input_bin[i]
b = bin(input_bin[i])[2:].zfill(8)
print("BBBBBBBBBBBBBBBBBB\n")
print("b = {}".format(b))
print(type(b))
print("\nBBBBBBBBBBBBBBBBBBB")
if int(b[0]) == 1:
b = input_bin[i] << 1
b = bin(b)[3:].zfill(8)
print("I am a leftshifted b: {}".format(b))
b = int(b, 2)
xor_row_2 = b ^ 0x1b ^ input_bin[i]
xor_row_2 = bin(xor_row_2)[2:].zfill(8)
print("I am == 1: {}".format(xor_row_2))
else:
b = input_bin[i] << 1
b = bin(b)[2:].zfill(8)
print("I am a leftshifted b: {}".format(b))
b = int(b, 2)
xor_row_2 = b ^ input_bin[i]
xor_row_2 = bin(xor_row_2)[2:].zfill(8)
print("I am == 0: {}".format(xor_row_2))
print(xor_row_2)
else:
print("1")
print("\n\n\n\n\n\n")
|
data_matrix = [[2, 3, 1, 1], [1, 2, 3, 1], [1, 1, 2, 3], [3, 1, 1, 2]]
def fill_zeros(data_val):
return bin(int(data_val, 16))[2:].zfill(8)
input_hex = [212, 191, 93, 48]
input_bin = []
for (i, bin_num) in enumerate(input_hex):
bin_num = bin(input_hex[i])[2:].zfill(8)
print(bin_num)
bin_num = int(bin_num, 2)
input_bin.append(bin_num)
print(input_bin)
for col in data_matrix:
print('+++++++++++++++++++++++\nThe {} round\n\n'.format(col))
result_row_1 = []
for (i, row) in enumerate(col):
if row == 2:
print('2')
a = input_bin[i]
a = bin(input_bin[i])[2:].zfill(8)
print('AAAAAAAAAAAAAAAAA\n')
print('a = {}'.format(a))
print(type(a))
print('\nAAAAAAAAAAAAAAAA')
if int(a[0]) == 1:
a = input_bin[i] << 1
a = bin(a)[3:].zfill(8)
print('I am a leftshifted a: {}'.format(a))
a = int(a, 2)
xor_row_1 = a ^ 27
xor_row_1 = bin(xor_row_1)[2:].zfill(8)
print('I am == 1: {}'.format(xor_row_1))
else:
a = input_bin[i] << 1
a = bin(a)[3:].zfill(8)
a = int(a, 2)
xor_row_1 = a
xor_row_1 = bin(xor_row_1)[2:].zfill(8)
print('I am == 0: {}'.format(xor_row_1))
xor_row_1 = a
elif row == 3:
print('3')
b = input_bin[i]
b = bin(input_bin[i])[2:].zfill(8)
print('BBBBBBBBBBBBBBBBBB\n')
print('b = {}'.format(b))
print(type(b))
print('\nBBBBBBBBBBBBBBBBBBB')
if int(b[0]) == 1:
b = input_bin[i] << 1
b = bin(b)[3:].zfill(8)
print('I am a leftshifted b: {}'.format(b))
b = int(b, 2)
xor_row_2 = b ^ 27 ^ input_bin[i]
xor_row_2 = bin(xor_row_2)[2:].zfill(8)
print('I am == 1: {}'.format(xor_row_2))
else:
b = input_bin[i] << 1
b = bin(b)[2:].zfill(8)
print('I am a leftshifted b: {}'.format(b))
b = int(b, 2)
xor_row_2 = b ^ input_bin[i]
xor_row_2 = bin(xor_row_2)[2:].zfill(8)
print('I am == 0: {}'.format(xor_row_2))
print(xor_row_2)
else:
print('1')
print('\n\n\n\n\n\n')
|
Root.default = -3
Scale.default = 'minor'
Clock.bpm=100
acordes = [(2,4,6),(-1,1,3),(0,2,4)]
escalera = P[5,4,3,2]
p1 >> space([0,0,4,2,0,0,5,2],dur=1,amp=[0,1,1,1])
d1 >> play("X ",amp=1)
pt >> play('#', dur=16,sus=4, rate=-1/2, amp=var([1,0],[16,inf],start=now))
p1 >> space([4,4,2,0,3,3,2,1],dur=1,amp=[0,1,1,1])
p1 >> space([0,0,4,2,0,0,5,2],dur=1,amp=[0,1,1,1])
b1 >> ambi([0,-2,4,3],dur=4,sus=3,oct=3,chop=3,amp=3)
v1 >> loop("verso",P[0:8],formant=0,amp=2,room=0.0,mix=0.0,glide=0,chop=0)
p1 >> space([4,4,2,0,3,3,2,1],dur=1,amp=[0,1,1,1])
v1 >> loop("verso",P[8:16],formant=0,amp=2,room=0.0,mix=0.0,glide=0,chop=0)
d3 >> play("-")
p1 >> space([0,0,4,2,0,0,5,2],dur=1,amp=[0,1,1,1])
v1 >> loop("verso",P[0:8],formant=2,amp=2,room=0.0,mix=0.0,glide=0,chop=0)
p1 >> space([4,4,2,0,3,3,2,1],dur=1,amp=[0,1,1,1])
v1 >> loop("verso",P[8:16],formant=2,amp=2,room=0.0,mix=0.0,glide=0,chop=0)
pt >> play('#', dur=16,sus=4, rate=-1/2, amp=var([1,0],[16,inf],start=now))
b1 >> ambi([0],dur=4,sus=2,oct=3,chop=3)
p1 >> space([(0,2,4)]*4,dur=2,amp=1)
p2 >> prophet([(0,2,4)]*4,dur=2,amp=0.5)
d1 >> play("X ",amp=1)
d3 >> play("-",dur=PSum(6,4))
b1 >> bass([2,-1,0,-2],dur=4,chop=2,sus=3,amp=0.7,oct=5)
n = 5
p2 >> prophet([(2,4,6)]*n+[(-1,1,3)]*n+[(0,2,4)]*n+[5,4,3,2],dur=list(PSum(n,4)[:n*3])+[1]*4,amp=[1,1,1,1]*3 + [1,1,1,1])
v1 >> loop("estribillo1_pablito_rack",P[0:8],formant=[0],amp=1)
v1 >> loop("estribillo1_pablito_rack",P[8:16],formant=[0],amp=1)
v1 >> loop("estribillo2_mathi_rack",P[0:8],formant=[0],amp=0.7)
v1 >> loop("estribillo2_mathi_rack",P[8:16],formant=[0],amp=0.7)
v1 >> loop("estribillo3_pablito_rack",P[0:8],formant=[0],amp=1)
v1 >> loop("estribillo3_pablito_rack",P[8:16],formant=[0],amp=1)
v1 >> loop("estribillo4_pablito_rack",P[0:8],formant=[0],amp=1)
v1 >> loop("estribillo4_pablito_rack",P[8:16],formant=[0],amp=1)
b1 >> bass([2],dur=4,chop=3,sus=2)
p1 >> space([(2,4,6)]*4,dur=2,amp=1)
p2 >> prophet([(2,4,6)]*4,dur=2,amp=1)
v1 >> loop('estribillo4_pablito_rack',P[0:8], formant=0,amp=1)
v2 >> loop('estribillo4_mathi_rack', P[8:16],formant=0, amp=0.5)
Group(v1,v2).solo()
|
Root.default = -3
Scale.default = 'minor'
Clock.bpm = 100
acordes = [(2, 4, 6), (-1, 1, 3), (0, 2, 4)]
escalera = P[5, 4, 3, 2]
p1 >> space([0, 0, 4, 2, 0, 0, 5, 2], dur=1, amp=[0, 1, 1, 1])
d1 >> play('X ', amp=1)
pt >> play('#', dur=16, sus=4, rate=-1 / 2, amp=var([1, 0], [16, inf], start=now))
p1 >> space([4, 4, 2, 0, 3, 3, 2, 1], dur=1, amp=[0, 1, 1, 1])
p1 >> space([0, 0, 4, 2, 0, 0, 5, 2], dur=1, amp=[0, 1, 1, 1])
b1 >> ambi([0, -2, 4, 3], dur=4, sus=3, oct=3, chop=3, amp=3)
v1 >> loop('verso', P[0:8], formant=0, amp=2, room=0.0, mix=0.0, glide=0, chop=0)
p1 >> space([4, 4, 2, 0, 3, 3, 2, 1], dur=1, amp=[0, 1, 1, 1])
v1 >> loop('verso', P[8:16], formant=0, amp=2, room=0.0, mix=0.0, glide=0, chop=0)
d3 >> play('-')
p1 >> space([0, 0, 4, 2, 0, 0, 5, 2], dur=1, amp=[0, 1, 1, 1])
v1 >> loop('verso', P[0:8], formant=2, amp=2, room=0.0, mix=0.0, glide=0, chop=0)
p1 >> space([4, 4, 2, 0, 3, 3, 2, 1], dur=1, amp=[0, 1, 1, 1])
v1 >> loop('verso', P[8:16], formant=2, amp=2, room=0.0, mix=0.0, glide=0, chop=0)
pt >> play('#', dur=16, sus=4, rate=-1 / 2, amp=var([1, 0], [16, inf], start=now))
b1 >> ambi([0], dur=4, sus=2, oct=3, chop=3)
p1 >> space([(0, 2, 4)] * 4, dur=2, amp=1)
p2 >> prophet([(0, 2, 4)] * 4, dur=2, amp=0.5)
d1 >> play('X ', amp=1)
d3 >> play('-', dur=p_sum(6, 4))
b1 >> bass([2, -1, 0, -2], dur=4, chop=2, sus=3, amp=0.7, oct=5)
n = 5
p2 >> prophet([(2, 4, 6)] * n + [(-1, 1, 3)] * n + [(0, 2, 4)] * n + [5, 4, 3, 2], dur=list(p_sum(n, 4)[:n * 3]) + [1] * 4, amp=[1, 1, 1, 1] * 3 + [1, 1, 1, 1])
v1 >> loop('estribillo1_pablito_rack', P[0:8], formant=[0], amp=1)
v1 >> loop('estribillo1_pablito_rack', P[8:16], formant=[0], amp=1)
v1 >> loop('estribillo2_mathi_rack', P[0:8], formant=[0], amp=0.7)
v1 >> loop('estribillo2_mathi_rack', P[8:16], formant=[0], amp=0.7)
v1 >> loop('estribillo3_pablito_rack', P[0:8], formant=[0], amp=1)
v1 >> loop('estribillo3_pablito_rack', P[8:16], formant=[0], amp=1)
v1 >> loop('estribillo4_pablito_rack', P[0:8], formant=[0], amp=1)
v1 >> loop('estribillo4_pablito_rack', P[8:16], formant=[0], amp=1)
b1 >> bass([2], dur=4, chop=3, sus=2)
p1 >> space([(2, 4, 6)] * 4, dur=2, amp=1)
p2 >> prophet([(2, 4, 6)] * 4, dur=2, amp=1)
v1 >> loop('estribillo4_pablito_rack', P[0:8], formant=0, amp=1)
v2 >> loop('estribillo4_mathi_rack', P[8:16], formant=0, amp=0.5)
group(v1, v2).solo()
|
class Solution:
def minimumRefill(self, plants: List[int], capacityA: int, capacityB: int) -> int:
"""
[2,2,4,3,3] A = 5, B = 5 cans = 1
1
2
[1,2,4,4,5] A = 6, B = 2 cans = 3
0,3 1,1 (c-(sum%c))
"""
n = len(plants)
i, j = 0, n-1
cap_a, cap_b = capacityA, capacityB
cans_used = 0 # 1
while i < j:
cans_used += cap_a < plants[i]
cans_used += cap_b < plants[j]
cap_a = cap_a if cap_a >= plants[i] else capacityA
cap_b = cap_b if cap_b >= plants[j] else capacityB
cap_a -= plants[i]
cap_b -= plants[j]
i += 1
j -= 1
if i == j:
max_water = max(cap_a, cap_b)
cans_used += max_water < plants[i]
return cans_used
|
class Solution:
def minimum_refill(self, plants: List[int], capacityA: int, capacityB: int) -> int:
"""
[2,2,4,3,3] A = 5, B = 5 cans = 1
1
2
[1,2,4,4,5] A = 6, B = 2 cans = 3
0,3 1,1 (c-(sum%c))
"""
n = len(plants)
(i, j) = (0, n - 1)
(cap_a, cap_b) = (capacityA, capacityB)
cans_used = 0
while i < j:
cans_used += cap_a < plants[i]
cans_used += cap_b < plants[j]
cap_a = cap_a if cap_a >= plants[i] else capacityA
cap_b = cap_b if cap_b >= plants[j] else capacityB
cap_a -= plants[i]
cap_b -= plants[j]
i += 1
j -= 1
if i == j:
max_water = max(cap_a, cap_b)
cans_used += max_water < plants[i]
return cans_used
|
def main():
totalNum = 0
totalValues = {}
filename = 'day1_1_input.txt'
found = False
while not found:
userInput = open(filename, 'r')
print ("Starting from the top")
for i in userInput:
print (i)
if i[0] == '-':
totalNum -= int(i[1:])
else:
totalNum += int(i[1:])
print (totalNum)
if totalNum in totalValues:
found = True
break
else:
totalValues[totalNum] = 1
userInput.close()
print(totalNum)
main()
|
def main():
total_num = 0
total_values = {}
filename = 'day1_1_input.txt'
found = False
while not found:
user_input = open(filename, 'r')
print('Starting from the top')
for i in userInput:
print(i)
if i[0] == '-':
total_num -= int(i[1:])
else:
total_num += int(i[1:])
print(totalNum)
if totalNum in totalValues:
found = True
break
else:
totalValues[totalNum] = 1
userInput.close()
print(totalNum)
main()
|
def response(hey_bob):
hey_bob = hey_bob.strip()
if _is_silence(hey_bob):
return 'Fine. Be that way!'
if _is_shouting(hey_bob):
if _is_question(hey_bob):
return "Calm down, I know what I'm doing!"
else:
return 'Whoa, chill out!'
elif _is_question(hey_bob):
return 'Sure.'
else:
return 'Whatever.'
def _is_silence(hey_bob):
return hey_bob == ''
def _is_shouting(hey_bob):
return hey_bob.isupper()
def _is_question(hey_bob):
return hey_bob.endswith('?')
|
def response(hey_bob):
hey_bob = hey_bob.strip()
if _is_silence(hey_bob):
return 'Fine. Be that way!'
if _is_shouting(hey_bob):
if _is_question(hey_bob):
return "Calm down, I know what I'm doing!"
else:
return 'Whoa, chill out!'
elif _is_question(hey_bob):
return 'Sure.'
else:
return 'Whatever.'
def _is_silence(hey_bob):
return hey_bob == ''
def _is_shouting(hey_bob):
return hey_bob.isupper()
def _is_question(hey_bob):
return hey_bob.endswith('?')
|
word = input("Enter a number: ")
word = int(word)
count =10
while True:
temp = word % 10
word = word//10
if temp % 2==0:
print(temp,end="")
if word == 0:
break
|
word = input('Enter a number: ')
word = int(word)
count = 10
while True:
temp = word % 10
word = word // 10
if temp % 2 == 0:
print(temp, end='')
if word == 0:
break
|
data = input()
products = {}
while not data == "statistics":
product, quantity = data.split(": ")
quantity = int(quantity)
if product in products:
products[product] += quantity
else:
products[product] = quantity
data = input()
print("Products in stock:")
for product in products:
print(f"- {product}: {products[product]}")
print(f"Total Products: {len(products)}")
print(f"Total Quantity: {sum(products.values())}")
|
data = input()
products = {}
while not data == 'statistics':
(product, quantity) = data.split(': ')
quantity = int(quantity)
if product in products:
products[product] += quantity
else:
products[product] = quantity
data = input()
print('Products in stock:')
for product in products:
print(f'- {product}: {products[product]}')
print(f'Total Products: {len(products)}')
print(f'Total Quantity: {sum(products.values())}')
|
# static methods
# use the staticmethod decorator
class Human:
@staticmethod
def speak():
print("I can speak")
Human().speak()
me = Human()
me.speak() # this line will give error
# expected an error.. but there isn't any
# static methods can be called on an instance of a class
# i didn't pass self or any argument to the static method
# there are other cracked gette and setters.. shitty as it may seem
# i don't like it
|
class Human:
@staticmethod
def speak():
print('I can speak')
human().speak()
me = human()
me.speak()
|
# Sem passar valores pelo init
class Calculadora:
# def __init__(self):
# pass
def soma(self, valor_a, valor_b):
return valor_a + valor_b
def subtracao(self, valor_a, valor_b):
return valor_a - valor_b
def multiplicacao(self, valor_a, valor_b):
return valor_a * valor_b
def divisao(self, valor_a, valor_b):
return valor_a / valor_b
if __name__ == '__main__':
# Instanciando uma classe
calculadora = Calculadora()
print(calculadora.soma(10, 2))
print(calculadora.subtracao(10, 2))
print(calculadora.multiplicacao(10, 2))
print(calculadora.divisao(10, 2))
|
class Calculadora:
def soma(self, valor_a, valor_b):
return valor_a + valor_b
def subtracao(self, valor_a, valor_b):
return valor_a - valor_b
def multiplicacao(self, valor_a, valor_b):
return valor_a * valor_b
def divisao(self, valor_a, valor_b):
return valor_a / valor_b
if __name__ == '__main__':
calculadora = calculadora()
print(calculadora.soma(10, 2))
print(calculadora.subtracao(10, 2))
print(calculadora.multiplicacao(10, 2))
print(calculadora.divisao(10, 2))
|
def get_level(cell):
i = 0
while cell > (2*i+1)**2:
i += 1
return i
def find_coord(cell):
level = get_level(cell)
x = level
y = -level
current = (2*level+1)**2
while x != -level:
if current == cell:
return (x, y)
x-=1
current -= 1
while y != level:
if current == cell:
return (x, y)
y+=1
current -= 1
while x != level:
if current == cell:
return (x, y)
x+=1
current -= 1
while y != -level:
if current == cell:
return (x, y)
y-=1
current -= 1
return None
print(find_coord(347991))
|
def get_level(cell):
i = 0
while cell > (2 * i + 1) ** 2:
i += 1
return i
def find_coord(cell):
level = get_level(cell)
x = level
y = -level
current = (2 * level + 1) ** 2
while x != -level:
if current == cell:
return (x, y)
x -= 1
current -= 1
while y != level:
if current == cell:
return (x, y)
y += 1
current -= 1
while x != level:
if current == cell:
return (x, y)
x += 1
current -= 1
while y != -level:
if current == cell:
return (x, y)
y -= 1
current -= 1
return None
print(find_coord(347991))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.