content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
def decrypt(ciphertext, key):
out = ""
for i in range(2, len(ciphertext)):
out += chr((((ciphertext[i] ^ (key*ciphertext[i-2])) - ciphertext[i-1]) ^ (key + ciphertext[i-1]))//ciphertext[i-2])
return out
def solve(flag):
text = ''.join(open("downloads/conversation", "r").readlines())
KEY = int(open("key", "r").readlines()[0].rstrip())
messages = text.split("Content: ")[1:]
messages = [decrypt([int(z) for z in x.split("Message from:")[0].split(" ")], KEY) for x in messages[:-1]]
if flag in " ".join(messages):
exit(0)
else:
exit(1)
flag = input("flag: ")
solve(flag)
| def decrypt(ciphertext, key):
out = ''
for i in range(2, len(ciphertext)):
out += chr(((ciphertext[i] ^ key * ciphertext[i - 2]) - ciphertext[i - 1] ^ key + ciphertext[i - 1]) // ciphertext[i - 2])
return out
def solve(flag):
text = ''.join(open('downloads/conversation', 'r').readlines())
key = int(open('key', 'r').readlines()[0].rstrip())
messages = text.split('Content: ')[1:]
messages = [decrypt([int(z) for z in x.split('Message from:')[0].split(' ')], KEY) for x in messages[:-1]]
if flag in ' '.join(messages):
exit(0)
else:
exit(1)
flag = input('flag: ')
solve(flag) |
welcome_message = '''
######################################################
Hello! This script pulls all the emails for a required
mailing list and saves them as a text file in the
"Output" folder.
If you run in to problems, contact Matt
Email: mrallinson@gmail.com
######################################################
'''
error_message = '''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Something went wrong, please check mailing list name and password
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''' | welcome_message = '\n######################################################\n\nHello! This script pulls all the emails for a required \nmailing list and saves them as a text file in the \n"Output" folder. \n\nIf you run in to problems, contact Matt \nEmail: mrallinson@gmail.com\n\n######################################################\n'
error_message = '\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSomething went wrong, please check mailing list name and password\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n' |
def solution(brown, yellow):
answer = []
s = brown + yellow
l = 1
while True:
if yellow % l == 0:
w = yellow / l
print(w, l)
if w < l:
break
if ((l+2)*(w+2)) == s:
answer.append(w+2)
answer.append(l+2)
l += 1
if l > yellow:
break
return answer
| def solution(brown, yellow):
answer = []
s = brown + yellow
l = 1
while True:
if yellow % l == 0:
w = yellow / l
print(w, l)
if w < l:
break
if (l + 2) * (w + 2) == s:
answer.append(w + 2)
answer.append(l + 2)
l += 1
if l > yellow:
break
return answer |
# Copied from https://rosettacode.org/wiki/Greatest_common_divisor#Python
def gcd_bin(u, v):
u, v = abs(u), abs(v) # u >= 0, v >= 0
if u < v:
u, v = v, u # u >= v >= 0
if v == 0:
return u
# u >= v > 0
k = 1
while u & 1 == 0 and v & 1 == 0: # u, v - even
u >>= 1; v >>= 1
k <<= 1
t = -v if u & 1 else u
while t:
while t & 1 == 0:
t >>= 1
if t > 0:
u = t
else:
v = -t
t = u - v
return u * k
| def gcd_bin(u, v):
(u, v) = (abs(u), abs(v))
if u < v:
(u, v) = (v, u)
if v == 0:
return u
k = 1
while u & 1 == 0 and v & 1 == 0:
u >>= 1
v >>= 1
k <<= 1
t = -v if u & 1 else u
while t:
while t & 1 == 0:
t >>= 1
if t > 0:
u = t
else:
v = -t
t = u - v
return u * k |
# encoding: utf-8
# module _hashlib
# from /usr/lib/python3.5/lib-dynload/_hashlib.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def new(*args, **kwargs): # real signature unknown
"""
Return a new hash object using the named algorithm.
An optional string argument may be provided and will be
automatically hashed.
The MD5 and SHA1 algorithms are always supported.
"""
pass
def openssl_md5(*args, **kwargs): # real signature unknown
""" Returns a md5 hash object; optionally initialized with a string """
pass
def openssl_sha1(*args, **kwargs): # real signature unknown
""" Returns a sha1 hash object; optionally initialized with a string """
pass
def openssl_sha224(*args, **kwargs): # real signature unknown
""" Returns a sha224 hash object; optionally initialized with a string """
pass
def openssl_sha256(*args, **kwargs): # real signature unknown
""" Returns a sha256 hash object; optionally initialized with a string """
pass
def openssl_sha384(*args, **kwargs): # real signature unknown
""" Returns a sha384 hash object; optionally initialized with a string """
pass
def openssl_sha512(*args, **kwargs): # real signature unknown
""" Returns a sha512 hash object; optionally initialized with a string """
pass
def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): # real signature unknown; restored from __doc__
"""
pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None) -> key
Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as
pseudorandom function.
"""
pass
# classes
class HASH(object):
"""
A hash represents the object used to calculate a checksum of a
string of information.
Methods:
update() -- updates the current digest with an additional string
digest() -- return the current digest value
hexdigest() -- return the current digest as a string of hexadecimal digits
copy() -- return a copy of the current hash object
Attributes:
name -- the hash algorithm being used by this object
digest_size -- number of bytes in this hashes output
"""
def copy(self, *args, **kwargs): # real signature unknown
""" Return a copy of the hash object. """
pass
def digest(self, *args, **kwargs): # real signature unknown
""" Return the digest value as a string of binary data. """
pass
def hexdigest(self, *args, **kwargs): # real signature unknown
""" Return the digest value as a string of hexadecimal digits. """
pass
def update(self, *args, **kwargs): # real signature unknown
""" Update this hash object's state with the provided string. """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __repr__(self, *args, **kwargs): # real signature unknown
""" Return repr(self). """
pass
block_size = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
digest_size = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
name = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""algorithm name."""
# variables with complex values
openssl_md_meth_names = None # (!) real value is ''
__loader__ = None # (!) real value is ''
__spec__ = None # (!) real value is ''
| def new(*args, **kwargs):
"""
Return a new hash object using the named algorithm.
An optional string argument may be provided and will be
automatically hashed.
The MD5 and SHA1 algorithms are always supported.
"""
pass
def openssl_md5(*args, **kwargs):
""" Returns a md5 hash object; optionally initialized with a string """
pass
def openssl_sha1(*args, **kwargs):
""" Returns a sha1 hash object; optionally initialized with a string """
pass
def openssl_sha224(*args, **kwargs):
""" Returns a sha224 hash object; optionally initialized with a string """
pass
def openssl_sha256(*args, **kwargs):
""" Returns a sha256 hash object; optionally initialized with a string """
pass
def openssl_sha384(*args, **kwargs):
""" Returns a sha384 hash object; optionally initialized with a string """
pass
def openssl_sha512(*args, **kwargs):
""" Returns a sha512 hash object; optionally initialized with a string """
pass
def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None):
"""
pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None) -> key
Password based key derivation function 2 (PKCS #5 v2.0) with HMAC as
pseudorandom function.
"""
pass
class Hash(object):
"""
A hash represents the object used to calculate a checksum of a
string of information.
Methods:
update() -- updates the current digest with an additional string
digest() -- return the current digest value
hexdigest() -- return the current digest as a string of hexadecimal digits
copy() -- return a copy of the current hash object
Attributes:
name -- the hash algorithm being used by this object
digest_size -- number of bytes in this hashes output
"""
def copy(self, *args, **kwargs):
""" Return a copy of the hash object. """
pass
def digest(self, *args, **kwargs):
""" Return the digest value as a string of binary data. """
pass
def hexdigest(self, *args, **kwargs):
""" Return the digest value as a string of hexadecimal digits. """
pass
def update(self, *args, **kwargs):
""" Update this hash object's state with the provided string. """
pass
def __init__(self, *args, **kwargs):
pass
def __repr__(self, *args, **kwargs):
""" Return repr(self). """
pass
block_size = property(lambda self: object(), lambda self, v: None, lambda self: None)
digest_size = property(lambda self: object(), lambda self, v: None, lambda self: None)
name = property(lambda self: object(), lambda self, v: None, lambda self: None)
'algorithm name.'
openssl_md_meth_names = None
__loader__ = None
__spec__ = None |
'''
Created on 31 May 2015
@author: sl0
'''
HASH_LEN = 569 | """
Created on 31 May 2015
@author: sl0
"""
hash_len = 569 |
SEVERITY_WARNING = 2
SEVERITY_OK = 0
class CException(Exception):
def __init__(self, *args, **kwdargs):
pass
def extend(self, *args, **kwdargs):
pass
def maxSeverity(self, *args, **kwdargs):
return 0
| severity_warning = 2
severity_ok = 0
class Cexception(Exception):
def __init__(self, *args, **kwdargs):
pass
def extend(self, *args, **kwdargs):
pass
def max_severity(self, *args, **kwdargs):
return 0 |
# import time as t
# a= ["sonic","CN","pogo","hungama","nick","disney","zetX","discovery"]
# b= iter(a)
# c = reversed(a)
# for channels in a:
# print(next(c))
# t.sleep(1)
class RemoteControl():
def __init__(self):
self.channels = ["sonic","CN","pogo","hungama","nick","disney","zetX","discovery"]
self.index= -1
def __iter__(self):
return self
def __next__(self):
self.index += 1
if self.index == len(self.channels):
self.index=0
return self.channels[self.index]
r = RemoteControl()
itr = iter(r)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
| class Remotecontrol:
def __init__(self):
self.channels = ['sonic', 'CN', 'pogo', 'hungama', 'nick', 'disney', 'zetX', 'discovery']
self.index = -1
def __iter__(self):
return self
def __next__(self):
self.index += 1
if self.index == len(self.channels):
self.index = 0
return self.channels[self.index]
r = remote_control()
itr = iter(r)
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr))
print(next(itr)) |
class StartLimitException(Exception):
def __init__(self, start_limit) -> None:
super().__init__(f"Start limit {start_limit} is invalid.\
Start limit should not be less than 0.")
class LimitInvalidException(Exception):
def __init__(self, limit) -> None:
super().__init__(f"Limit {limit} is invalid.\
Limit should not be less than 0.") | class Startlimitexception(Exception):
def __init__(self, start_limit) -> None:
super().__init__(f'Start limit {start_limit} is invalid. Start limit should not be less than 0.')
class Limitinvalidexception(Exception):
def __init__(self, limit) -> None:
super().__init__(f'Limit {limit} is invalid. Limit should not be less than 0.') |
DOC_HEADER = 'Checks if an object has the attribute{}.'
DOC_BODY = ('\n\n'
'Parameters\n'
'----------\n'
'value\n'
' The literal or variable to check the attribute(s) of.\n'
'name : str, optional\n'
' Name of the variable to check the attributes(s) of.\n'
' Defaults to None.\n'
'\n'
'Returns\n'
'-------\n'
'value\n'
' The `value` passed in.\n'
'\n'
'Attributes\n'
'----------\n'
'attrs : tuple(str)\n'
' The attribute(s) to check for.\n'
'\n'
'Methods\n'
'-------\n'
'o(callable) : CompositionOf\n'
' Daisy-chains the attribute checker to another `callable`,\n'
' returning the functional composition of both.\n'
'\n'
'Raises\n'
'------\n'
'MissingAttrError\n'
' If the variable or literal does not have (one of) the\n'
' required attribute(s).\n'
'\n'
'See also\n'
'--------\n'
'Just, CompositionOf')
| doc_header = 'Checks if an object has the attribute{}.'
doc_body = '\n\nParameters\n----------\nvalue\n The literal or variable to check the attribute(s) of.\nname : str, optional\n Name of the variable to check the attributes(s) of.\n Defaults to None.\n\nReturns\n-------\nvalue\n The `value` passed in.\n\nAttributes\n----------\nattrs : tuple(str)\n The attribute(s) to check for.\n\nMethods\n-------\no(callable) : CompositionOf\n Daisy-chains the attribute checker to another `callable`,\n returning the functional composition of both.\n\nRaises\n------\nMissingAttrError\n If the variable or literal does not have (one of) the\n required attribute(s).\n\nSee also\n--------\nJust, CompositionOf' |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
__author__= 'jiangyixin'
__time__ = 2019/2/25 22:18
""" | """
__author__= 'jiangyixin'
__time__ = 2019/2/25 22:18
""" |
"""Kata url: https://www.codewars.com/kata/5933a1f8552bc2750a0000ed."""
def nth_even(n: int) -> int:
return (n - 1) * 2
| """Kata url: https://www.codewars.com/kata/5933a1f8552bc2750a0000ed."""
def nth_even(n: int) -> int:
return (n - 1) * 2 |
def normalize(string: str):
"""
Normalize the value of the provided utf8 encoded string.
"""
return string.decode("utf8").strip("\n") | def normalize(string: str):
"""
Normalize the value of the provided utf8 encoded string.
"""
return string.decode('utf8').strip('\n') |
{
'name': 'Chapter 06, Recipe 9 code',
'summary': 'Traverse recordset relations',
'depends': ['base'],
}
| {'name': 'Chapter 06, Recipe 9 code', 'summary': 'Traverse recordset relations', 'depends': ['base']} |
def pcd_to_xyz(infile, outfile):
pcd = open(infile, 'r').read()
pcd = pcd.split('DATA ascii\n')[1].split('\n')
xyz = open(outfile, 'w')
for line in pcd:
coords = line.split(' ')[:3]
xyz.write(f'H {(" ").join(coords)}\n')
xyz.close() | def pcd_to_xyz(infile, outfile):
pcd = open(infile, 'r').read()
pcd = pcd.split('DATA ascii\n')[1].split('\n')
xyz = open(outfile, 'w')
for line in pcd:
coords = line.split(' ')[:3]
xyz.write(f"H {' '.join(coords)}\n")
xyz.close() |
class Solution:
def maxA(self, N):
"""
:type N: int
:rtype: int
"""
ans = list(range(N + 1))
for i in range(7, N + 1):
ans[i] = max(ans[i - 3] * 2, ans[i - 4] * 3, ans[i - 5] * 4)
return ans[N]
| class Solution:
def max_a(self, N):
"""
:type N: int
:rtype: int
"""
ans = list(range(N + 1))
for i in range(7, N + 1):
ans[i] = max(ans[i - 3] * 2, ans[i - 4] * 3, ans[i - 5] * 4)
return ans[N] |
DEFAULT_HOSTS = [
'dataverse.harvard.edu', # Harvard PRODUCTION server
'demo.dataverse.org', # Harvard DEMO server
'apitest.dataverse.org', # Dataverse TEST server
]
REQUEST_TIMEOUT = 15
| default_hosts = ['dataverse.harvard.edu', 'demo.dataverse.org', 'apitest.dataverse.org']
request_timeout = 15 |
#!/usr/bin/env python3
def count_me(void):
print('hello')
count_me()
| def count_me(void):
print('hello')
count_me() |
class Playground:
def __init__(self, size=5):
"""
Initialize a randomly generated playground with
a given playground size (default = 5x5)
"""
self.size = size-1
self.world = []
for x in range(self.size):
row = []
for y in range(self.size):
row.append(Tile({x: x, y: y}, 0, 1, 0, 1))
self.world.append(row)
def print(self):
"""
Prints the world map
"""
for row in self.world:
for tile in row:
print(f'Tile[{tile.position.x}, {tile.position.y}] = {tile.north}')
class Tile:
def __init__(self, position, north, south, east, west):
self.position = position
self.north = north
self.south = south
self.east = east
self.west = west
| class Playground:
def __init__(self, size=5):
"""
Initialize a randomly generated playground with
a given playground size (default = 5x5)
"""
self.size = size - 1
self.world = []
for x in range(self.size):
row = []
for y in range(self.size):
row.append(tile({x: x, y: y}, 0, 1, 0, 1))
self.world.append(row)
def print(self):
"""
Prints the world map
"""
for row in self.world:
for tile in row:
print(f'Tile[{tile.position.x}, {tile.position.y}] = {tile.north}')
class Tile:
def __init__(self, position, north, south, east, west):
self.position = position
self.north = north
self.south = south
self.east = east
self.west = west |
# To print all the unique elements in an array.
def uni_nums(n):
ans = []
for i in n:
if i not in ans:
ans.append(i)
return ans
n = list(map(int,input().split()))
print(uni_nums(n)) | def uni_nums(n):
ans = []
for i in n:
if i not in ans:
ans.append(i)
return ans
n = list(map(int, input().split()))
print(uni_nums(n)) |
def delegate(method_name, attribute):
def to_attribute(self, *args, **kwargs):
bound_method = getattr(getattr(self, attribute), method_name)
return bound_method(*args, **kwargs)
return to_attribute
| def delegate(method_name, attribute):
def to_attribute(self, *args, **kwargs):
bound_method = getattr(getattr(self, attribute), method_name)
return bound_method(*args, **kwargs)
return to_attribute |
"""
Question 17 :
Write a program that computes the net amount of a
bank account based a transaction log from console input.
The transaction log format is shown as following :
D : 100 W : 200.
D means deposit while W means withdrawal. Suppose the following input
is supplied to the program : D : 300, D : 300, W : 200, D : 100 Then, the
output should be : 500.
Hints : In case of input data being supplied to the question,
it should be assumed to be a console input.
"""
# Solution :
net_amount = 0
while True:
choice = input("Enter a choice (like {D 100} or {W 100}): ")
if not choice:
break
values = choice.split(" ")
operation = values[0]
amount = int(values[1])
if operation == "D":
net_amount += amount
elif operation == "W":
net_amount -= amount
else:
pass
print(net_amount)
"""
Output :
Enter a choice : D 300
Enter a choice : D 300
Enter a choice : W 200
Enter a choice : D 100
Enter a choice :
500
""" | """
Question 17 :
Write a program that computes the net amount of a
bank account based a transaction log from console input.
The transaction log format is shown as following :
D : 100 W : 200.
D means deposit while W means withdrawal. Suppose the following input
is supplied to the program : D : 300, D : 300, W : 200, D : 100 Then, the
output should be : 500.
Hints : In case of input data being supplied to the question,
it should be assumed to be a console input.
"""
net_amount = 0
while True:
choice = input('Enter a choice (like {D 100} or {W 100}): ')
if not choice:
break
values = choice.split(' ')
operation = values[0]
amount = int(values[1])
if operation == 'D':
net_amount += amount
elif operation == 'W':
net_amount -= amount
else:
pass
print(net_amount)
'\nOutput : \n Enter a choice : D 300\n Enter a choice : D 300\n Enter a choice : W 200\n Enter a choice : D 100\n Enter a choice : \n 500\n' |
class Tree:
'''
This is realization of a tree for exact project
'''
def __init__(self, data):
'''
obj, str -> None
This method initializes an object
'''
self.data = data
self._left = None
self._right = None
def set_left(self, value):
'''
obj, str -> None
This puts needed value on the left
'''
self._left = value
def get_left(self):
'''
obj, str -> None
This returns needed value on the left
'''
return self._left
left = property(fset=set_left, fget=get_left)
def set_right(self, value):
'''
obj, str -> None
This puts needed value on the right
'''
self._right = value
def get_right(self):
'''
obj, str -> None
This returns needed value on the right
'''
return self._right
def __repr__(self):
'''
obj -> str
This method represents object
'''
return f"{self.data}"
right = property(fset=set_right, fget=get_right)
def is_empty(self):
'''
obj -> bool
This method checks whether tree is empty
'''
return self._left is None and self._right is None | class Tree:
"""
This is realization of a tree for exact project
"""
def __init__(self, data):
"""
obj, str -> None
This method initializes an object
"""
self.data = data
self._left = None
self._right = None
def set_left(self, value):
"""
obj, str -> None
This puts needed value on the left
"""
self._left = value
def get_left(self):
"""
obj, str -> None
This returns needed value on the left
"""
return self._left
left = property(fset=set_left, fget=get_left)
def set_right(self, value):
"""
obj, str -> None
This puts needed value on the right
"""
self._right = value
def get_right(self):
"""
obj, str -> None
This returns needed value on the right
"""
return self._right
def __repr__(self):
"""
obj -> str
This method represents object
"""
return f'{self.data}'
right = property(fset=set_right, fget=get_right)
def is_empty(self):
"""
obj -> bool
This method checks whether tree is empty
"""
return self._left is None and self._right is None |
{
"targets": [
{
"target_name": "serialtty",
"sources": [ "src/serial.c", "src/serialtty.cc" ]
}
]
}
| {'targets': [{'target_name': 'serialtty', 'sources': ['src/serial.c', 'src/serialtty.cc']}]} |
#class Solution:
# def getMinDistance(self, nums: List[int], target: int, start: int) -> int:
def getMinDistance(nums, target, start):
if nums[start] == target:
return 0
for i in range(1, len(nums)):
try:
positive_index = min(start + i, len(nums) - 1)
if nums[positive_index] == target:
return i
except:
pass
try:
positive_index = max(start - i, 0)
if nums[positive_index] == target:
return i
except:
pass
def test(nums, target, start, expected):
sol = getMinDistance(nums, target, start)
if sol == expected :
print("Congrats!")
else:
print(f"sol = {sol}")
print(f"expected = {expected}")
print()
if __name__ == "__main__":
nums = [1,2,3,4,5]
target = 5
start = 3
expected = 1
test(nums, target, start, expected)
nums = [1]
target = 1
start = 0
expected = 0
test(nums, target, start, expected)
nums = [2202,9326,1034,4180,1932,8118,7365,7738,6220,3440]
target = 3440
start = 0
expected = 9
test(nums, target, start, expected)
| def get_min_distance(nums, target, start):
if nums[start] == target:
return 0
for i in range(1, len(nums)):
try:
positive_index = min(start + i, len(nums) - 1)
if nums[positive_index] == target:
return i
except:
pass
try:
positive_index = max(start - i, 0)
if nums[positive_index] == target:
return i
except:
pass
def test(nums, target, start, expected):
sol = get_min_distance(nums, target, start)
if sol == expected:
print('Congrats!')
else:
print(f'sol = {sol}')
print(f'expected = {expected}')
print()
if __name__ == '__main__':
nums = [1, 2, 3, 4, 5]
target = 5
start = 3
expected = 1
test(nums, target, start, expected)
nums = [1]
target = 1
start = 0
expected = 0
test(nums, target, start, expected)
nums = [2202, 9326, 1034, 4180, 1932, 8118, 7365, 7738, 6220, 3440]
target = 3440
start = 0
expected = 9
test(nums, target, start, expected) |
class Solution:
def checkRecord(self, s: str) -> bool:
consecutiveLate, absent = 0, 0
for character in s:
if character == 'L':
consecutiveLate += 1
else:
if character == 'A': absent += 1
consecutiveLate = 0
if consecutiveLate >= 3 or absent >= 2: return False
return True
| class Solution:
def check_record(self, s: str) -> bool:
(consecutive_late, absent) = (0, 0)
for character in s:
if character == 'L':
consecutive_late += 1
else:
if character == 'A':
absent += 1
consecutive_late = 0
if consecutiveLate >= 3 or absent >= 2:
return False
return True |
# Create Node class containing
# data
# left pointer
# right pointer
class Node:
def __init__(self, value):
self.value = value
self.right = None
self.left = None
class BinaryTree:
def __init__(self):
self.root = None
def insert(self, value):
if not self.root:
self.root = Node(value)
return
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if not temp.left:
temp.left = Node(value)
break
else:
q.append(temp.left)
if not temp.right:
temp.right = Node(value)
break
else:
q.append(temp.right)
def print_order(self, temp, order):
if temp is None:
return
if order == "pre":
print(f"{temp.value}", end=" ")
self.print_order(temp.left, order)
if order == "in":
print(f"{temp.value}", end=" ")
self.print_order(temp.right, order)
if order == "post":
print(f"{temp.value}", end=" ")
def traverse_by_stack(self, root):
current = root
stack = []
while True:
if current:
stack.append(current)
current = current.left
elif stack:
current = stack.pop()
print(current.value, end=" ")
current = current.right
else:
break
print()
def showTree(self, msg, type=None):
print(msg)
if type is None:
print("not implemented yet")
elif type == "stack":
self.traverse_by_stack(self.root)
else:
self.print_order(self.root, type)
print()
def popDeep(self, lastNode):
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if temp == lastNode:
temp = None
return
if temp.left == lastNode:
temp.left = None
return
else:
q.append(temp.left)
if temp.right == lastNode:
temp.right = None
return
else:
q.append(temp.right)
def delete(self, value):
if not self.root:
return
if not self.root.left and not self.root.right:
if self.root == value:
self.root = None
return
q = []
q.append(self.root)
d = None
while len(q):
temp = q[0]
q.pop(0)
if temp.value == value:
d = temp
if temp.left:
q.append(temp.left)
if temp.right:
q.append(temp.right)
if d:
x = temp.value
self.popDeep(temp)
d.value = x
if __name__ == "__main__":
bt = BinaryTree()
bt.insert(10)
bt.insert(11)
bt.insert(9)
bt.insert(7)
bt.insert(12)
bt.insert(15)
bt.insert(8)
bt.showTree("before", "in")
bt.delete(8)
bt.showTree("after", "in")
print("with orders")
bt.showTree("Preorder", "pre")
bt.showTree("Inorder", "in")
bt.showTree("stack", "stack")
bt.showTree("Postorder", "post")
| class Node:
def __init__(self, value):
self.value = value
self.right = None
self.left = None
class Binarytree:
def __init__(self):
self.root = None
def insert(self, value):
if not self.root:
self.root = node(value)
return
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if not temp.left:
temp.left = node(value)
break
else:
q.append(temp.left)
if not temp.right:
temp.right = node(value)
break
else:
q.append(temp.right)
def print_order(self, temp, order):
if temp is None:
return
if order == 'pre':
print(f'{temp.value}', end=' ')
self.print_order(temp.left, order)
if order == 'in':
print(f'{temp.value}', end=' ')
self.print_order(temp.right, order)
if order == 'post':
print(f'{temp.value}', end=' ')
def traverse_by_stack(self, root):
current = root
stack = []
while True:
if current:
stack.append(current)
current = current.left
elif stack:
current = stack.pop()
print(current.value, end=' ')
current = current.right
else:
break
print()
def show_tree(self, msg, type=None):
print(msg)
if type is None:
print('not implemented yet')
elif type == 'stack':
self.traverse_by_stack(self.root)
else:
self.print_order(self.root, type)
print()
def pop_deep(self, lastNode):
q = []
q.append(self.root)
while len(q):
temp = q[0]
q.pop(0)
if temp == lastNode:
temp = None
return
if temp.left == lastNode:
temp.left = None
return
else:
q.append(temp.left)
if temp.right == lastNode:
temp.right = None
return
else:
q.append(temp.right)
def delete(self, value):
if not self.root:
return
if not self.root.left and (not self.root.right):
if self.root == value:
self.root = None
return
q = []
q.append(self.root)
d = None
while len(q):
temp = q[0]
q.pop(0)
if temp.value == value:
d = temp
if temp.left:
q.append(temp.left)
if temp.right:
q.append(temp.right)
if d:
x = temp.value
self.popDeep(temp)
d.value = x
if __name__ == '__main__':
bt = binary_tree()
bt.insert(10)
bt.insert(11)
bt.insert(9)
bt.insert(7)
bt.insert(12)
bt.insert(15)
bt.insert(8)
bt.showTree('before', 'in')
bt.delete(8)
bt.showTree('after', 'in')
print('with orders')
bt.showTree('Preorder', 'pre')
bt.showTree('Inorder', 'in')
bt.showTree('stack', 'stack')
bt.showTree('Postorder', 'post') |
def dev_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) != "DEV":
raise Http404
else:
return func(*args, **kwargs)
return inner
def non_production(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) not in ["DEV", "BETA"]:
raise Http404
else:
return func(*args, **kwargs)
return inner
def prod_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get("request", args[0])
# Check host
host = request.get_host()
if env_from_host(host) != "PROD":
raise Http404
else:
return func(*args, **kwargs)
return inner
| def dev_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) != 'DEV':
raise Http404
else:
return func(*args, **kwargs)
return inner
def non_production(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) not in ['DEV', 'BETA']:
raise Http404
else:
return func(*args, **kwargs)
return inner
def prod_only(func, *args, **kwargs):
def inner(*args, **kwargs):
request = kwargs.get('request', args[0])
host = request.get_host()
if env_from_host(host) != 'PROD':
raise Http404
else:
return func(*args, **kwargs)
return inner |
#UTF-8
def objects_data(map_number, mode, save_meta1):
if mode == 'stoper':
adres = 'data/stoper_old/stoper' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try: file = open(adres)
except FileNotFoundError:
return ['']
else:
file = open(adres, 'rb')
stop_cords = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
return stop_cords
elif mode == 'objects':
adres = 'data/objects_old/objects' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try: file = open(adres)
except FileNotFoundError:
return [['']]
else:
file = open(adres, 'rb')
objects = []
temp1 = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
for temp2 in temp1:
objects.append(temp2.split('_'))
return objects
def stoper(x_object, y_object, side, stop_cords=False):
if stop_cords != False and stop_cords != ['']:
stop = True
if side == 0:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and y_object + 59 >= y1 and y_object + 33 <= y2:
stop = False
if side == 1:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and y_object + 50 >= y1 and y_object + 30 <= y2:
stop = False
if side == 2:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 53 >= x1 and x_object + 10 <= x2 and y_object + 50 >= y1 and y_object + 33 <= y2:
stop = False
if side == 3:
for i in stop_cords:
if i == '': continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 7 <= x2 and y_object + 50 >= y1 and y_object + 33 <= y2:
stop = False
return stop
else: return True
| def objects_data(map_number, mode, save_meta1):
if mode == 'stoper':
adres = 'data/stoper_old/stoper' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try:
file = open(adres)
except FileNotFoundError:
return ['']
else:
file = open(adres, 'rb')
stop_cords = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
return stop_cords
elif mode == 'objects':
adres = 'data/objects_old/objects' + str(map_number[0]) + '_' + str(map_number[1]) + '.frls'
try:
file = open(adres)
except FileNotFoundError:
return [['']]
else:
file = open(adres, 'rb')
objects = []
temp1 = save_meta1.decrypt(file.read()).decode('utf8').strip().split('+')
for temp2 in temp1:
objects.append(temp2.split('_'))
return objects
def stoper(x_object, y_object, side, stop_cords=False):
if stop_cords != False and stop_cords != ['']:
stop = True
if side == 0:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and (y_object + 59 >= y1) and (y_object + 33 <= y2):
stop = False
if side == 1:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 10 <= x2 and (y_object + 50 >= y1) and (y_object + 30 <= y2):
stop = False
if side == 2:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 53 >= x1 and x_object + 10 <= x2 and (y_object + 50 >= y1) and (y_object + 33 <= y2):
stop = False
if side == 3:
for i in stop_cords:
if i == '':
continue
temp = i.split('_')
x1 = int(temp[0])
y1 = int(temp[1])
x2 = int(temp[2])
y2 = int(temp[3])
if x_object + 50 >= x1 and x_object + 7 <= x2 and (y_object + 50 >= y1) and (y_object + 33 <= y2):
stop = False
return stop
else:
return True |
class Solution:
def convert_to_title(self, n: int) -> str:
"""
1 -> 'A'
27 -> 'AA'
703 -> 'AAA'
"""
ans = []
while n > 0:
n, mod = divmod(n, 26)
if mod == 0:
mod = 26
n -= 1
ans.append(chr(64 + mod))
return "".join(ans[::-1])
| class Solution:
def convert_to_title(self, n: int) -> str:
"""
1 -> 'A'
27 -> 'AA'
703 -> 'AAA'
"""
ans = []
while n > 0:
(n, mod) = divmod(n, 26)
if mod == 0:
mod = 26
n -= 1
ans.append(chr(64 + mod))
return ''.join(ans[::-1]) |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'CRM',
'version': '1.0',
'category': 'Sales',
'sequence': 5,
'summary': 'Track leads and close opportunities',
'description': "",
'website': 'https://www.odoo.com/page/crm',
'depends': [
'base_setup',
'sales_team',
'mail',
'calendar',
'resource',
'fetchmail',
'utm',
'web_tour',
'contacts',
'digest',
],
'data': [
'security/crm_security.xml',
'security/ir.model.access.csv',
'data/crm_data.xml',
'data/crm_stage_data.xml',
'data/crm_lead_data.xml',
'data/digest_data.xml',
'wizard/crm_lead_lost_views.xml',
'wizard/crm_lead_to_opportunity_views.xml',
'wizard/crm_merge_opportunities_views.xml',
'views/crm_templates.xml',
'views/res_config_settings_views.xml',
'views/crm_views.xml',
'views/crm_stage_views.xml',
'views/crm_lead_views.xml',
'views/calendar_views.xml',
'views/res_partner_views.xml',
'report/crm_activity_report_views.xml',
'report/crm_opportunity_report_views.xml',
'views/crm_team_views.xml',
'views/digest_views.xml',
],
'demo': [
'data/crm_demo.xml',
'data/mail_activity_demo.xml',
'data/crm_lead_demo.xml',
],
'css': ['static/src/css/crm.css'],
'installable': True,
'application': True,
'auto_install': False,
'uninstall_hook': 'uninstall_hook',
}
| {'name': 'CRM', 'version': '1.0', 'category': 'Sales', 'sequence': 5, 'summary': 'Track leads and close opportunities', 'description': '', 'website': 'https://www.odoo.com/page/crm', 'depends': ['base_setup', 'sales_team', 'mail', 'calendar', 'resource', 'fetchmail', 'utm', 'web_tour', 'contacts', 'digest'], 'data': ['security/crm_security.xml', 'security/ir.model.access.csv', 'data/crm_data.xml', 'data/crm_stage_data.xml', 'data/crm_lead_data.xml', 'data/digest_data.xml', 'wizard/crm_lead_lost_views.xml', 'wizard/crm_lead_to_opportunity_views.xml', 'wizard/crm_merge_opportunities_views.xml', 'views/crm_templates.xml', 'views/res_config_settings_views.xml', 'views/crm_views.xml', 'views/crm_stage_views.xml', 'views/crm_lead_views.xml', 'views/calendar_views.xml', 'views/res_partner_views.xml', 'report/crm_activity_report_views.xml', 'report/crm_opportunity_report_views.xml', 'views/crm_team_views.xml', 'views/digest_views.xml'], 'demo': ['data/crm_demo.xml', 'data/mail_activity_demo.xml', 'data/crm_lead_demo.xml'], 'css': ['static/src/css/crm.css'], 'installable': True, 'application': True, 'auto_install': False, 'uninstall_hook': 'uninstall_hook'} |
class OptionContractTrade(object):
def __init__(self, trade_date, original_purchasing_price, option_contract):
"""
:param trade_date:
:param original_purchasing_price:
:param option_contract:
"""
self.trade_date = trade_date
self.original_purchasing_price = original_purchasing_price
self.option_contract = option_contract
| class Optioncontracttrade(object):
def __init__(self, trade_date, original_purchasing_price, option_contract):
"""
:param trade_date:
:param original_purchasing_price:
:param option_contract:
"""
self.trade_date = trade_date
self.original_purchasing_price = original_purchasing_price
self.option_contract = option_contract |
def count_substring(string, sub_string):
# if list(sub_string) not in list(string):
# return 0
count = 0
for i in range(len(string)):
if string[i:].startswith(sub_string):
count += 1
return count
if __name__ == '__main__':
string = input().strip()
sub_string = input().strip()
count = count_substring(string, sub_string)
print(count) | def count_substring(string, sub_string):
count = 0
for i in range(len(string)):
if string[i:].startswith(sub_string):
count += 1
return count
if __name__ == '__main__':
string = input().strip()
sub_string = input().strip()
count = count_substring(string, sub_string)
print(count) |
# Author : thepmsquare
# Question Link : https://leetcode.com/problems/reverse-integer/
class Solution:
def reverse(self, x: int) -> int:
answer = list()
if(x<0):
answer.append("-")
x=x*-1
tempList = list(str(x))
tempList.reverse()
answer.extend(tempList)
returnThis = int("".join(answer))
if returnThis < pow(-2,31) or returnThis > (pow(2,31)-1):
return 0
else:
return returnThis | class Solution:
def reverse(self, x: int) -> int:
answer = list()
if x < 0:
answer.append('-')
x = x * -1
temp_list = list(str(x))
tempList.reverse()
answer.extend(tempList)
return_this = int(''.join(answer))
if returnThis < pow(-2, 31) or returnThis > pow(2, 31) - 1:
return 0
else:
return returnThis |
def in_array(array1, array2):
new = set()
for sub in array1:
for sup in array2:
if sub in sup:
new.add(sub)
return sorted(list(new)) | def in_array(array1, array2):
new = set()
for sub in array1:
for sup in array2:
if sub in sup:
new.add(sub)
return sorted(list(new)) |
class Solution:
def maxConsecutiveAnswers(self, answerKey: str, k: int) -> int:
return max(self.maxConsecutiveChar(answerKey, 'T', k), self.maxConsecutiveChar(answerKey, 'F', k))
def maxConsecutiveChar(self, answerKey, ch, k):
ch_sum, left, result = 0, 0, 0
for i in range(len(answerKey)):
ch_sum += answerKey[i] != ch
while ch_sum > k:
ch_sum -= answerKey[left] != ch
left += 1
result = max(result, i - left + 1)
return result
s = Solution()
print(s.maxConsecutiveAnswers(answerKey="TTFF", k=2))
| class Solution:
def max_consecutive_answers(self, answerKey: str, k: int) -> int:
return max(self.maxConsecutiveChar(answerKey, 'T', k), self.maxConsecutiveChar(answerKey, 'F', k))
def max_consecutive_char(self, answerKey, ch, k):
(ch_sum, left, result) = (0, 0, 0)
for i in range(len(answerKey)):
ch_sum += answerKey[i] != ch
while ch_sum > k:
ch_sum -= answerKey[left] != ch
left += 1
result = max(result, i - left + 1)
return result
s = solution()
print(s.maxConsecutiveAnswers(answerKey='TTFF', k=2)) |
setup(name='hashcode_template',
version='0.1',
description='Template library for the HashCode challenge',
author='Nikos Koukis',
author_email='nickkouk@gmail.com',
license='MIT',
install_requires=(
"sh",
"numpy",
"scipy",
"matplotlib",
"pygal",
),
url='https://github.org/bergercookie/googlehash_template',
packages=['googlehash_template', ],
)
| setup(name='hashcode_template', version='0.1', description='Template library for the HashCode challenge', author='Nikos Koukis', author_email='nickkouk@gmail.com', license='MIT', install_requires=('sh', 'numpy', 'scipy', 'matplotlib', 'pygal'), url='https://github.org/bergercookie/googlehash_template', packages=['googlehash_template']) |
#!/usr/bin/python
class FilterModule(object):
def filters(self):
return {
'wrap': self.wrap
}
def wrap(self, list):
return [ "'" + x + "'" for x in list] | class Filtermodule(object):
def filters(self):
return {'wrap': self.wrap}
def wrap(self, list):
return ["'" + x + "'" for x in list] |
# Python Program To Create A Binary File And Store A Few Records
'''
Function Name : Create A Binary File And Store A Few Records
Function Date : 25 Sep 2020
Function Author : Prasad Dangare
Input : String,Integer
Output : String
'''
reclen = 20
# Open The File In wb Mode As Binary File
with open("cities.bin", "wb") as f:
# Write Data Into The File
n = int(input("How Many Entries ? "))
for i in range(n):
city = input('Enter City Names : ')
# Find The Length Of City
ln = len(city)
# Increase The City Name To 20 Chars
# By Adding Remaining Spaces
city = city + (reclen-ln)*' '
# Convert City Name Into Bytes String
city = city.encode()
# Write The City Name Into The File
f.write(city)
| """
Function Name : Create A Binary File And Store A Few Records
Function Date : 25 Sep 2020
Function Author : Prasad Dangare
Input : String,Integer
Output : String
"""
reclen = 20
with open('cities.bin', 'wb') as f:
n = int(input('How Many Entries ? '))
for i in range(n):
city = input('Enter City Names : ')
ln = len(city)
city = city + (reclen - ln) * ' '
city = city.encode()
f.write(city) |
pedidos = []
def adiciona_pedido(nome, sabor, observacao=None):
pedido = {}
pedido['nome'] = nome
pedido['sabor'] = sabor
pedido['observacao'] = observacao
return pedido
pedidos.append(adiciona_pedido('Mario', 'Portuguesa'))
pedidos.append(adiciona_pedido('Marcos', 'Peperoni', 'Dobro de peperoni'))
for pedido in pedidos:
template = 'Nome: {nome}\nSabor: {sabor}'
print(template.format(**pedido))
if pedido['observacao']:
print('Observacao: {}'.format(pedido['observacao']))
print('-'*75)
| pedidos = []
def adiciona_pedido(nome, sabor, observacao=None):
pedido = {}
pedido['nome'] = nome
pedido['sabor'] = sabor
pedido['observacao'] = observacao
return pedido
pedidos.append(adiciona_pedido('Mario', 'Portuguesa'))
pedidos.append(adiciona_pedido('Marcos', 'Peperoni', 'Dobro de peperoni'))
for pedido in pedidos:
template = 'Nome: {nome}\nSabor: {sabor}'
print(template.format(**pedido))
if pedido['observacao']:
print('Observacao: {}'.format(pedido['observacao']))
print('-' * 75) |
class Coin(object):
def __init__(self, json):
self.id = json["id"]
self.name = json["name"]
self.symbol = json["symbol"]
self.price_usd = json["price_usd"]
self.price_eur = json["price_eur"]
self.percent_change_1h = json["percent_change_1h"]
self.percent_change_24h = json["percent_change_24h"]
self.percent_change_7d = json["percent_change_7d"]
self.last_updated = json["last_updated"]
def __str__(self):
return '%s(%s)' % (type(self).__name__, ', '.join('%s=%s' % item for item in vars(self).items()))
| class Coin(object):
def __init__(self, json):
self.id = json['id']
self.name = json['name']
self.symbol = json['symbol']
self.price_usd = json['price_usd']
self.price_eur = json['price_eur']
self.percent_change_1h = json['percent_change_1h']
self.percent_change_24h = json['percent_change_24h']
self.percent_change_7d = json['percent_change_7d']
self.last_updated = json['last_updated']
def __str__(self):
return '%s(%s)' % (type(self).__name__, ', '.join(('%s=%s' % item for item in vars(self).items()))) |
# Input:
prevA = 116
prevB = 299
factorA = 16807
factorB = 48271
divisor = 2147483647
judge = 0
for _ in range(40000000):
A = (prevA*factorA)%divisor
B = (prevB*factorB)%divisor
prevA = A
prevB = B
binA = bin(A).split("b")[-1][-16:]
binB = bin(B).split("b")[-1][-16:]
binA = '0'*(16-len(binA))+binA
binB = '0'*(16-len(binB))+binB
if binA == binB:
judge += 1
print(judge)
| prev_a = 116
prev_b = 299
factor_a = 16807
factor_b = 48271
divisor = 2147483647
judge = 0
for _ in range(40000000):
a = prevA * factorA % divisor
b = prevB * factorB % divisor
prev_a = A
prev_b = B
bin_a = bin(A).split('b')[-1][-16:]
bin_b = bin(B).split('b')[-1][-16:]
bin_a = '0' * (16 - len(binA)) + binA
bin_b = '0' * (16 - len(binB)) + binB
if binA == binB:
judge += 1
print(judge) |
#==============================================================================
# Copyright 2019 Intel Corporation
#
# 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.
# =============================================================================
def parse_logs(log_lines):
if type(log_lines) == type(''):
log_lines = log_lines.split('\n')
else:
assert type(log_lines) == type(
[]
), "If log_lines if not a string, it should have been a list, but instead it is a " + type(
log_lines)
assert all([
type(i) == type('') and '\n' not in i for i in log_lines
]), 'Each element of the list should be a string and not contain new lines'
all_results = {}
curr_result = {}
ctr = 0
for line in log_lines:
start_of_subgraph = "NGTF_SUMMARY: Op_not_supported:" in line
# If logs of a new sub-graph is starting, save the old one
if start_of_subgraph:
if len(curr_result) > 0:
all_results[str(ctr)] = curr_result
curr_result = {}
ctr += 1
# keep collecting information in curr_result
if line.startswith('NGTF_SUMMARY'):
if 'Number of nodes in the graph' in line:
curr_result['num_nodes_in_graph'] = int(
line.split(':')[-1].strip())
elif 'Number of nodes marked for clustering' in line:
curr_result['num_nodes_marked_for_clustering'] = int(
line.split(':')[-1].strip().split(' ')[0].strip())
elif 'Number of ngraph clusters' in line:
curr_result['num_ng_clusters'] = int(
line.split(':')[-1].strip())
# TODO: fill other information as needed
# add the last subgraph to all_results
all_results[str(ctr)] = curr_result
return all_results
def compare_parsed_values(parsed_vals, expected_vals):
# Both inputs are expected to be 2 dictionaries (representing jsons)
# The constraints in expected is <= parsed_vals. Parsed_vals should have all possible values that the parser can spit out. However expected_vals can be relaxed (even empty) and choose to only verify/match certain fields
match = lambda current, expected: all(
[expected[k] == current[k] for k in expected])
for graph_id_1 in expected_vals:
# The ordering is not important and could be different, hence search through all elements of parsed_vals
matching_id = None
for graph_id_2 in parsed_vals:
if match(expected_vals[graph_id_1], parsed_vals[graph_id_2]):
matching_id = graph_id_2
break
if matching_id is None:
return False, 'Failed to match expected graph info ' + graph_id_1 + " which was: " + str(
expected_vals[graph_id_1]
) + "\n. Got the following parsed results: " + str(parsed_vals)
else:
parsed_vals.pop(matching_id)
return True, ''
| def parse_logs(log_lines):
if type(log_lines) == type(''):
log_lines = log_lines.split('\n')
else:
assert type(log_lines) == type([]), 'If log_lines if not a string, it should have been a list, but instead it is a ' + type(log_lines)
assert all([type(i) == type('') and '\n' not in i for i in log_lines]), 'Each element of the list should be a string and not contain new lines'
all_results = {}
curr_result = {}
ctr = 0
for line in log_lines:
start_of_subgraph = 'NGTF_SUMMARY: Op_not_supported:' in line
if start_of_subgraph:
if len(curr_result) > 0:
all_results[str(ctr)] = curr_result
curr_result = {}
ctr += 1
if line.startswith('NGTF_SUMMARY'):
if 'Number of nodes in the graph' in line:
curr_result['num_nodes_in_graph'] = int(line.split(':')[-1].strip())
elif 'Number of nodes marked for clustering' in line:
curr_result['num_nodes_marked_for_clustering'] = int(line.split(':')[-1].strip().split(' ')[0].strip())
elif 'Number of ngraph clusters' in line:
curr_result['num_ng_clusters'] = int(line.split(':')[-1].strip())
all_results[str(ctr)] = curr_result
return all_results
def compare_parsed_values(parsed_vals, expected_vals):
match = lambda current, expected: all([expected[k] == current[k] for k in expected])
for graph_id_1 in expected_vals:
matching_id = None
for graph_id_2 in parsed_vals:
if match(expected_vals[graph_id_1], parsed_vals[graph_id_2]):
matching_id = graph_id_2
break
if matching_id is None:
return (False, 'Failed to match expected graph info ' + graph_id_1 + ' which was: ' + str(expected_vals[graph_id_1]) + '\n. Got the following parsed results: ' + str(parsed_vals))
else:
parsed_vals.pop(matching_id)
return (True, '') |
class DepotPolicy:
def __init__(self, depot):
self.depot = depot
def next_locations(self, cur_ts, cur_locations, already_spent_costs):
pass
| class Depotpolicy:
def __init__(self, depot):
self.depot = depot
def next_locations(self, cur_ts, cur_locations, already_spent_costs):
pass |
sum_of_lines = 0
sum_of_lines2 = 0
def calculate(expr):
result = 0
if expr.count("(") == 0:
expr = expr.split()
n = len(expr)
i = 0
while i < (n-2):
expr[i] = int(expr[i])
expr[i+2] = int(expr[i+2])
if expr[i+1] == "+":
expr[i+2] += expr[i]
elif expr[i+1] == "*":
expr[i+2] *= expr[i]
i += 2
return expr[n-1]
while expr.count(")") > 0:
expr = expr.split("(")
for i, e in enumerate(expr):
if e.count(")") > 0:
loc = e.index(")")
partial = calculate(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc+1:]
break
new = expr[0]
for j, a in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += "(" + a
expr = new
expr = expr.replace("(", "")
return calculate(expr)
def calculate_add(expr):
result = 0
if expr.count("(") == 0:
#1st calulate all +
expr = expr.split()
for i, a in enumerate(expr):
if i % 2 == 0:
expr[i] = int(a)
new = []
n = len(expr)
i = 0
while i < (n-2):
if expr[i+1] == "+":
expr[i+2] += expr[i]
elif expr[i+1] == "*":
new.append(expr[i])
new.append("*")
i += 2
new.append(expr[n-1])
#2nd calculate *
n = len(new)
i = 0
while i < (n-2):
new[i+2] *= new[i]
i += 2
return new[n-1]
while expr.count(")") > 0:
expr = expr.split("(")
for i, e in enumerate(expr):
if e.count(")") > 0:
loc = e.index(")")
partial = calculate_add(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc+1:]
break
new = expr[0]
for j, a in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += "(" + a
expr = new
expr = expr.replace("(", "")
return calculate_add(expr)
# print(calculate_add("5 + (8 * 3 + 9 + 3 * 4 * 3)"))
while True:
try:
line = input()
sum_of_lines += calculate(line)
sum_of_lines2 += calculate_add(line)
except:
break
print(sum_of_lines)
print(sum_of_lines2) | sum_of_lines = 0
sum_of_lines2 = 0
def calculate(expr):
result = 0
if expr.count('(') == 0:
expr = expr.split()
n = len(expr)
i = 0
while i < n - 2:
expr[i] = int(expr[i])
expr[i + 2] = int(expr[i + 2])
if expr[i + 1] == '+':
expr[i + 2] += expr[i]
elif expr[i + 1] == '*':
expr[i + 2] *= expr[i]
i += 2
return expr[n - 1]
while expr.count(')') > 0:
expr = expr.split('(')
for (i, e) in enumerate(expr):
if e.count(')') > 0:
loc = e.index(')')
partial = calculate(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc + 1:]
break
new = expr[0]
for (j, a) in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += '(' + a
expr = new
expr = expr.replace('(', '')
return calculate(expr)
def calculate_add(expr):
result = 0
if expr.count('(') == 0:
expr = expr.split()
for (i, a) in enumerate(expr):
if i % 2 == 0:
expr[i] = int(a)
new = []
n = len(expr)
i = 0
while i < n - 2:
if expr[i + 1] == '+':
expr[i + 2] += expr[i]
elif expr[i + 1] == '*':
new.append(expr[i])
new.append('*')
i += 2
new.append(expr[n - 1])
n = len(new)
i = 0
while i < n - 2:
new[i + 2] *= new[i]
i += 2
return new[n - 1]
while expr.count(')') > 0:
expr = expr.split('(')
for (i, e) in enumerate(expr):
if e.count(')') > 0:
loc = e.index(')')
partial = calculate_add(e[:loc])
if loc == len(e) - 1:
expr[i] = str(partial)
else:
expr[i] = str(partial) + e[loc + 1:]
break
new = expr[0]
for (j, a) in enumerate(expr[1:]):
if j + 1 == i:
new += a
else:
new += '(' + a
expr = new
expr = expr.replace('(', '')
return calculate_add(expr)
while True:
try:
line = input()
sum_of_lines += calculate(line)
sum_of_lines2 += calculate_add(line)
except:
break
print(sum_of_lines)
print(sum_of_lines2) |
LANIA = 1032201
sm.forcedInput(2)
sm.sendDelay(30)
sm.forcedInput(0)
sm.removeEscapeButton()
sm.setSpeakerID(LANIA)
sm.sendNext("Don't take too long, okay? I know how you like to dilly-dally in town!")
sm.flipDialoguePlayerAsSpeaker()
sm.sendSay("I will return as swiftly as I can, dear Lania.")
sm.sendSay("Lania, since I've started living here, for the first time in my life I'm--ARGH!")
sm.setSpeakerID(LANIA)
sm.sendSay("Luminous?")
sm.forcedAction(4, 6000)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/0", 5400, 0, 20, -2, -2, False, 0)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/1", 1400, 0, -120, -2, -2, False, 0)
sm.moveNpcByTemplateId(LANIA, True, 50, 100)
sm.reservedEffect("Effect/Direction8.img/lightningTutorial2/Scene2")
sm.playExclSoundWithDownBGM("Bgm26.img/Flood", 100)
sm.sendDelay(500)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/2", 0, 0, -120, 0, sm.getNpcObjectIdByTemplateId(LANIA), False, 0)
sm.sendDelay(2000)
sm.showEffect("Effect/Direction8.img/effect/tuto/BalloonMsg1/3", 0, 0, -180, -2, -2, False, 0)
sm.sendDelay(2300)
sm.faceOff(21066)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/1", 0, 0, 0, -2, -2, False, 0)
sm.showEffect("Effect/Direction8.img/effect/tuto/floodEffect/2", 0, 0, 0, -2, -2, False, 0)
sm.sendDelay(3000)
sm.removeNpc(LANIA)
sm.warp(910141060, 0) | lania = 1032201
sm.forcedInput(2)
sm.sendDelay(30)
sm.forcedInput(0)
sm.removeEscapeButton()
sm.setSpeakerID(LANIA)
sm.sendNext("Don't take too long, okay? I know how you like to dilly-dally in town!")
sm.flipDialoguePlayerAsSpeaker()
sm.sendSay('I will return as swiftly as I can, dear Lania.')
sm.sendSay("Lania, since I've started living here, for the first time in my life I'm--ARGH!")
sm.setSpeakerID(LANIA)
sm.sendSay('Luminous?')
sm.forcedAction(4, 6000)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/0', 5400, 0, 20, -2, -2, False, 0)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/1', 1400, 0, -120, -2, -2, False, 0)
sm.moveNpcByTemplateId(LANIA, True, 50, 100)
sm.reservedEffect('Effect/Direction8.img/lightningTutorial2/Scene2')
sm.playExclSoundWithDownBGM('Bgm26.img/Flood', 100)
sm.sendDelay(500)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/2', 0, 0, -120, 0, sm.getNpcObjectIdByTemplateId(LANIA), False, 0)
sm.sendDelay(2000)
sm.showEffect('Effect/Direction8.img/effect/tuto/BalloonMsg1/3', 0, 0, -180, -2, -2, False, 0)
sm.sendDelay(2300)
sm.faceOff(21066)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/1', 0, 0, 0, -2, -2, False, 0)
sm.showEffect('Effect/Direction8.img/effect/tuto/floodEffect/2', 0, 0, 0, -2, -2, False, 0)
sm.sendDelay(3000)
sm.removeNpc(LANIA)
sm.warp(910141060, 0) |
TIPO_DOCUMENTO_CPF = 1
TIPO_DOCUMENTO_CNPJ = 2
class Cedente(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.convenio = None
self.convenioDigito = None
@property
def documentoTexto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Sacado(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.logradouro = None
self.endereco = None
self.bairro = None
self.cidade = None
self.uf = None
self.cep = None
self.email = None
self.informacoes = ""
@property
def documentoTexto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Boleto(object):
def __init__(self):
self.carteira = ""
self.nossoNumero = ""
self.dataVencimento = None
self.dataDocumento = None
self.dataProcessamento = None
self.valorBoleto = 0.0
self.quantidadeMoeda = 1
self.valorMoeda = ""
self.instrucoes = []
#self.especieCodigo = 0
#self.especieSigla = ""
self.especieDocumento = ""
self.aceite = "N"
self.numeroDocumento = ""
self.especie = "R$"
self.moeda = 9
#self.usoBanco
self.cedente = None
self.categoria = 0
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.banco = 33
self.valorDesconto = None
self.tipoDesconto1 = None
self.valorDesconto1 = None
self.tipoDesconto2 = None
self.valorDesconto2 = None
self.sacado = None
self.jurosMora = 0.0
self.iof = 0.0
self.abatimento = 0.0
self.valorMulta = 0.0
self.outrosAcrescimos = 0.0
self.outrosDescontos = 0.0
self.dataJurosMora = None
self.dataMulta = None
self.dataOutrosAcrescimos = None
self.dataOutrosDescontos = None
self.retJurosMoltaEncargos = None
self.retValorDescontoConcedido = None
self.retValorAbatimentoConcedido = None
self.retValorPagoPeloSacado = None
self.retValorLiquidoASerCreditado = None
self.retValorOutrasDespesas = None
self.retValorOutrosCreditos = None
self.retDataOcorrencia = None
self.retDataOcorrenciaS = None
self.retDataCredito = None
self.retCodigoOcorrenciaSacado = None
self.retDescricaoOcorrenciaSacado = None
self.retValorOcorrenciaSacado = None
def carrega_segmento(self, specs, tipo, valores):
if tipo == "P":
carteiras = specs['carteiras']
tipo_cobranca = str(valores['tipo_cobranca'])
self.carteira = carteiras.get(tipo_cobranca, "0")
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.dataDocumento = valores['data_emissao']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.especieDocumento = valores.get('tipo_documento') # or ""?
self.numeroDocumento = valores['seu_numero']
#self.moeda = valores['cod_moeda'] #TODO: checar se tem de/para
#self.categoria = 0
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
self.valorDesconto = valores['desconto'] #TODO: distinguir entre percentagem e valor
self.jurosMora = valores['valor_mora_dia'] #TODO: distinguir entre percentagem e valor
self.iof = valores.get('valor_iof', 0)
self.abatimento = valores['valor_abatimento']
#self.outrosAcrescimos = 0 #? #TODO: verificar se soma outros campos ou nao
#self.outrosDescontos = 0 #? #TODO: verificar se soma outros campos ou nao
self.dataJurosMora = valores['data_juros']
#self.dataOutrosDescontos = None
#self.dataOutrosAcrescimos = None
self.aceite = valores['aceite'] #?
elif tipo == "Q":
sacado = Sacado()
sacado.nome = valores['nome']
sacado.tipoDocumento = valores['tipo_inscricao']
sacado.documento = valores['numero_inscricao']
sacado.logradouro = valores['endereco']
sacado.endereco = valores['endereco']
sacado.bairro = valores['bairro']
sacado.cidade = valores['cidade']
sacado.uf = valores['uf']
sacado.cep = ('%05d' % valores['cep']) + ('%03d' % valores['cep_sufixo'])
self.sacado = sacado
elif tipo == "R":
self.valorMulta = valores['multa']
self.dataMulta = valores['data_multa']
pass
elif tipo == "S":
pass
elif tipo == "T":
#carteiras = specs['carteiras']
#tipo_cobranca = str(valores['tipo_cobranca'])
#self.carteira = carteiras.get(tipo_cobranca, "0")
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
elif tipo == "U":
self.retJurosMoltaEncargos = valores['valor_encargos']
self.retValorDescontoConcedido = valores['valor_desconto']
self.retValorAbatimentoConcedido = valores['valor_abatimento']
self.retValorPagoPeloSacado = valores['valor_pago']
self.retValorLiquidoASerCreditado = valores['valor_liquido']
self.retValorOutrasDespesas = valores['valor_despesas']
self.retValorOutrosCreditos = valores['valor_creditos']
self.retDataOcorrencia = valores['data_ocorrencia']
self.retDataOcorrenciaS = valores['data_ocorrencia_s']
self.retDataCredito = valores['data_efetivacao']
self.retCodigoOcorrenciaSacado = valores['cod_movimento']
self.retDescricaoOcorrenciaSacado = valores['comp_ocorrencia']
self.retValorOcorrenciaSacado = valores['valor_ocorrencia']
elif tipo == "Y":
pass
@property
def valorCobrado(self):
return valorBoleto #TODO
@property
def nossoNumeroTexto(self):
return "%013d" % self.nossoNumero
| tipo_documento_cpf = 1
tipo_documento_cnpj = 2
class Cedente(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.convenio = None
self.convenioDigito = None
@property
def documento_texto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Sacado(object):
def __init__(self):
self.tipoDocumento = None
self.documento = None
self.nome = None
self.logradouro = None
self.endereco = None
self.bairro = None
self.cidade = None
self.uf = None
self.cep = None
self.email = None
self.informacoes = ''
@property
def documento_texto(self):
if self.tipoDocumento == 1:
return '%011d' % self.documento
elif self.tipoDocumento == 2:
return '%014d' % self.documento
else:
return str(self.documento)
class Boleto(object):
def __init__(self):
self.carteira = ''
self.nossoNumero = ''
self.dataVencimento = None
self.dataDocumento = None
self.dataProcessamento = None
self.valorBoleto = 0.0
self.quantidadeMoeda = 1
self.valorMoeda = ''
self.instrucoes = []
self.especieDocumento = ''
self.aceite = 'N'
self.numeroDocumento = ''
self.especie = 'R$'
self.moeda = 9
self.cedente = None
self.categoria = 0
self.agencia = None
self.agenciaDigito = None
self.conta = None
self.contaDigito = None
self.banco = 33
self.valorDesconto = None
self.tipoDesconto1 = None
self.valorDesconto1 = None
self.tipoDesconto2 = None
self.valorDesconto2 = None
self.sacado = None
self.jurosMora = 0.0
self.iof = 0.0
self.abatimento = 0.0
self.valorMulta = 0.0
self.outrosAcrescimos = 0.0
self.outrosDescontos = 0.0
self.dataJurosMora = None
self.dataMulta = None
self.dataOutrosAcrescimos = None
self.dataOutrosDescontos = None
self.retJurosMoltaEncargos = None
self.retValorDescontoConcedido = None
self.retValorAbatimentoConcedido = None
self.retValorPagoPeloSacado = None
self.retValorLiquidoASerCreditado = None
self.retValorOutrasDespesas = None
self.retValorOutrosCreditos = None
self.retDataOcorrencia = None
self.retDataOcorrenciaS = None
self.retDataCredito = None
self.retCodigoOcorrenciaSacado = None
self.retDescricaoOcorrenciaSacado = None
self.retValorOcorrenciaSacado = None
def carrega_segmento(self, specs, tipo, valores):
if tipo == 'P':
carteiras = specs['carteiras']
tipo_cobranca = str(valores['tipo_cobranca'])
self.carteira = carteiras.get(tipo_cobranca, '0')
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.dataDocumento = valores['data_emissao']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.especieDocumento = valores.get('tipo_documento')
self.numeroDocumento = valores['seu_numero']
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
self.valorDesconto = valores['desconto']
self.jurosMora = valores['valor_mora_dia']
self.iof = valores.get('valor_iof', 0)
self.abatimento = valores['valor_abatimento']
self.dataJurosMora = valores['data_juros']
self.aceite = valores['aceite']
elif tipo == 'Q':
sacado = sacado()
sacado.nome = valores['nome']
sacado.tipoDocumento = valores['tipo_inscricao']
sacado.documento = valores['numero_inscricao']
sacado.logradouro = valores['endereco']
sacado.endereco = valores['endereco']
sacado.bairro = valores['bairro']
sacado.cidade = valores['cidade']
sacado.uf = valores['uf']
sacado.cep = '%05d' % valores['cep'] + '%03d' % valores['cep_sufixo']
self.sacado = sacado
elif tipo == 'R':
self.valorMulta = valores['multa']
self.dataMulta = valores['data_multa']
pass
elif tipo == 'S':
pass
elif tipo == 'T':
self.nossoNumero = valores['nosso_numero']
self.dataVencimento = valores['data_vencimento']
self.valorBoleto = valores['valor_nominal']
cedente = self.cedente
cedente.agencia = valores['agencia_benef']
cedente.agenciaDigito = valores.get('agencia_benef_dig')
cedente.conta = valores['numero_conta']
cedente.contaDigito = valores.get('digito_conta')
cedente.convenio = 0
cedente.convenioDigito = -1
self.banco = valores['codigo_banco']
self.agencia = valores['agencia_benef']
self.agenciaDigito = valores.get('agencia_benef_dig')
self.conta = valores['numero_conta']
self.contaDigito = valores.get('digito_conta')
elif tipo == 'U':
self.retJurosMoltaEncargos = valores['valor_encargos']
self.retValorDescontoConcedido = valores['valor_desconto']
self.retValorAbatimentoConcedido = valores['valor_abatimento']
self.retValorPagoPeloSacado = valores['valor_pago']
self.retValorLiquidoASerCreditado = valores['valor_liquido']
self.retValorOutrasDespesas = valores['valor_despesas']
self.retValorOutrosCreditos = valores['valor_creditos']
self.retDataOcorrencia = valores['data_ocorrencia']
self.retDataOcorrenciaS = valores['data_ocorrencia_s']
self.retDataCredito = valores['data_efetivacao']
self.retCodigoOcorrenciaSacado = valores['cod_movimento']
self.retDescricaoOcorrenciaSacado = valores['comp_ocorrencia']
self.retValorOcorrenciaSacado = valores['valor_ocorrencia']
elif tipo == 'Y':
pass
@property
def valor_cobrado(self):
return valorBoleto
@property
def nosso_numero_texto(self):
return '%013d' % self.nossoNumero |
"""
This file contains the code name.
"""
def show():
"""
Show the title of the model pipeline. Based on F.R. NIKA soft.
See also http://patorjk.com/software/taag
Parameters
----------
Outputs
----------
"""
print("=====================================================================")
print(" ___ __ ___ __ __ ")
print(" / __) / _\ / __) / \ ( ) ")
print(" ( (__ / \( (_ \( O )/ (_/\ ")
print(" \___)\_/\_/ \___/ \__/ \____/ ")
print("=====================================================================")
print(" Cluster Atmosphere modeling for Gamma-ray Observations Libraries ")
print("---------------------------------------------------------------------")
print(" ")
#print("=================================================================")
#print(" ______ _____ _____ ______ _____ ")
#print(" | ___ \ ___| __ \| ___ \ ___| ")
#print(" | |_/ / |__ | | \/| |_/ / |__ ")
#print(" | __/| __|| | __ | /| __| ")
#print(" | | | |___| |_\ \| |\ \| |___ ")
#print(" \_| \____/ \____/\_| \_\____/ ")
#print("=================================================================")
#print(" Pipeline for the Estimation of Gamma Ray Emission in clusters ")
#print("-----------------------------------------------------------------")
#print(" ")
# Galaxy Cluster Hot Gas Modeling Pipeline Gamma Ray Observations Analysis and Multi-Wavelength
| """
This file contains the code name.
"""
def show():
"""
Show the title of the model pipeline. Based on F.R. NIKA soft.
See also http://patorjk.com/software/taag
Parameters
----------
Outputs
----------
"""
print('=====================================================================')
print(' ___ __ ___ __ __ ')
print(' / __) / _\\ / __) / \\ ( ) ')
print(' ( (__ / \\( (_ \\( O )/ (_/\\ ')
print(' \\___)\\_/\\_/ \\___/ \\__/ \\____/ ')
print('=====================================================================')
print(' Cluster Atmosphere modeling for Gamma-ray Observations Libraries ')
print('---------------------------------------------------------------------')
print(' ') |
# Belle Pan
# 260839939
history = input("Family history?")
# complete the program by writing your own code here
if history == "No":
print("Low risk")
elif history == "Yes":
ancestry = input("European ancestry?")
if ancestry == "No":
try:
AR_GCCRepeat = int(input("AR_GCC repeat copy number?"))
if AR_GCCRepeat <16 and AR_GCCRepeat >=0:
print("High risk")
elif AR_GCCRepeat >=16:
print("Medium risk")
else:
print("Invalid")
except ValueError:
print("Invalid")
elif ancestry == "Mixed":
try:
AR_GCCRepeat = int(input("AR_GCC repeat copy number?"))
if AR_GCCRepeat <16 and AR_GCCRepeat >=0:
CYP3A4type = input("CYP3A4 haplotype?")
if CYP3A4type == "AA":
print("Medium risk")
elif CYP3A4type == "GA" or CYP3A4type == "AG" or CYP3A4type == "GG":
print("High risk")
else:
print("Invalid")
elif AR_GCCRepeat >=16:
print("Medium risk")
else:
print("Invalid")
except ValueError:
print("Invalid")
elif ancestry == "Yes":
CYP3A4type = input("CYP3A4 haplotype?")
if CYP3A4type == "AA":
print("Low risk")
elif CYP3A4type == "GA" or CYP3A4type == "AG" or CYP3A4type == "GG":
print("High risk")
else:
print("Invalid")
else:
print("Invalid")
else:
print("Invalid")
| history = input('Family history?')
if history == 'No':
print('Low risk')
elif history == 'Yes':
ancestry = input('European ancestry?')
if ancestry == 'No':
try:
ar_gcc_repeat = int(input('AR_GCC repeat copy number?'))
if AR_GCCRepeat < 16 and AR_GCCRepeat >= 0:
print('High risk')
elif AR_GCCRepeat >= 16:
print('Medium risk')
else:
print('Invalid')
except ValueError:
print('Invalid')
elif ancestry == 'Mixed':
try:
ar_gcc_repeat = int(input('AR_GCC repeat copy number?'))
if AR_GCCRepeat < 16 and AR_GCCRepeat >= 0:
cyp3_a4type = input('CYP3A4 haplotype?')
if CYP3A4type == 'AA':
print('Medium risk')
elif CYP3A4type == 'GA' or CYP3A4type == 'AG' or CYP3A4type == 'GG':
print('High risk')
else:
print('Invalid')
elif AR_GCCRepeat >= 16:
print('Medium risk')
else:
print('Invalid')
except ValueError:
print('Invalid')
elif ancestry == 'Yes':
cyp3_a4type = input('CYP3A4 haplotype?')
if CYP3A4type == 'AA':
print('Low risk')
elif CYP3A4type == 'GA' or CYP3A4type == 'AG' or CYP3A4type == 'GG':
print('High risk')
else:
print('Invalid')
else:
print('Invalid')
else:
print('Invalid') |
'''
fibonacci.py: Prints the Fibonacci sequence to the limit specified by the user.
Uses a generator function for fun. Based on https://redd.it/19r3qg.
'''
def fib(n):
a, b = 0, 1
for i in range(n):
yield a
a, b = b, a + b
if __name__ == '__main__':
n = None
while n is None:
try:
n = int(input('How many numbers would you like to print? '))
except ValueError:
print('Error: Please enter integers only!')
pass
for i in fib(n):
print(i, end=' ')
print(' ')
| """
fibonacci.py: Prints the Fibonacci sequence to the limit specified by the user.
Uses a generator function for fun. Based on https://redd.it/19r3qg.
"""
def fib(n):
(a, b) = (0, 1)
for i in range(n):
yield a
(a, b) = (b, a + b)
if __name__ == '__main__':
n = None
while n is None:
try:
n = int(input('How many numbers would you like to print? '))
except ValueError:
print('Error: Please enter integers only!')
pass
for i in fib(n):
print(i, end=' ')
print(' ') |
expected_output = {
"interface": {
"Tunnel100": {
"max_send_limit": "10000Pkts/10Sec",
"usage": "0%",
"sent": {
"total": 5266,
"resolution_request": 69,
"resolution_reply": 73,
"registration_request": 5083,
"registration_reply": 0,
"purge_request": 41,
"purge_reply": 0,
"error_indication": 0,
"traffic_indication": 0,
"redirect_supress": 0,
},
"rcvd": {
"total": 5251,
"resolution_request": 73,
"resolution_reply": 41,
"registration_request": 0,
"registration_reply": 5055,
"purge_request": 41,
"purge_reply": 0,
"error_indication": 0,
"traffic_indication": 41,
"redirect_supress": 0,
},
}
}
}
| expected_output = {'interface': {'Tunnel100': {'max_send_limit': '10000Pkts/10Sec', 'usage': '0%', 'sent': {'total': 5266, 'resolution_request': 69, 'resolution_reply': 73, 'registration_request': 5083, 'registration_reply': 0, 'purge_request': 41, 'purge_reply': 0, 'error_indication': 0, 'traffic_indication': 0, 'redirect_supress': 0}, 'rcvd': {'total': 5251, 'resolution_request': 73, 'resolution_reply': 41, 'registration_request': 0, 'registration_reply': 5055, 'purge_request': 41, 'purge_reply': 0, 'error_indication': 0, 'traffic_indication': 41, 'redirect_supress': 0}}}} |
start_num = int(input())
end_num = int(input())
magic_num = int(input())
counter = 0
flag = False
for first_num in range (start_num, end_num + 1):
for second_num in range (start_num, end_num + 1):
counter += 1
if first_num + second_num == magic_num:
print(f'Combination N:{counter} ({first_num} + {second_num} = {magic_num})')
flag = True
break
if flag:
break
if not flag:
print(f'{counter} combinations - neither equals {magic_num}') | start_num = int(input())
end_num = int(input())
magic_num = int(input())
counter = 0
flag = False
for first_num in range(start_num, end_num + 1):
for second_num in range(start_num, end_num + 1):
counter += 1
if first_num + second_num == magic_num:
print(f'Combination N:{counter} ({first_num} + {second_num} = {magic_num})')
flag = True
break
if flag:
break
if not flag:
print(f'{counter} combinations - neither equals {magic_num}') |
""" The thief has found himself a new place for his thievery again. There is only
one entrance to this area, called the "root." Besides the root, each house
has one and only one parent house. After a tour, the smart thief realized
that "all houses in this place forms a binary tree". It will automatically
contact the police if two directly-linked houses were broken into on the same
night.
Determine the maximum amount of money the thief can rob tonight without
alerting the police.
Algorithm
Use a helper function which receives a node as input and returns a
two-element array, where the first element represents the maximum amount of
money the thief can rob if starting from this node without robbing this node,
and the second element represents the maximum amount of money the thief can
rob if starting from this node and robbing this node.
The basic case of the helper function should be null node, and in this case,
it returns two zeros.
Finally, call the helper(root) in the main function, and return its maximum
value.
IDEA:
construct a repeatable situation where there is a need to make a choice
1) cost to rob this node and not robe neighbors
2) cost not to rob this node, and investigate the cost of robbing neighbors in different combinations
"""
class Solution337:
pass
| """ The thief has found himself a new place for his thievery again. There is only
one entrance to this area, called the "root." Besides the root, each house
has one and only one parent house. After a tour, the smart thief realized
that "all houses in this place forms a binary tree". It will automatically
contact the police if two directly-linked houses were broken into on the same
night.
Determine the maximum amount of money the thief can rob tonight without
alerting the police.
Algorithm
Use a helper function which receives a node as input and returns a
two-element array, where the first element represents the maximum amount of
money the thief can rob if starting from this node without robbing this node,
and the second element represents the maximum amount of money the thief can
rob if starting from this node and robbing this node.
The basic case of the helper function should be null node, and in this case,
it returns two zeros.
Finally, call the helper(root) in the main function, and return its maximum
value.
IDEA:
construct a repeatable situation where there is a need to make a choice
1) cost to rob this node and not robe neighbors
2) cost not to rob this node, and investigate the cost of robbing neighbors in different combinations
"""
class Solution337:
pass |
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def __repr__(self):
return f'{self.val} -> [{self.left}, {self.right}]'
def constructMaximumBinaryTree(nums):
"""O(N) time | O(1) space"""
stack = []
for num in nums:
last = None
num = TreeNode(num)
while stack and num.val > stack[-1].val:
last = stack.pop()
if last:
num.left = last
if stack:
stack[-1].right = num
stack.append(num)
return stack[0]
constructMaximumBinaryTree([3,2,1,6,0,5])
| class Treenode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def __repr__(self):
return f'{self.val} -> [{self.left}, {self.right}]'
def construct_maximum_binary_tree(nums):
"""O(N) time | O(1) space"""
stack = []
for num in nums:
last = None
num = tree_node(num)
while stack and num.val > stack[-1].val:
last = stack.pop()
if last:
num.left = last
if stack:
stack[-1].right = num
stack.append(num)
return stack[0]
construct_maximum_binary_tree([3, 2, 1, 6, 0, 5]) |
#
# Copyright (c) Ionplus AG and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for details.
#
def test_defaults(orm):
assert orm.query(orm.sample_type).get('sample').sort_order == 0
assert orm.query(orm.sample_type).get('oxa2').sort_order == 20
assert orm.query(orm.sample_type).get('bl').sort_order == 30
assert orm.query(orm.sample_type).get('lnz').sort_order == 110
assert orm.query(orm.sample_type).get('nb').sort_order == 400
| def test_defaults(orm):
assert orm.query(orm.sample_type).get('sample').sort_order == 0
assert orm.query(orm.sample_type).get('oxa2').sort_order == 20
assert orm.query(orm.sample_type).get('bl').sort_order == 30
assert orm.query(orm.sample_type).get('lnz').sort_order == 110
assert orm.query(orm.sample_type).get('nb').sort_order == 400 |
class HelpReference:
description = "\
Model-leaf uses the Tensorflow implementation of Mask-RCNN by MatterPort and a handful of integration scripts and utilities to simplify training and inference of leaf datasets.\
For information on the different subcommands read the according manual pages\
"
help_description = "\
Prints the synopsis and the list of possible options and commands."
class GenerateRGBDReference:
description = "Dataset preparation and point-cloud generation from the RGB-D images"
output = "Set output directory [default: current]"
location = "Location to save the dataset files"
task = "task id for agrinet datasets"
config = "specify config file"
dataset_config = "dataset configuration file path"
class TrainReference:
description = "Creates a dataset of synthetic pictures, and runs the training model on the dataset. The best result model is saved as a .h5 file."
output = "specify path to .h5 model location [default: current]"
dataset_keep = "specify how many samples to keep [default: 0]"
test_set = "specify path to test set"
config = "specify path to the model (mask-r cnn) config file"
synthetic = "Set the synthetic dataset generator to scatter the leaves randomly (cucumber), or to group the leaves around a base (banana)"
leaf_size_min = "Set the minimum size of leaves in the synthetic picture"
leaf_size_max = "Set the maximum size of leaves in the synthetic picture"
preview_only = "generate samples of training set without training the model"
dataset_class = "dataset module and class name to use [eg: 'BananaDataset']"
dataset_config = "dataset configuration file path"
epochs = "number of training epochs"
steps_per_epoch = "number of training steps to perform per epoch"
layers = "layers of model to train. Other layers will remain unchanged"
pretrain = "path to a .h5 file with a pretrained model, or just 'COCO' to retrieve\
the coco pretrain file. [default: COCO]"
class InferReference:
description = "Loads a dataset, loads a model, runs inference on all the pictures located in a directory. Outputs a set of pictures with a translucent mask on every detected leaf. Additionally, a json annotation file is generated."
output = "Set output directory [default: current]"
no_pictures = "Create only infered pictures with colorful transparent masks"
no_contours = "Create contour annotation file only"
path = "path to directory containing images to infer or path to image to infer"
model = "path to .h5 trained model to infer with"
no_masks = "do not save mask images"
task = "task id for agrinet datasets"
gt = "Dataset adapter name"
class CutReference:
description = "Cut single leaf pictures from an annotated dataset"
normalize = "Normalize the generated pictures to the specified width-size. By default pictures are not normalized, every leaf stays at its original size"
background = "Specify the background of the leaf, transparent means keep the alpha channel [default: transparent]"
limit = "Maximum number of object files to create. Not specifying this argument will result in cutting all the available objects"
path = "path to json file in COCO format, with relative image paths"
output = "Set output directory [default: current]"
adapter = "Type of annotation - specify in order to correctly parse the annotation file"
rotate = "Rotate output files to match 2 points from annotation"
task = "task id for agrinet datasets"
class InfoReference:
description = "Prints information about the model saved in the model-info variable"
model_path = "Path to a .h5 trained model file"
class DownloadReference:
description = "Download specific task id to local directory"
task_id = "Task id number e.g: 103"
location = "Location to save the files"
| class Helpreference:
description = ' Model-leaf uses the Tensorflow implementation of Mask-RCNN by MatterPort and a handful of integration scripts and utilities to simplify training and inference of leaf datasets. For information on the different subcommands read the according manual pages '
help_description = ' Prints the synopsis and the list of possible options and commands.'
class Generatergbdreference:
description = 'Dataset preparation and point-cloud generation from the RGB-D images'
output = 'Set output directory [default: current]'
location = 'Location to save the dataset files'
task = 'task id for agrinet datasets'
config = 'specify config file'
dataset_config = 'dataset configuration file path'
class Trainreference:
description = 'Creates a dataset of synthetic pictures, and runs the training model on the dataset. The best result model is saved as a .h5 file.'
output = 'specify path to .h5 model location [default: current]'
dataset_keep = 'specify how many samples to keep [default: 0]'
test_set = 'specify path to test set'
config = 'specify path to the model (mask-r cnn) config file'
synthetic = 'Set the synthetic dataset generator to scatter the leaves randomly (cucumber), or to group the leaves around a base (banana)'
leaf_size_min = 'Set the minimum size of leaves in the synthetic picture'
leaf_size_max = 'Set the maximum size of leaves in the synthetic picture'
preview_only = 'generate samples of training set without training the model'
dataset_class = "dataset module and class name to use [eg: 'BananaDataset']"
dataset_config = 'dataset configuration file path'
epochs = 'number of training epochs'
steps_per_epoch = 'number of training steps to perform per epoch'
layers = 'layers of model to train. Other layers will remain unchanged'
pretrain = "path to a .h5 file with a pretrained model, or just 'COCO' to retrieve the coco pretrain file. [default: COCO]"
class Inferreference:
description = 'Loads a dataset, loads a model, runs inference on all the pictures located in a directory. Outputs a set of pictures with a translucent mask on every detected leaf. Additionally, a json annotation file is generated.'
output = 'Set output directory [default: current]'
no_pictures = 'Create only infered pictures with colorful transparent masks'
no_contours = 'Create contour annotation file only'
path = 'path to directory containing images to infer or path to image to infer'
model = 'path to .h5 trained model to infer with'
no_masks = 'do not save mask images'
task = 'task id for agrinet datasets'
gt = 'Dataset adapter name'
class Cutreference:
description = 'Cut single leaf pictures from an annotated dataset'
normalize = 'Normalize the generated pictures to the specified width-size. By default pictures are not normalized, every leaf stays at its original size'
background = 'Specify the background of the leaf, transparent means keep the alpha channel [default: transparent]'
limit = 'Maximum number of object files to create. Not specifying this argument will result in cutting all the available objects'
path = 'path to json file in COCO format, with relative image paths'
output = 'Set output directory [default: current]'
adapter = 'Type of annotation - specify in order to correctly parse the annotation file'
rotate = 'Rotate output files to match 2 points from annotation'
task = 'task id for agrinet datasets'
class Inforeference:
description = 'Prints information about the model saved in the model-info variable'
model_path = 'Path to a .h5 trained model file'
class Downloadreference:
description = 'Download specific task id to local directory'
task_id = 'Task id number e.g: 103'
location = 'Location to save the files' |
#
# PySNMP MIB module CTRON-IP-ROUTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-IP-ROUTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:26:48 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")
ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion")
nwRtrProtoSuites, = mibBuilder.importSymbols("ROUTER-OIDS", "nwRtrProtoSuites")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Unsigned32, iso, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Bits, TimeTicks, MibIdentifier, ObjectIdentity, ModuleIdentity, Gauge32, Integer32, Counter32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "iso", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Bits", "TimeTicks", "MibIdentifier", "ObjectIdentity", "ModuleIdentity", "Gauge32", "Integer32", "Counter32", "Counter64")
DisplayString, PhysAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "PhysAddress", "TextualConvention")
nwIpRouter = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1))
nwIpMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1))
nwIpComponents = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2))
nwIpSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1))
nwIpForwarding = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2))
nwIpTopology = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4))
nwIpFib = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5))
nwIpEndSystems = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6))
nwIpAccessControl = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7))
nwIpFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 8))
nwIpRedirector = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9))
nwIpEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10))
nwIpWorkGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11))
nwIpClientServices = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 12))
nwIpSysConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1))
nwIpSysAdministration = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2))
nwIpFwdSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1))
nwIpFwdInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2))
nwIpFwdCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1))
nwIpFwdIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1))
nwIpFwdIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2))
nwIpDistanceVector = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1))
nwIpLinkState = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2))
nwIpRip = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1))
nwIpRipSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1))
nwIpRipInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2))
nwIpRipDatabase = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3))
nwIpRipFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 4))
nwIpRipConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1))
nwIpRipCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2))
nwIpRipIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1))
nwIpRipIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2))
nwIpOspf = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1))
nwIpOspfSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1))
nwIpOspfInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2))
nwIpOspfDatabase = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 3))
nwIpOspfFilters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 4))
nwIpOspfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1))
nwIpOspfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2))
nwIpOspfIfConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1))
nwIpOspfIfCounters = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2))
nwIpFibSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1))
nwIpOspfFib = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2))
nwIpOspfFibControl = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1))
nwIpOspfFibEntries = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2))
nwIpHostsSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1))
nwIpHostsInterfaces = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2))
nwIpHostsToMedia = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3))
nwIpRedirectorSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1))
nwIpRedirectorInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 2))
nwIpEventLogConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1))
nwIpEventLogFilterTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2))
nwIpEventLogTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3))
nwIpMibRevText = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpMibRevText.setStatus('mandatory')
nwIpSysRouterId = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysRouterId.setStatus('mandatory')
nwIpSysAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysAdminStatus.setStatus('mandatory')
nwIpSysOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysOperStatus.setStatus('mandatory')
nwIpSysAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpSysAdminReset.setStatus('mandatory')
nwIpSysOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysOperationalTime.setStatus('mandatory')
nwIpSysVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpSysVersion.setStatus('mandatory')
nwIpFwdCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdCtrAdminStatus.setStatus('mandatory')
nwIpFwdCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdCtrReset.setStatus('mandatory')
nwIpFwdCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOperationalTime.setStatus('mandatory')
nwIpFwdCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrInPkts.setStatus('mandatory')
nwIpFwdCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOutPkts.setStatus('mandatory')
nwIpFwdCtrFwdPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFwdPkts.setStatus('mandatory')
nwIpFwdCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFilteredPkts.setStatus('mandatory')
nwIpFwdCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrDiscardPkts.setStatus('mandatory')
nwIpFwdCtrAddrErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrAddrErrPkts.setStatus('mandatory')
nwIpFwdCtrLenErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrLenErrPkts.setStatus('mandatory')
nwIpFwdCtrHdrErrPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHdrErrPkts.setStatus('mandatory')
nwIpFwdCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrInBytes.setStatus('mandatory')
nwIpFwdCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrOutBytes.setStatus('mandatory')
nwIpFwdCtrFwdBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFwdBytes.setStatus('mandatory')
nwIpFwdCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrFilteredBytes.setStatus('mandatory')
nwIpFwdCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrDiscardBytes.setStatus('mandatory')
nwIpFwdCtrHostInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostInPkts.setStatus('mandatory')
nwIpFwdCtrHostOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostOutPkts.setStatus('mandatory')
nwIpFwdCtrHostDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostDiscardPkts.setStatus('mandatory')
nwIpFwdCtrHostInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostInBytes.setStatus('mandatory')
nwIpFwdCtrHostOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostOutBytes.setStatus('mandatory')
nwIpFwdCtrHostDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdCtrHostDiscardBytes.setStatus('mandatory')
nwIpFwdIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpFwdIfTable.setStatus('mandatory')
nwIpFwdIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpFwdIfIndex"))
if mibBuilder.loadTexts: nwIpFwdIfEntry.setStatus('mandatory')
nwIpFwdIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfIndex.setStatus('mandatory')
nwIpFwdIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAdminStatus.setStatus('mandatory')
nwIpFwdIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfOperStatus.setStatus('mandatory')
nwIpFwdIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfOperationalTime.setStatus('mandatory')
nwIpFwdIfControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("add", 2), ("delete", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfControl.setStatus('mandatory')
nwIpFwdIfMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 6), Integer32().clone(1500)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfMtu.setStatus('mandatory')
nwIpFwdIfForwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfForwarding.setStatus('mandatory')
nwIpFwdIfFrameType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=NamedValues(("other", 1), ("ethernet", 2), ("snap", 3), ("slip", 5), ("localtalk", 7), ("nativewan", 8), ("encapenet", 9), ("encapenetsnap", 11), ("encaptrsnap", 14), ("encapfddisnap", 16), ("canonical", 17))).clone('ethernet')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfFrameType.setStatus('mandatory')
nwIpFwdIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAclIdentifier.setStatus('mandatory')
nwIpFwdIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfAclStatus.setStatus('mandatory')
nwIpFwdIfCacheControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCacheControl.setStatus('mandatory')
nwIpFwdIfCacheEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheEntries.setStatus('mandatory')
nwIpFwdIfCacheHits = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheHits.setStatus('mandatory')
nwIpFwdIfCacheMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCacheMisses.setStatus('mandatory')
nwIpAddressTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2), )
if mibBuilder.loadTexts: nwIpAddressTable.setStatus('mandatory')
nwIpAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpAddrIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpAddrIfAddress"))
if mibBuilder.loadTexts: nwIpAddrEntry.setStatus('mandatory')
nwIpAddrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfIndex.setStatus('mandatory')
nwIpAddrIfAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfAddress.setStatus('mandatory')
nwIpAddrIfControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("add", 2), ("delete", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfControl.setStatus('mandatory')
nwIpAddrIfAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("primary", 2), ("secondary", 3), ("workgroup", 4))).clone('primary')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfAddrType.setStatus('mandatory')
nwIpAddrIfMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfMask.setStatus('mandatory')
nwIpAddrIfBcastAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("zeros", 2), ("ones", 3))).clone('ones')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAddrIfBcastAddr.setStatus('mandatory')
nwIpFwdIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpFwdIfCtrTable.setStatus('mandatory')
nwIpFwdIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpFwdIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpFwdIfCtrEntry.setStatus('mandatory')
nwIpFwdIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrIfIndex.setStatus('mandatory')
nwIpFwdIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCtrAdminStatus.setStatus('mandatory')
nwIpFwdIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpFwdIfCtrReset.setStatus('mandatory')
nwIpFwdIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOperationalTime.setStatus('mandatory')
nwIpFwdIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrInPkts.setStatus('mandatory')
nwIpFwdIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOutPkts.setStatus('mandatory')
nwIpFwdIfCtrFwdPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFwdPkts.setStatus('mandatory')
nwIpFwdIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFilteredPkts.setStatus('mandatory')
nwIpFwdIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrDiscardPkts.setStatus('mandatory')
nwIpFwdIfCtrAddrErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrAddrErrPkts.setStatus('mandatory')
nwIpFwdIfCtrLenErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrLenErrPkts.setStatus('mandatory')
nwIpFwdIfCtrHdrErrPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHdrErrPkts.setStatus('mandatory')
nwIpFwdIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrInBytes.setStatus('mandatory')
nwIpFwdIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrOutBytes.setStatus('mandatory')
nwIpFwdIfCtrFwdBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFwdBytes.setStatus('mandatory')
nwIpFwdIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrFilteredBytes.setStatus('mandatory')
nwIpFwdIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrDiscardBytes.setStatus('mandatory')
nwIpFwdIfCtrHostInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostInPkts.setStatus('mandatory')
nwIpFwdIfCtrHostOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostOutPkts.setStatus('mandatory')
nwIpFwdIfCtrHostDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostDiscardPkts.setStatus('mandatory')
nwIpFwdIfCtrHostInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostInBytes.setStatus('mandatory')
nwIpFwdIfCtrHostOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostOutBytes.setStatus('mandatory')
nwIpFwdIfCtrHostDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpFwdIfCtrHostDiscardBytes.setStatus('mandatory')
nwIpRipAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAdminStatus.setStatus('mandatory')
nwIpRipOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5), ("invalid-config", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipOperStatus.setStatus('mandatory')
nwIpRipAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAdminReset.setStatus('mandatory')
nwIpRipOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipOperationalTime.setStatus('mandatory')
nwIpRipVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipVersion.setStatus('mandatory')
nwIpRipStackSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 6), Integer32().clone(4096)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipStackSize.setStatus('mandatory')
nwIpRipThreadPriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 7), Integer32().clone(127)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipThreadPriority.setStatus('mandatory')
nwIpRipDatabaseThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 8), Integer32().clone(2000)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipDatabaseThreshold.setStatus('mandatory')
nwIpRipAgeOut = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 9), Integer32().clone(210)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipAgeOut.setStatus('mandatory')
nwIpRipHoldDown = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 10), Integer32().clone(120)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipHoldDown.setStatus('mandatory')
nwIpRipCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipCtrAdminStatus.setStatus('mandatory')
nwIpRipCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipCtrReset.setStatus('mandatory')
nwIpRipCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOperationalTime.setStatus('mandatory')
nwIpRipCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrInPkts.setStatus('mandatory')
nwIpRipCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOutPkts.setStatus('mandatory')
nwIpRipCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrFilteredPkts.setStatus('mandatory')
nwIpRipCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrDiscardPkts.setStatus('mandatory')
nwIpRipCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrInBytes.setStatus('mandatory')
nwIpRipCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrOutBytes.setStatus('mandatory')
nwIpRipCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrFilteredBytes.setStatus('mandatory')
nwIpRipCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipCtrDiscardBytes.setStatus('mandatory')
nwIpRipIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpRipIfTable.setStatus('mandatory')
nwIpRipIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipIfIndex"))
if mibBuilder.loadTexts: nwIpRipIfEntry.setStatus('mandatory')
nwIpRipIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfIndex.setStatus('mandatory')
nwIpRipIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAdminStatus.setStatus('mandatory')
nwIpRipIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfOperStatus.setStatus('mandatory')
nwIpRipIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfOperationalTime.setStatus('mandatory')
nwIpRipIfVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 5), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfVersion.setStatus('mandatory')
nwIpRipIfAdvertisement = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 6), Integer32().clone(30)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAdvertisement.setStatus('mandatory')
nwIpRipIfFloodDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 7), Integer32().clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfFloodDelay.setStatus('mandatory')
nwIpRipIfRequestDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfRequestDelay.setStatus('mandatory')
nwIpRipIfPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 9), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfPriority.setStatus('mandatory')
nwIpRipIfHelloTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 10), Integer32().clone(10)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfHelloTimer.setStatus('mandatory')
nwIpRipIfSplitHorizon = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfSplitHorizon.setStatus('mandatory')
nwIpRipIfPoisonReverse = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfPoisonReverse.setStatus('mandatory')
nwIpRipIfSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfSnooping.setStatus('mandatory')
nwIpRipIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bma", 2), ("nbma", 3))).clone('bma')).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfType.setStatus('mandatory')
nwIpRipIfXmitCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 15), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfXmitCost.setStatus('mandatory')
nwIpRipIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 16), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAclIdentifier.setStatus('mandatory')
nwIpRipIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfAclStatus.setStatus('mandatory')
nwIpRipIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpRipIfCtrTable.setStatus('mandatory')
nwIpRipIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpRipIfCtrEntry.setStatus('mandatory')
nwIpRipIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrIfIndex.setStatus('mandatory')
nwIpRipIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfCtrAdminStatus.setStatus('mandatory')
nwIpRipIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipIfCtrReset.setStatus('mandatory')
nwIpRipIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOperationalTime.setStatus('mandatory')
nwIpRipIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrInPkts.setStatus('mandatory')
nwIpRipIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOutPkts.setStatus('mandatory')
nwIpRipIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrFilteredPkts.setStatus('mandatory')
nwIpRipIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrDiscardPkts.setStatus('mandatory')
nwIpRipIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrInBytes.setStatus('mandatory')
nwIpRipIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrOutBytes.setStatus('mandatory')
nwIpRipIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrFilteredBytes.setStatus('mandatory')
nwIpRipIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipIfCtrDiscardBytes.setStatus('mandatory')
nwIpRipRouteTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1), )
if mibBuilder.loadTexts: nwIpRipRouteTable.setStatus('mandatory')
nwIpRipRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtNetId"), (0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpRipRtSrcNode"))
if mibBuilder.loadTexts: nwIpRipRouteEntry.setStatus('mandatory')
nwIpRipRtNetId = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtNetId.setStatus('mandatory')
nwIpRipRtIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtIfIndex.setStatus('mandatory')
nwIpRipRtSrcNode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtSrcNode.setStatus('mandatory')
nwIpRipRtMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 4), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtMask.setStatus('mandatory')
nwIpRipRtHops = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtHops.setStatus('mandatory')
nwIpRipRtAge = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 6), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtAge.setStatus('mandatory')
nwIpRipRtType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("direct", 3), ("remote", 4), ("static", 5), ("ospf", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtType.setStatus('mandatory')
nwIpRipRtFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRipRtFlags.setStatus('mandatory')
nwIpOspfAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfAdminStatus.setStatus('mandatory')
nwIpOspfOperStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfOperStatus.setStatus('mandatory')
nwIpOspfAdminReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfAdminReset.setStatus('mandatory')
nwIpOspfOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfOperationalTime.setStatus('mandatory')
nwIpOspfVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfVersion.setStatus('mandatory')
nwIpOspfStackSize = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 6), Integer32().clone(50000)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStackSize.setStatus('mandatory')
nwIpOspfThreadPriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 7), Integer32().clone(127)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfThreadPriority.setStatus('mandatory')
nwIpOspfCtrAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfCtrAdminStatus.setStatus('mandatory')
nwIpOspfCtrReset = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfCtrReset.setStatus('mandatory')
nwIpOspfCtrOperationalTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOperationalTime.setStatus('mandatory')
nwIpOspfCtrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrInPkts.setStatus('mandatory')
nwIpOspfCtrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOutPkts.setStatus('mandatory')
nwIpOspfCtrFilteredPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrFilteredPkts.setStatus('mandatory')
nwIpOspfCtrDiscardPkts = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrDiscardPkts.setStatus('mandatory')
nwIpOspfCtrInBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrInBytes.setStatus('mandatory')
nwIpOspfCtrOutBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrOutBytes.setStatus('mandatory')
nwIpOspfCtrFilteredBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrFilteredBytes.setStatus('mandatory')
nwIpOspfCtrDiscardBytes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfCtrDiscardBytes.setStatus('mandatory')
nwIpOspfIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1), )
if mibBuilder.loadTexts: nwIpOspfIfTable.setStatus('mandatory')
nwIpOspfIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfIfIndex"))
if mibBuilder.loadTexts: nwIpOspfIfEntry.setStatus('mandatory')
nwIpOspfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfIndex.setStatus('mandatory')
nwIpOspfIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAdminStatus.setStatus('mandatory')
nwIpOspfIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfOperStatus.setStatus('mandatory')
nwIpOspfIfOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfOperationalTime.setStatus('mandatory')
nwIpOspfIfVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 5), Integer32().clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfVersion.setStatus('mandatory')
nwIpOspfIfSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfSnooping.setStatus('mandatory')
nwIpOspfIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bma", 2), ("nbma", 3))).clone('bma')).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfType.setStatus('mandatory')
nwIpOspfIfAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAclIdentifier.setStatus('mandatory')
nwIpOspfIfAclStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfAclStatus.setStatus('mandatory')
nwIpOspfIfCtrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpOspfIfCtrTable.setStatus('mandatory')
nwIpOspfIfCtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfIfCtrIfIndex"))
if mibBuilder.loadTexts: nwIpOspfIfCtrEntry.setStatus('mandatory')
nwIpOspfIfCtrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrIfIndex.setStatus('mandatory')
nwIpOspfIfCtrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfCtrAdminStatus.setStatus('mandatory')
nwIpOspfIfCtrReset = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2))).clone('other')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfIfCtrReset.setStatus('mandatory')
nwIpOspfIfCtrOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOperationalTime.setStatus('mandatory')
nwIpOspfIfCtrInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrInPkts.setStatus('mandatory')
nwIpOspfIfCtrOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOutPkts.setStatus('mandatory')
nwIpOspfIfCtrFilteredPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrFilteredPkts.setStatus('mandatory')
nwIpOspfIfCtrDiscardPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrDiscardPkts.setStatus('mandatory')
nwIpOspfIfCtrInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrInBytes.setStatus('mandatory')
nwIpOspfIfCtrOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrOutBytes.setStatus('mandatory')
nwIpOspfIfCtrFilteredBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrFilteredBytes.setStatus('mandatory')
nwIpOspfIfCtrDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfIfCtrDiscardBytes.setStatus('mandatory')
nwIpRipRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 1), Integer32().clone(16)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRipRoutePriority.setStatus('mandatory')
nwIpOSPFRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 2), Integer32().clone(32)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOSPFRoutePriority.setStatus('mandatory')
nwIpStaticRoutePriority = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 3), Integer32().clone(48)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpStaticRoutePriority.setStatus('mandatory')
nwIpOspfForward = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfForward.setStatus('mandatory')
nwIpOspfLeakAllStaticRoutes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 1))).clone(namedValues=NamedValues(("disabled", 2), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllStaticRoutes.setStatus('mandatory')
nwIpOspfLeakAllRipRoutes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllRipRoutes.setStatus('mandatory')
nwIpOspfLeakAllBgp4Routes = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfLeakAllBgp4Routes.setStatus('mandatory')
nwIpOspfStaticTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1), )
if mibBuilder.loadTexts: nwIpOspfStaticTable.setStatus('mandatory')
nwIpOspfStaticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticDest"), (0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticForwardMask"), (0, "CTRON-IP-ROUTER-MIB", "nwIpOspfStaticNextHop"))
if mibBuilder.loadTexts: nwIpOspfStaticEntry.setStatus('mandatory')
nwIpOspfStaticDest = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticDest.setStatus('mandatory')
nwIpOspfStaticForwardMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticForwardMask.setStatus('mandatory')
nwIpOspfStaticNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpOspfStaticNextHop.setStatus('mandatory')
nwIpOspfStaticMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticMetric.setStatus('mandatory')
nwIpOspfStaticMetricType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticMetricType.setStatus('mandatory')
nwIpOspfStaticStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inactive", 1), ("active", 2), ("delete", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpOspfStaticStatus.setStatus('mandatory')
nwIpOspfDynamicTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 2))
nwIpOspfRipTable = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 3))
nwIpOspfBgp4Table = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 4))
nwIpHostsTimeToLive = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostsTimeToLive.setStatus('mandatory')
nwIpHostsRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostsRetryCount.setStatus('mandatory')
nwIpHostCtlTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1), )
if mibBuilder.loadTexts: nwIpHostCtlTable.setStatus('mandatory')
nwIpHostCtlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpHostCtlIfIndex"))
if mibBuilder.loadTexts: nwIpHostCtlEntry.setStatus('mandatory')
nwIpHostCtlIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlIfIndex.setStatus('mandatory')
nwIpHostCtlAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlAdminStatus.setStatus('mandatory')
nwIpHostCtlOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("pending-disable", 4), ("pending-enable", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlOperStatus.setStatus('mandatory')
nwIpHostCtlOperationalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlOperationalTime.setStatus('mandatory')
nwIpHostCtlProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlProtocol.setStatus('mandatory')
nwIpHostCtlSnooping = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlSnooping.setStatus('mandatory')
nwIpHostCtlProxy = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3))).clone('disable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlProxy.setStatus('mandatory')
nwIpHostCtlCacheMax = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 8), Integer32().clone(1024)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostCtlCacheMax.setStatus('mandatory')
nwIpHostCtlCacheSize = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheSize.setStatus('mandatory')
nwIpHostCtlNumStatics = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlNumStatics.setStatus('mandatory')
nwIpHostCtlNumDynamics = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlNumDynamics.setStatus('mandatory')
nwIpHostCtlCacheHits = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheHits.setStatus('mandatory')
nwIpHostCtlCacheMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostCtlCacheMisses.setStatus('mandatory')
nwIpHostMapTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1), )
if mibBuilder.loadTexts: nwIpHostMapTable.setStatus('mandatory')
nwIpHostMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpHostMapIfIndex"), (0, "CTRON-IP-ROUTER-MIB", "nwIpHostMapIpAddr"))
if mibBuilder.loadTexts: nwIpHostMapEntry.setStatus('mandatory')
nwIpHostMapIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapIfIndex.setStatus('mandatory')
nwIpHostMapIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapIpAddr.setStatus('mandatory')
nwIpHostMapPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 3), PhysAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapPhysAddr.setStatus('mandatory')
nwIpHostMapType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("dynamic", 3), ("static", 4), ("inactive", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapType.setStatus('mandatory')
nwIpHostMapCircuitID = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapCircuitID.setStatus('mandatory')
nwIpHostMapFraming = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=NamedValues(("other", 1), ("ethernet", 2), ("snap", 3), ("slip", 5), ("localtalk", 7), ("nativewan", 8), ("encapenet", 9), ("encapenetsnap", 11), ("encaptrsnap", 14), ("encapfddisnap", 16), ("canonical", 17)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpHostMapFraming.setStatus('mandatory')
nwIpHostMapPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpHostMapPortNumber.setStatus('mandatory')
nwIpAclValidEntries = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 1), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclValidEntries.setStatus('mandatory')
nwIpAclTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2), )
if mibBuilder.loadTexts: nwIpAclTable.setStatus('mandatory')
nwIpAclEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpAclIdentifier"), (0, "CTRON-IP-ROUTER-MIB", "nwIpAclSequence"))
if mibBuilder.loadTexts: nwIpAclEntry.setStatus('mandatory')
nwIpAclIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclIdentifier.setStatus('mandatory')
nwIpAclSequence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclSequence.setStatus('mandatory')
nwIpAclPermission = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("permit", 3), ("deny", 4), ("permit-bidirectional", 5), ("deny-bidirectional", 6))).clone('permit')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclPermission.setStatus('mandatory')
nwIpAclMatches = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpAclMatches.setStatus('mandatory')
nwIpAclDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclDestAddress.setStatus('mandatory')
nwIpAclDestMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclDestMask.setStatus('mandatory')
nwIpAclSrcAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclSrcAddress.setStatus('mandatory')
nwIpAclSrcMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 8), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclSrcMask.setStatus('mandatory')
nwIpAclProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("all", 2), ("icmp", 3), ("udp", 4), ("tcp", 5))).clone('all')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclProtocol.setStatus('mandatory')
nwIpAclPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpAclPortNumber.setStatus('mandatory')
nwIpRedirectTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1), )
if mibBuilder.loadTexts: nwIpRedirectTable.setStatus('mandatory')
nwIpRedirectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpRedirectPort"))
if mibBuilder.loadTexts: nwIpRedirectEntry.setStatus('mandatory')
nwIpRedirectPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRedirectPort.setStatus('mandatory')
nwIpRedirectAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRedirectAddress.setStatus('mandatory')
nwIpRedirectType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forward", 1), ("delete", 2))).clone('forward')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpRedirectType.setStatus('mandatory')
nwIpRedirectCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpRedirectCount.setStatus('mandatory')
nwIpEventAdminStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventAdminStatus.setStatus('mandatory')
nwIpEventMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 2), Integer32().clone(100)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventMaxEntries.setStatus('mandatory')
nwIpEventTraceAll = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventTraceAll.setStatus('mandatory')
nwIpEventFilterTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1), )
if mibBuilder.loadTexts: nwIpEventFilterTable.setStatus('mandatory')
nwIpEventFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpEventFltrProtocol"), (0, "CTRON-IP-ROUTER-MIB", "nwIpEventFltrIfNum"))
if mibBuilder.loadTexts: nwIpEventFilterEntry.setStatus('mandatory')
nwIpEventFltrProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventFltrProtocol.setStatus('mandatory')
nwIpEventFltrIfNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventFltrIfNum.setStatus('mandatory')
nwIpEventFltrControl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("delete", 2), ("add", 3))).clone('add')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrControl.setStatus('mandatory')
nwIpEventFltrType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("misc", 1), ("timer", 2), ("rcv", 4), ("xmit", 8), ("event", 16), ("diags", 32), ("error", 64))).clone('error')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrType.setStatus('mandatory')
nwIpEventFltrSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("highest", 1), ("highmed", 2), ("highlow", 3))).clone('highest')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrSeverity.setStatus('mandatory')
nwIpEventFltrAction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("log", 1), ("trap", 2), ("log-trap", 3))).clone('log')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpEventFltrAction.setStatus('mandatory')
nwIpEventTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1), )
if mibBuilder.loadTexts: nwIpEventTable.setStatus('mandatory')
nwIpEventEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpEventNumber"))
if mibBuilder.loadTexts: nwIpEventEntry.setStatus('mandatory')
nwIpEventNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventNumber.setStatus('mandatory')
nwIpEventTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventTime.setStatus('mandatory')
nwIpEventType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=NamedValues(("misc", 1), ("timer", 2), ("rcv", 4), ("xmit", 8), ("event", 16), ("diags", 32), ("error", 64)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventType.setStatus('mandatory')
nwIpEventSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("highest", 1), ("highmed", 2), ("highlow", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventSeverity.setStatus('mandatory')
nwIpEventProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventProtocol.setStatus('mandatory')
nwIpEventIfNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventIfNum.setStatus('mandatory')
nwIpEventTextString = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 7), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpEventTextString.setStatus('mandatory')
nwIpWgDefTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1), )
if mibBuilder.loadTexts: nwIpWgDefTable.setStatus('mandatory')
nwIpWgDefEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgDefIdentifier"))
if mibBuilder.loadTexts: nwIpWgDefEntry.setStatus('mandatory')
nwIpWgDefIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefIdentifier.setStatus('mandatory')
nwIpWgDefHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefHostAddress.setStatus('mandatory')
nwIpWgDefSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefSubnetMask.setStatus('mandatory')
nwIpWgDefSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("low", 2), ("medium", 3), ("high", 4))).clone('low')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefSecurity.setStatus('mandatory')
nwIpWgDefFastPath = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefFastPath.setStatus('mandatory')
nwIpWgDefRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notReady')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgDefRowStatus.setStatus('mandatory')
nwIpWgDefOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("subnetConflict", 3), ("internalError", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefOperStatus.setStatus('mandatory')
nwIpWgDefNumActiveIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefNumActiveIntf.setStatus('mandatory')
nwIpWgDefNumTotalIntf = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgDefNumTotalIntf.setStatus('mandatory')
nwIpWgIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2), )
if mibBuilder.loadTexts: nwIpWgIfTable.setStatus('mandatory')
nwIpWgIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgIfDefIdent"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgIfIfIndex"))
if mibBuilder.loadTexts: nwIpWgIfEntry.setStatus('mandatory')
nwIpWgIfDefIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfDefIdent.setStatus('mandatory')
nwIpWgIfIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfIfIndex.setStatus('mandatory')
nwIpWgIfNumActiveHosts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfNumActiveHosts.setStatus('mandatory')
nwIpWgIfNumKnownHosts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfNumKnownHosts.setStatus('mandatory')
nwIpWgIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notInService')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgIfRowStatus.setStatus('mandatory')
nwIpWgIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("workgroupInvalid", 3), ("addressConflict", 4), ("resetRequired", 5), ("linkDown", 6), ("routingDown", 7), ("internalError", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgIfOperStatus.setStatus('mandatory')
nwIpWgRngTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3), )
if mibBuilder.loadTexts: nwIpWgRngTable.setStatus('mandatory')
nwIpWgRngEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngBegHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngEndHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgRngIfIndex"))
if mibBuilder.loadTexts: nwIpWgRngEntry.setStatus('mandatory')
nwIpWgRngBegHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngBegHostAddr.setStatus('mandatory')
nwIpWgRngEndHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngEndHostAddr.setStatus('mandatory')
nwIpWgRngIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngIfIndex.setStatus('mandatory')
nwIpWgRngPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 4), OctetString().clone(hexValue="000000000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgRngPhysAddr.setStatus('mandatory')
nwIpWgRngRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6))).clone('notInService')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: nwIpWgRngRowStatus.setStatus('mandatory')
nwIpWgRngOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ok", 1), ("disabled", 2), ("workgroupInvalid", 3), ("interfaceInvalid", 4), ("physAddrRequired", 5), ("internalError", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgRngOperStatus.setStatus('mandatory')
nwIpWgHostTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4), )
if mibBuilder.loadTexts: nwIpWgHostTable.setStatus('mandatory')
nwIpWgHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1), ).setIndexNames((0, "CTRON-IP-ROUTER-MIB", "nwIpWgHostHostAddr"), (0, "CTRON-IP-ROUTER-MIB", "nwIpWgHostIfIndex"))
if mibBuilder.loadTexts: nwIpWgHostEntry.setStatus('mandatory')
nwIpWgHostHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostHostAddr.setStatus('mandatory')
nwIpWgHostIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostIfIndex.setStatus('mandatory')
nwIpWgHostDefIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostDefIdent.setStatus('mandatory')
nwIpWgHostPhysAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostPhysAddr.setStatus('mandatory')
nwIpWgHostStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("valid", 3), ("invalid-multiple", 4), ("invalid-physaddr", 5), ("invalid-range", 6), ("invalid-interface", 7), ("invalid-workgroup", 8), ("invalid-expired", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nwIpWgHostStatus.setStatus('mandatory')
mibBuilder.exportSymbols("CTRON-IP-ROUTER-MIB", nwIpRipIfCtrDiscardBytes=nwIpRipIfCtrDiscardBytes, nwIpOspfCounters=nwIpOspfCounters, nwIpRipIfFloodDelay=nwIpRipIfFloodDelay, nwIpOspfCtrInBytes=nwIpOspfCtrInBytes, nwIpFwdIfCtrInPkts=nwIpFwdIfCtrInPkts, nwIpEventAdminStatus=nwIpEventAdminStatus, nwIpRipRtFlags=nwIpRipRtFlags, nwIpWorkGroup=nwIpWorkGroup, nwIpHostCtlAdminStatus=nwIpHostCtlAdminStatus, nwIpOspfCtrOutPkts=nwIpOspfCtrOutPkts, nwIpRipIfOperStatus=nwIpRipIfOperStatus, nwIpFwdIfCtrTable=nwIpFwdIfCtrTable, nwIpEventProtocol=nwIpEventProtocol, nwIpRipRouteTable=nwIpRipRouteTable, nwIpComponents=nwIpComponents, nwIpRipIfAclStatus=nwIpRipIfAclStatus, nwIpAclProtocol=nwIpAclProtocol, nwIpWgRngIfIndex=nwIpWgRngIfIndex, nwIpWgIfRowStatus=nwIpWgIfRowStatus, nwIpAddrIfAddress=nwIpAddrIfAddress, nwIpEventLogTable=nwIpEventLogTable, nwIpHostsToMedia=nwIpHostsToMedia, nwIpAclEntry=nwIpAclEntry, nwIpFwdCtrHostOutBytes=nwIpFwdCtrHostOutBytes, nwIpFwdIfAclStatus=nwIpFwdIfAclStatus, nwIpOspfOperStatus=nwIpOspfOperStatus, nwIpOspfIfSnooping=nwIpOspfIfSnooping, nwIpHostCtlCacheSize=nwIpHostCtlCacheSize, nwIpEventTime=nwIpEventTime, nwIpAclDestMask=nwIpAclDestMask, nwIpRipAgeOut=nwIpRipAgeOut, nwIpWgHostEntry=nwIpWgHostEntry, nwIpFwdCounters=nwIpFwdCounters, nwIpRipIfRequestDelay=nwIpRipIfRequestDelay, nwIpRipIfCounters=nwIpRipIfCounters, nwIpWgDefNumTotalIntf=nwIpWgDefNumTotalIntf, nwIpWgRngTable=nwIpWgRngTable, nwIpFwdIfCtrEntry=nwIpFwdIfCtrEntry, nwIpFwdIfCtrOutPkts=nwIpFwdIfCtrOutPkts, nwIpWgDefSubnetMask=nwIpWgDefSubnetMask, nwIpOspfOperationalTime=nwIpOspfOperationalTime, nwIpEventFilterTable=nwIpEventFilterTable, nwIpRipIfCtrInBytes=nwIpRipIfCtrInBytes, nwIpRipOperationalTime=nwIpRipOperationalTime, nwIpSysConfig=nwIpSysConfig, nwIpOspfIfAdminStatus=nwIpOspfIfAdminStatus, nwIpFwdCtrFwdPkts=nwIpFwdCtrFwdPkts, nwIpFwdCtrFwdBytes=nwIpFwdCtrFwdBytes, nwIpRipRoutePriority=nwIpRipRoutePriority, nwIpOspfIfAclIdentifier=nwIpOspfIfAclIdentifier, nwIpSystem=nwIpSystem, nwIpFwdCtrDiscardBytes=nwIpFwdCtrDiscardBytes, nwIpFwdCtrFilteredPkts=nwIpFwdCtrFilteredPkts, nwIpRipDatabase=nwIpRipDatabase, nwIpStaticRoutePriority=nwIpStaticRoutePriority, nwIpOspfFibControl=nwIpOspfFibControl, nwIpOSPFRoutePriority=nwIpOSPFRoutePriority, nwIpHostMapPhysAddr=nwIpHostMapPhysAddr, nwIpRedirectorInterface=nwIpRedirectorInterface, nwIpOspfFilters=nwIpOspfFilters, nwIpEventEntry=nwIpEventEntry, nwIpRipCtrOperationalTime=nwIpRipCtrOperationalTime, nwIpRipCtrOutBytes=nwIpRipCtrOutBytes, nwIpOspfCtrAdminStatus=nwIpOspfCtrAdminStatus, nwIpRipRtType=nwIpRipRtType, nwIpRipCtrOutPkts=nwIpRipCtrOutPkts, nwIpEventType=nwIpEventType, nwIpRipIfCtrOutPkts=nwIpRipIfCtrOutPkts, nwIpAclDestAddress=nwIpAclDestAddress, nwIpRipStackSize=nwIpRipStackSize, nwIpRipIfHelloTimer=nwIpRipIfHelloTimer, nwIpRouter=nwIpRouter, nwIpSysAdminStatus=nwIpSysAdminStatus, nwIpRedirectPort=nwIpRedirectPort, nwIpWgDefSecurity=nwIpWgDefSecurity, nwIpRipRtHops=nwIpRipRtHops, nwIpFwdIfCtrAddrErrPkts=nwIpFwdIfCtrAddrErrPkts, nwIpFwdIfCacheHits=nwIpFwdIfCacheHits, nwIpAclPortNumber=nwIpAclPortNumber, nwIpWgHostStatus=nwIpWgHostStatus, nwIpHostMapCircuitID=nwIpHostMapCircuitID, nwIpRipCtrInBytes=nwIpRipCtrInBytes, nwIpWgRngEndHostAddr=nwIpWgRngEndHostAddr, nwIpEventTraceAll=nwIpEventTraceAll, nwIpWgDefNumActiveIntf=nwIpWgDefNumActiveIntf, nwIpRedirectorSystem=nwIpRedirectorSystem, nwIpForwarding=nwIpForwarding, nwIpOspfAdminStatus=nwIpOspfAdminStatus, nwIpWgHostIfIndex=nwIpWgHostIfIndex, nwIpWgIfIfIndex=nwIpWgIfIfIndex, nwIpRipInterfaces=nwIpRipInterfaces, nwIpFwdIfCtrHostInBytes=nwIpFwdIfCtrHostInBytes, nwIpLinkState=nwIpLinkState, nwIpFwdIfCtrOperationalTime=nwIpFwdIfCtrOperationalTime, nwIpFwdCtrHostInBytes=nwIpFwdCtrHostInBytes, nwIpWgDefOperStatus=nwIpWgDefOperStatus, nwIpFwdIfConfig=nwIpFwdIfConfig, nwIpFwdCtrReset=nwIpFwdCtrReset, nwIpRipIfType=nwIpRipIfType, nwIpFwdCtrHostInPkts=nwIpFwdCtrHostInPkts, nwIpFwdIfCtrHostOutBytes=nwIpFwdIfCtrHostOutBytes, nwIpOspfIfCtrOperationalTime=nwIpOspfIfCtrOperationalTime, nwIpEventFltrIfNum=nwIpEventFltrIfNum, nwIpFwdIfAdminStatus=nwIpFwdIfAdminStatus, nwIpMibRevText=nwIpMibRevText, nwIpWgIfNumKnownHosts=nwIpWgIfNumKnownHosts, nwIpHostCtlIfIndex=nwIpHostCtlIfIndex, nwIpWgRngEntry=nwIpWgRngEntry, nwIpWgRngBegHostAddr=nwIpWgRngBegHostAddr, nwIpRipIfAdvertisement=nwIpRipIfAdvertisement, nwIpOspfSystem=nwIpOspfSystem, nwIpOspfBgp4Table=nwIpOspfBgp4Table, nwIpRedirectType=nwIpRedirectType, nwIpHostCtlEntry=nwIpHostCtlEntry, nwIpHostCtlNumStatics=nwIpHostCtlNumStatics, nwIpOspfCtrInPkts=nwIpOspfCtrInPkts, nwIpHostCtlOperStatus=nwIpHostCtlOperStatus, nwIpAclTable=nwIpAclTable, nwIpAddrIfBcastAddr=nwIpAddrIfBcastAddr, nwIpFwdIfMtu=nwIpFwdIfMtu, nwIpOspfIfCtrReset=nwIpOspfIfCtrReset, nwIpFwdIfIndex=nwIpFwdIfIndex, nwIpEventFltrProtocol=nwIpEventFltrProtocol, nwIpFwdIfCtrFwdBytes=nwIpFwdIfCtrFwdBytes, nwIpRipIfOperationalTime=nwIpRipIfOperationalTime, nwIpOspfIfCtrFilteredBytes=nwIpOspfIfCtrFilteredBytes, nwIpRedirectEntry=nwIpRedirectEntry, nwIpAccessControl=nwIpAccessControl, nwIpOspfAdminReset=nwIpOspfAdminReset, nwIpOspfCtrReset=nwIpOspfCtrReset, nwIpHostCtlProtocol=nwIpHostCtlProtocol, nwIpOspfIfOperStatus=nwIpOspfIfOperStatus, nwIpWgDefEntry=nwIpWgDefEntry, nwIpWgIfEntry=nwIpWgIfEntry, nwIpHostsTimeToLive=nwIpHostsTimeToLive, nwIpOspfIfEntry=nwIpOspfIfEntry, nwIpOspfIfCtrInBytes=nwIpOspfIfCtrInBytes, nwIpRipCtrFilteredPkts=nwIpRipCtrFilteredPkts, nwIpOspfCtrOutBytes=nwIpOspfCtrOutBytes, nwIpRipCtrDiscardPkts=nwIpRipCtrDiscardPkts, nwIpEndSystems=nwIpEndSystems, nwIpFwdIfCounters=nwIpFwdIfCounters, nwIpEventFltrAction=nwIpEventFltrAction, nwIpEvent=nwIpEvent, nwIpOspfIfCounters=nwIpOspfIfCounters, nwIpHostMapTable=nwIpHostMapTable, nwIpRipIfCtrOutBytes=nwIpRipIfCtrOutBytes, nwIpEventLogConfig=nwIpEventLogConfig, nwIpFwdIfCtrReset=nwIpFwdIfCtrReset, nwIpWgHostHostAddr=nwIpWgHostHostAddr, nwIpHostMapPortNumber=nwIpHostMapPortNumber, nwIpFwdCtrAddrErrPkts=nwIpFwdCtrAddrErrPkts, nwIpOspfIfCtrOutPkts=nwIpOspfIfCtrOutPkts, nwIpFwdIfCtrHdrErrPkts=nwIpFwdIfCtrHdrErrPkts, nwIpHostCtlProxy=nwIpHostCtlProxy, nwIpRipCtrDiscardBytes=nwIpRipCtrDiscardBytes, nwIpRipIfCtrReset=nwIpRipIfCtrReset, nwIpFwdIfCtrHostOutPkts=nwIpFwdIfCtrHostOutPkts, nwIpFwdIfOperationalTime=nwIpFwdIfOperationalTime, nwIpFwdCtrOperationalTime=nwIpFwdCtrOperationalTime, nwIpFibSystem=nwIpFibSystem, nwIpRipCtrFilteredBytes=nwIpRipCtrFilteredBytes, nwIpOspfIfIndex=nwIpOspfIfIndex, nwIpOspfStaticMetric=nwIpOspfStaticMetric, nwIpClientServices=nwIpClientServices, nwIpMibs=nwIpMibs, nwIpRipCtrAdminStatus=nwIpRipCtrAdminStatus, nwIpRipIfPriority=nwIpRipIfPriority, nwIpHostCtlTable=nwIpHostCtlTable, nwIpHostCtlCacheMax=nwIpHostCtlCacheMax, nwIpFwdCtrAdminStatus=nwIpFwdCtrAdminStatus, nwIpFwdIfFrameType=nwIpFwdIfFrameType, nwIpOspfCtrFilteredBytes=nwIpOspfCtrFilteredBytes, nwIpOspfStaticStatus=nwIpOspfStaticStatus, nwIpRedirectAddress=nwIpRedirectAddress, nwIpAclMatches=nwIpAclMatches, nwIpOspfIfCtrFilteredPkts=nwIpOspfIfCtrFilteredPkts, nwIpOspfDatabase=nwIpOspfDatabase, nwIpRipIfPoisonReverse=nwIpRipIfPoisonReverse, nwIpRipIfAdminStatus=nwIpRipIfAdminStatus, nwIpFwdIfCtrFilteredBytes=nwIpFwdIfCtrFilteredBytes, nwIpRipIfAclIdentifier=nwIpRipIfAclIdentifier, nwIpAddressTable=nwIpAddressTable, nwIpTopology=nwIpTopology, nwIpRipAdminReset=nwIpRipAdminReset, nwIpRipIfCtrFilteredPkts=nwIpRipIfCtrFilteredPkts, nwIpSysOperStatus=nwIpSysOperStatus, nwIpFwdIfTable=nwIpFwdIfTable, nwIpWgDefHostAddress=nwIpWgDefHostAddress, nwIpFwdIfForwarding=nwIpFwdIfForwarding, nwIpOspfIfCtrIfIndex=nwIpOspfIfCtrIfIndex, nwIpOspfIfCtrDiscardPkts=nwIpOspfIfCtrDiscardPkts, nwIpOspfIfOperationalTime=nwIpOspfIfOperationalTime, nwIpHostMapEntry=nwIpHostMapEntry, nwIpRipIfCtrIfIndex=nwIpRipIfCtrIfIndex, nwIpEventTable=nwIpEventTable, nwIpAclSequence=nwIpAclSequence, nwIpFwdIfCacheEntries=nwIpFwdIfCacheEntries, nwIpRipIfTable=nwIpRipIfTable, nwIpOspfStackSize=nwIpOspfStackSize, nwIpAclSrcMask=nwIpAclSrcMask, nwIpRipIfSnooping=nwIpRipIfSnooping, nwIpRipCounters=nwIpRipCounters, nwIpOspfIfCtrEntry=nwIpOspfIfCtrEntry, nwIpRipIfCtrEntry=nwIpRipIfCtrEntry, nwIpFwdCtrDiscardPkts=nwIpFwdCtrDiscardPkts, nwIpFwdIfCtrIfIndex=nwIpFwdIfCtrIfIndex, nwIpWgIfNumActiveHosts=nwIpWgIfNumActiveHosts, nwIpFwdInterfaces=nwIpFwdInterfaces, nwIpFwdIfControl=nwIpFwdIfControl, nwIpEventLogFilterTable=nwIpEventLogFilterTable, nwIpRipIfSplitHorizon=nwIpRipIfSplitHorizon, nwIpEventFltrType=nwIpEventFltrType, nwIpRipRtSrcNode=nwIpRipRtSrcNode, nwIpWgIfTable=nwIpWgIfTable, nwIpHostMapIpAddr=nwIpHostMapIpAddr, nwIpRipOperStatus=nwIpRipOperStatus, nwIpFwdCtrInBytes=nwIpFwdCtrInBytes, nwIpAclIdentifier=nwIpAclIdentifier, nwIpFwdIfAclIdentifier=nwIpFwdIfAclIdentifier, nwIpHostsRetryCount=nwIpHostsRetryCount, nwIpHostsSystem=nwIpHostsSystem, nwIpOspfInterfaces=nwIpOspfInterfaces, nwIpOspfIfCtrOutBytes=nwIpOspfIfCtrOutBytes, nwIpOspfLeakAllStaticRoutes=nwIpOspfLeakAllStaticRoutes, nwIpFwdIfCacheControl=nwIpFwdIfCacheControl, nwIpRipRouteEntry=nwIpRipRouteEntry, nwIpOspfIfCtrInPkts=nwIpOspfIfCtrInPkts, nwIpRipIfCtrInPkts=nwIpRipIfCtrInPkts, nwIpWgIfDefIdent=nwIpWgIfDefIdent, nwIpWgRngRowStatus=nwIpWgRngRowStatus, nwIpFwdCtrInPkts=nwIpFwdCtrInPkts, nwIpRedirectTable=nwIpRedirectTable, nwIpOspfForward=nwIpOspfForward, nwIpOspfIfCtrAdminStatus=nwIpOspfIfCtrAdminStatus, nwIpSysAdminReset=nwIpSysAdminReset, nwIpRipRtIfIndex=nwIpRipRtIfIndex, nwIpFib=nwIpFib, nwIpSysVersion=nwIpSysVersion, nwIpOspfCtrDiscardPkts=nwIpOspfCtrDiscardPkts, nwIpRipDatabaseThreshold=nwIpRipDatabaseThreshold, nwIpHostMapType=nwIpHostMapType, nwIpEventIfNum=nwIpEventIfNum, nwIpRedirectCount=nwIpRedirectCount, nwIpOspfStaticForwardMask=nwIpOspfStaticForwardMask, nwIpHostCtlCacheHits=nwIpHostCtlCacheHits, nwIpEventSeverity=nwIpEventSeverity, nwIpRipIfCtrFilteredBytes=nwIpRipIfCtrFilteredBytes, nwIpRipIfCtrTable=nwIpRipIfCtrTable, nwIpAclSrcAddress=nwIpAclSrcAddress, nwIpOspfIfTable=nwIpOspfIfTable, nwIpHostMapIfIndex=nwIpHostMapIfIndex, nwIpOspfIfVersion=nwIpOspfIfVersion, nwIpHostCtlOperationalTime=nwIpHostCtlOperationalTime)
mibBuilder.exportSymbols("CTRON-IP-ROUTER-MIB", nwIpOspfStaticTable=nwIpOspfStaticTable, nwIpWgHostDefIdent=nwIpWgHostDefIdent, nwIpAddrIfControl=nwIpAddrIfControl, nwIpRipIfConfig=nwIpRipIfConfig, nwIpFwdIfCtrLenErrPkts=nwIpFwdIfCtrLenErrPkts, nwIpHostMapFraming=nwIpHostMapFraming, nwIpRipVersion=nwIpRipVersion, nwIpOspfFib=nwIpOspfFib, nwIpRipIfCtrDiscardPkts=nwIpRipIfCtrDiscardPkts, nwIpRipSystem=nwIpRipSystem, nwIpWgHostPhysAddr=nwIpWgHostPhysAddr, nwIpWgDefRowStatus=nwIpWgDefRowStatus, nwIpOspfLeakAllRipRoutes=nwIpOspfLeakAllRipRoutes, nwIpOspfCtrOperationalTime=nwIpOspfCtrOperationalTime, nwIpWgHostTable=nwIpWgHostTable, nwIpRipRtMask=nwIpRipRtMask, nwIpEventFltrSeverity=nwIpEventFltrSeverity, nwIpOspfIfConfig=nwIpOspfIfConfig, nwIpFwdIfCtrHostDiscardPkts=nwIpFwdIfCtrHostDiscardPkts, nwIpRipRtAge=nwIpRipRtAge, nwIpHostCtlCacheMisses=nwIpHostCtlCacheMisses, nwIpEventTextString=nwIpEventTextString, nwIpOspfVersion=nwIpOspfVersion, nwIpOspfStaticNextHop=nwIpOspfStaticNextHop, nwIpRipIfIndex=nwIpRipIfIndex, nwIpAclPermission=nwIpAclPermission, nwIpHostsInterfaces=nwIpHostsInterfaces, nwIpRipRtNetId=nwIpRipRtNetId, nwIpFwdIfCtrHostDiscardBytes=nwIpFwdIfCtrHostDiscardBytes, nwIpWgDefTable=nwIpWgDefTable, nwIpRipCtrInPkts=nwIpRipCtrInPkts, nwIpRipAdminStatus=nwIpRipAdminStatus, nwIpFwdIfCtrInBytes=nwIpFwdIfCtrInBytes, nwIpOspfThreadPriority=nwIpOspfThreadPriority, nwIpEventFltrControl=nwIpEventFltrControl, nwIpWgRngPhysAddr=nwIpWgRngPhysAddr, nwIpOspfIfCtrTable=nwIpOspfIfCtrTable, nwIpSysRouterId=nwIpSysRouterId, nwIpOspfRipTable=nwIpOspfRipTable, nwIpFilters=nwIpFilters, nwIpRedirector=nwIpRedirector, nwIpFwdIfEntry=nwIpFwdIfEntry, nwIpFwdIfCtrFilteredPkts=nwIpFwdIfCtrFilteredPkts, nwIpHostCtlSnooping=nwIpHostCtlSnooping, nwIpRipIfVersion=nwIpRipIfVersion, nwIpEventMaxEntries=nwIpEventMaxEntries, nwIpAddrIfAddrType=nwIpAddrIfAddrType, nwIpSysAdministration=nwIpSysAdministration, nwIpRipThreadPriority=nwIpRipThreadPriority, nwIpOspfIfType=nwIpOspfIfType, nwIpOspfIfCtrDiscardBytes=nwIpOspfIfCtrDiscardBytes, nwIpFwdSystem=nwIpFwdSystem, nwIpFwdCtrHostOutPkts=nwIpFwdCtrHostOutPkts, nwIpWgDefIdentifier=nwIpWgDefIdentifier, nwIpFwdCtrLenErrPkts=nwIpFwdCtrLenErrPkts, nwIpRipHoldDown=nwIpRipHoldDown, nwIpRipIfEntry=nwIpRipIfEntry, nwIpFwdIfOperStatus=nwIpFwdIfOperStatus, nwIpRip=nwIpRip, nwIpFwdIfCacheMisses=nwIpFwdIfCacheMisses, nwIpFwdIfCtrDiscardBytes=nwIpFwdIfCtrDiscardBytes, nwIpOspfCtrDiscardBytes=nwIpOspfCtrDiscardBytes, nwIpFwdCtrFilteredBytes=nwIpFwdCtrFilteredBytes, nwIpOspfIfAclStatus=nwIpOspfIfAclStatus, nwIpEventFilterEntry=nwIpEventFilterEntry, nwIpWgIfOperStatus=nwIpWgIfOperStatus, nwIpOspfStaticEntry=nwIpOspfStaticEntry, nwIpFwdCtrHostDiscardPkts=nwIpFwdCtrHostDiscardPkts, nwIpFwdCtrHostDiscardBytes=nwIpFwdCtrHostDiscardBytes, nwIpFwdCtrOutPkts=nwIpFwdCtrOutPkts, nwIpDistanceVector=nwIpDistanceVector, nwIpAclValidEntries=nwIpAclValidEntries, nwIpSysOperationalTime=nwIpSysOperationalTime, nwIpOspfFibEntries=nwIpOspfFibEntries, nwIpOspfConfig=nwIpOspfConfig, nwIpFwdIfCtrAdminStatus=nwIpFwdIfCtrAdminStatus, nwIpWgRngOperStatus=nwIpWgRngOperStatus, nwIpFwdIfCtrFwdPkts=nwIpFwdIfCtrFwdPkts, nwIpOspfLeakAllBgp4Routes=nwIpOspfLeakAllBgp4Routes, nwIpFwdCtrHdrErrPkts=nwIpFwdCtrHdrErrPkts, nwIpAddrIfIndex=nwIpAddrIfIndex, nwIpOspfStaticDest=nwIpOspfStaticDest, nwIpOspfDynamicTable=nwIpOspfDynamicTable, nwIpRipIfXmitCost=nwIpRipIfXmitCost, nwIpOspfCtrFilteredPkts=nwIpOspfCtrFilteredPkts, nwIpFwdIfCtrHostInPkts=nwIpFwdIfCtrHostInPkts, nwIpFwdIfCtrDiscardPkts=nwIpFwdIfCtrDiscardPkts, nwIpFwdIfCtrOutBytes=nwIpFwdIfCtrOutBytes, nwIpRipFilters=nwIpRipFilters, nwIpOspf=nwIpOspf, nwIpRipIfCtrAdminStatus=nwIpRipIfCtrAdminStatus, nwIpRipIfCtrOperationalTime=nwIpRipIfCtrOperationalTime, nwIpHostCtlNumDynamics=nwIpHostCtlNumDynamics, nwIpEventNumber=nwIpEventNumber, nwIpWgDefFastPath=nwIpWgDefFastPath, nwIpRipConfig=nwIpRipConfig, nwIpFwdCtrOutBytes=nwIpFwdCtrOutBytes, nwIpRipCtrReset=nwIpRipCtrReset, nwIpOspfStaticMetricType=nwIpOspfStaticMetricType, nwIpAddrEntry=nwIpAddrEntry, nwIpAddrIfMask=nwIpAddrIfMask)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion')
(nw_rtr_proto_suites,) = mibBuilder.importSymbols('ROUTER-OIDS', 'nwRtrProtoSuites')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(unsigned32, iso, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, bits, time_ticks, mib_identifier, object_identity, module_identity, gauge32, integer32, counter32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'iso', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Bits', 'TimeTicks', 'MibIdentifier', 'ObjectIdentity', 'ModuleIdentity', 'Gauge32', 'Integer32', 'Counter32', 'Counter64')
(display_string, phys_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'PhysAddress', 'TextualConvention')
nw_ip_router = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1))
nw_ip_mibs = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1))
nw_ip_components = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2))
nw_ip_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1))
nw_ip_forwarding = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2))
nw_ip_topology = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4))
nw_ip_fib = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5))
nw_ip_end_systems = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6))
nw_ip_access_control = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7))
nw_ip_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 8))
nw_ip_redirector = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9))
nw_ip_event = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10))
nw_ip_work_group = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11))
nw_ip_client_services = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 12))
nw_ip_sys_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1))
nw_ip_sys_administration = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2))
nw_ip_fwd_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1))
nw_ip_fwd_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2))
nw_ip_fwd_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1))
nw_ip_fwd_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1))
nw_ip_fwd_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2))
nw_ip_distance_vector = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1))
nw_ip_link_state = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2))
nw_ip_rip = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1))
nw_ip_rip_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1))
nw_ip_rip_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2))
nw_ip_rip_database = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3))
nw_ip_rip_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 4))
nw_ip_rip_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1))
nw_ip_rip_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2))
nw_ip_rip_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1))
nw_ip_rip_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2))
nw_ip_ospf = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1))
nw_ip_ospf_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1))
nw_ip_ospf_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2))
nw_ip_ospf_database = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 3))
nw_ip_ospf_filters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 4))
nw_ip_ospf_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1))
nw_ip_ospf_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2))
nw_ip_ospf_if_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1))
nw_ip_ospf_if_counters = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2))
nw_ip_fib_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1))
nw_ip_ospf_fib = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2))
nw_ip_ospf_fib_control = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1))
nw_ip_ospf_fib_entries = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2))
nw_ip_hosts_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1))
nw_ip_hosts_interfaces = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2))
nw_ip_hosts_to_media = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3))
nw_ip_redirector_system = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1))
nw_ip_redirector_interface = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 2))
nw_ip_event_log_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1))
nw_ip_event_log_filter_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2))
nw_ip_event_log_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3))
nw_ip_mib_rev_text = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpMibRevText.setStatus('mandatory')
nw_ip_sys_router_id = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysRouterId.setStatus('mandatory')
nw_ip_sys_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysAdminStatus.setStatus('mandatory')
nw_ip_sys_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysOperStatus.setStatus('mandatory')
nw_ip_sys_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpSysAdminReset.setStatus('mandatory')
nw_ip_sys_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysOperationalTime.setStatus('mandatory')
nw_ip_sys_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 1, 2, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpSysVersion.setStatus('mandatory')
nw_ip_fwd_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdCtrAdminStatus.setStatus('mandatory')
nw_ip_fwd_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdCtrReset.setStatus('mandatory')
nw_ip_fwd_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOperationalTime.setStatus('mandatory')
nw_ip_fwd_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrInPkts.setStatus('mandatory')
nw_ip_fwd_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOutPkts.setStatus('mandatory')
nw_ip_fwd_ctr_fwd_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFwdPkts.setStatus('mandatory')
nw_ip_fwd_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFilteredPkts.setStatus('mandatory')
nw_ip_fwd_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrDiscardPkts.setStatus('mandatory')
nw_ip_fwd_ctr_addr_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrAddrErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_len_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrLenErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_hdr_err_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHdrErrPkts.setStatus('mandatory')
nw_ip_fwd_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrInBytes.setStatus('mandatory')
nw_ip_fwd_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrOutBytes.setStatus('mandatory')
nw_ip_fwd_ctr_fwd_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFwdBytes.setStatus('mandatory')
nw_ip_fwd_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrFilteredBytes.setStatus('mandatory')
nw_ip_fwd_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrDiscardBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostInPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostOutPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostDiscardPkts.setStatus('mandatory')
nw_ip_fwd_ctr_host_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostInBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostOutBytes.setStatus('mandatory')
nw_ip_fwd_ctr_host_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdCtrHostDiscardBytes.setStatus('mandatory')
nw_ip_fwd_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpFwdIfTable.setStatus('mandatory')
nw_ip_fwd_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpFwdIfIndex'))
if mibBuilder.loadTexts:
nwIpFwdIfEntry.setStatus('mandatory')
nw_ip_fwd_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfIndex.setStatus('mandatory')
nw_ip_fwd_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAdminStatus.setStatus('mandatory')
nw_ip_fwd_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfOperStatus.setStatus('mandatory')
nw_ip_fwd_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfOperationalTime.setStatus('mandatory')
nw_ip_fwd_if_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('add', 2), ('delete', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfControl.setStatus('mandatory')
nw_ip_fwd_if_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 6), integer32().clone(1500)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfMtu.setStatus('mandatory')
nw_ip_fwd_if_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfForwarding.setStatus('mandatory')
nw_ip_fwd_if_frame_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=named_values(('other', 1), ('ethernet', 2), ('snap', 3), ('slip', 5), ('localtalk', 7), ('nativewan', 8), ('encapenet', 9), ('encapenetsnap', 11), ('encaptrsnap', 14), ('encapfddisnap', 16), ('canonical', 17))).clone('ethernet')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfFrameType.setStatus('mandatory')
nw_ip_fwd_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAclIdentifier.setStatus('mandatory')
nw_ip_fwd_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfAclStatus.setStatus('mandatory')
nw_ip_fwd_if_cache_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCacheControl.setStatus('mandatory')
nw_ip_fwd_if_cache_entries = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheEntries.setStatus('mandatory')
nw_ip_fwd_if_cache_hits = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheHits.setStatus('mandatory')
nw_ip_fwd_if_cache_misses = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCacheMisses.setStatus('mandatory')
nw_ip_address_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2))
if mibBuilder.loadTexts:
nwIpAddressTable.setStatus('mandatory')
nw_ip_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpAddrIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpAddrIfAddress'))
if mibBuilder.loadTexts:
nwIpAddrEntry.setStatus('mandatory')
nw_ip_addr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfIndex.setStatus('mandatory')
nw_ip_addr_if_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfAddress.setStatus('mandatory')
nw_ip_addr_if_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('add', 2), ('delete', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfControl.setStatus('mandatory')
nw_ip_addr_if_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('primary', 2), ('secondary', 3), ('workgroup', 4))).clone('primary')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfAddrType.setStatus('mandatory')
nw_ip_addr_if_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfMask.setStatus('mandatory')
nw_ip_addr_if_bcast_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('zeros', 2), ('ones', 3))).clone('ones')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAddrIfBcastAddr.setStatus('mandatory')
nw_ip_fwd_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpFwdIfCtrTable.setStatus('mandatory')
nw_ip_fwd_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpFwdIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpFwdIfCtrEntry.setStatus('mandatory')
nw_ip_fwd_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrIfIndex.setStatus('mandatory')
nw_ip_fwd_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCtrAdminStatus.setStatus('mandatory')
nw_ip_fwd_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpFwdIfCtrReset.setStatus('mandatory')
nw_ip_fwd_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOperationalTime.setStatus('mandatory')
nw_ip_fwd_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrInPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOutPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_fwd_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFwdPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_addr_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrAddrErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_len_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrLenErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_hdr_err_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHdrErrPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrInBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrOutBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_fwd_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFwdBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostInPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostOutPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostDiscardPkts.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostInBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostOutBytes.setStatus('mandatory')
nw_ip_fwd_if_ctr_host_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 2, 2, 2, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpFwdIfCtrHostDiscardBytes.setStatus('mandatory')
nw_ip_rip_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAdminStatus.setStatus('mandatory')
nw_ip_rip_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5), ('invalid-config', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipOperStatus.setStatus('mandatory')
nw_ip_rip_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAdminReset.setStatus('mandatory')
nw_ip_rip_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipOperationalTime.setStatus('mandatory')
nw_ip_rip_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipVersion.setStatus('mandatory')
nw_ip_rip_stack_size = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 6), integer32().clone(4096)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipStackSize.setStatus('mandatory')
nw_ip_rip_thread_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 7), integer32().clone(127)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipThreadPriority.setStatus('mandatory')
nw_ip_rip_database_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 8), integer32().clone(2000)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipDatabaseThreshold.setStatus('mandatory')
nw_ip_rip_age_out = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 9), integer32().clone(210)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipAgeOut.setStatus('mandatory')
nw_ip_rip_hold_down = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 1, 10), integer32().clone(120)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipHoldDown.setStatus('mandatory')
nw_ip_rip_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipCtrAdminStatus.setStatus('mandatory')
nw_ip_rip_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipCtrReset.setStatus('mandatory')
nw_ip_rip_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOperationalTime.setStatus('mandatory')
nw_ip_rip_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrInPkts.setStatus('mandatory')
nw_ip_rip_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOutPkts.setStatus('mandatory')
nw_ip_rip_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrFilteredPkts.setStatus('mandatory')
nw_ip_rip_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrDiscardPkts.setStatus('mandatory')
nw_ip_rip_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrInBytes.setStatus('mandatory')
nw_ip_rip_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrOutBytes.setStatus('mandatory')
nw_ip_rip_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrFilteredBytes.setStatus('mandatory')
nw_ip_rip_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 1, 2, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpRipIfTable.setStatus('mandatory')
nw_ip_rip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipIfIndex'))
if mibBuilder.loadTexts:
nwIpRipIfEntry.setStatus('mandatory')
nw_ip_rip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfIndex.setStatus('mandatory')
nw_ip_rip_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAdminStatus.setStatus('mandatory')
nw_ip_rip_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfOperStatus.setStatus('mandatory')
nw_ip_rip_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfOperationalTime.setStatus('mandatory')
nw_ip_rip_if_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 5), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfVersion.setStatus('mandatory')
nw_ip_rip_if_advertisement = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 6), integer32().clone(30)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAdvertisement.setStatus('mandatory')
nw_ip_rip_if_flood_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 7), integer32().clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfFloodDelay.setStatus('mandatory')
nw_ip_rip_if_request_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfRequestDelay.setStatus('mandatory')
nw_ip_rip_if_priority = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 9), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfPriority.setStatus('mandatory')
nw_ip_rip_if_hello_timer = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 10), integer32().clone(10)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfHelloTimer.setStatus('mandatory')
nw_ip_rip_if_split_horizon = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfSplitHorizon.setStatus('mandatory')
nw_ip_rip_if_poison_reverse = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfPoisonReverse.setStatus('mandatory')
nw_ip_rip_if_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfSnooping.setStatus('mandatory')
nw_ip_rip_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bma', 2), ('nbma', 3))).clone('bma')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfType.setStatus('mandatory')
nw_ip_rip_if_xmit_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 15), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfXmitCost.setStatus('mandatory')
nw_ip_rip_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 16), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAclIdentifier.setStatus('mandatory')
nw_ip_rip_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfAclStatus.setStatus('mandatory')
nw_ip_rip_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpRipIfCtrTable.setStatus('mandatory')
nw_ip_rip_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpRipIfCtrEntry.setStatus('mandatory')
nw_ip_rip_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrIfIndex.setStatus('mandatory')
nw_ip_rip_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfCtrAdminStatus.setStatus('mandatory')
nw_ip_rip_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipIfCtrReset.setStatus('mandatory')
nw_ip_rip_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOperationalTime.setStatus('mandatory')
nw_ip_rip_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrInPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOutPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_rip_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrInBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrOutBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_rip_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_route_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1))
if mibBuilder.loadTexts:
nwIpRipRouteTable.setStatus('mandatory')
nw_ip_rip_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtNetId'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpRipRtSrcNode'))
if mibBuilder.loadTexts:
nwIpRipRouteEntry.setStatus('mandatory')
nw_ip_rip_rt_net_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtNetId.setStatus('mandatory')
nw_ip_rip_rt_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtIfIndex.setStatus('mandatory')
nw_ip_rip_rt_src_node = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtSrcNode.setStatus('mandatory')
nw_ip_rip_rt_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 4), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtMask.setStatus('mandatory')
nw_ip_rip_rt_hops = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtHops.setStatus('mandatory')
nw_ip_rip_rt_age = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 6), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtAge.setStatus('mandatory')
nw_ip_rip_rt_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('direct', 3), ('remote', 4), ('static', 5), ('ospf', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtType.setStatus('mandatory')
nw_ip_rip_rt_flags = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 1, 1, 3, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRipRtFlags.setStatus('mandatory')
nw_ip_ospf_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfAdminStatus.setStatus('mandatory')
nw_ip_ospf_oper_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfOperStatus.setStatus('mandatory')
nw_ip_ospf_admin_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfAdminReset.setStatus('mandatory')
nw_ip_ospf_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfOperationalTime.setStatus('mandatory')
nw_ip_ospf_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfVersion.setStatus('mandatory')
nw_ip_ospf_stack_size = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 6), integer32().clone(50000)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStackSize.setStatus('mandatory')
nw_ip_ospf_thread_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 1, 7), integer32().clone(127)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfThreadPriority.setStatus('mandatory')
nw_ip_ospf_ctr_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfCtrAdminStatus.setStatus('mandatory')
nw_ip_ospf_ctr_reset = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfCtrReset.setStatus('mandatory')
nw_ip_ospf_ctr_operational_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOperationalTime.setStatus('mandatory')
nw_ip_ospf_ctr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrInPkts.setStatus('mandatory')
nw_ip_ospf_ctr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOutPkts.setStatus('mandatory')
nw_ip_ospf_ctr_filtered_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrFilteredPkts.setStatus('mandatory')
nw_ip_ospf_ctr_discard_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrDiscardPkts.setStatus('mandatory')
nw_ip_ospf_ctr_in_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrInBytes.setStatus('mandatory')
nw_ip_ospf_ctr_out_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrOutBytes.setStatus('mandatory')
nw_ip_ospf_ctr_filtered_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrFilteredBytes.setStatus('mandatory')
nw_ip_ospf_ctr_discard_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 1, 2, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfCtrDiscardBytes.setStatus('mandatory')
nw_ip_ospf_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1))
if mibBuilder.loadTexts:
nwIpOspfIfTable.setStatus('mandatory')
nw_ip_ospf_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfIfIndex'))
if mibBuilder.loadTexts:
nwIpOspfIfEntry.setStatus('mandatory')
nw_ip_ospf_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfIndex.setStatus('mandatory')
nw_ip_ospf_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAdminStatus.setStatus('mandatory')
nw_ip_ospf_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfOperStatus.setStatus('mandatory')
nw_ip_ospf_if_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfOperationalTime.setStatus('mandatory')
nw_ip_ospf_if_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 5), integer32().clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfVersion.setStatus('mandatory')
nw_ip_ospf_if_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfSnooping.setStatus('mandatory')
nw_ip_ospf_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bma', 2), ('nbma', 3))).clone('bma')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfType.setStatus('mandatory')
nw_ip_ospf_if_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAclIdentifier.setStatus('mandatory')
nw_ip_ospf_if_acl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfAclStatus.setStatus('mandatory')
nw_ip_ospf_if_ctr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpOspfIfCtrTable.setStatus('mandatory')
nw_ip_ospf_if_ctr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfIfCtrIfIndex'))
if mibBuilder.loadTexts:
nwIpOspfIfCtrEntry.setStatus('mandatory')
nw_ip_ospf_if_ctr_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrIfIndex.setStatus('mandatory')
nw_ip_ospf_if_ctr_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfCtrAdminStatus.setStatus('mandatory')
nw_ip_ospf_if_ctr_reset = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2))).clone('other')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfIfCtrReset.setStatus('mandatory')
nw_ip_ospf_if_ctr_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOperationalTime.setStatus('mandatory')
nw_ip_ospf_if_ctr_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrInPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOutPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_filtered_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrFilteredPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_discard_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrDiscardPkts.setStatus('mandatory')
nw_ip_ospf_if_ctr_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrInBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrOutBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_filtered_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrFilteredBytes.setStatus('mandatory')
nw_ip_ospf_if_ctr_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 4, 2, 1, 2, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfIfCtrDiscardBytes.setStatus('mandatory')
nw_ip_rip_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 1), integer32().clone(16)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRipRoutePriority.setStatus('mandatory')
nw_ip_ospf_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 2), integer32().clone(32)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOSPFRoutePriority.setStatus('mandatory')
nw_ip_static_route_priority = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 1, 3), integer32().clone(48)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpStaticRoutePriority.setStatus('mandatory')
nw_ip_ospf_forward = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfForward.setStatus('mandatory')
nw_ip_ospf_leak_all_static_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 1))).clone(namedValues=named_values(('disabled', 2), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllStaticRoutes.setStatus('mandatory')
nw_ip_ospf_leak_all_rip_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllRipRoutes.setStatus('mandatory')
nw_ip_ospf_leak_all_bgp4_routes = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfLeakAllBgp4Routes.setStatus('mandatory')
nw_ip_ospf_static_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1))
if mibBuilder.loadTexts:
nwIpOspfStaticTable.setStatus('mandatory')
nw_ip_ospf_static_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticDest'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticForwardMask'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpOspfStaticNextHop'))
if mibBuilder.loadTexts:
nwIpOspfStaticEntry.setStatus('mandatory')
nw_ip_ospf_static_dest = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticDest.setStatus('mandatory')
nw_ip_ospf_static_forward_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticForwardMask.setStatus('mandatory')
nw_ip_ospf_static_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpOspfStaticNextHop.setStatus('mandatory')
nw_ip_ospf_static_metric = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticMetric.setStatus('mandatory')
nw_ip_ospf_static_metric_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticMetricType.setStatus('mandatory')
nw_ip_ospf_static_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('inactive', 1), ('active', 2), ('delete', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpOspfStaticStatus.setStatus('mandatory')
nw_ip_ospf_dynamic_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 2))
nw_ip_ospf_rip_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 3))
nw_ip_ospf_bgp4_table = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 5, 2, 2, 4))
nw_ip_hosts_time_to_live = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostsTimeToLive.setStatus('mandatory')
nw_ip_hosts_retry_count = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostsRetryCount.setStatus('mandatory')
nw_ip_host_ctl_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1))
if mibBuilder.loadTexts:
nwIpHostCtlTable.setStatus('mandatory')
nw_ip_host_ctl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostCtlIfIndex'))
if mibBuilder.loadTexts:
nwIpHostCtlEntry.setStatus('mandatory')
nw_ip_host_ctl_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlIfIndex.setStatus('mandatory')
nw_ip_host_ctl_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlAdminStatus.setStatus('mandatory')
nw_ip_host_ctl_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('pending-disable', 4), ('pending-enable', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlOperStatus.setStatus('mandatory')
nw_ip_host_ctl_operational_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlOperationalTime.setStatus('mandatory')
nw_ip_host_ctl_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlProtocol.setStatus('mandatory')
nw_ip_host_ctl_snooping = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlSnooping.setStatus('mandatory')
nw_ip_host_ctl_proxy = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3))).clone('disable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlProxy.setStatus('mandatory')
nw_ip_host_ctl_cache_max = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 8), integer32().clone(1024)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostCtlCacheMax.setStatus('mandatory')
nw_ip_host_ctl_cache_size = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheSize.setStatus('mandatory')
nw_ip_host_ctl_num_statics = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlNumStatics.setStatus('mandatory')
nw_ip_host_ctl_num_dynamics = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlNumDynamics.setStatus('mandatory')
nw_ip_host_ctl_cache_hits = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheHits.setStatus('mandatory')
nw_ip_host_ctl_cache_misses = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostCtlCacheMisses.setStatus('mandatory')
nw_ip_host_map_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1))
if mibBuilder.loadTexts:
nwIpHostMapTable.setStatus('mandatory')
nw_ip_host_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostMapIfIndex'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpHostMapIpAddr'))
if mibBuilder.loadTexts:
nwIpHostMapEntry.setStatus('mandatory')
nw_ip_host_map_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapIfIndex.setStatus('mandatory')
nw_ip_host_map_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapIpAddr.setStatus('mandatory')
nw_ip_host_map_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 3), phys_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapPhysAddr.setStatus('mandatory')
nw_ip_host_map_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('dynamic', 3), ('static', 4), ('inactive', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapType.setStatus('mandatory')
nw_ip_host_map_circuit_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapCircuitID.setStatus('mandatory')
nw_ip_host_map_framing = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 5, 7, 8, 9, 11, 14, 16, 17))).clone(namedValues=named_values(('other', 1), ('ethernet', 2), ('snap', 3), ('slip', 5), ('localtalk', 7), ('nativewan', 8), ('encapenet', 9), ('encapenetsnap', 11), ('encaptrsnap', 14), ('encapfddisnap', 16), ('canonical', 17)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpHostMapFraming.setStatus('mandatory')
nw_ip_host_map_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 6, 3, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpHostMapPortNumber.setStatus('mandatory')
nw_ip_acl_valid_entries = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 1), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclValidEntries.setStatus('mandatory')
nw_ip_acl_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2))
if mibBuilder.loadTexts:
nwIpAclTable.setStatus('mandatory')
nw_ip_acl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpAclIdentifier'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpAclSequence'))
if mibBuilder.loadTexts:
nwIpAclEntry.setStatus('mandatory')
nw_ip_acl_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclIdentifier.setStatus('mandatory')
nw_ip_acl_sequence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclSequence.setStatus('mandatory')
nw_ip_acl_permission = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('permit', 3), ('deny', 4), ('permit-bidirectional', 5), ('deny-bidirectional', 6))).clone('permit')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclPermission.setStatus('mandatory')
nw_ip_acl_matches = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpAclMatches.setStatus('mandatory')
nw_ip_acl_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclDestAddress.setStatus('mandatory')
nw_ip_acl_dest_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclDestMask.setStatus('mandatory')
nw_ip_acl_src_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 7), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclSrcAddress.setStatus('mandatory')
nw_ip_acl_src_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 8), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclSrcMask.setStatus('mandatory')
nw_ip_acl_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('all', 2), ('icmp', 3), ('udp', 4), ('tcp', 5))).clone('all')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclProtocol.setStatus('mandatory')
nw_ip_acl_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 7, 2, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpAclPortNumber.setStatus('mandatory')
nw_ip_redirect_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1))
if mibBuilder.loadTexts:
nwIpRedirectTable.setStatus('mandatory')
nw_ip_redirect_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpRedirectPort'))
if mibBuilder.loadTexts:
nwIpRedirectEntry.setStatus('mandatory')
nw_ip_redirect_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRedirectPort.setStatus('mandatory')
nw_ip_redirect_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRedirectAddress.setStatus('mandatory')
nw_ip_redirect_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forward', 1), ('delete', 2))).clone('forward')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpRedirectType.setStatus('mandatory')
nw_ip_redirect_count = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 9, 1, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpRedirectCount.setStatus('mandatory')
nw_ip_event_admin_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventAdminStatus.setStatus('mandatory')
nw_ip_event_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 2), integer32().clone(100)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventMaxEntries.setStatus('mandatory')
nw_ip_event_trace_all = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventTraceAll.setStatus('mandatory')
nw_ip_event_filter_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1))
if mibBuilder.loadTexts:
nwIpEventFilterTable.setStatus('mandatory')
nw_ip_event_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventFltrProtocol'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventFltrIfNum'))
if mibBuilder.loadTexts:
nwIpEventFilterEntry.setStatus('mandatory')
nw_ip_event_fltr_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventFltrProtocol.setStatus('mandatory')
nw_ip_event_fltr_if_num = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventFltrIfNum.setStatus('mandatory')
nw_ip_event_fltr_control = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('delete', 2), ('add', 3))).clone('add')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrControl.setStatus('mandatory')
nw_ip_event_fltr_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('misc', 1), ('timer', 2), ('rcv', 4), ('xmit', 8), ('event', 16), ('diags', 32), ('error', 64))).clone('error')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrType.setStatus('mandatory')
nw_ip_event_fltr_severity = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('highest', 1), ('highmed', 2), ('highlow', 3))).clone('highest')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrSeverity.setStatus('mandatory')
nw_ip_event_fltr_action = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('log', 1), ('trap', 2), ('log-trap', 3))).clone('log')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpEventFltrAction.setStatus('mandatory')
nw_ip_event_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1))
if mibBuilder.loadTexts:
nwIpEventTable.setStatus('mandatory')
nw_ip_event_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpEventNumber'))
if mibBuilder.loadTexts:
nwIpEventEntry.setStatus('mandatory')
nw_ip_event_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventNumber.setStatus('mandatory')
nw_ip_event_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventTime.setStatus('mandatory')
nw_ip_event_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64))).clone(namedValues=named_values(('misc', 1), ('timer', 2), ('rcv', 4), ('xmit', 8), ('event', 16), ('diags', 32), ('error', 64)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventType.setStatus('mandatory')
nw_ip_event_severity = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('highest', 1), ('highmed', 2), ('highlow', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventSeverity.setStatus('mandatory')
nw_ip_event_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventProtocol.setStatus('mandatory')
nw_ip_event_if_num = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventIfNum.setStatus('mandatory')
nw_ip_event_text_string = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 10, 3, 1, 1, 7), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpEventTextString.setStatus('mandatory')
nw_ip_wg_def_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1))
if mibBuilder.loadTexts:
nwIpWgDefTable.setStatus('mandatory')
nw_ip_wg_def_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgDefIdentifier'))
if mibBuilder.loadTexts:
nwIpWgDefEntry.setStatus('mandatory')
nw_ip_wg_def_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefIdentifier.setStatus('mandatory')
nw_ip_wg_def_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefHostAddress.setStatus('mandatory')
nw_ip_wg_def_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefSubnetMask.setStatus('mandatory')
nw_ip_wg_def_security = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('low', 2), ('medium', 3), ('high', 4))).clone('low')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefSecurity.setStatus('mandatory')
nw_ip_wg_def_fast_path = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefFastPath.setStatus('mandatory')
nw_ip_wg_def_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notReady')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgDefRowStatus.setStatus('mandatory')
nw_ip_wg_def_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('subnetConflict', 3), ('internalError', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefOperStatus.setStatus('mandatory')
nw_ip_wg_def_num_active_intf = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefNumActiveIntf.setStatus('mandatory')
nw_ip_wg_def_num_total_intf = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgDefNumTotalIntf.setStatus('mandatory')
nw_ip_wg_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2))
if mibBuilder.loadTexts:
nwIpWgIfTable.setStatus('mandatory')
nw_ip_wg_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgIfDefIdent'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgIfIfIndex'))
if mibBuilder.loadTexts:
nwIpWgIfEntry.setStatus('mandatory')
nw_ip_wg_if_def_ident = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfDefIdent.setStatus('mandatory')
nw_ip_wg_if_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfIfIndex.setStatus('mandatory')
nw_ip_wg_if_num_active_hosts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfNumActiveHosts.setStatus('mandatory')
nw_ip_wg_if_num_known_hosts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfNumKnownHosts.setStatus('mandatory')
nw_ip_wg_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notInService')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgIfRowStatus.setStatus('mandatory')
nw_ip_wg_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('workgroupInvalid', 3), ('addressConflict', 4), ('resetRequired', 5), ('linkDown', 6), ('routingDown', 7), ('internalError', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgIfOperStatus.setStatus('mandatory')
nw_ip_wg_rng_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3))
if mibBuilder.loadTexts:
nwIpWgRngTable.setStatus('mandatory')
nw_ip_wg_rng_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngBegHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngEndHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgRngIfIndex'))
if mibBuilder.loadTexts:
nwIpWgRngEntry.setStatus('mandatory')
nw_ip_wg_rng_beg_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngBegHostAddr.setStatus('mandatory')
nw_ip_wg_rng_end_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngEndHostAddr.setStatus('mandatory')
nw_ip_wg_rng_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngIfIndex.setStatus('mandatory')
nw_ip_wg_rng_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 4), octet_string().clone(hexValue='000000000000')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgRngPhysAddr.setStatus('mandatory')
nw_ip_wg_rng_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6))).clone('notInService')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
nwIpWgRngRowStatus.setStatus('mandatory')
nw_ip_wg_rng_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ok', 1), ('disabled', 2), ('workgroupInvalid', 3), ('interfaceInvalid', 4), ('physAddrRequired', 5), ('internalError', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgRngOperStatus.setStatus('mandatory')
nw_ip_wg_host_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4))
if mibBuilder.loadTexts:
nwIpWgHostTable.setStatus('mandatory')
nw_ip_wg_host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1)).setIndexNames((0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgHostHostAddr'), (0, 'CTRON-IP-ROUTER-MIB', 'nwIpWgHostIfIndex'))
if mibBuilder.loadTexts:
nwIpWgHostEntry.setStatus('mandatory')
nw_ip_wg_host_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostHostAddr.setStatus('mandatory')
nw_ip_wg_host_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostIfIndex.setStatus('mandatory')
nw_ip_wg_host_def_ident = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostDefIdent.setStatus('mandatory')
nw_ip_wg_host_phys_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostPhysAddr.setStatus('mandatory')
nw_ip_wg_host_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 2, 2, 2, 3, 1, 2, 11, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('valid', 3), ('invalid-multiple', 4), ('invalid-physaddr', 5), ('invalid-range', 6), ('invalid-interface', 7), ('invalid-workgroup', 8), ('invalid-expired', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nwIpWgHostStatus.setStatus('mandatory')
mibBuilder.exportSymbols('CTRON-IP-ROUTER-MIB', nwIpRipIfCtrDiscardBytes=nwIpRipIfCtrDiscardBytes, nwIpOspfCounters=nwIpOspfCounters, nwIpRipIfFloodDelay=nwIpRipIfFloodDelay, nwIpOspfCtrInBytes=nwIpOspfCtrInBytes, nwIpFwdIfCtrInPkts=nwIpFwdIfCtrInPkts, nwIpEventAdminStatus=nwIpEventAdminStatus, nwIpRipRtFlags=nwIpRipRtFlags, nwIpWorkGroup=nwIpWorkGroup, nwIpHostCtlAdminStatus=nwIpHostCtlAdminStatus, nwIpOspfCtrOutPkts=nwIpOspfCtrOutPkts, nwIpRipIfOperStatus=nwIpRipIfOperStatus, nwIpFwdIfCtrTable=nwIpFwdIfCtrTable, nwIpEventProtocol=nwIpEventProtocol, nwIpRipRouteTable=nwIpRipRouteTable, nwIpComponents=nwIpComponents, nwIpRipIfAclStatus=nwIpRipIfAclStatus, nwIpAclProtocol=nwIpAclProtocol, nwIpWgRngIfIndex=nwIpWgRngIfIndex, nwIpWgIfRowStatus=nwIpWgIfRowStatus, nwIpAddrIfAddress=nwIpAddrIfAddress, nwIpEventLogTable=nwIpEventLogTable, nwIpHostsToMedia=nwIpHostsToMedia, nwIpAclEntry=nwIpAclEntry, nwIpFwdCtrHostOutBytes=nwIpFwdCtrHostOutBytes, nwIpFwdIfAclStatus=nwIpFwdIfAclStatus, nwIpOspfOperStatus=nwIpOspfOperStatus, nwIpOspfIfSnooping=nwIpOspfIfSnooping, nwIpHostCtlCacheSize=nwIpHostCtlCacheSize, nwIpEventTime=nwIpEventTime, nwIpAclDestMask=nwIpAclDestMask, nwIpRipAgeOut=nwIpRipAgeOut, nwIpWgHostEntry=nwIpWgHostEntry, nwIpFwdCounters=nwIpFwdCounters, nwIpRipIfRequestDelay=nwIpRipIfRequestDelay, nwIpRipIfCounters=nwIpRipIfCounters, nwIpWgDefNumTotalIntf=nwIpWgDefNumTotalIntf, nwIpWgRngTable=nwIpWgRngTable, nwIpFwdIfCtrEntry=nwIpFwdIfCtrEntry, nwIpFwdIfCtrOutPkts=nwIpFwdIfCtrOutPkts, nwIpWgDefSubnetMask=nwIpWgDefSubnetMask, nwIpOspfOperationalTime=nwIpOspfOperationalTime, nwIpEventFilterTable=nwIpEventFilterTable, nwIpRipIfCtrInBytes=nwIpRipIfCtrInBytes, nwIpRipOperationalTime=nwIpRipOperationalTime, nwIpSysConfig=nwIpSysConfig, nwIpOspfIfAdminStatus=nwIpOspfIfAdminStatus, nwIpFwdCtrFwdPkts=nwIpFwdCtrFwdPkts, nwIpFwdCtrFwdBytes=nwIpFwdCtrFwdBytes, nwIpRipRoutePriority=nwIpRipRoutePriority, nwIpOspfIfAclIdentifier=nwIpOspfIfAclIdentifier, nwIpSystem=nwIpSystem, nwIpFwdCtrDiscardBytes=nwIpFwdCtrDiscardBytes, nwIpFwdCtrFilteredPkts=nwIpFwdCtrFilteredPkts, nwIpRipDatabase=nwIpRipDatabase, nwIpStaticRoutePriority=nwIpStaticRoutePriority, nwIpOspfFibControl=nwIpOspfFibControl, nwIpOSPFRoutePriority=nwIpOSPFRoutePriority, nwIpHostMapPhysAddr=nwIpHostMapPhysAddr, nwIpRedirectorInterface=nwIpRedirectorInterface, nwIpOspfFilters=nwIpOspfFilters, nwIpEventEntry=nwIpEventEntry, nwIpRipCtrOperationalTime=nwIpRipCtrOperationalTime, nwIpRipCtrOutBytes=nwIpRipCtrOutBytes, nwIpOspfCtrAdminStatus=nwIpOspfCtrAdminStatus, nwIpRipRtType=nwIpRipRtType, nwIpRipCtrOutPkts=nwIpRipCtrOutPkts, nwIpEventType=nwIpEventType, nwIpRipIfCtrOutPkts=nwIpRipIfCtrOutPkts, nwIpAclDestAddress=nwIpAclDestAddress, nwIpRipStackSize=nwIpRipStackSize, nwIpRipIfHelloTimer=nwIpRipIfHelloTimer, nwIpRouter=nwIpRouter, nwIpSysAdminStatus=nwIpSysAdminStatus, nwIpRedirectPort=nwIpRedirectPort, nwIpWgDefSecurity=nwIpWgDefSecurity, nwIpRipRtHops=nwIpRipRtHops, nwIpFwdIfCtrAddrErrPkts=nwIpFwdIfCtrAddrErrPkts, nwIpFwdIfCacheHits=nwIpFwdIfCacheHits, nwIpAclPortNumber=nwIpAclPortNumber, nwIpWgHostStatus=nwIpWgHostStatus, nwIpHostMapCircuitID=nwIpHostMapCircuitID, nwIpRipCtrInBytes=nwIpRipCtrInBytes, nwIpWgRngEndHostAddr=nwIpWgRngEndHostAddr, nwIpEventTraceAll=nwIpEventTraceAll, nwIpWgDefNumActiveIntf=nwIpWgDefNumActiveIntf, nwIpRedirectorSystem=nwIpRedirectorSystem, nwIpForwarding=nwIpForwarding, nwIpOspfAdminStatus=nwIpOspfAdminStatus, nwIpWgHostIfIndex=nwIpWgHostIfIndex, nwIpWgIfIfIndex=nwIpWgIfIfIndex, nwIpRipInterfaces=nwIpRipInterfaces, nwIpFwdIfCtrHostInBytes=nwIpFwdIfCtrHostInBytes, nwIpLinkState=nwIpLinkState, nwIpFwdIfCtrOperationalTime=nwIpFwdIfCtrOperationalTime, nwIpFwdCtrHostInBytes=nwIpFwdCtrHostInBytes, nwIpWgDefOperStatus=nwIpWgDefOperStatus, nwIpFwdIfConfig=nwIpFwdIfConfig, nwIpFwdCtrReset=nwIpFwdCtrReset, nwIpRipIfType=nwIpRipIfType, nwIpFwdCtrHostInPkts=nwIpFwdCtrHostInPkts, nwIpFwdIfCtrHostOutBytes=nwIpFwdIfCtrHostOutBytes, nwIpOspfIfCtrOperationalTime=nwIpOspfIfCtrOperationalTime, nwIpEventFltrIfNum=nwIpEventFltrIfNum, nwIpFwdIfAdminStatus=nwIpFwdIfAdminStatus, nwIpMibRevText=nwIpMibRevText, nwIpWgIfNumKnownHosts=nwIpWgIfNumKnownHosts, nwIpHostCtlIfIndex=nwIpHostCtlIfIndex, nwIpWgRngEntry=nwIpWgRngEntry, nwIpWgRngBegHostAddr=nwIpWgRngBegHostAddr, nwIpRipIfAdvertisement=nwIpRipIfAdvertisement, nwIpOspfSystem=nwIpOspfSystem, nwIpOspfBgp4Table=nwIpOspfBgp4Table, nwIpRedirectType=nwIpRedirectType, nwIpHostCtlEntry=nwIpHostCtlEntry, nwIpHostCtlNumStatics=nwIpHostCtlNumStatics, nwIpOspfCtrInPkts=nwIpOspfCtrInPkts, nwIpHostCtlOperStatus=nwIpHostCtlOperStatus, nwIpAclTable=nwIpAclTable, nwIpAddrIfBcastAddr=nwIpAddrIfBcastAddr, nwIpFwdIfMtu=nwIpFwdIfMtu, nwIpOspfIfCtrReset=nwIpOspfIfCtrReset, nwIpFwdIfIndex=nwIpFwdIfIndex, nwIpEventFltrProtocol=nwIpEventFltrProtocol, nwIpFwdIfCtrFwdBytes=nwIpFwdIfCtrFwdBytes, nwIpRipIfOperationalTime=nwIpRipIfOperationalTime, nwIpOspfIfCtrFilteredBytes=nwIpOspfIfCtrFilteredBytes, nwIpRedirectEntry=nwIpRedirectEntry, nwIpAccessControl=nwIpAccessControl, nwIpOspfAdminReset=nwIpOspfAdminReset, nwIpOspfCtrReset=nwIpOspfCtrReset, nwIpHostCtlProtocol=nwIpHostCtlProtocol, nwIpOspfIfOperStatus=nwIpOspfIfOperStatus, nwIpWgDefEntry=nwIpWgDefEntry, nwIpWgIfEntry=nwIpWgIfEntry, nwIpHostsTimeToLive=nwIpHostsTimeToLive, nwIpOspfIfEntry=nwIpOspfIfEntry, nwIpOspfIfCtrInBytes=nwIpOspfIfCtrInBytes, nwIpRipCtrFilteredPkts=nwIpRipCtrFilteredPkts, nwIpOspfCtrOutBytes=nwIpOspfCtrOutBytes, nwIpRipCtrDiscardPkts=nwIpRipCtrDiscardPkts, nwIpEndSystems=nwIpEndSystems, nwIpFwdIfCounters=nwIpFwdIfCounters, nwIpEventFltrAction=nwIpEventFltrAction, nwIpEvent=nwIpEvent, nwIpOspfIfCounters=nwIpOspfIfCounters, nwIpHostMapTable=nwIpHostMapTable, nwIpRipIfCtrOutBytes=nwIpRipIfCtrOutBytes, nwIpEventLogConfig=nwIpEventLogConfig, nwIpFwdIfCtrReset=nwIpFwdIfCtrReset, nwIpWgHostHostAddr=nwIpWgHostHostAddr, nwIpHostMapPortNumber=nwIpHostMapPortNumber, nwIpFwdCtrAddrErrPkts=nwIpFwdCtrAddrErrPkts, nwIpOspfIfCtrOutPkts=nwIpOspfIfCtrOutPkts, nwIpFwdIfCtrHdrErrPkts=nwIpFwdIfCtrHdrErrPkts, nwIpHostCtlProxy=nwIpHostCtlProxy, nwIpRipCtrDiscardBytes=nwIpRipCtrDiscardBytes, nwIpRipIfCtrReset=nwIpRipIfCtrReset, nwIpFwdIfCtrHostOutPkts=nwIpFwdIfCtrHostOutPkts, nwIpFwdIfOperationalTime=nwIpFwdIfOperationalTime, nwIpFwdCtrOperationalTime=nwIpFwdCtrOperationalTime, nwIpFibSystem=nwIpFibSystem, nwIpRipCtrFilteredBytes=nwIpRipCtrFilteredBytes, nwIpOspfIfIndex=nwIpOspfIfIndex, nwIpOspfStaticMetric=nwIpOspfStaticMetric, nwIpClientServices=nwIpClientServices, nwIpMibs=nwIpMibs, nwIpRipCtrAdminStatus=nwIpRipCtrAdminStatus, nwIpRipIfPriority=nwIpRipIfPriority, nwIpHostCtlTable=nwIpHostCtlTable, nwIpHostCtlCacheMax=nwIpHostCtlCacheMax, nwIpFwdCtrAdminStatus=nwIpFwdCtrAdminStatus, nwIpFwdIfFrameType=nwIpFwdIfFrameType, nwIpOspfCtrFilteredBytes=nwIpOspfCtrFilteredBytes, nwIpOspfStaticStatus=nwIpOspfStaticStatus, nwIpRedirectAddress=nwIpRedirectAddress, nwIpAclMatches=nwIpAclMatches, nwIpOspfIfCtrFilteredPkts=nwIpOspfIfCtrFilteredPkts, nwIpOspfDatabase=nwIpOspfDatabase, nwIpRipIfPoisonReverse=nwIpRipIfPoisonReverse, nwIpRipIfAdminStatus=nwIpRipIfAdminStatus, nwIpFwdIfCtrFilteredBytes=nwIpFwdIfCtrFilteredBytes, nwIpRipIfAclIdentifier=nwIpRipIfAclIdentifier, nwIpAddressTable=nwIpAddressTable, nwIpTopology=nwIpTopology, nwIpRipAdminReset=nwIpRipAdminReset, nwIpRipIfCtrFilteredPkts=nwIpRipIfCtrFilteredPkts, nwIpSysOperStatus=nwIpSysOperStatus, nwIpFwdIfTable=nwIpFwdIfTable, nwIpWgDefHostAddress=nwIpWgDefHostAddress, nwIpFwdIfForwarding=nwIpFwdIfForwarding, nwIpOspfIfCtrIfIndex=nwIpOspfIfCtrIfIndex, nwIpOspfIfCtrDiscardPkts=nwIpOspfIfCtrDiscardPkts, nwIpOspfIfOperationalTime=nwIpOspfIfOperationalTime, nwIpHostMapEntry=nwIpHostMapEntry, nwIpRipIfCtrIfIndex=nwIpRipIfCtrIfIndex, nwIpEventTable=nwIpEventTable, nwIpAclSequence=nwIpAclSequence, nwIpFwdIfCacheEntries=nwIpFwdIfCacheEntries, nwIpRipIfTable=nwIpRipIfTable, nwIpOspfStackSize=nwIpOspfStackSize, nwIpAclSrcMask=nwIpAclSrcMask, nwIpRipIfSnooping=nwIpRipIfSnooping, nwIpRipCounters=nwIpRipCounters, nwIpOspfIfCtrEntry=nwIpOspfIfCtrEntry, nwIpRipIfCtrEntry=nwIpRipIfCtrEntry, nwIpFwdCtrDiscardPkts=nwIpFwdCtrDiscardPkts, nwIpFwdIfCtrIfIndex=nwIpFwdIfCtrIfIndex, nwIpWgIfNumActiveHosts=nwIpWgIfNumActiveHosts, nwIpFwdInterfaces=nwIpFwdInterfaces, nwIpFwdIfControl=nwIpFwdIfControl, nwIpEventLogFilterTable=nwIpEventLogFilterTable, nwIpRipIfSplitHorizon=nwIpRipIfSplitHorizon, nwIpEventFltrType=nwIpEventFltrType, nwIpRipRtSrcNode=nwIpRipRtSrcNode, nwIpWgIfTable=nwIpWgIfTable, nwIpHostMapIpAddr=nwIpHostMapIpAddr, nwIpRipOperStatus=nwIpRipOperStatus, nwIpFwdCtrInBytes=nwIpFwdCtrInBytes, nwIpAclIdentifier=nwIpAclIdentifier, nwIpFwdIfAclIdentifier=nwIpFwdIfAclIdentifier, nwIpHostsRetryCount=nwIpHostsRetryCount, nwIpHostsSystem=nwIpHostsSystem, nwIpOspfInterfaces=nwIpOspfInterfaces, nwIpOspfIfCtrOutBytes=nwIpOspfIfCtrOutBytes, nwIpOspfLeakAllStaticRoutes=nwIpOspfLeakAllStaticRoutes, nwIpFwdIfCacheControl=nwIpFwdIfCacheControl, nwIpRipRouteEntry=nwIpRipRouteEntry, nwIpOspfIfCtrInPkts=nwIpOspfIfCtrInPkts, nwIpRipIfCtrInPkts=nwIpRipIfCtrInPkts, nwIpWgIfDefIdent=nwIpWgIfDefIdent, nwIpWgRngRowStatus=nwIpWgRngRowStatus, nwIpFwdCtrInPkts=nwIpFwdCtrInPkts, nwIpRedirectTable=nwIpRedirectTable, nwIpOspfForward=nwIpOspfForward, nwIpOspfIfCtrAdminStatus=nwIpOspfIfCtrAdminStatus, nwIpSysAdminReset=nwIpSysAdminReset, nwIpRipRtIfIndex=nwIpRipRtIfIndex, nwIpFib=nwIpFib, nwIpSysVersion=nwIpSysVersion, nwIpOspfCtrDiscardPkts=nwIpOspfCtrDiscardPkts, nwIpRipDatabaseThreshold=nwIpRipDatabaseThreshold, nwIpHostMapType=nwIpHostMapType, nwIpEventIfNum=nwIpEventIfNum, nwIpRedirectCount=nwIpRedirectCount, nwIpOspfStaticForwardMask=nwIpOspfStaticForwardMask, nwIpHostCtlCacheHits=nwIpHostCtlCacheHits, nwIpEventSeverity=nwIpEventSeverity, nwIpRipIfCtrFilteredBytes=nwIpRipIfCtrFilteredBytes, nwIpRipIfCtrTable=nwIpRipIfCtrTable, nwIpAclSrcAddress=nwIpAclSrcAddress, nwIpOspfIfTable=nwIpOspfIfTable, nwIpHostMapIfIndex=nwIpHostMapIfIndex, nwIpOspfIfVersion=nwIpOspfIfVersion, nwIpHostCtlOperationalTime=nwIpHostCtlOperationalTime)
mibBuilder.exportSymbols('CTRON-IP-ROUTER-MIB', nwIpOspfStaticTable=nwIpOspfStaticTable, nwIpWgHostDefIdent=nwIpWgHostDefIdent, nwIpAddrIfControl=nwIpAddrIfControl, nwIpRipIfConfig=nwIpRipIfConfig, nwIpFwdIfCtrLenErrPkts=nwIpFwdIfCtrLenErrPkts, nwIpHostMapFraming=nwIpHostMapFraming, nwIpRipVersion=nwIpRipVersion, nwIpOspfFib=nwIpOspfFib, nwIpRipIfCtrDiscardPkts=nwIpRipIfCtrDiscardPkts, nwIpRipSystem=nwIpRipSystem, nwIpWgHostPhysAddr=nwIpWgHostPhysAddr, nwIpWgDefRowStatus=nwIpWgDefRowStatus, nwIpOspfLeakAllRipRoutes=nwIpOspfLeakAllRipRoutes, nwIpOspfCtrOperationalTime=nwIpOspfCtrOperationalTime, nwIpWgHostTable=nwIpWgHostTable, nwIpRipRtMask=nwIpRipRtMask, nwIpEventFltrSeverity=nwIpEventFltrSeverity, nwIpOspfIfConfig=nwIpOspfIfConfig, nwIpFwdIfCtrHostDiscardPkts=nwIpFwdIfCtrHostDiscardPkts, nwIpRipRtAge=nwIpRipRtAge, nwIpHostCtlCacheMisses=nwIpHostCtlCacheMisses, nwIpEventTextString=nwIpEventTextString, nwIpOspfVersion=nwIpOspfVersion, nwIpOspfStaticNextHop=nwIpOspfStaticNextHop, nwIpRipIfIndex=nwIpRipIfIndex, nwIpAclPermission=nwIpAclPermission, nwIpHostsInterfaces=nwIpHostsInterfaces, nwIpRipRtNetId=nwIpRipRtNetId, nwIpFwdIfCtrHostDiscardBytes=nwIpFwdIfCtrHostDiscardBytes, nwIpWgDefTable=nwIpWgDefTable, nwIpRipCtrInPkts=nwIpRipCtrInPkts, nwIpRipAdminStatus=nwIpRipAdminStatus, nwIpFwdIfCtrInBytes=nwIpFwdIfCtrInBytes, nwIpOspfThreadPriority=nwIpOspfThreadPriority, nwIpEventFltrControl=nwIpEventFltrControl, nwIpWgRngPhysAddr=nwIpWgRngPhysAddr, nwIpOspfIfCtrTable=nwIpOspfIfCtrTable, nwIpSysRouterId=nwIpSysRouterId, nwIpOspfRipTable=nwIpOspfRipTable, nwIpFilters=nwIpFilters, nwIpRedirector=nwIpRedirector, nwIpFwdIfEntry=nwIpFwdIfEntry, nwIpFwdIfCtrFilteredPkts=nwIpFwdIfCtrFilteredPkts, nwIpHostCtlSnooping=nwIpHostCtlSnooping, nwIpRipIfVersion=nwIpRipIfVersion, nwIpEventMaxEntries=nwIpEventMaxEntries, nwIpAddrIfAddrType=nwIpAddrIfAddrType, nwIpSysAdministration=nwIpSysAdministration, nwIpRipThreadPriority=nwIpRipThreadPriority, nwIpOspfIfType=nwIpOspfIfType, nwIpOspfIfCtrDiscardBytes=nwIpOspfIfCtrDiscardBytes, nwIpFwdSystem=nwIpFwdSystem, nwIpFwdCtrHostOutPkts=nwIpFwdCtrHostOutPkts, nwIpWgDefIdentifier=nwIpWgDefIdentifier, nwIpFwdCtrLenErrPkts=nwIpFwdCtrLenErrPkts, nwIpRipHoldDown=nwIpRipHoldDown, nwIpRipIfEntry=nwIpRipIfEntry, nwIpFwdIfOperStatus=nwIpFwdIfOperStatus, nwIpRip=nwIpRip, nwIpFwdIfCacheMisses=nwIpFwdIfCacheMisses, nwIpFwdIfCtrDiscardBytes=nwIpFwdIfCtrDiscardBytes, nwIpOspfCtrDiscardBytes=nwIpOspfCtrDiscardBytes, nwIpFwdCtrFilteredBytes=nwIpFwdCtrFilteredBytes, nwIpOspfIfAclStatus=nwIpOspfIfAclStatus, nwIpEventFilterEntry=nwIpEventFilterEntry, nwIpWgIfOperStatus=nwIpWgIfOperStatus, nwIpOspfStaticEntry=nwIpOspfStaticEntry, nwIpFwdCtrHostDiscardPkts=nwIpFwdCtrHostDiscardPkts, nwIpFwdCtrHostDiscardBytes=nwIpFwdCtrHostDiscardBytes, nwIpFwdCtrOutPkts=nwIpFwdCtrOutPkts, nwIpDistanceVector=nwIpDistanceVector, nwIpAclValidEntries=nwIpAclValidEntries, nwIpSysOperationalTime=nwIpSysOperationalTime, nwIpOspfFibEntries=nwIpOspfFibEntries, nwIpOspfConfig=nwIpOspfConfig, nwIpFwdIfCtrAdminStatus=nwIpFwdIfCtrAdminStatus, nwIpWgRngOperStatus=nwIpWgRngOperStatus, nwIpFwdIfCtrFwdPkts=nwIpFwdIfCtrFwdPkts, nwIpOspfLeakAllBgp4Routes=nwIpOspfLeakAllBgp4Routes, nwIpFwdCtrHdrErrPkts=nwIpFwdCtrHdrErrPkts, nwIpAddrIfIndex=nwIpAddrIfIndex, nwIpOspfStaticDest=nwIpOspfStaticDest, nwIpOspfDynamicTable=nwIpOspfDynamicTable, nwIpRipIfXmitCost=nwIpRipIfXmitCost, nwIpOspfCtrFilteredPkts=nwIpOspfCtrFilteredPkts, nwIpFwdIfCtrHostInPkts=nwIpFwdIfCtrHostInPkts, nwIpFwdIfCtrDiscardPkts=nwIpFwdIfCtrDiscardPkts, nwIpFwdIfCtrOutBytes=nwIpFwdIfCtrOutBytes, nwIpRipFilters=nwIpRipFilters, nwIpOspf=nwIpOspf, nwIpRipIfCtrAdminStatus=nwIpRipIfCtrAdminStatus, nwIpRipIfCtrOperationalTime=nwIpRipIfCtrOperationalTime, nwIpHostCtlNumDynamics=nwIpHostCtlNumDynamics, nwIpEventNumber=nwIpEventNumber, nwIpWgDefFastPath=nwIpWgDefFastPath, nwIpRipConfig=nwIpRipConfig, nwIpFwdCtrOutBytes=nwIpFwdCtrOutBytes, nwIpRipCtrReset=nwIpRipCtrReset, nwIpOspfStaticMetricType=nwIpOspfStaticMetricType, nwIpAddrEntry=nwIpAddrEntry, nwIpAddrIfMask=nwIpAddrIfMask) |
def factorial(n):
if n in (0, 1):
return 1
result = n
for k in range(2, n):
result *= k
return result
f5 = factorial(5) # f5 = 120
print(f5)
| def factorial(n):
if n in (0, 1):
return 1
result = n
for k in range(2, n):
result *= k
return result
f5 = factorial(5)
print(f5) |
def revisar(function):
def test():
print("Se esta ejecutando la fucnion {}".format(function.__name__))
function()
print("Se acaba de ejecutar la fucnion {}".format(function.__name__))
return test
def revisar_args(function):
def test(*args, **kwargs):
print("Se esta ejecutando la fucnion {}".format(function.__name__))
function(*args, **kwargs)
print("Se acaba de ejecutar la fucnion {}".format(function.__name__))
return test
@revisar_args
def hola(nombre):
print("Hola {}!".format(nombre))
@revisar_args
def adios(nombre):
print("Adios! {}".format(nombre))
hola("Fernando")
print("")
adios("Contreras")
| def revisar(function):
def test():
print('Se esta ejecutando la fucnion {}'.format(function.__name__))
function()
print('Se acaba de ejecutar la fucnion {}'.format(function.__name__))
return test
def revisar_args(function):
def test(*args, **kwargs):
print('Se esta ejecutando la fucnion {}'.format(function.__name__))
function(*args, **kwargs)
print('Se acaba de ejecutar la fucnion {}'.format(function.__name__))
return test
@revisar_args
def hola(nombre):
print('Hola {}!'.format(nombre))
@revisar_args
def adios(nombre):
print('Adios! {}'.format(nombre))
hola('Fernando')
print('')
adios('Contreras') |
class Events:
# SAP_ITSAMInstance/Alert
ccms_alerts = {
"SAP name": {"description": "description is optional: Alternative name for stackstate",
"field": "field is mandatory: Name of field with value"}, # example entry
"Oracle|Performance|Locks": {"field": "Value"},
"R3Services|Dialog|ResponseTimeDialog": {"field": "ActualValue"},
"R3Services|Spool": {"description": "SAP:Spool utilization",
"field": "ActualValue"},
"R3Services|Spool|SpoolService|ErrorsInWpSPO": {"description": "SAP:ErrorsInWpSPO",
"field": "ActualValue"},
"R3Services|Spool|SpoolService|ErrorFreqInWpSPO": {"description": "SAP:ErrorsFreqInWpSPO",
"field": "ActualValue"},
"Shortdumps Frequency": {"field": "ActualValue"}
}
# SAP_ITSAMInstance/Parameter
instance_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"} # example entry
}
# SAP_ITSAMDatabaseMetric
dbmetric_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"}, # example entry
"db.ora.tablespace.status": {"field": "Value"},
"35": {"description": "HDB:Backup_exist",
"field": "Value"},
"36": {"description": "HDB:Recent_backup",
"field": "Value"},
"38": {"description": "HDB:Recent_log_backup",
"field": "Value"},
"102": {"description": "HDB:System_backup_Exists",
"field": "Value"},
"1015": {"description": "HDB:System replication",
"field": "Value"}
}
# GetComputerSystem
system_events = {
"SAP name": {"description": "description is optional: Alternative name for stackstate"} # example entry
}
| class Events:
ccms_alerts = {'SAP name': {'description': 'description is optional: Alternative name for stackstate', 'field': 'field is mandatory: Name of field with value'}, 'Oracle|Performance|Locks': {'field': 'Value'}, 'R3Services|Dialog|ResponseTimeDialog': {'field': 'ActualValue'}, 'R3Services|Spool': {'description': 'SAP:Spool utilization', 'field': 'ActualValue'}, 'R3Services|Spool|SpoolService|ErrorsInWpSPO': {'description': 'SAP:ErrorsInWpSPO', 'field': 'ActualValue'}, 'R3Services|Spool|SpoolService|ErrorFreqInWpSPO': {'description': 'SAP:ErrorsFreqInWpSPO', 'field': 'ActualValue'}, 'Shortdumps Frequency': {'field': 'ActualValue'}}
instance_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}}
dbmetric_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}, 'db.ora.tablespace.status': {'field': 'Value'}, '35': {'description': 'HDB:Backup_exist', 'field': 'Value'}, '36': {'description': 'HDB:Recent_backup', 'field': 'Value'}, '38': {'description': 'HDB:Recent_log_backup', 'field': 'Value'}, '102': {'description': 'HDB:System_backup_Exists', 'field': 'Value'}, '1015': {'description': 'HDB:System replication', 'field': 'Value'}}
system_events = {'SAP name': {'description': 'description is optional: Alternative name for stackstate'}} |
"""
33.11%
"""
class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
maxlen = 0
cur = []
nums = sorted(set(nums))
for num in nums:
if not cur:
cur.append(num)
else:
if cur[-1] + 1 == num or cur[-1] == num:
cur.append(num)
else:
cur[:] = []
cur.append(num)
maxlen = max(maxlen, len(cur))
return maxlen | """
33.11%
"""
class Solution(object):
def longest_consecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
maxlen = 0
cur = []
nums = sorted(set(nums))
for num in nums:
if not cur:
cur.append(num)
elif cur[-1] + 1 == num or cur[-1] == num:
cur.append(num)
else:
cur[:] = []
cur.append(num)
maxlen = max(maxlen, len(cur))
return maxlen |
class Solution:
def lengthOfLongestSubstring(self, s):
hashmap = {}
left, right, max_length = 0, 0, 0
while left < len(s) and right < len(s):
char = s[right]
if char in hashmap:
left = max(left, hashmap[char] + 1)
hashmap[char] = right
max_length = max(max_length, right - left + 1)
right += 1
return max_length
| class Solution:
def length_of_longest_substring(self, s):
hashmap = {}
(left, right, max_length) = (0, 0, 0)
while left < len(s) and right < len(s):
char = s[right]
if char in hashmap:
left = max(left, hashmap[char] + 1)
hashmap[char] = right
max_length = max(max_length, right - left + 1)
right += 1
return max_length |
class Book:
def __init__(self, id_book, title, author):
self.__id_book = id_book
self.__title = title
self.__author = author
def get_id_book(self):
return self.__id_book
def get_title(self):
return self.__title
def get_author(self):
return self.__author
def set_title(self, title):
self.__title = title
def set_author(self, author):
self.__author = author
def __eq__(self, other):
return self.__id_book == other.__id_book
def __str__(self) -> str:
return "Id book:{0}, Title:{1}, Author:{2}".format(self.__id_book, self.__title, self.__author)
class Client:
def __init__(self, id_client, name):
self.__id_client = id_client
self.__name = name
def get_id_client(self):
return self.__id_client
def get_name(self):
return self.__name
def set_name(self, name):
self.__name = name
def __eq__(self, other):
return self.__id_client == other.__id_client
def __str__(self) -> str:
return "ID client: {0}, Name: {1}".format(self.__id_client, self.__name)
class Rental:
def __init__(self, id_rental, id_book, id_client, rented_date, returned_date):
self.__id_rental = id_rental
self.__id_book = id_book
self.__id_client = id_client
self.__rented_date = rented_date
self.__returned_date = returned_date
def get_id_rental(self):
return self.__id_rental
def get_id_book(self):
return self.__id_book
def get_id_client(self):
return self.__id_client
def get_rented_date(self):
return self.__rented_date
def get_returned_date(self):
return self.__returned_date
def set_returned_date(self, date):
self.__returned_date = date
def __eq__(self, other):
return self.__id_rental == other.__id_rental
def __str__(self) -> str:
return "ID rent: {0}, ID book:{1}, ID client{2}, rented date:{3}, returned date:{4}".format(self.__id_rental,
self.__id_book,
self.__id_client,
self.__rented_date,
self.__returned_date)
| class Book:
def __init__(self, id_book, title, author):
self.__id_book = id_book
self.__title = title
self.__author = author
def get_id_book(self):
return self.__id_book
def get_title(self):
return self.__title
def get_author(self):
return self.__author
def set_title(self, title):
self.__title = title
def set_author(self, author):
self.__author = author
def __eq__(self, other):
return self.__id_book == other.__id_book
def __str__(self) -> str:
return 'Id book:{0}, Title:{1}, Author:{2}'.format(self.__id_book, self.__title, self.__author)
class Client:
def __init__(self, id_client, name):
self.__id_client = id_client
self.__name = name
def get_id_client(self):
return self.__id_client
def get_name(self):
return self.__name
def set_name(self, name):
self.__name = name
def __eq__(self, other):
return self.__id_client == other.__id_client
def __str__(self) -> str:
return 'ID client: {0}, Name: {1}'.format(self.__id_client, self.__name)
class Rental:
def __init__(self, id_rental, id_book, id_client, rented_date, returned_date):
self.__id_rental = id_rental
self.__id_book = id_book
self.__id_client = id_client
self.__rented_date = rented_date
self.__returned_date = returned_date
def get_id_rental(self):
return self.__id_rental
def get_id_book(self):
return self.__id_book
def get_id_client(self):
return self.__id_client
def get_rented_date(self):
return self.__rented_date
def get_returned_date(self):
return self.__returned_date
def set_returned_date(self, date):
self.__returned_date = date
def __eq__(self, other):
return self.__id_rental == other.__id_rental
def __str__(self) -> str:
return 'ID rent: {0}, ID book:{1}, ID client{2}, rented date:{3}, returned date:{4}'.format(self.__id_rental, self.__id_book, self.__id_client, self.__rented_date, self.__returned_date) |
name = "Eiad"
test = input("Enter your password:\n")
if name == test:
print("Welcome in\n")
else:
print("Access denied\n")
del test
| name = 'Eiad'
test = input('Enter your password:\n')
if name == test:
print('Welcome in\n')
else:
print('Access denied\n')
del test |
"""
A linked list is given such that each node contains an additional random pointer
which could point to any node in the list or null.
Return a deep copy of the list.
The Linked List is represented in the input/output as a list of n nodes.
Each node is represented as a pair of [val, random_index] where:
* val: an integer representing Node.val
* random_index: the index of the node (range from 0 to n-1) where random pointer points to,
or null if it does not point to any node.
Example 1:
Input: head = [[7,null],[13,0],[11,4],[10,2],[1,0]]
Output: [[7,null],[13,0],[11,4],[10,2],[1,0]]
"""
# Definition for a Node.
class Node:
def __init__(self, x: int, next: 'Node' = None, random: 'Node' = None):
self.val = int(x)
self.next = next
self.random = random
class Solution:
"""
2-pass approach.
On first pass we creating shallow copies of nodes (without links, just values),
on second pass we link (new nodes) as they are in the original list.
Runtime: 36 ms, faster than 59.90% of Python3
Memory Usage: 14.9 MB, less than 32.19% of Python3
Time and space complexity: O(n)
"""
def copyRandomList(self, head: 'Node') -> 'Node':
if not head:
return
copies = dict()
node = head
while node:
copies[node] = Node(node.val)
node = node.next
node = head
while node:
copies[node].next = copies[node.next] if node.next else None
copies[node].random = copies[node.random] if node.random else None
node = node.next
return copies[head]
| """
A linked list is given such that each node contains an additional random pointer
which could point to any node in the list or null.
Return a deep copy of the list.
The Linked List is represented in the input/output as a list of n nodes.
Each node is represented as a pair of [val, random_index] where:
* val: an integer representing Node.val
* random_index: the index of the node (range from 0 to n-1) where random pointer points to,
or null if it does not point to any node.
Example 1:
Input: head = [[7,null],[13,0],[11,4],[10,2],[1,0]]
Output: [[7,null],[13,0],[11,4],[10,2],[1,0]]
"""
class Node:
def __init__(self, x: int, next: 'Node'=None, random: 'Node'=None):
self.val = int(x)
self.next = next
self.random = random
class Solution:
"""
2-pass approach.
On first pass we creating shallow copies of nodes (without links, just values),
on second pass we link (new nodes) as they are in the original list.
Runtime: 36 ms, faster than 59.90% of Python3
Memory Usage: 14.9 MB, less than 32.19% of Python3
Time and space complexity: O(n)
"""
def copy_random_list(self, head: 'Node') -> 'Node':
if not head:
return
copies = dict()
node = head
while node:
copies[node] = node(node.val)
node = node.next
node = head
while node:
copies[node].next = copies[node.next] if node.next else None
copies[node].random = copies[node.random] if node.random else None
node = node.next
return copies[head] |
def get(which):
try:
with open("marvel/keys/%s" % which, "r") as key:
return key.read()
except(OSError, IOError):
return None
| def get(which):
try:
with open('marvel/keys/%s' % which, 'r') as key:
return key.read()
except (OSError, IOError):
return None |
# Acorn tree reactor | edelstein
if sm.hasQuest(23003):
sm.dropItem(4034738, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY())
sm.removeReactor()
| if sm.hasQuest(23003):
sm.dropItem(4034738, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY())
sm.removeReactor() |
class Perro:
# Atributo de Clase
genero= "Canis"
def __init__(self, nombre, edad):
self.nombre = nombre
self.edad = edad
myDog = Perro("Firulais", 5)
print(myDog.nombre)
print(myDog.edad)
print(myDog.genero)
Perro.genero = "Mamifero"
myOtherDog = Perro("Pepito", 15)
print(myOtherDog.nombre)
print(myOtherDog.edad)
print(myOtherDog.genero)
print(myDog.genero) | class Perro:
genero = 'Canis'
def __init__(self, nombre, edad):
self.nombre = nombre
self.edad = edad
my_dog = perro('Firulais', 5)
print(myDog.nombre)
print(myDog.edad)
print(myDog.genero)
Perro.genero = 'Mamifero'
my_other_dog = perro('Pepito', 15)
print(myOtherDog.nombre)
print(myOtherDog.edad)
print(myOtherDog.genero)
print(myDog.genero) |
print('*'*23)
print('* Triangle Analyzer *')
print('*'*23)
a = float(input('First straight: '))
b = float(input('Second straight: '))
c = float(input('Third straight: '))
if a + b > c and b + c > a and a + c > b:
print('The above segments MAY form a triangle!')
else:
print('The above segments CANNOT FORM a triangle!')
| print('*' * 23)
print('* Triangle Analyzer *')
print('*' * 23)
a = float(input('First straight: '))
b = float(input('Second straight: '))
c = float(input('Third straight: '))
if a + b > c and b + c > a and (a + c > b):
print('The above segments MAY form a triangle!')
else:
print('The above segments CANNOT FORM a triangle!') |
class Neighbour:
def __init__(self, *args):
self.IPaddress = None
self.portnumber = None
self.lastComm = None
self.isonline = False
def setIP(self, ip):
self.IPaddress = ip
def setPort(self, port):
self.portnumber = port
def setLastTalk(self, timestamp):
lastComm = timestamp
def checkOnline(self):
#TODO: try to ping, or connect to the ip:port and update status
return None | class Neighbour:
def __init__(self, *args):
self.IPaddress = None
self.portnumber = None
self.lastComm = None
self.isonline = False
def set_ip(self, ip):
self.IPaddress = ip
def set_port(self, port):
self.portnumber = port
def set_last_talk(self, timestamp):
last_comm = timestamp
def check_online(self):
return None |
class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
paid = math.inf
profit = 0
for price in prices:
if paid < price:
profit = max(profit, price - paid)
else:
paid = price
return profit
| class Solution:
def max_profit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
paid = math.inf
profit = 0
for price in prices:
if paid < price:
profit = max(profit, price - paid)
else:
paid = price
return profit |
__all__ = [
'DataAgent',
'DataUtility',
'DataAgentBuilder',
'UniversalDataCenter',
]
| __all__ = ['DataAgent', 'DataUtility', 'DataAgentBuilder', 'UniversalDataCenter'] |
"""
API module
"""
__all__ = ['access_token', 'account', 'block', 'contract', 'transaction']
| """
API module
"""
__all__ = ['access_token', 'account', 'block', 'contract', 'transaction'] |
x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}
x.symmetric_difference_update(y)
print(x)
| x = {'apple', 'banana', 'cherry'}
y = {'google', 'microsoft', 'apple'}
x.symmetric_difference_update(y)
print(x) |
def maxProduct(nums):
n = len(nums)
ans = nums[0]
maxy = mini = ans
for i in range(1, n):
if nums[i] < 0:
maxy, mini = mini, maxy
maxy = max(nums[i], maxy * nums[i])
mini = min(nums[i], mini * nums[i])
ans = max(ans, maxy)
return ans
if __name__ == '__main__':
ans = maxProduct([2, 3, -2, 4])
assert ans == 6, 'Wrong answer'
print(ans)
| def max_product(nums):
n = len(nums)
ans = nums[0]
maxy = mini = ans
for i in range(1, n):
if nums[i] < 0:
(maxy, mini) = (mini, maxy)
maxy = max(nums[i], maxy * nums[i])
mini = min(nums[i], mini * nums[i])
ans = max(ans, maxy)
return ans
if __name__ == '__main__':
ans = max_product([2, 3, -2, 4])
assert ans == 6, 'Wrong answer'
print(ans) |
class Solution:
"""
@param: nodes: a array of Undirected graph node
@return: a connected set of a Undirected graph
"""
def __init__(self):
self.d = {}
def connectedSet(self, nodes):
# write your code here
for n in nodes:
self.d[n.label] = None
for node in nodes:
for n in node.neighbors:
a = self.find_parent(node.label)
b = self.find_parent(n.label)
if a != b:
self.d[a] = b
result = {}
for k in self.d:
key = self.find_parent(k)
result[key] = result.get(key, []) + [k]
# Not sure why the result must be sorted to pass... Maybe set?
return sorted([sorted(i) for i in result.values()])
def find_parent(self, n):
if self.d[n] is not None:
return self.find_parent(self.d[n])
return n | class Solution:
"""
@param: nodes: a array of Undirected graph node
@return: a connected set of a Undirected graph
"""
def __init__(self):
self.d = {}
def connected_set(self, nodes):
for n in nodes:
self.d[n.label] = None
for node in nodes:
for n in node.neighbors:
a = self.find_parent(node.label)
b = self.find_parent(n.label)
if a != b:
self.d[a] = b
result = {}
for k in self.d:
key = self.find_parent(k)
result[key] = result.get(key, []) + [k]
return sorted([sorted(i) for i in result.values()])
def find_parent(self, n):
if self.d[n] is not None:
return self.find_parent(self.d[n])
return n |
# (c) [Muhammed] @PR0FESS0R-99
# (s) @Mo_Tech_YT , @Mo_Tech_Group, @MT_Botz
# Copyright permission under MIT License
# All rights reserved by PR0FESS0R-99
# License -> https://github.com/PR0FESS0R-99/DonLee-Robot-V2/blob/Professor-99/LICENSE
VERIFY = {}
| verify = {} |
# Space: O(n)
# Time: O(n)
class Solution:
def getSmallestString(self, n: int, k: int) -> str:
char_cache = {i + 1: chr(97 + i) for i in range(26)}
if n == 1: return char_cache[k]
res = [None for _ in range(n)]
for i in range(n - 1, -1, -1):
if k > (i + 1):
temp_res = k - i
if temp_res <= 26:
res[i] = char_cache[temp_res]
k -= temp_res
else:
res[i] = char_cache[26]
k -= 26
elif k == (i + 1):
res[i] = char_cache[1]
k -= 1
return ''.join(res)
| class Solution:
def get_smallest_string(self, n: int, k: int) -> str:
char_cache = {i + 1: chr(97 + i) for i in range(26)}
if n == 1:
return char_cache[k]
res = [None for _ in range(n)]
for i in range(n - 1, -1, -1):
if k > i + 1:
temp_res = k - i
if temp_res <= 26:
res[i] = char_cache[temp_res]
k -= temp_res
else:
res[i] = char_cache[26]
k -= 26
elif k == i + 1:
res[i] = char_cache[1]
k -= 1
return ''.join(res) |
class FileObject:
def __init__(self, name, attributes, location, data=None, memory=None, size=None, timestamp=None, owner=None):
self.name = name
self.attributes = attributes
self.loc = location
# TODO: Find size of obj/file
self.size = size if size else size
self.memory = memory
self.timestamp = timestamp
self.owner = owner
self.group = owner
if memory is True:
with open(data, 'r') as f:
self._data = f.read()
else:
self._data = data
def to_list(self):
return [self.name, self.attributes, self._data]
def to_dict(self):
return {'name': self.name, 'attribute': self.attributes, 'type': __class__, 'data': self._data}
@property
def data(self):
if self.memory is False:
with open(self._data, 'r') as f:
return f.read()
else:
return self._data
| class Fileobject:
def __init__(self, name, attributes, location, data=None, memory=None, size=None, timestamp=None, owner=None):
self.name = name
self.attributes = attributes
self.loc = location
self.size = size if size else size
self.memory = memory
self.timestamp = timestamp
self.owner = owner
self.group = owner
if memory is True:
with open(data, 'r') as f:
self._data = f.read()
else:
self._data = data
def to_list(self):
return [self.name, self.attributes, self._data]
def to_dict(self):
return {'name': self.name, 'attribute': self.attributes, 'type': __class__, 'data': self._data}
@property
def data(self):
if self.memory is False:
with open(self._data, 'r') as f:
return f.read()
else:
return self._data |
def encode(json, schema):
payload = schema.Main()
payload.coord = schema.Coord()
payload.coord.lon = json['coord']['lon']
payload.coord.lat = json['coord']['lat']
payload.weather = [schema.Weather()]
payload.weather[0].id = json['weather'][0]['id']
payload.weather[0].main = json['weather'][0]['main']
payload.weather[0].description = json['weather'][0]['description']
payload.weather[0].icon = json['weather'][0]['icon']
payload.base = json['base']
payload.main = schema.MainObject()
payload.main.temp = json['main']['temp']
payload.main.feels_like = json['main']['feels_like']
payload.main.temp_min = json['main']['temp_min']
payload.main.temp_max = json['main']['temp_max']
payload.main.pressure = json['main']['pressure']
payload.main.humidity = json['main']['humidity']
payload.visibility = json['visibility']
payload.wind = schema.Wind()
payload.wind.speed = json['wind']['speed']
payload.wind.deg = json['wind']['deg']
payload.clouds = schema.Clouds()
payload.clouds.all = json['clouds']['all']
payload.dt = json['dt']
payload.sys = schema.Sys()
payload.sys.type = json['sys']['type']
payload.sys.id = json['sys']['id']
payload.sys.message = json['sys']['message']
payload.sys.country = json['sys']['country']
payload.sys.sunrise = json['sys']['sunrise']
payload.sys.sunset = json['sys']['sunset']
payload.timezone = json['timezone']
payload.id = json['id']
payload.name = json['name']
payload.cod = json['cod']
return payload
def decode(payload):
return {
'coord': payload.coord.__dict__,
'weather': [
payload.weather[0].__dict__
],
'base': payload.base,
'main': payload.main.__dict__,
'visibility': payload.visibility,
'wind': payload.wind.__dict__,
'clouds': payload.clouds.__dict__,
'dt': payload.dt,
'sys': payload.sys.__dict__,
'timezone': payload.timezone,
'id': payload.id,
'name': payload.name,
'cod': payload.cod
}
| def encode(json, schema):
payload = schema.Main()
payload.coord = schema.Coord()
payload.coord.lon = json['coord']['lon']
payload.coord.lat = json['coord']['lat']
payload.weather = [schema.Weather()]
payload.weather[0].id = json['weather'][0]['id']
payload.weather[0].main = json['weather'][0]['main']
payload.weather[0].description = json['weather'][0]['description']
payload.weather[0].icon = json['weather'][0]['icon']
payload.base = json['base']
payload.main = schema.MainObject()
payload.main.temp = json['main']['temp']
payload.main.feels_like = json['main']['feels_like']
payload.main.temp_min = json['main']['temp_min']
payload.main.temp_max = json['main']['temp_max']
payload.main.pressure = json['main']['pressure']
payload.main.humidity = json['main']['humidity']
payload.visibility = json['visibility']
payload.wind = schema.Wind()
payload.wind.speed = json['wind']['speed']
payload.wind.deg = json['wind']['deg']
payload.clouds = schema.Clouds()
payload.clouds.all = json['clouds']['all']
payload.dt = json['dt']
payload.sys = schema.Sys()
payload.sys.type = json['sys']['type']
payload.sys.id = json['sys']['id']
payload.sys.message = json['sys']['message']
payload.sys.country = json['sys']['country']
payload.sys.sunrise = json['sys']['sunrise']
payload.sys.sunset = json['sys']['sunset']
payload.timezone = json['timezone']
payload.id = json['id']
payload.name = json['name']
payload.cod = json['cod']
return payload
def decode(payload):
return {'coord': payload.coord.__dict__, 'weather': [payload.weather[0].__dict__], 'base': payload.base, 'main': payload.main.__dict__, 'visibility': payload.visibility, 'wind': payload.wind.__dict__, 'clouds': payload.clouds.__dict__, 'dt': payload.dt, 'sys': payload.sys.__dict__, 'timezone': payload.timezone, 'id': payload.id, 'name': payload.name, 'cod': payload.cod} |
'''
Exceptions definitions for the MusicCast package.
All are inherited from the Exception class, with the member
'message' available.
Types of Errors:
* CommsError: any type of communication error which should not be due
to a bad command or a command issued at the wrong time.
*
'''
# TODO: Categorise errors =====================================================
# Connection not working
# Device offline?
# Wrong commands, not recognised
# Data read not as expected
# Arguments from commands missing or wrong type
class AnyError(Exception):
''' Docstring'''
pass
class CommsError(AnyError):
''' Docstring'''
pass
class LogicError(AnyError):
''' Docstring'''
pass
class ConfigError(AnyError):
''' Docstring'''
pass
class MusicCastError(AnyError):
''' Docstring'''
pass
#===============================================================================
#
#
# class mcConfigError(AnyError): #DONE
# pass
#
# class mcConnectError(AnyError): # DONE
# ''' There is no connection, so network might be down, or
# local interface not working...'''
# pass
#
# class mcDeviceError(AnyError): # DONE
# ''' The device responds but could not execute whatever was asked.'''
# pass
#
# class mcSyntaxError(AnyError): #DONE
# pass
#
# class mcHTTPError(AnyError): # DONE
# ''' Protocol error, there was misunderstanding in the communication.'''
# pass
#
# class mcLogicError(AnyError): # DONE
# pass
#
# class mcProtocolError(AnyError):
# pass
#===============================================================================
| """
Exceptions definitions for the MusicCast package.
All are inherited from the Exception class, with the member
'message' available.
Types of Errors:
* CommsError: any type of communication error which should not be due
to a bad command or a command issued at the wrong time.
*
"""
class Anyerror(Exception):
""" Docstring"""
pass
class Commserror(AnyError):
""" Docstring"""
pass
class Logicerror(AnyError):
""" Docstring"""
pass
class Configerror(AnyError):
""" Docstring"""
pass
class Musiccasterror(AnyError):
""" Docstring"""
pass |
N, M, T = [int(n) for n in input().split()]
AB = N
p = 0
ans = 'Yes'
for m in range(M):
a, b = [int(n) for n in input().split()]
AB -= (a-p)
if AB <= 0:
ans = 'No'
break
AB = min(AB+(b-a), N)
p = b
if AB - (T-b) <= 0:
ans = 'No'
print(ans) | (n, m, t) = [int(n) for n in input().split()]
ab = N
p = 0
ans = 'Yes'
for m in range(M):
(a, b) = [int(n) for n in input().split()]
ab -= a - p
if AB <= 0:
ans = 'No'
break
ab = min(AB + (b - a), N)
p = b
if AB - (T - b) <= 0:
ans = 'No'
print(ans) |
def pow(n,m):
if(m < 0):
raise("m must be greater than or equal to 0")
elif(m == 0):
return 1
elif(m % 2 == 0):
# this is an optimization to reduce the number of calls
x = pow(n, m/2)
return (x * x)
else:
return n * pow(n, m - 1)
print(pow(2,3))
print(pow(4,3))
print(pow(10,5))
print(pow(1000,0)) | def pow(n, m):
if m < 0:
raise 'm must be greater than or equal to 0'
elif m == 0:
return 1
elif m % 2 == 0:
x = pow(n, m / 2)
return x * x
else:
return n * pow(n, m - 1)
print(pow(2, 3))
print(pow(4, 3))
print(pow(10, 5))
print(pow(1000, 0)) |
"""Custom exceptions for compute driver implementations."""
class ResourceNotFound(Exception):
pass
class ExactMatchFailed(Exception):
pass
class VolumeOpFailure(Exception):
pass
class NetworkOpFailure(Exception):
pass
class NodeError(Exception):
pass
class NodeDeleteFailure(Exception):
pass
| """Custom exceptions for compute driver implementations."""
class Resourcenotfound(Exception):
pass
class Exactmatchfailed(Exception):
pass
class Volumeopfailure(Exception):
pass
class Networkopfailure(Exception):
pass
class Nodeerror(Exception):
pass
class Nodedeletefailure(Exception):
pass |
# customize string representations of objects
class myColor():
def __init__(self):
self.red = 50
self.green = 75
self.blue = 100
# TODO: use getattr to dynamically return a value
def __getattr__(self, attr):
pass
# TODO: use setattr to dynamically return a value
def __setattr__(self, attr, val):
super().__setattr__(attr, val)
# TODO: use dir to list the available properties
def __dir__(self):
pass
def main():
# create an instance of myColor
cls1 = myColor()
# TODO: print the value of a computed attribute
# TODO: set the value of a computed attribute
# TODO: access a regular attribute
# TODO: list the available attributes
if __name__ == "__main__":
main()
| class Mycolor:
def __init__(self):
self.red = 50
self.green = 75
self.blue = 100
def __getattr__(self, attr):
pass
def __setattr__(self, attr, val):
super().__setattr__(attr, val)
def __dir__(self):
pass
def main():
cls1 = my_color()
if __name__ == '__main__':
main() |
# TO DO - error handling??
class VMWriter(list):
"""
TO DO
"""
def __init__(self):
pass
def write_push(self, segment, index):
"""TO DO"""
self.append('push {} {}'.format(segment, index))
def write_pop(self, segment, index):
"""TO DO"""
self.append('pop {} {}'.format(segment, index))
def write_arithmetic_logic(self, command):
"""TO DO"""
self.append(command)
def write_label(self, label):
"""TO DO"""
self.append('label ' + label)
def write_goto(self, label):
"""TO DO"""
self.append('goto ' + label)
def write_if_goto(self, label):
"""TO DO"""
self.append('if-goto ' + label)
def write_call(self, name, n_args):
"""TO DO"""
self.append('call {} {}'.format(name, n_args))
def write_function(self, name, n_local_vars):
"""TO DO"""
self.append('function {} {}'.format(name, n_local_vars))
def write_return(self):
"""TO DO"""
self.append('return')
# TESTS
if __name__ == '__main__':
w = VMWriter()
w.write_push('local', 99)
w.write_pop('local', 100)
w.write_arithmetic_logic('add')
w.write_label('Banana')
w.write_goto('Banana')
w.write_if_goto('Banana')
w.write_call('PeelBanana', 4)
w.write_function('PeelBanana', 4)
w.write_return()
print(w) | class Vmwriter(list):
"""
TO DO
"""
def __init__(self):
pass
def write_push(self, segment, index):
"""TO DO"""
self.append('push {} {}'.format(segment, index))
def write_pop(self, segment, index):
"""TO DO"""
self.append('pop {} {}'.format(segment, index))
def write_arithmetic_logic(self, command):
"""TO DO"""
self.append(command)
def write_label(self, label):
"""TO DO"""
self.append('label ' + label)
def write_goto(self, label):
"""TO DO"""
self.append('goto ' + label)
def write_if_goto(self, label):
"""TO DO"""
self.append('if-goto ' + label)
def write_call(self, name, n_args):
"""TO DO"""
self.append('call {} {}'.format(name, n_args))
def write_function(self, name, n_local_vars):
"""TO DO"""
self.append('function {} {}'.format(name, n_local_vars))
def write_return(self):
"""TO DO"""
self.append('return')
if __name__ == '__main__':
w = vm_writer()
w.write_push('local', 99)
w.write_pop('local', 100)
w.write_arithmetic_logic('add')
w.write_label('Banana')
w.write_goto('Banana')
w.write_if_goto('Banana')
w.write_call('PeelBanana', 4)
w.write_function('PeelBanana', 4)
w.write_return()
print(w) |
def diviser(numero):
lista = []
a = 0
while a < numero // 2:
a = a + 1
if numero % a == 0:
lista.append(a)
#let's not forget the last number: the number itself!
lista.append(numero)
return lista
years = [1995, 1973, 2006, 1953, 1939, 1931, 1962, 1951]
#num = int(input("Numero da dividere? "))
for elemento in years:
print(diviser(elemento))
| def diviser(numero):
lista = []
a = 0
while a < numero // 2:
a = a + 1
if numero % a == 0:
lista.append(a)
lista.append(numero)
return lista
years = [1995, 1973, 2006, 1953, 1939, 1931, 1962, 1951]
for elemento in years:
print(diviser(elemento)) |
# used by tests
abc = 1
| abc = 1 |
languages = {
54: "af",
28: "sq",
522: "am",
1: "ar",
5121: "ar-AL",
15361: "ar-BA",
3073: "ar-EG",
2049: "ar-IQ",
11265: "ar-JO",
13313: "ar-KU",
12289: "ar-LE",
4097: "ar-LI",
6145: "ar-MO",
8193: "ar-OM",
16385: "ar-QA",
1025: "ar-SA",
10241: "ar-SY",
7169: "ar-TU",
14337: "ar-UA",
9217: "ar-YE",
43: "hy",
77: "as",
44: "az",
2092: "az-CY",
1068: "az-LA",
45: "eu",
35: "be",
69: "bn",
517: "bs",
2: "bg",
523: "my",
36363: "my-BR",
3: "ca",
4: "zh",
3076: "zh-HK",
5124: "zh-MA",
34820: "zh-MN",
2052: "zh-PR",
32772: "zh-SM",
4100: "zh-SI",
1028: "zh-TA",
31748: "zh-HT",
33796: "zh-DO",
518: "hr",
5: "cs",
6: "da",
19: "nl",
2067: "nl-BE",
1043: "nl-NL",
9: "en",
3081: "en-AU",
10249: "en-BE",
4105: "en-CA",
9225: "en-CB",
6153: "en-IR",
8201: "en-JA",
5129: "en-NZ",
13321: "en-PH",
33801: "en-SO",
7177: "en-SA",
32777: "en-TG",
11273: "en-TR",
2057: "en-GB",
1033: "en-US",
12297: "en-ZI",
37: "et",
56: "fo",
41: "fa",
525: "fi-IL",
11: "fi",
12: "fr",
2060: "fr-BE",
3084: "fr-CA",
5132: "fr-LU",
6156: "fr-MO",
1036: "fr-FR",
4108: "fr-SW",
514: "gd",
55: "ka",
7: "de",
3079: "de-AU",
5127: "de-LI",
4103: "de-LU",
1031: "de-DE",
2055: "de-SW",
8: "el",
513: "gl",
71: "gu",
531: "ht",
13: "he",
57: "hi",
14: "hu",
15: "is",
33: "id",
32801: "id-BA",
1057: "id-ID",
16: "it",
1040: "it-IT",
2064: "it-SW",
17: "ja",
75: "kn",
96: "ks",
2144: "ks-IN",
63: "kk",
520: "kh",
33288: "kh-KC",
87: "ki",
18: "ko",
2066: "ko-JO",
1042: "ko-KO",
37906: "ko-RO",
38: "lv",
39: "lt",
2087: "lt-CL",
1063: "lt-LT",
47: "mk",
62: "ms",
2110: "ms-BR",
1086: "ms-MS",
76: "ml",
515: "ml-LT",
88: "ma",
78: "mr",
97: "ne",
2145: "ne-IN",
20: "nb",
1044: "nb-NO",
2068: "nn-NO",
72: "or",
516: "ps",
33284: "ps-AF",
34308: "ps-DW",
21: "pl",
22: "pt",
1046: "pt-BR",
2070: "pt-ST",
70: "pa",
24: "ro",
25: "ru",
79: "sa",
26: "sr",
1050: "sr-YU",
3098: "sr-CY",
2074: "sr-LA",
89: "sd",
519: "si",
27: "sk",
36: "sl",
526: "st",
10: "es",
11274: "es-AR",
16394: "es-NO",
13322: "es-CH",
9226: "es-CO",
5130: "es-CR",
7178: "es-DR",
12298: "es-EQ",
17418: "es-EL",
4106: "es-GU",
18442: "es-HO",
38922: "es-IN",
2058: "es-ME",
3082: "es-MS",
19466: "es-NI",
6154: "es-PA",
15370: "es-PA",
10250: "es-PE",
20490: "es-PR",
36874: "es-IN",
1034: "es-ES",
14346: "es-UR",
8202: "es-VE",
65: "sw",
29: "sv",
2077: "sv-FI",
1053: "sv-SV",
73: "ta",
68: "tt",
74: "te",
30: "th",
39966: "th-LO",
1054: "th-TH",
31: "tr",
34: "uk",
32: "ur",
2080: "ur-IN",
1056: "ur-PA",
67: "uz",
2115: "uz-CY",
1091: "uz-LA",
42: "vi",
512: "cy",
524: "xh",
521: "zu"
} | languages = {54: 'af', 28: 'sq', 522: 'am', 1: 'ar', 5121: 'ar-AL', 15361: 'ar-BA', 3073: 'ar-EG', 2049: 'ar-IQ', 11265: 'ar-JO', 13313: 'ar-KU', 12289: 'ar-LE', 4097: 'ar-LI', 6145: 'ar-MO', 8193: 'ar-OM', 16385: 'ar-QA', 1025: 'ar-SA', 10241: 'ar-SY', 7169: 'ar-TU', 14337: 'ar-UA', 9217: 'ar-YE', 43: 'hy', 77: 'as', 44: 'az', 2092: 'az-CY', 1068: 'az-LA', 45: 'eu', 35: 'be', 69: 'bn', 517: 'bs', 2: 'bg', 523: 'my', 36363: 'my-BR', 3: 'ca', 4: 'zh', 3076: 'zh-HK', 5124: 'zh-MA', 34820: 'zh-MN', 2052: 'zh-PR', 32772: 'zh-SM', 4100: 'zh-SI', 1028: 'zh-TA', 31748: 'zh-HT', 33796: 'zh-DO', 518: 'hr', 5: 'cs', 6: 'da', 19: 'nl', 2067: 'nl-BE', 1043: 'nl-NL', 9: 'en', 3081: 'en-AU', 10249: 'en-BE', 4105: 'en-CA', 9225: 'en-CB', 6153: 'en-IR', 8201: 'en-JA', 5129: 'en-NZ', 13321: 'en-PH', 33801: 'en-SO', 7177: 'en-SA', 32777: 'en-TG', 11273: 'en-TR', 2057: 'en-GB', 1033: 'en-US', 12297: 'en-ZI', 37: 'et', 56: 'fo', 41: 'fa', 525: 'fi-IL', 11: 'fi', 12: 'fr', 2060: 'fr-BE', 3084: 'fr-CA', 5132: 'fr-LU', 6156: 'fr-MO', 1036: 'fr-FR', 4108: 'fr-SW', 514: 'gd', 55: 'ka', 7: 'de', 3079: 'de-AU', 5127: 'de-LI', 4103: 'de-LU', 1031: 'de-DE', 2055: 'de-SW', 8: 'el', 513: 'gl', 71: 'gu', 531: 'ht', 13: 'he', 57: 'hi', 14: 'hu', 15: 'is', 33: 'id', 32801: 'id-BA', 1057: 'id-ID', 16: 'it', 1040: 'it-IT', 2064: 'it-SW', 17: 'ja', 75: 'kn', 96: 'ks', 2144: 'ks-IN', 63: 'kk', 520: 'kh', 33288: 'kh-KC', 87: 'ki', 18: 'ko', 2066: 'ko-JO', 1042: 'ko-KO', 37906: 'ko-RO', 38: 'lv', 39: 'lt', 2087: 'lt-CL', 1063: 'lt-LT', 47: 'mk', 62: 'ms', 2110: 'ms-BR', 1086: 'ms-MS', 76: 'ml', 515: 'ml-LT', 88: 'ma', 78: 'mr', 97: 'ne', 2145: 'ne-IN', 20: 'nb', 1044: 'nb-NO', 2068: 'nn-NO', 72: 'or', 516: 'ps', 33284: 'ps-AF', 34308: 'ps-DW', 21: 'pl', 22: 'pt', 1046: 'pt-BR', 2070: 'pt-ST', 70: 'pa', 24: 'ro', 25: 'ru', 79: 'sa', 26: 'sr', 1050: 'sr-YU', 3098: 'sr-CY', 2074: 'sr-LA', 89: 'sd', 519: 'si', 27: 'sk', 36: 'sl', 526: 'st', 10: 'es', 11274: 'es-AR', 16394: 'es-NO', 13322: 'es-CH', 9226: 'es-CO', 5130: 'es-CR', 7178: 'es-DR', 12298: 'es-EQ', 17418: 'es-EL', 4106: 'es-GU', 18442: 'es-HO', 38922: 'es-IN', 2058: 'es-ME', 3082: 'es-MS', 19466: 'es-NI', 6154: 'es-PA', 15370: 'es-PA', 10250: 'es-PE', 20490: 'es-PR', 36874: 'es-IN', 1034: 'es-ES', 14346: 'es-UR', 8202: 'es-VE', 65: 'sw', 29: 'sv', 2077: 'sv-FI', 1053: 'sv-SV', 73: 'ta', 68: 'tt', 74: 'te', 30: 'th', 39966: 'th-LO', 1054: 'th-TH', 31: 'tr', 34: 'uk', 32: 'ur', 2080: 'ur-IN', 1056: 'ur-PA', 67: 'uz', 2115: 'uz-CY', 1091: 'uz-LA', 42: 'vi', 512: 'cy', 524: 'xh', 521: 'zu'} |
OBSTACLE_SIZE = 45
ROBOT_SIZE = 45
GOAL_SIZE = 45
GOAL_POS_X = 50
GOAL_POS_Y = 50
START_POS_X = 100
START_POS_Y = 700
BOARD_SIZE = 800
STEP = 10
INFINITY = 100000 | obstacle_size = 45
robot_size = 45
goal_size = 45
goal_pos_x = 50
goal_pos_y = 50
start_pos_x = 100
start_pos_y = 700
board_size = 800
step = 10
infinity = 100000 |
print("To find the number of vowles in a given string")
count = 0
string=input("enter the string:")
for i in string:
if i in "aeiouAEIOU":
count=count+1
print("the vowels in the given string are:",i)
print("the total numbr of vowles are:",count)
| print('To find the number of vowles in a given string')
count = 0
string = input('enter the string:')
for i in string:
if i in 'aeiouAEIOU':
count = count + 1
print('the vowels in the given string are:', i)
print('the total numbr of vowles are:', count) |
##Removal of collisions of knolls with large boulders=name
##layerofcliffspolygons=vector
##radiusofknoll=number3.0
##layerofsmallknollspoints=vector
##radiusoflargeboulders=number4.5
##knolls=output vector
outputs_QGISFIXEDDISTANCEBUFFER_2=processing.runalg('qgis:fixeddistancebuffer', layerofcliffspolygons,radiusoflargeboulders,5.0,False,None)
outputs_QGISFIXEDDISTANCEBUFFER_1=processing.runalg('qgis:fixeddistancebuffer', layerofsmallknollspoints,radiusofknoll,5.0,False,None)
outputs_QGISEXTRACTBYLOCATION_1=processing.runalg('qgis:extractbylocation', outputs_QGISFIXEDDISTANCEBUFFER_1['OUTPUT'],outputs_QGISFIXEDDISTANCEBUFFER_2['OUTPUT'],['intersects'],0.1,None)
outputs_QGISDIFFERENCE_1=processing.runalg('qgis:difference', outputs_QGISFIXEDDISTANCEBUFFER_1['OUTPUT'],outputs_QGISEXTRACTBYLOCATION_1['OUTPUT'],True,None)
outputs_QGISPOLYGONCENTROIDS_1=processing.runalg('qgis:polygoncentroids', outputs_QGISDIFFERENCE_1['OUTPUT'],knolls) | outputs_qgisfixeddistancebuffer_2 = processing.runalg('qgis:fixeddistancebuffer', layerofcliffspolygons, radiusoflargeboulders, 5.0, False, None)
outputs_qgisfixeddistancebuffer_1 = processing.runalg('qgis:fixeddistancebuffer', layerofsmallknollspoints, radiusofknoll, 5.0, False, None)
outputs_qgisextractbylocation_1 = processing.runalg('qgis:extractbylocation', outputs_QGISFIXEDDISTANCEBUFFER_1['OUTPUT'], outputs_QGISFIXEDDISTANCEBUFFER_2['OUTPUT'], ['intersects'], 0.1, None)
outputs_qgisdifference_1 = processing.runalg('qgis:difference', outputs_QGISFIXEDDISTANCEBUFFER_1['OUTPUT'], outputs_QGISEXTRACTBYLOCATION_1['OUTPUT'], True, None)
outputs_qgispolygoncentroids_1 = processing.runalg('qgis:polygoncentroids', outputs_QGISDIFFERENCE_1['OUTPUT'], knolls) |
# Copyright (c) Sandeep Mistry. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
{
'targets': [
{
'target_name': 'class',
'conditions': [
['OS=="mac"', {
'sources': [
'src/class.mm'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
"link_settings": {
"libraries": ["/System/Library/Frameworks/Foundation.framework"]
}
},
{
'target_name': 'dispatch',
'conditions': [
['OS=="mac"', {
'sources': [
'src/dispatch.cpp'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
},
{
'target_name': 'dl',
'conditions': [
['OS=="mac"', {
'sources': [
'src/dl.cpp'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
},
{
'target_name': 'objc',
'conditions': [
['OS=="mac"', {
'sources': [
'src/objc.mm'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
"link_settings": {
"libraries": ["/System/Library/Frameworks/Foundation.framework"]
}
},
{
'target_name': 'sel',
'conditions': [
['OS=="mac"', {
'sources': [
'src/sel.cpp'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.8'
}
}]
],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}
]
}
| {'targets': [{'target_name': 'class', 'conditions': [['OS=="mac"', {'sources': ['src/class.mm'], 'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8'}}]], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'], 'link_settings': {'libraries': ['/System/Library/Frameworks/Foundation.framework']}}, {'target_name': 'dispatch', 'conditions': [['OS=="mac"', {'sources': ['src/dispatch.cpp'], 'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8'}}]], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS']}, {'target_name': 'dl', 'conditions': [['OS=="mac"', {'sources': ['src/dl.cpp'], 'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8'}}]], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS']}, {'target_name': 'objc', 'conditions': [['OS=="mac"', {'sources': ['src/objc.mm'], 'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8'}}]], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'], 'link_settings': {'libraries': ['/System/Library/Frameworks/Foundation.framework']}}, {'target_name': 'sel', 'conditions': [['OS=="mac"', {'sources': ['src/sel.cpp'], 'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'MACOSX_DEPLOYMENT_TARGET': '10.8'}}]], 'include_dirs': ['<!@(node -p "require(\'node-addon-api\').include")'], 'dependencies': ['<!(node -p "require(\'node-addon-api\').gyp")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS']}]} |
class Solution:
def hammingWeight(self, n: int) -> int:
wt = 0
is_non_neg = n >= 0
offset = int(not is_non_neg)
n = abs(n)
for _ in range(32):
if is_non_neg and n == 0:
break
wt += (n + offset) & 1
n >>= 1
return wt
class Solution2:
def hammingWeight(self, n: int) -> int:
return "{0:032b}".format(abs(n)).count("1" if n >= 0 else "0")
if __name__ == "__main__":
solver = Solution()
solver2 = Solution2()
for num in range(-5, 5):
print(f"HammingWeight({bin(num)}): {solver.hammingWeight(num)}")
print(f"HammingWeight({bin(num)}): {solver2.hammingWeight(num)}")
| class Solution:
def hamming_weight(self, n: int) -> int:
wt = 0
is_non_neg = n >= 0
offset = int(not is_non_neg)
n = abs(n)
for _ in range(32):
if is_non_neg and n == 0:
break
wt += n + offset & 1
n >>= 1
return wt
class Solution2:
def hamming_weight(self, n: int) -> int:
return '{0:032b}'.format(abs(n)).count('1' if n >= 0 else '0')
if __name__ == '__main__':
solver = solution()
solver2 = solution2()
for num in range(-5, 5):
print(f'HammingWeight({bin(num)}): {solver.hammingWeight(num)}')
print(f'HammingWeight({bin(num)}): {solver2.hammingWeight(num)}') |
# Time: O(l * n^2)
# Space: O(1)
class Solution(object):
def findLUSlength(self, strs):
"""
:type strs: List[str]
:rtype: int
"""
def isSubsequence(a, b):
i = 0
for j in range(len(b)):
if i >= len(a):
break
if a[i] == b[j]:
i += 1
return i == len(a)
strs.sort(key=len, reverse=True)
for i in range(len(strs)):
all_of = True
for j in range(len(strs)):
if len(strs[j]) < len(strs[i]):
break
if i != j and isSubsequence(strs[i], strs[j]):
all_of = False
break
if all_of:
return len(strs[i])
return -1
| class Solution(object):
def find_lu_slength(self, strs):
"""
:type strs: List[str]
:rtype: int
"""
def is_subsequence(a, b):
i = 0
for j in range(len(b)):
if i >= len(a):
break
if a[i] == b[j]:
i += 1
return i == len(a)
strs.sort(key=len, reverse=True)
for i in range(len(strs)):
all_of = True
for j in range(len(strs)):
if len(strs[j]) < len(strs[i]):
break
if i != j and is_subsequence(strs[i], strs[j]):
all_of = False
break
if all_of:
return len(strs[i])
return -1 |
"""This problem was asked by Google.
Given a set of distinct positive integers, find the largest subset such that every
pair of elements in the subset (i, j) satisfies either i % j = 0 or j % i = 0.
For example, given the set [3, 5, 10, 20, 21], you should return [5, 10, 20].
Given [1, 3, 6, 24], return [1, 3, 6, 24].
""" | """This problem was asked by Google.
Given a set of distinct positive integers, find the largest subset such that every
pair of elements in the subset (i, j) satisfies either i % j = 0 or j % i = 0.
For example, given the set [3, 5, 10, 20, 21], you should return [5, 10, 20].
Given [1, 3, 6, 24], return [1, 3, 6, 24].
""" |
f = open("/share/Ecoli/GCA_000005845.2_ASM584v2_genomic.fna")
lines = f.readlines()
genome = ""
for i in range(1, len(lines)):
for j in range(len(lines[i]) - 1):
genome = genome + lines[i][j]
for i in range(0 , 3):
extra = len(genome) - i % 11
fragments = ""
fragcount = 0
fraglength = 0
for j in range(i, len(genome) - extra, 11):
site = genome[j:j+10]
| f = open('/share/Ecoli/GCA_000005845.2_ASM584v2_genomic.fna')
lines = f.readlines()
genome = ''
for i in range(1, len(lines)):
for j in range(len(lines[i]) - 1):
genome = genome + lines[i][j]
for i in range(0, 3):
extra = len(genome) - i % 11
fragments = ''
fragcount = 0
fraglength = 0
for j in range(i, len(genome) - extra, 11):
site = genome[j:j + 10] |
#!/usr/local/bin/python3
"""Task
The height of a binary search tree is the number of edges between the tree's root and its furthest leaf.
You are given a pointer, root, pointing to the root of a binary search tree.
Complete the getHeight function provided in your editor so that it returns the height of the binary search tree
"""
class Node:
def __init__(self,data):
self.right=self.left=None
self.data = data
class Solution:
def insert(self,root,data):
if root==None:
return Node(data)
else:
if data<=root.data:
cur=self.insert(root.left,data)
root.left=cur
else:
cur=self.insert(root.right,data)
root.right=cur
return root
def getHeight(self,root):
if root.left is None and root.right is None:
return 0
elif root.right and root.left:
total_right = self.getHeight(root.right) + 1
total_left = self.getHeight(root.left) + 1
if total_right > total_left:
return total_right
else:
return total_left
elif root.right:
return self.getHeight(root.right) + 1
elif root.left:
return self.getHeight(root.left) + 1
T=int(input())
myTree=Solution()
root=None
for i in range(T):
data=int(input())
root=myTree.insert(root,data)
height=myTree.getHeight(root)
print(height)
| """Task
The height of a binary search tree is the number of edges between the tree's root and its furthest leaf.
You are given a pointer, root, pointing to the root of a binary search tree.
Complete the getHeight function provided in your editor so that it returns the height of the binary search tree
"""
class Node:
def __init__(self, data):
self.right = self.left = None
self.data = data
class Solution:
def insert(self, root, data):
if root == None:
return node(data)
elif data <= root.data:
cur = self.insert(root.left, data)
root.left = cur
else:
cur = self.insert(root.right, data)
root.right = cur
return root
def get_height(self, root):
if root.left is None and root.right is None:
return 0
elif root.right and root.left:
total_right = self.getHeight(root.right) + 1
total_left = self.getHeight(root.left) + 1
if total_right > total_left:
return total_right
else:
return total_left
elif root.right:
return self.getHeight(root.right) + 1
elif root.left:
return self.getHeight(root.left) + 1
t = int(input())
my_tree = solution()
root = None
for i in range(T):
data = int(input())
root = myTree.insert(root, data)
height = myTree.getHeight(root)
print(height) |
# Copyright (c) 2016-2020 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
class ZellerSplit(object):
"""
Splits up the input config into n pieces as used by Zeller in the original
reference implementation. The approach works iteratively in n steps, first
slicing off a chunk sized 1/n-th of the original config, then slicing off
1/(n-1)-th of the remainder, and so on, until the last piece is halved
(always using integers division).
"""
def __init__(self, n=2):
"""
:param n: The split ratio used to determine how many parts (subsets) the
config to split to (both initially and later on whenever config
subsets needs to be re-split).
"""
self._n = n
def __call__(self, subsets):
"""
:param subsets: List of sets that the current configuration is split to.
:return: List of newly split sets.
"""
config = [c for s in subsets for c in s]
length = len(config)
n = min(length, len(subsets) * self._n)
next_subsets = []
start = 0
for i in range(n):
stop = start + (length - start) // (n - i)
next_subsets.append(config[start:stop])
start = stop
return next_subsets
def __str__(self):
cls = self.__class__
return '%s.%s(n=%s)' % (cls.__module__, cls.__name__, self._n)
class BalancedSplit(object):
"""
Slightly different version of Zeller's split. This version keeps the split
balanced by distributing the residuals of the integer division among all
chunks. This way, the size of the chunks in the resulting split is not
monotonous.
"""
def __init__(self, n=2):
"""
:param n: The split ratio used to determine how many parts (subsets) the
config to split to (both initially and later on whenever config
subsets needs to be re-split).
"""
self._n = n
def __call__(self, subsets):
"""
:param subsets: List of sets that the current configuration is split to.
:return: List of newly split sets.
"""
config = [c for s in subsets for c in s]
length = len(config)
n = min(length, len(subsets) * self._n)
return [config[length * i // n:length * (i + 1) // n] for i in range(n)]
def __str__(self):
cls = self.__class__
return '%s.%s(n=%s)' % (cls.__module__, cls.__name__, self._n)
# Aliases for split classes to help their identification in CLI.
zeller = ZellerSplit
balanced = BalancedSplit
| class Zellersplit(object):
"""
Splits up the input config into n pieces as used by Zeller in the original
reference implementation. The approach works iteratively in n steps, first
slicing off a chunk sized 1/n-th of the original config, then slicing off
1/(n-1)-th of the remainder, and so on, until the last piece is halved
(always using integers division).
"""
def __init__(self, n=2):
"""
:param n: The split ratio used to determine how many parts (subsets) the
config to split to (both initially and later on whenever config
subsets needs to be re-split).
"""
self._n = n
def __call__(self, subsets):
"""
:param subsets: List of sets that the current configuration is split to.
:return: List of newly split sets.
"""
config = [c for s in subsets for c in s]
length = len(config)
n = min(length, len(subsets) * self._n)
next_subsets = []
start = 0
for i in range(n):
stop = start + (length - start) // (n - i)
next_subsets.append(config[start:stop])
start = stop
return next_subsets
def __str__(self):
cls = self.__class__
return '%s.%s(n=%s)' % (cls.__module__, cls.__name__, self._n)
class Balancedsplit(object):
"""
Slightly different version of Zeller's split. This version keeps the split
balanced by distributing the residuals of the integer division among all
chunks. This way, the size of the chunks in the resulting split is not
monotonous.
"""
def __init__(self, n=2):
"""
:param n: The split ratio used to determine how many parts (subsets) the
config to split to (both initially and later on whenever config
subsets needs to be re-split).
"""
self._n = n
def __call__(self, subsets):
"""
:param subsets: List of sets that the current configuration is split to.
:return: List of newly split sets.
"""
config = [c for s in subsets for c in s]
length = len(config)
n = min(length, len(subsets) * self._n)
return [config[length * i // n:length * (i + 1) // n] for i in range(n)]
def __str__(self):
cls = self.__class__
return '%s.%s(n=%s)' % (cls.__module__, cls.__name__, self._n)
zeller = ZellerSplit
balanced = BalancedSplit |
# -*- coding: utf-8 -*-
"""
Created on Thu May 24 21:26:17 2018
@author: Isik
"""
class Position:
"""
Represents position in N dimensions
Is designed to be able to have a direction added to it.
--------------------------------------------------------------------------
properties
--------------------------------------------------------------------------
coordinates: List of integers
Each integer represents a position in space. The index + 1 is the dime-
nsion represented by the value.
"""
def __init__(self, coordinates = []):
self.coordinates = coordinates[:]
def __add__(self, direction):
"""
Addition definition for position
NOTE: is only supposed to have a direction type object used here.
"""
localCoordinates = self.coordinates[:]
for i in range( len(localCoordinates), len(direction.directionalCoordinates) ):
localCoordinates.append(0)
for index, dirCoord in enumerate(direction.directionalCoordinates):
localCoordinates[index] += dirCoord
return Position(localCoordinates)
def __eq__(self, other):
for cSelf, cOther in zip(self.coordinates, other.coordinates):
if cSelf != cOther:
return False
return True
| """
Created on Thu May 24 21:26:17 2018
@author: Isik
"""
class Position:
"""
Represents position in N dimensions
Is designed to be able to have a direction added to it.
--------------------------------------------------------------------------
properties
--------------------------------------------------------------------------
coordinates: List of integers
Each integer represents a position in space. The index + 1 is the dime-
nsion represented by the value.
"""
def __init__(self, coordinates=[]):
self.coordinates = coordinates[:]
def __add__(self, direction):
"""
Addition definition for position
NOTE: is only supposed to have a direction type object used here.
"""
local_coordinates = self.coordinates[:]
for i in range(len(localCoordinates), len(direction.directionalCoordinates)):
localCoordinates.append(0)
for (index, dir_coord) in enumerate(direction.directionalCoordinates):
localCoordinates[index] += dirCoord
return position(localCoordinates)
def __eq__(self, other):
for (c_self, c_other) in zip(self.coordinates, other.coordinates):
if cSelf != cOther:
return False
return True |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.