content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
input_template = keras.layers.Input(shape=[None,1,16])
input_search = keras.layers.Input(shape=[47,1,16])
def x_corr_map(inputs):
input_template = inputs[0]
input_search = inputs[1]
input_template = tf.transpose(input_template, perm=[1,2,0,3])
input_search = tf.transpose(input_search, perm=[1,2,0,3])
Hz, Wz, B, C = tf.unstack(tf.shape(input_template))
Hx, Wx, Bx, Cx = tf.unstack(tf.shape(input_search))
input_template = tf.reshape(input_template, (Hz, Wz, B*C, 1))
input_search = tf.reshape(input_search, (1, Hx, Wx, Bx*Cx))
feature_corr_res = tf.nn.depthwise_conv2d(input_template, input_search, strides=[1,1,1,1], padding='SAME')
feature_corr_res = tf.concat(tf.split(feature_corr_res, batch_size, axis=3), axis=0)
return feature_corr_res
def x_corr_layer():
return Lambda(x_corr_map, output_shape=(47,1)) | input_template = keras.layers.Input(shape=[None, 1, 16])
input_search = keras.layers.Input(shape=[47, 1, 16])
def x_corr_map(inputs):
input_template = inputs[0]
input_search = inputs[1]
input_template = tf.transpose(input_template, perm=[1, 2, 0, 3])
input_search = tf.transpose(input_search, perm=[1, 2, 0, 3])
(hz, wz, b, c) = tf.unstack(tf.shape(input_template))
(hx, wx, bx, cx) = tf.unstack(tf.shape(input_search))
input_template = tf.reshape(input_template, (Hz, Wz, B * C, 1))
input_search = tf.reshape(input_search, (1, Hx, Wx, Bx * Cx))
feature_corr_res = tf.nn.depthwise_conv2d(input_template, input_search, strides=[1, 1, 1, 1], padding='SAME')
feature_corr_res = tf.concat(tf.split(feature_corr_res, batch_size, axis=3), axis=0)
return feature_corr_res
def x_corr_layer():
return lambda(x_corr_map, output_shape=(47, 1)) |
# kittystuff: what do cats care about
class KittyStuff:
def __init__(self):
self.lives = 9
self.enemies = []
self.enemies.append('dog')
self.happiness = 0
def purr(self, happiness_level=0):
purring = 'purr'
for i in range(0, happiness_level):
purring += '!'
return purring
def set_happiness(self, new_happiness):
self.happiness = new_happiness
def let_owner_sleep(self):
return self.happiness < 5
def scratch_owner(self):
return True
| class Kittystuff:
def __init__(self):
self.lives = 9
self.enemies = []
self.enemies.append('dog')
self.happiness = 0
def purr(self, happiness_level=0):
purring = 'purr'
for i in range(0, happiness_level):
purring += '!'
return purring
def set_happiness(self, new_happiness):
self.happiness = new_happiness
def let_owner_sleep(self):
return self.happiness < 5
def scratch_owner(self):
return True |
class Solution:
def primePalindrome(self, N: int) -> int:
if 8 <= N <= 11:
return 11
def isPrime(num):
if num < 2 or num % 2 == 0:
return num == 2
return all(num % i for i in range(3, int(num**0.5) + 1, 2))
for i in range(1, 100000):
left = str(i)
right = left[-2::-1]
num = int(left + right)
if num >= N and isPrime(num):
return num
return -1
| class Solution:
def prime_palindrome(self, N: int) -> int:
if 8 <= N <= 11:
return 11
def is_prime(num):
if num < 2 or num % 2 == 0:
return num == 2
return all((num % i for i in range(3, int(num ** 0.5) + 1, 2)))
for i in range(1, 100000):
left = str(i)
right = left[-2::-1]
num = int(left + right)
if num >= N and is_prime(num):
return num
return -1 |
class Solution:
def hasPath(self, maze: List[List[int]], start: List[int], destination: List[int]) -> bool:
m = len(maze)
n = len(maze[0])
dirs = [0, 1, 0, -1, 0]
seen = set()
def isValid(x: int, y: int) -> bool:
return 0 <= x < m and 0 <= y < n and maze[x][y] == 0
def dfs(i: int, j: int) -> bool:
if [i, j] == destination:
return True
if (i, j) in seen:
return False
seen.add((i, j))
for k in range(4):
x = i
y = j
while isValid(x + dirs[k], y + dirs[k + 1]):
x += dirs[k]
y += dirs[k + 1]
if dfs(x, y):
return True
return False
return dfs(start[0], start[1])
| class Solution:
def has_path(self, maze: List[List[int]], start: List[int], destination: List[int]) -> bool:
m = len(maze)
n = len(maze[0])
dirs = [0, 1, 0, -1, 0]
seen = set()
def is_valid(x: int, y: int) -> bool:
return 0 <= x < m and 0 <= y < n and (maze[x][y] == 0)
def dfs(i: int, j: int) -> bool:
if [i, j] == destination:
return True
if (i, j) in seen:
return False
seen.add((i, j))
for k in range(4):
x = i
y = j
while is_valid(x + dirs[k], y + dirs[k + 1]):
x += dirs[k]
y += dirs[k + 1]
if dfs(x, y):
return True
return False
return dfs(start[0], start[1]) |
# https://www.codewars.com/kata/550f22f4d758534c1100025a/
def dirreduc(arr):
DIRECT = {
"NORTH": "SOUTH",
"SOUTH": "NORTH",
"EAST": "WEST",
"WEST": "EAST",
}
i = 0
while i + 1 < len(arr) and len(arr) >= 2:
if arr[i] == DIRECT[arr[i + 1]]:
arr.pop(i)
arr.pop(i)
i = 0
continue
i += 1
return arr
| def dirreduc(arr):
direct = {'NORTH': 'SOUTH', 'SOUTH': 'NORTH', 'EAST': 'WEST', 'WEST': 'EAST'}
i = 0
while i + 1 < len(arr) and len(arr) >= 2:
if arr[i] == DIRECT[arr[i + 1]]:
arr.pop(i)
arr.pop(i)
i = 0
continue
i += 1
return arr |
examples_list = [
'hello_world',
'many_to_one',
'many_to_one_options',
'many_to_one_to_self',
'many_to_many',
'many_to_many_options',
'many_to_many_to_self',
'one_to_one',
'multiple_many_to_one',
'raw_sql',
'multiple_databases',
'table_inheritance',
'meta_builder',
'model_for_stackoverflow',
]
examples_dict = {
'hello_world': 'Hello World',
'many_to_one': 'Many-to-one relationship',
'many_to_one_options': 'Many-to-one relationship options',
'many_to_one_to_self': 'Many-to-one relationship with oneself',
'many_to_many': 'Many-to-many relationship',
'many_to_many_options': 'Many-to-many relationship options',
'many_to_many_to_self': 'Many-to-many relationship with oneself',
'one_to_one': 'One-to-one relationship',
'multiple_many_to_one': 'Multiple many-to-one relationships',
'raw_sql': 'Performing raw sql query',
'multiple_databases': 'Multiple databases',
'table_inheritance': 'Table inheritance',
'meta_builder': 'MetaBuilder to avoid duplicate code',
'model_for_stackoverflow': 'Model for stackoverflow.com',
}
| examples_list = ['hello_world', 'many_to_one', 'many_to_one_options', 'many_to_one_to_self', 'many_to_many', 'many_to_many_options', 'many_to_many_to_self', 'one_to_one', 'multiple_many_to_one', 'raw_sql', 'multiple_databases', 'table_inheritance', 'meta_builder', 'model_for_stackoverflow']
examples_dict = {'hello_world': 'Hello World', 'many_to_one': 'Many-to-one relationship', 'many_to_one_options': 'Many-to-one relationship options', 'many_to_one_to_self': 'Many-to-one relationship with oneself', 'many_to_many': 'Many-to-many relationship', 'many_to_many_options': 'Many-to-many relationship options', 'many_to_many_to_self': 'Many-to-many relationship with oneself', 'one_to_one': 'One-to-one relationship', 'multiple_many_to_one': 'Multiple many-to-one relationships', 'raw_sql': 'Performing raw sql query', 'multiple_databases': 'Multiple databases', 'table_inheritance': 'Table inheritance', 'meta_builder': 'MetaBuilder to avoid duplicate code', 'model_for_stackoverflow': 'Model for stackoverflow.com'} |
Votes = []
count = 0
while True:
try:
N = int(input(''))
Votes = list(map(int, input().split()))
for i in Votes:
if i == 1:
count += 1
if count >= (2 * len(Votes)) / 3:
print('impeachment')
count = 0
else:
print('acusacao arquivada')
count = 0
except EOFError:
break | votes = []
count = 0
while True:
try:
n = int(input(''))
votes = list(map(int, input().split()))
for i in Votes:
if i == 1:
count += 1
if count >= 2 * len(Votes) / 3:
print('impeachment')
count = 0
else:
print('acusacao arquivada')
count = 0
except EOFError:
break |
a = float(input("Triangle base: "))
h = float(input("Triangle height: "))
calc = (a * h) / 2
print(float(calc))
| a = float(input('Triangle base: '))
h = float(input('Triangle height: '))
calc = a * h / 2
print(float(calc)) |
'''
Base environment definitions
See docs/api.md for api documentation
'''
class AECEnv:
def __init__(self):
pass
def step(self, action):
raise NotImplementedError
def reset(self):
raise NotImplementedError
def seed(self, seed=None):
pass
def observe(self, agent):
raise NotImplementedError
def render(self, mode='human'):
raise NotImplementedError
def close(self):
pass
@property
def num_agents(self):
return len(self.agents)
@property
def max_num_agents(self):
return len(self.possible_agents)
@property
def env_done(self):
return not self.agents
def _dones_step_first(self):
_dones_order = [agent for agent in self.agents if self.dones[agent]]
if _dones_order:
self._skip_agent_selection = self.agent_selection
self.agent_selection = _dones_order[0]
return self.agent_selection
def _clear_rewards(self):
for agent in self.rewards:
self.rewards[agent] = 0
def _accumulate_rewards(self):
for agent, reward in self.rewards.items():
self._cumulative_rewards[agent] += reward
def _find_next_agent(self):
_dones_order = [agent for agent in self.agents if self.dones[agent]]
if _dones_order:
if getattr(self, '_skip_agent_selection', None) is None:
self._skip_agent_selection = self.agent_selection
self.agent_selection = _dones_order[0]
else:
if getattr(self, '_skip_agent_selection', None) is not None:
self.agent_selection = self._skip_agent_selection
self._skip_agent_selection = None
def _remove_done_agent(self, agent):
assert self.dones[agent], "an agent that was not done as attemted to be removed"
del self.dones[agent]
del self.rewards[agent]
del self._cumulative_rewards[agent]
del self.infos[agent]
self.agents.remove(agent)
def _was_done_step(self, action):
if action is not None:
raise ValueError("when an agent is done, the only valid action is None")
self._remove_done_agent(self.agent_selection)
self._find_next_agent()
self._clear_rewards()
def agent_iter(self, max_iter=2**63):
return AECIterable(self, max_iter)
def last(self, observe=True):
agent = self.agent_selection
observation = self.observe(agent) if observe else None
return observation, self._cumulative_rewards[agent], self.dones[agent], self.infos[agent]
def __str__(self):
if hasattr(self, 'metadata'):
return self.metadata.get('name', self.__class__.__name__)
else:
return self.__class__.__name__
class AECIterable:
def __init__(self, env, max_iter):
self.env = env
self.max_iter = max_iter
def __iter__(self):
return AECIterator(self.env, self.max_iter)
class AECIterator:
def __init__(self, env, max_iter):
self.env = env
self.iters_til_term = max_iter
self.env._is_iterating = True
def __next__(self):
if not self.env.agents or self.iters_til_term <= 0:
raise StopIteration
self.iters_til_term -= 1
return self.env.agent_selection
class AECOrderEnforcingIterator(AECIterator):
def __next__(self):
agent = super().__next__()
assert self.env._has_updated, "need to call step() or reset() in a loop over `agent_iter`!"
self.env._has_updated = False
return agent
class ParallelEnv:
def reset(self):
raise NotImplementedError
def seed(self, seed=None):
pass
def step(self, actions):
raise NotImplementedError
def render(self, mode="human"):
raise NotImplementedError
def close(self):
pass
@property
def num_agents(self):
return len(self.agents)
@property
def max_num_agents(self):
return len(self.possible_agents)
@property
def env_done(self):
return not self.agents
def __str__(self):
if hasattr(self, 'metadata'):
return self.metadata.get('name', self.__class__.__name__)
else:
return self.__class__.__name__
| """
Base environment definitions
See docs/api.md for api documentation
"""
class Aecenv:
def __init__(self):
pass
def step(self, action):
raise NotImplementedError
def reset(self):
raise NotImplementedError
def seed(self, seed=None):
pass
def observe(self, agent):
raise NotImplementedError
def render(self, mode='human'):
raise NotImplementedError
def close(self):
pass
@property
def num_agents(self):
return len(self.agents)
@property
def max_num_agents(self):
return len(self.possible_agents)
@property
def env_done(self):
return not self.agents
def _dones_step_first(self):
_dones_order = [agent for agent in self.agents if self.dones[agent]]
if _dones_order:
self._skip_agent_selection = self.agent_selection
self.agent_selection = _dones_order[0]
return self.agent_selection
def _clear_rewards(self):
for agent in self.rewards:
self.rewards[agent] = 0
def _accumulate_rewards(self):
for (agent, reward) in self.rewards.items():
self._cumulative_rewards[agent] += reward
def _find_next_agent(self):
_dones_order = [agent for agent in self.agents if self.dones[agent]]
if _dones_order:
if getattr(self, '_skip_agent_selection', None) is None:
self._skip_agent_selection = self.agent_selection
self.agent_selection = _dones_order[0]
else:
if getattr(self, '_skip_agent_selection', None) is not None:
self.agent_selection = self._skip_agent_selection
self._skip_agent_selection = None
def _remove_done_agent(self, agent):
assert self.dones[agent], 'an agent that was not done as attemted to be removed'
del self.dones[agent]
del self.rewards[agent]
del self._cumulative_rewards[agent]
del self.infos[agent]
self.agents.remove(agent)
def _was_done_step(self, action):
if action is not None:
raise value_error('when an agent is done, the only valid action is None')
self._remove_done_agent(self.agent_selection)
self._find_next_agent()
self._clear_rewards()
def agent_iter(self, max_iter=2 ** 63):
return aec_iterable(self, max_iter)
def last(self, observe=True):
agent = self.agent_selection
observation = self.observe(agent) if observe else None
return (observation, self._cumulative_rewards[agent], self.dones[agent], self.infos[agent])
def __str__(self):
if hasattr(self, 'metadata'):
return self.metadata.get('name', self.__class__.__name__)
else:
return self.__class__.__name__
class Aeciterable:
def __init__(self, env, max_iter):
self.env = env
self.max_iter = max_iter
def __iter__(self):
return aec_iterator(self.env, self.max_iter)
class Aeciterator:
def __init__(self, env, max_iter):
self.env = env
self.iters_til_term = max_iter
self.env._is_iterating = True
def __next__(self):
if not self.env.agents or self.iters_til_term <= 0:
raise StopIteration
self.iters_til_term -= 1
return self.env.agent_selection
class Aecorderenforcingiterator(AECIterator):
def __next__(self):
agent = super().__next__()
assert self.env._has_updated, 'need to call step() or reset() in a loop over `agent_iter`!'
self.env._has_updated = False
return agent
class Parallelenv:
def reset(self):
raise NotImplementedError
def seed(self, seed=None):
pass
def step(self, actions):
raise NotImplementedError
def render(self, mode='human'):
raise NotImplementedError
def close(self):
pass
@property
def num_agents(self):
return len(self.agents)
@property
def max_num_agents(self):
return len(self.possible_agents)
@property
def env_done(self):
return not self.agents
def __str__(self):
if hasattr(self, 'metadata'):
return self.metadata.get('name', self.__class__.__name__)
else:
return self.__class__.__name__ |
somatorio = 0
qtdnum = 0
for c in range(1, 501):
if c % 3 == 0 and c % 2 != 0:
somatorio += c
qtdnum = qtdnum + 1
print(somatorio)
print(qtdnum)
| somatorio = 0
qtdnum = 0
for c in range(1, 501):
if c % 3 == 0 and c % 2 != 0:
somatorio += c
qtdnum = qtdnum + 1
print(somatorio)
print(qtdnum) |
def point_compare(a, b):
if is_point(a) and is_point(b):
return a[0] - b[0] or a[1] - b[1]
#def is_point(p):
# try:
# float(p[0]), float(p[1])
# except (TypeError, IndexError):
# return False
is_point = lambda x : isinstance(x,list) and len(x)==2
class Strut(list):
def __init__(self,ite=[]):
self.index=0
list.__init__(self,ite)
def is_infinit(n):
return abs(n)==float('inf')
E = 1e-6
def mysterious_line_test(a, b):
for arg in (a, b):
if not isinstance(arg, list):
return True
return a == b
| def point_compare(a, b):
if is_point(a) and is_point(b):
return a[0] - b[0] or a[1] - b[1]
is_point = lambda x: isinstance(x, list) and len(x) == 2
class Strut(list):
def __init__(self, ite=[]):
self.index = 0
list.__init__(self, ite)
def is_infinit(n):
return abs(n) == float('inf')
e = 1e-06
def mysterious_line_test(a, b):
for arg in (a, b):
if not isinstance(arg, list):
return True
return a == b |
N = int(input())
h = N // 3600
N = N - h * 3600
m = N // 60
N = N - m * 60
print('{}:{}:{}'.format(h, m, N))
| n = int(input())
h = N // 3600
n = N - h * 3600
m = N // 60
n = N - m * 60
print('{}:{}:{}'.format(h, m, N)) |
julia = "Julia", "Roberts", 1967, "Duplicity", 2009, "Actress", "Atlanta, Georgia"
name, surname, birth_year, movie, movie_year, profession, birth_place = julia
#########
(a, b, c, d) = (1, 2, 3) # ValueError: need more than 3 values to unpack
#########
def add(x, y):
return x + y
print(add(3, 4))
z = (5, 4)
print(add(z)) # this line causes an error
print(add(*z)) # correct unpacking of the tuple
##########
# Dictionary unpacking in a form of tuple
pokemon = {'Rattata': 19, 'Machop': 66, 'Seel': 86, 'Volbeat': 86, 'Solrock': 126}
for p in pokemon.items():
print("key: {}, value: {}".format(p[0],p[1])) # here p is treated as tuples of key, value pairs
for key,value in pokemon.items():
print("key: {}, value: {}".format(key,value)) # key, value are extracted here inside the for loop condition
| julia = ('Julia', 'Roberts', 1967, 'Duplicity', 2009, 'Actress', 'Atlanta, Georgia')
(name, surname, birth_year, movie, movie_year, profession, birth_place) = julia
(a, b, c, d) = (1, 2, 3)
def add(x, y):
return x + y
print(add(3, 4))
z = (5, 4)
print(add(z))
print(add(*z))
pokemon = {'Rattata': 19, 'Machop': 66, 'Seel': 86, 'Volbeat': 86, 'Solrock': 126}
for p in pokemon.items():
print('key: {}, value: {}'.format(p[0], p[1]))
for (key, value) in pokemon.items():
print('key: {}, value: {}'.format(key, value)) |
#website compile
doctype = "html"
lang = "en-US"
author = "Angelo Carrabba"
self.keywords = []
spacing = 0
class webPage():
def __init__(self):
self.pageName = ""
self.title = ""
self.styleSheets = []
self.scripts = []
self.description = ""
self.menu = ""
def pl(s,*elements):
for ele in elements:
s += str(ele)
s += "\n"
def toString(self):
s = ""
pl(s, "<!DOCTYPE ", doctype, ">")
pl(s, "html lang=\"", lang, "\">")
pl(s, "<head>")
pl(s, "<title>", self.title, "</title>")
pl(s, "")
def write(self):
if len(self.pageName) == 0:
self.printer()
index = webPage()
index.pageName = "index.html"
index.title = "home"
| doctype = 'html'
lang = 'en-US'
author = 'Angelo Carrabba'
self.keywords = []
spacing = 0
class Webpage:
def __init__(self):
self.pageName = ''
self.title = ''
self.styleSheets = []
self.scripts = []
self.description = ''
self.menu = ''
def pl(s, *elements):
for ele in elements:
s += str(ele)
s += '\n'
def to_string(self):
s = ''
pl(s, '<!DOCTYPE ', doctype, '>')
pl(s, 'html lang="', lang, '">')
pl(s, '<head>')
pl(s, '<title>', self.title, '</title>')
pl(s, '')
def write(self):
if len(self.pageName) == 0:
self.printer()
index = web_page()
index.pageName = 'index.html'
index.title = 'home' |
'''
ret, thresh = cv2.threshold(img.copy(), 75, 255, cv2.THRESH_BINARY_INV)
contours, _ = cv2.findContours(
thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
preprocessed_digits = []
for c in contours:
x, y, w, h = cv2.boundingRect(c)
# Creating a rectangle around the digit in the original image (for displaying the digits fetched via contours)
cv2.rectangle(img, (x, y), (x+w, y+h),
color=(0, 255, 0), thickness=2)
# Cropping out the digit from the image corresponding to the current contours in the for loop
digit = thresh[y:y+h, x:x+w]
# Resizing that digit to (18, 18)
resized_digit = cv2.resize(
digit, (image_dimensions[0] - padding_row, image_dimensions[1] - padding_col))
# Padding the digit with 5 pixels of black color (zeros) in each side to finally produce the image of (28, 28)
padded_digit = np.pad(resized_digit, ((padding_row, padding_row), (padding_col, padding_col)),
"constant", constant_values=0)
# Adding the preprocessed digit to the list of preprocessed digits
preprocessed_digits.append(padded_digit)
img = np.array(preprocessed_digits)
'''
# img = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C,
# cv2.THRESH_BINARY, 61, 12)
'''
while np.sum(img[0]) == 0:
img = img[1:]
while np.sum(img[:, 0]) == 0:
img = np.delete(img, 0, 1)
while np.sum(img[-1]) == 0:
img = img[:-1]
while np.sum(img[:, -1]) == 0:
img = np.delete(img, -1, 1)
rows, cols = img.shape
if rows > cols:
factor = 20.0/rows
rows = 20
cols = int(round(cols*factor))
img = cv2.resize(img, (cols, rows))
else:
factor = 20.0/cols
cols = 20
rows = int(round(rows*factor))
img = cv2.resize(img, (cols, rows))
colsPadding = (int(math.ceil((image_dimensions[1]-cols)/2.0)),
int(math.floor((image_dimensions[1]-cols)/2.0)))
rowsPadding = (int(math.ceil((image_dimensions[0]-rows)/2.0)),
int(math.floor((image_dimensions[0]-rows)/2.0)))
img = np.lib.pad(img, (rowsPadding, colsPadding), 'constant')
shiftx, shifty = getBestShift(img)
shifted = shift(img, shiftx, shifty)
img = shifted
'''
# Transfrom Functions
'''
def getBestShift(img):
cy, cx = ndimage.measurements.center_of_mass(img)
rows, cols = img.shape
shiftx = np.round(cols/2.0-cx).astype(int)
shifty = np.round(rows/2.0-cy).astype(int)
return shiftx, shifty
def shift(img, sx, sy):
rows, cols = img.shape
M = np.float32([[1, 0, sx], [0, 1, sy]])
shifted = cv2.warpAffine(img, M, (cols, rows))
return shifted
'''
| """
ret, thresh = cv2.threshold(img.copy(), 75, 255, cv2.THRESH_BINARY_INV)
contours, _ = cv2.findContours(
thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
preprocessed_digits = []
for c in contours:
x, y, w, h = cv2.boundingRect(c)
# Creating a rectangle around the digit in the original image (for displaying the digits fetched via contours)
cv2.rectangle(img, (x, y), (x+w, y+h),
color=(0, 255, 0), thickness=2)
# Cropping out the digit from the image corresponding to the current contours in the for loop
digit = thresh[y:y+h, x:x+w]
# Resizing that digit to (18, 18)
resized_digit = cv2.resize(
digit, (image_dimensions[0] - padding_row, image_dimensions[1] - padding_col))
# Padding the digit with 5 pixels of black color (zeros) in each side to finally produce the image of (28, 28)
padded_digit = np.pad(resized_digit, ((padding_row, padding_row), (padding_col, padding_col)),
"constant", constant_values=0)
# Adding the preprocessed digit to the list of preprocessed digits
preprocessed_digits.append(padded_digit)
img = np.array(preprocessed_digits)
"""
"\n while np.sum(img[0]) == 0:\n img = img[1:]\n\n while np.sum(img[:, 0]) == 0:\n img = np.delete(img, 0, 1)\n\n while np.sum(img[-1]) == 0:\n img = img[:-1]\n\n while np.sum(img[:, -1]) == 0:\n img = np.delete(img, -1, 1)\n\n rows, cols = img.shape\n\n if rows > cols:\n factor = 20.0/rows\n rows = 20\n cols = int(round(cols*factor))\n img = cv2.resize(img, (cols, rows))\n else:\n factor = 20.0/cols\n cols = 20\n rows = int(round(rows*factor))\n img = cv2.resize(img, (cols, rows))\n\n colsPadding = (int(math.ceil((image_dimensions[1]-cols)/2.0)),\n int(math.floor((image_dimensions[1]-cols)/2.0)))\n rowsPadding = (int(math.ceil((image_dimensions[0]-rows)/2.0)),\n int(math.floor((image_dimensions[0]-rows)/2.0)))\n\n img = np.lib.pad(img, (rowsPadding, colsPadding), 'constant')\n\n shiftx, shifty = getBestShift(img)\n shifted = shift(img, shiftx, shifty)\n img = shifted\n\n "
'\ndef getBestShift(img):\n cy, cx = ndimage.measurements.center_of_mass(img)\n\n rows, cols = img.shape\n shiftx = np.round(cols/2.0-cx).astype(int)\n shifty = np.round(rows/2.0-cy).astype(int)\n\n return shiftx, shifty\n\n\ndef shift(img, sx, sy):\n rows, cols = img.shape\n M = np.float32([[1, 0, sx], [0, 1, sy]])\n shifted = cv2.warpAffine(img, M, (cols, rows))\n return shifted\n\n' |
items = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
for x in items:
print(x)
for x in "1234567890":
print(x)
input("are you ready to go?")
for x in range(999999999):
print(x)
| items = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']
for x in items:
print(x)
for x in '1234567890':
print(x)
input('are you ready to go?')
for x in range(999999999):
print(x) |
#Node
class Node(object):
def __init__(self, content, next=None):
self.content = content
self.next = next
#Stack LIFO
class Stack(object):
def __init__(self):
self.head = None
self.top = None
self.next = None
#isEmpty?
def isEmpty(self):
return self.head is None
#add to top
def push(self, data):
#empty stack
if self.isEmpty():
self.head = Node(data)
self.top = Node(data)
#not empty stack
else:
self.top.next = Node(data)
self.top = self.top.next
#remove from top
def pop(self):
#one-stack
if self.head is self.top:
self.head = None
self.top = None
#more than one-stack
else:
temp = self.head
while temp.next.next is not None:
temp = temp.next
#temp.next.next is None
#temp.next is not None
remove = temp.next
#temp -> remove -> None
remove.content = None
remove = None | class Node(object):
def __init__(self, content, next=None):
self.content = content
self.next = next
class Stack(object):
def __init__(self):
self.head = None
self.top = None
self.next = None
def is_empty(self):
return self.head is None
def push(self, data):
if self.isEmpty():
self.head = node(data)
self.top = node(data)
else:
self.top.next = node(data)
self.top = self.top.next
def pop(self):
if self.head is self.top:
self.head = None
self.top = None
else:
temp = self.head
while temp.next.next is not None:
temp = temp.next
remove = temp.next
remove.content = None
remove = None |
# Abhishek Parashar
# counting zeroes in an array
t= int(input())
while(t>0):
n=int(input())
a=list(map(int,input().split()))
count=0
for i in a:
if(i==0):
count=count+1
print(count)
t=t-1 | t = int(input())
while t > 0:
n = int(input())
a = list(map(int, input().split()))
count = 0
for i in a:
if i == 0:
count = count + 1
print(count)
t = t - 1 |
class ACCUMULATE_METHODS:
Execute = "execute"
ExecuteAddCredits = "add-credits"
ExecuteCreateAdi = "create-adi"
ExecuteCreateDataAccount = "create-data-account"
ExecuteCreateKeyBook = "create-key-book"
ExecuteCreateKeyPage = "create-key-page"
ExecuteCreateToken = "create-token"
ExecuteCreateTokenAccount = "create-token-account"
ExecuteSendTokens = "send-tokens"
ExecuteUpdateKeyPage = "update-key-page"
ExecuteWriteData = "write-data"
Faucet = "faucet"
Metrics = "metrics"
Query = "query"
QueryChain = "query-chain"
QueryData = "query-data"
QueryDataSet = "query-data-set"
QueryDirectory = "query-directory"
QueryKeyPageIndex = "query-key-index"
QueryTx = "query-tx"
QueryTxHistory = "query-tx-history"
VERSION = "version"
class ACCUMULATE_TYPES:
IDENTITY = "identity"
LITE_TOKEN_ACCOUNT = "liteTokenAccount"
VERSION = "version"
KEY_PAGE = "keyPage"
DATA_ENTRY = "dataEntry"
KEY_PAGE_INDEX = "key-page-index"
SYNTHETIC_DEPOSIT_TOKENS = "syntheticDepositTokens"
METRICS = "metrics"
DIRECTORY = "directory"
DATASET = "dataSet"
ACME_FAUCET = "acmeFaucet"
| class Accumulate_Methods:
execute = 'execute'
execute_add_credits = 'add-credits'
execute_create_adi = 'create-adi'
execute_create_data_account = 'create-data-account'
execute_create_key_book = 'create-key-book'
execute_create_key_page = 'create-key-page'
execute_create_token = 'create-token'
execute_create_token_account = 'create-token-account'
execute_send_tokens = 'send-tokens'
execute_update_key_page = 'update-key-page'
execute_write_data = 'write-data'
faucet = 'faucet'
metrics = 'metrics'
query = 'query'
query_chain = 'query-chain'
query_data = 'query-data'
query_data_set = 'query-data-set'
query_directory = 'query-directory'
query_key_page_index = 'query-key-index'
query_tx = 'query-tx'
query_tx_history = 'query-tx-history'
version = 'version'
class Accumulate_Types:
identity = 'identity'
lite_token_account = 'liteTokenAccount'
version = 'version'
key_page = 'keyPage'
data_entry = 'dataEntry'
key_page_index = 'key-page-index'
synthetic_deposit_tokens = 'syntheticDepositTokens'
metrics = 'metrics'
directory = 'directory'
dataset = 'dataSet'
acme_faucet = 'acmeFaucet' |
class Dragons:
def __init__(self, strength, rewards):
self.strength = strength
self.rewards = rewards
def shell_sort(arr):
n = len(arr)
gap = n//2
while gap > 0:
for i in range(gap,n):
temp = arr[i]
j = i
while j >= gap and arr[j-gap].strength > temp.strength:
arr[j] = arr[j-gap]
j -= gap
arr[j] = temp
gap //= 2
dragon_list = []
kirito_lives = True
s,n = map(int,input().split())
for i in range (n):
dragons_str, dragons_rew = map(int,input().split())
dragon_list.append(Dragons(dragons_str, dragons_rew))
shell_sort(dragon_list)
for dragon in range(len(dragon_list)):
if s > dragon_list[dragon].strength:
s = s + dragon_list[dragon].rewards
else:
kirito_lives = False
break
print("YES" if kirito_lives else "NO")
| class Dragons:
def __init__(self, strength, rewards):
self.strength = strength
self.rewards = rewards
def shell_sort(arr):
n = len(arr)
gap = n // 2
while gap > 0:
for i in range(gap, n):
temp = arr[i]
j = i
while j >= gap and arr[j - gap].strength > temp.strength:
arr[j] = arr[j - gap]
j -= gap
arr[j] = temp
gap //= 2
dragon_list = []
kirito_lives = True
(s, n) = map(int, input().split())
for i in range(n):
(dragons_str, dragons_rew) = map(int, input().split())
dragon_list.append(dragons(dragons_str, dragons_rew))
shell_sort(dragon_list)
for dragon in range(len(dragon_list)):
if s > dragon_list[dragon].strength:
s = s + dragon_list[dragon].rewards
else:
kirito_lives = False
break
print('YES' if kirito_lives else 'NO') |
s=input()
s=s.strip('0')
if s==s[::-1]:
print("Yes")
else:
print("No") | s = input()
s = s.strip('0')
if s == s[::-1]:
print('Yes')
else:
print('No') |
# O(nW)
def knapsack_no_repetition(w, v, W):
table = []
l = len(w)
for i in range(l + 1):
table.append([])
for cap in range(W+1):
if i == 0 or cap == 0:
table[-1].append(0)
else:
if w[i-1] > cap:
table[-1].append(table[i-1][cap])
else:
table[-1].append(max(table[i-1][cap], v[i-1] + table[i-1][cap-w[i-1]]))
return table[-1][-1] | def knapsack_no_repetition(w, v, W):
table = []
l = len(w)
for i in range(l + 1):
table.append([])
for cap in range(W + 1):
if i == 0 or cap == 0:
table[-1].append(0)
elif w[i - 1] > cap:
table[-1].append(table[i - 1][cap])
else:
table[-1].append(max(table[i - 1][cap], v[i - 1] + table[i - 1][cap - w[i - 1]]))
return table[-1][-1] |
def convert(s: str, numRows: int) -> str:
if numRows == 1:
return s
rows = []
current_row = 0
going_down = False
for i in range(0, min(numRows, len(s))):
rows.append("")
for char in s:
rows[current_row] += char
if (current_row == 0 or current_row == numRows - 1):
going_down = not going_down
add = -1
if (going_down):
add = 1
current_row += add
result = ""
for row in rows:
result += row
return result
while True:
print(convert(input("str: "), int(input("row:"))))
| def convert(s: str, numRows: int) -> str:
if numRows == 1:
return s
rows = []
current_row = 0
going_down = False
for i in range(0, min(numRows, len(s))):
rows.append('')
for char in s:
rows[current_row] += char
if current_row == 0 or current_row == numRows - 1:
going_down = not going_down
add = -1
if going_down:
add = 1
current_row += add
result = ''
for row in rows:
result += row
return result
while True:
print(convert(input('str: '), int(input('row:')))) |
class Solution(object):
# @param A : tuple of integers
# @param B : integer
# @return a list of integers
def twoSum(self, A, B):
dp = dict()
for i, a in enumerate(A):
if a in dp:
return dp[a] + 1, i + 1
if B - a not in dp:
dp[B - a] = i
return []
if __name__ == '__main__':
s = Solution()
print(s.twoSum([2, 7, 11, 15], 9)) | class Solution(object):
def two_sum(self, A, B):
dp = dict()
for (i, a) in enumerate(A):
if a in dp:
return (dp[a] + 1, i + 1)
if B - a not in dp:
dp[B - a] = i
return []
if __name__ == '__main__':
s = solution()
print(s.twoSum([2, 7, 11, 15], 9)) |
load("//testsuite:testsuite.bzl", "jflex_testsuite")
jflex_testsuite(
name = "SemcheckTest",
srcs = [
"SemcheckTest.java",
],
data = [
"semcheck.flex",
"semcheck-flex.output",
],
deps = [
"//jflex/src/main/java/jflex/exceptions",
],
)
| load('//testsuite:testsuite.bzl', 'jflex_testsuite')
jflex_testsuite(name='SemcheckTest', srcs=['SemcheckTest.java'], data=['semcheck.flex', 'semcheck-flex.output'], deps=['//jflex/src/main/java/jflex/exceptions']) |
'''
As Jason discussed in the video, by using a where clause that selects more records, you can update multiple records at once. It's time now to practice this!
For your convenience, the names of the tables and columns of interest in this exercise are: state_fact (Table), notes (Column), and census_region_name (Column).
'''
# Build a statement to update the notes to 'The Wild West': stmt
stmt = update(state_fact).values(notes = 'The Wild West')
# Append a where clause to match the West census region records
stmt = stmt.where(state_fact.columns.census_region_name == 'West')
# Execute the statement: results
results = connection.execute(stmt)
# Print rowcount
print(results.rowcount)
| """
As Jason discussed in the video, by using a where clause that selects more records, you can update multiple records at once. It's time now to practice this!
For your convenience, the names of the tables and columns of interest in this exercise are: state_fact (Table), notes (Column), and census_region_name (Column).
"""
stmt = update(state_fact).values(notes='The Wild West')
stmt = stmt.where(state_fact.columns.census_region_name == 'West')
results = connection.execute(stmt)
print(results.rowcount) |
def sentence_analyzer(sentence):
solution = {}
for char in sentence:
if char is not ' ':
if char in solution:
solution[char] += 1
else:
solution[char] = 1
return solution | def sentence_analyzer(sentence):
solution = {}
for char in sentence:
if char is not ' ':
if char in solution:
solution[char] += 1
else:
solution[char] = 1
return solution |
__version__ = "0.0.0"
__title__ = "example"
__description__ = "Example description"
__uri__ = "https://github.com/Elemnir/example"
__author__ = "Adam Howard"
__email__ = "ahoward@utk.edu"
__license__ = "BSD 3-clause"
__copyright__ = "Copyright (c) Adam Howard"
| __version__ = '0.0.0'
__title__ = 'example'
__description__ = 'Example description'
__uri__ = 'https://github.com/Elemnir/example'
__author__ = 'Adam Howard'
__email__ = 'ahoward@utk.edu'
__license__ = 'BSD 3-clause'
__copyright__ = 'Copyright (c) Adam Howard' |
class RecipeNotValidError(Exception):
def __init__(self):
self.message = 'RecipeNotValidError'
try:
recipe = 5656565
if type(recipe) != str:
raise RecipeNotValidError
except RecipeNotValidError as e:
print(e.message)
print('Yay the code got to the end') | class Recipenotvaliderror(Exception):
def __init__(self):
self.message = 'RecipeNotValidError'
try:
recipe = 5656565
if type(recipe) != str:
raise RecipeNotValidError
except RecipeNotValidError as e:
print(e.message)
print('Yay the code got to the end') |
# /* ******************************************************************************
# *
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License, Version 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0.
# *
# * See the NOTICE file distributed with this work for additional
# * information regarding copyright ownership.
# * 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.
# *
# * SPDX-License-Identifier: Apache-2.0
# ******************************************************************************/
class DType(object):
INHERIT = 0
BOOL = 1
FLOAT8 = 2
HALF = 3
HALF2 = 4
FLOAT = 5
DOUBLE = 6
INT8 = 7
INT16 = 8
INT32 = 9
INT64 = 10
UINT8 = 11
UINT16 = 12
UINT32 = 13
UINT64 = 14
QINT8 = 15
QINT16 = 16
BFLOAT16 = 17
UTF8 = 50
UTF16 = 51
UTF32 = 52
| class Dtype(object):
inherit = 0
bool = 1
float8 = 2
half = 3
half2 = 4
float = 5
double = 6
int8 = 7
int16 = 8
int32 = 9
int64 = 10
uint8 = 11
uint16 = 12
uint32 = 13
uint64 = 14
qint8 = 15
qint16 = 16
bfloat16 = 17
utf8 = 50
utf16 = 51
utf32 = 52 |
BOT_NAME = 'hit_dl'
SPIDER_MODULES = ['hit_dl.spiders']
NEWSPIDER_MODULE = 'hit_dl.spiders'
# downloads folder
FILES_STORE = 'moodle_downloads'
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
# Obey robots.txt rules
ROBOTSTXT_OBEY = True
# Minimum logging level
LOG_LEVEL = 'WARNING'
# Configure item pipelines
ITEM_PIPELINES = {
'hit_dl.pipelines.ProcessPipeline': 1,
} | bot_name = 'hit_dl'
spider_modules = ['hit_dl.spiders']
newspider_module = 'hit_dl.spiders'
files_store = 'moodle_downloads'
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
robotstxt_obey = True
log_level = 'WARNING'
item_pipelines = {'hit_dl.pipelines.ProcessPipeline': 1} |
#Dog Years
dog_years = int(input("What is the dog age? "))
human_years = (dog_years * 3)
print("Human age: " + str(human_years))
| dog_years = int(input('What is the dog age? '))
human_years = dog_years * 3
print('Human age: ' + str(human_years)) |
class Solution(object):
def countPrimes(self, n: int) -> int:
# corner case
if n <= 1:
return 0
visited = [True for _ in range(n)]
visited[0] = False
visited[1] = False
for x in range(2, n):
if visited[x]:
t = 2
while t * x < n:
visited[t * x] = False
t += 1
return len([x for x in visited if x is True])
| class Solution(object):
def count_primes(self, n: int) -> int:
if n <= 1:
return 0
visited = [True for _ in range(n)]
visited[0] = False
visited[1] = False
for x in range(2, n):
if visited[x]:
t = 2
while t * x < n:
visited[t * x] = False
t += 1
return len([x for x in visited if x is True]) |
def main():
puzzleInput = open("python/day15.txt", "r").read()
# Part 1
# assert(part1("") == 588)
# print(part1(puzzleInput))
# Part 2
# assert(part2("") == 309)
print(part2(puzzleInput))
def part1(puzzleInput):
puzzleInput = puzzleInput.split("\n")
a = int(puzzleInput[0].split(" ")[-1])
b = int(puzzleInput[1].split(" ")[-1])
matchCount = 0
for i in range(0, 40_000_000):
a = genA(a)
b = genB(b)
aBi = "0" * 16 + str(bin(a)[2:])
bBi = "0" * 16 + str(bin(b)[2:])
if str(aBi)[-16:] == str(bBi)[-16:]:
matchCount += 1
return matchCount
def part2(puzzleInput):
puzzleInput = puzzleInput.split("\n")
a = int(puzzleInput[0].split(" ")[-1])
b = int(puzzleInput[1].split(" ")[-1])
matchCount = 0
for i in range(0, 5_000_000):
while True:
a = genA(a)
if a % 4 == 0:
break
while True:
b = genB(b)
if b % 8 == 0:
break
aBi = "0" * 16 + str(bin(a)[2:])
bBi = "0" * 16 + str(bin(b)[2:])
if str(aBi)[-16:] == str(bBi)[-16:]:
matchCount += 1
# print(matchCount, i)
return matchCount
def genA(num):
factor = 16807
num *= factor
num %= 2147483647
return num
def genB(num):
factor = 48271
num *= factor
num %= 2147483647
return num
if __name__ == "__main__":
main() | def main():
puzzle_input = open('python/day15.txt', 'r').read()
print(part2(puzzleInput))
def part1(puzzleInput):
puzzle_input = puzzleInput.split('\n')
a = int(puzzleInput[0].split(' ')[-1])
b = int(puzzleInput[1].split(' ')[-1])
match_count = 0
for i in range(0, 40000000):
a = gen_a(a)
b = gen_b(b)
a_bi = '0' * 16 + str(bin(a)[2:])
b_bi = '0' * 16 + str(bin(b)[2:])
if str(aBi)[-16:] == str(bBi)[-16:]:
match_count += 1
return matchCount
def part2(puzzleInput):
puzzle_input = puzzleInput.split('\n')
a = int(puzzleInput[0].split(' ')[-1])
b = int(puzzleInput[1].split(' ')[-1])
match_count = 0
for i in range(0, 5000000):
while True:
a = gen_a(a)
if a % 4 == 0:
break
while True:
b = gen_b(b)
if b % 8 == 0:
break
a_bi = '0' * 16 + str(bin(a)[2:])
b_bi = '0' * 16 + str(bin(b)[2:])
if str(aBi)[-16:] == str(bBi)[-16:]:
match_count += 1
return matchCount
def gen_a(num):
factor = 16807
num *= factor
num %= 2147483647
return num
def gen_b(num):
factor = 48271
num *= factor
num %= 2147483647
return num
if __name__ == '__main__':
main() |
actual = 'day1-input.txt'
sample = 'day1-sample.txt'
file = actual
try:
fh = open(file)
except:
print(f'File {file} not found')
depths = [int(x) for x in fh]
inc = 0
for i in range(len(depths)):
if i == 0:
prevDepth = depths[i]
continue
if prevDepth < depths[i]:
inc += 1
prevDepth = depths[i]
print(inc)
| actual = 'day1-input.txt'
sample = 'day1-sample.txt'
file = actual
try:
fh = open(file)
except:
print(f'File {file} not found')
depths = [int(x) for x in fh]
inc = 0
for i in range(len(depths)):
if i == 0:
prev_depth = depths[i]
continue
if prevDepth < depths[i]:
inc += 1
prev_depth = depths[i]
print(inc) |
def main():
A, B, C = map(int, input().split())
list = [A, B, C]
list.sort()
print(list[1])
if __name__ == "__main__":
main()
| def main():
(a, b, c) = map(int, input().split())
list = [A, B, C]
list.sort()
print(list[1])
if __name__ == '__main__':
main() |
#
# PySNMP MIB module CISCO-TRUSTSEC-SXP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TRUSTSEC-SXP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:58:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
CiscoVrfName, = mibBuilder.importSymbols("CISCO-TC", "CiscoVrfName")
CtsPasswordEncryptionType, CtsPassword, CtsSecurityGroupTag = mibBuilder.importSymbols("CISCO-TRUSTSEC-TC-MIB", "CtsPasswordEncryptionType", "CtsPassword", "CtsSecurityGroupTag")
InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero")
InetAddressPrefixLength, InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressPrefixLength", "InetAddress", "InetAddressType")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
iso, Gauge32, TimeTicks, IpAddress, Bits, ObjectIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ModuleIdentity, Unsigned32, Counter64, NotificationType, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Gauge32", "TimeTicks", "IpAddress", "Bits", "ObjectIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ModuleIdentity", "Unsigned32", "Counter64", "NotificationType", "Integer32")
RowStatus, StorageType, DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "StorageType", "DisplayString", "TruthValue", "TextualConvention")
ciscoTrustSecSxpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 720))
ciscoTrustSecSxpMIB.setRevisions(('2012-04-17 00:00', '2010-11-24 00:00', '2010-02-03 00:00',))
if mibBuilder.loadTexts: ciscoTrustSecSxpMIB.setLastUpdated('201204170000Z')
if mibBuilder.loadTexts: ciscoTrustSecSxpMIB.setOrganization('Cisco Systems, Inc.')
ciscoTrustSecSxpMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 0))
ciscoTrustSecSxpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1))
ciscoTrustSecSxpMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2))
ctsxSxpGlobalObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1))
ctsxSxpConnectionObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2))
ctsxSxpSgtObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3))
ciscoTrustSecSxpMIBNotifsControl = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4))
ciscoTrustSecSxpMIBNotifsOnlyInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5))
ctsxSxpEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpEnable.setStatus('current')
ctsxSxpConfigDefaultPasswordType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 2), CtsPasswordEncryptionType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConfigDefaultPasswordType.setStatus('current')
ctsxSxpConfigDefaultPassword = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 3), CtsPassword()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConfigDefaultPassword.setStatus('current')
ctsxSxpViewDefaultPasswordType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 4), CtsPasswordEncryptionType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpViewDefaultPasswordType.setStatus('current')
ctsxSxpViewDefaultPassword = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 5), CtsPassword()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpViewDefaultPassword.setStatus('current')
ctsxSxpDefaultSourceAddrType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 6), InetAddressType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpDefaultSourceAddrType.setStatus('current')
ctsxSxpDefaultSourceAddr = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 7), InetAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpDefaultSourceAddr.setStatus('current')
ctsxSxpRetryPeriod = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpRetryPeriod.setStatus('current')
ctsxSxpReconPeriod = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 9), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpReconPeriod.setStatus('current')
ctsxSxpBindingChangesLogEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpBindingChangesLogEnable.setStatus('current')
ctsxSgtMapExpansionLimit = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 11), Gauge32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSgtMapExpansionLimit.setStatus('current')
ctsxSgtMapExpansionCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 12), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSgtMapExpansionCount.setStatus('current')
ctsxSxpAdminNodeId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 13), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpAdminNodeId.setStatus('current')
ctsxSxpNodeIdInterface = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 14), InterfaceIndexOrZero()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpNodeIdInterface.setStatus('current')
ctsxSxpNodeIdIpAddrType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 15), InetAddressType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpNodeIdIpAddrType.setStatus('current')
ctsxSxpNodeIdIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 16), InetAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpNodeIdIpAddr.setStatus('current')
ctsxSxpOperNodeId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 17), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpOperNodeId.setStatus('current')
ctsxSxpSpeakerMinHoldTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65534))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpSpeakerMinHoldTime.setStatus('current')
ctsxSxpListenerMinHoldTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 19), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65534))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpListenerMinHoldTime.setStatus('current')
ctsxSxpListenerMaxHoldTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 20), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65534))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpListenerMaxHoldTime.setStatus('current')
ctsxSxpVersionSupport = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("one", 2), ("two", 3), ("three", 4), ("four", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpVersionSupport.setStatus('current')
ctsxSxpConnectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1), )
if mibBuilder.loadTexts: ctsxSxpConnectionTable.setStatus('current')
ctsxSxpConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnVrfName"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnPeerAddrType"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnPeerAddr"))
if mibBuilder.loadTexts: ctsxSxpConnectionEntry.setStatus('current')
ctsxSxpConnVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 1), CiscoVrfName())
if mibBuilder.loadTexts: ctsxSxpConnVrfName.setStatus('current')
ctsxSxpConnPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 2), InetAddressType())
if mibBuilder.loadTexts: ctsxSxpConnPeerAddrType.setStatus('current')
ctsxSxpConnPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 3), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 64)))
if mibBuilder.loadTexts: ctsxSxpConnPeerAddr.setStatus('current')
ctsxSxpConnSourceAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 4), InetAddressType().clone('unknown')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnSourceAddrType.setStatus('current')
ctsxSxpConnSourceAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 5), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnSourceAddr.setStatus('current')
ctsxSxpConnOperSourceAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 6), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnOperSourceAddrType.setStatus('current')
ctsxSxpConnOperSourceAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 7), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnOperSourceAddr.setStatus('current')
ctsxSxpConnPasswordUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("default", 2), ("connectionSpecific", 3))).clone('none')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnPasswordUsed.setStatus('current')
ctsxSxpConnConfigPasswordType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 9), CtsPasswordEncryptionType().clone('none')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnConfigPasswordType.setStatus('current')
ctsxSxpConnConfigPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 10), CtsPassword()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnConfigPassword.setStatus('current')
ctsxSxpConnViewPasswordType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 11), CtsPasswordEncryptionType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnViewPasswordType.setStatus('current')
ctsxSxpConnViewPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 12), CtsPassword()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnViewPassword.setStatus('current')
ctsxSxpConnModeLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("peer", 2))).clone('local')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnModeLocation.setStatus('current')
ctsxSxpConnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("speaker", 1), ("listener", 2))).clone('speaker')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnMode.setStatus('current')
ctsxSxpConnInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnInstance.setStatus('current')
ctsxSxpConnStatusLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 16), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnStatusLastChange.setStatus('current')
ctsxSxpConnStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("on", 3), ("pendingOn", 4), ("deleteHoldDown", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnStatus.setStatus('current')
ctsxSxpVrfId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 18), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpVrfId.setStatus('current')
ctsxSxpConnStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 19), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnStorageType.setStatus('current')
ctsxSxpConnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 20), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnRowStatus.setStatus('current')
ctsxSxpConnVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("one", 2), ("two", 3), ("three", 4), ("four", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnVersion.setStatus('current')
ctsxSxpConnSpeakerMinHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 22), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65534), ValueRangeConstraint(65535, 65535), ))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnSpeakerMinHoldTime.setStatus('current')
ctsxSxpConnListenerMinHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 23), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65534), ValueRangeConstraint(65535, 65535), ))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnListenerMinHoldTime.setStatus('current')
ctsxSxpConnListenerMaxHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 24), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 65534), ValueRangeConstraint(65535, 65535), ))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: ctsxSxpConnListenerMaxHoldTime.setStatus('current')
ctsxSxpConnHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 25), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnHoldTime.setStatus('current')
ctsxSxpConnCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 26), Bits().clone(namedValues=NamedValues(("ipv4", 0), ("ipv6", 1), ("subnet", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpConnCapability.setStatus('current')
ctsxIpSgtMappingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1), )
if mibBuilder.loadTexts: ctsxIpSgtMappingTable.setStatus('current')
ctsxIpSgtMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingVrfId"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingAddrType"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingAddr"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingPeerAddrType"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingPeerAddr"))
if mibBuilder.loadTexts: ctsxIpSgtMappingEntry.setStatus('current')
ctsxIpSgtMappingVrfId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 1), Unsigned32())
if mibBuilder.loadTexts: ctsxIpSgtMappingVrfId.setStatus('current')
ctsxIpSgtMappingAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 2), InetAddressType())
if mibBuilder.loadTexts: ctsxIpSgtMappingAddrType.setStatus('current')
ctsxIpSgtMappingAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 3), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 48)))
if mibBuilder.loadTexts: ctsxIpSgtMappingAddr.setStatus('current')
ctsxIpSgtMappingPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 4), InetAddressType())
if mibBuilder.loadTexts: ctsxIpSgtMappingPeerAddrType.setStatus('current')
ctsxIpSgtMappingPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 5), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 48)))
if mibBuilder.loadTexts: ctsxIpSgtMappingPeerAddr.setStatus('current')
ctsxIpSgtMappingSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 6), CtsSecurityGroupTag()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxIpSgtMappingSgt.setStatus('current')
ctsxIpSgtMappingInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxIpSgtMappingInstance.setStatus('current')
ctsxIpSgtMappingVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 8), CiscoVrfName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxIpSgtMappingVrfName.setStatus('current')
ctsxIpSgtMappingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("active", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxIpSgtMappingStatus.setStatus('current')
ctsxSxpSgtMapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2), )
if mibBuilder.loadTexts: ctsxSxpSgtMapTable.setStatus('current')
ctsxSxpSgtMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapVrfId"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapAddrType"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapAddr"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapAddrPrefixLength"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapPeerAddrType"), (0, "CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapPeerAddr"))
if mibBuilder.loadTexts: ctsxSxpSgtMapEntry.setStatus('current')
ctsxSxpSgtMapVrfId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 1), Unsigned32())
if mibBuilder.loadTexts: ctsxSxpSgtMapVrfId.setStatus('current')
ctsxSxpSgtMapAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 2), InetAddressType())
if mibBuilder.loadTexts: ctsxSxpSgtMapAddrType.setStatus('current')
ctsxSxpSgtMapAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 3), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 48)))
if mibBuilder.loadTexts: ctsxSxpSgtMapAddr.setStatus('current')
ctsxSxpSgtMapAddrPrefixLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 4), InetAddressPrefixLength())
if mibBuilder.loadTexts: ctsxSxpSgtMapAddrPrefixLength.setStatus('current')
ctsxSxpSgtMapPeerAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 5), InetAddressType())
if mibBuilder.loadTexts: ctsxSxpSgtMapPeerAddrType.setStatus('current')
ctsxSxpSgtMapPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 6), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 48)))
if mibBuilder.loadTexts: ctsxSxpSgtMapPeerAddr.setStatus('current')
ctsxSxpSgtMapSgt = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 7), CtsSecurityGroupTag()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpSgtMapSgt.setStatus('current')
ctsxSxpSgtMapInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpSgtMapInstance.setStatus('current')
ctsxSxpSgtMapVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 9), CiscoVrfName()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpSgtMapVrfName.setStatus('current')
ctsxSxpSgtMapPeerSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 10), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpSgtMapPeerSeq.setStatus('current')
ctsxSxpSgtMapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("active", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ctsxSxpSgtMapStatus.setStatus('current')
ctsxSxpConnSourceAddrErrNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConnSourceAddrErrNotifEnable.setStatus('current')
ctsxSxpMsgParseErrNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpMsgParseErrNotifEnable.setStatus('current')
ctsxSxpConnConfigErrNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConnConfigErrNotifEnable.setStatus('current')
ctsxSxpBindingErrNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpBindingErrNotifEnable.setStatus('current')
ctsxSxpConnUpNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConnUpNotifEnable.setStatus('current')
ctsxSxpConnDownNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpConnDownNotifEnable.setStatus('current')
ctsxSxpExpansionFailNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 7), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpExpansionFailNotifEnable.setStatus('current')
ctsxSxpOperNodeIdChangeNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 8), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpOperNodeIdChangeNotifEnable.setStatus('current')
ctsxSxpBindingConflictNotifEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 9), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ctsxSxpBindingConflictNotifEnable.setStatus('current')
ctsxSgtMapExpansionVrf = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 1), CiscoVrfName()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapExpansionVrf.setStatus('current')
ctsxSgtMapExpansionAddrType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 2), InetAddressType()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapExpansionAddrType.setStatus('current')
ctsxSgtMapExpansionAddr = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 3), InetAddress()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapExpansionAddr.setStatus('current')
ctsxSgtMapExpansionAddrPrefixLength = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 4), InetAddressPrefixLength()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapExpansionAddrPrefixLength.setStatus('current')
ctsxSxpNotifErrMsg = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 5), SnmpAdminString()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSxpNotifErrMsg.setStatus('current')
ctsxSgtMapConflictingVrfName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 6), CiscoVrfName()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapConflictingVrfName.setStatus('current')
ctsxSgtMapConflictingAddrType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 7), InetAddressType()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapConflictingAddrType.setStatus('current')
ctsxSgtMapConflictingAddr = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 8), InetAddress()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapConflictingAddr.setStatus('current')
ctsxSgtMapConflictingOldSgt = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 9), CtsSecurityGroupTag()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapConflictingOldSgt.setStatus('current')
ctsxSgtMapConflictingNewSgt = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 10), CtsSecurityGroupTag()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSgtMapConflictingNewSgt.setStatus('current')
ctsxSxpOldOperNodeId = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 11), Unsigned32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: ctsxSxpOldOperNodeId.setStatus('current')
ctsxSxpConnSourceAddrErrNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 1)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"))
if mibBuilder.loadTexts: ctsxSxpConnSourceAddrErrNotif.setStatus('current')
ctsxSxpMsgParseErrNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 2)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNotifErrMsg"))
if mibBuilder.loadTexts: ctsxSxpMsgParseErrNotif.setStatus('current')
ctsxSxpConnConfigErrNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 3)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNotifErrMsg"))
if mibBuilder.loadTexts: ctsxSxpConnConfigErrNotif.setStatus('current')
ctsxSxpBindingErrNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 4)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapVrfName"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNotifErrMsg"))
if mibBuilder.loadTexts: ctsxSxpBindingErrNotif.setStatus('current')
ctsxSxpConnUpNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 5)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnStatus"))
if mibBuilder.loadTexts: ctsxSxpConnUpNotif.setStatus('current')
ctsxSxpConnDownNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 6)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnStatus"))
if mibBuilder.loadTexts: ctsxSxpConnDownNotif.setStatus('current')
ctsxSxpExpansionFailNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 7)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionLimit"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionCount"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionVrf"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddrPrefixLength"))
if mibBuilder.loadTexts: ctsxSxpExpansionFailNotif.setStatus('current')
ctsxSxpOperNodeIdChangeNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 8)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOldOperNodeId"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOperNodeId"))
if mibBuilder.loadTexts: ctsxSxpOperNodeIdChangeNotif.setStatus('current')
ctsxSxpBindingConflictNotif = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 9)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingVrfName"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingOldSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingNewSgt"))
if mibBuilder.loadTexts: ctsxSxpBindingConflictNotif.setStatus('current')
ciscoTrustSecSxpMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1))
ciscoTrustSecSxpMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2))
ciscoTrustSecSxpMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 1)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpGlobalGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnectionGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoTrustSecSxpMIBCompliance = ciscoTrustSecSxpMIBCompliance.setStatus('deprecated')
ciscoTrustSecSxpMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 2)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpGlobalGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnectionGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpVersionGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoTrustSecSxpMIBCompliance2 = ciscoTrustSecSxpMIBCompliance2.setStatus('deprecated')
ciscoTrustSecSxpMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 3)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpGlobalGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnectionGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpVersionGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingLogGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingNotifInfoGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNodeIdInfoGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxNotifsControlGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxNotifsGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNotifErrMsgGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpGlobalHoldTimeGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnHoldTimeGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnCapbilityGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpVersionSupportGroup"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapPeerSeqGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoTrustSecSxpMIBCompliance3 = ciscoTrustSecSxpMIBCompliance3.setStatus('current')
ctsxSxpGlobalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 1)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConfigDefaultPasswordType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConfigDefaultPassword"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpViewDefaultPasswordType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpViewDefaultPassword"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpDefaultSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpDefaultSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpRetryPeriod"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpReconPeriod"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpGlobalGroup = ctsxSxpGlobalGroup.setStatus('current')
ctsxSxpConnectionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 2)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnOperSourceAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnPasswordUsed"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnConfigPasswordType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnConfigPassword"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnViewPasswordType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnViewPassword"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnModeLocation"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnMode"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnStatusLastChange"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnStatus"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpVrfId"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnStorageType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpConnectionGroup = ctsxSxpConnectionGroup.setStatus('current')
ctsxIpSgtMappingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 3)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingVrfName"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxIpSgtMappingStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxIpSgtMappingGroup = ctsxIpSgtMappingGroup.setStatus('current')
ctsxSxpVersionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 4)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnVersion"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpVersionGroup = ctsxSxpVersionGroup.setStatus('current')
ctsxSxpBindingLogGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 5)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingChangesLogEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpBindingLogGroup = ctsxSxpBindingLogGroup.setStatus('current')
ctsxSxpBindingNotifInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 6)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionVrf"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionAddrPrefixLength"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingVrfName"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingOldSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapConflictingNewSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOldOperNodeId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpBindingNotifInfoGroup = ctsxSxpBindingNotifInfoGroup.setStatus('current')
ctsxSxpNotifErrMsgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 7)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNotifErrMsg"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpNotifErrMsgGroup = ctsxSxpNotifErrMsgGroup.setStatus('current')
ctsxSxpNodeIdInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 8)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpAdminNodeId"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNodeIdInterface"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNodeIdIpAddrType"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpNodeIdIpAddr"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOperNodeId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpNodeIdInfoGroup = ctsxSxpNodeIdInfoGroup.setStatus('current')
ctsxSxpSgtMapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 9)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapSgt"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapInstance"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapVrfName"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapStatus"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionLimit"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSgtMapExpansionCount"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpSgtMapGroup = ctsxSxpSgtMapGroup.setStatus('current')
ctsxNotifsControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 10)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnSourceAddrErrNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpMsgParseErrNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnConfigErrNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingErrNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnUpNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnDownNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpExpansionFailNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOperNodeIdChangeNotifEnable"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingConflictNotifEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxNotifsControlGroup = ctsxNotifsControlGroup.setStatus('current')
ctsxNotifsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 11)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnSourceAddrErrNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpMsgParseErrNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnConfigErrNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingErrNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnUpNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnDownNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpExpansionFailNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpOperNodeIdChangeNotif"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpBindingConflictNotif"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxNotifsGroup = ctsxNotifsGroup.setStatus('current')
ctsxSxpGlobalHoldTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 12)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSpeakerMinHoldTime"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpListenerMinHoldTime"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpListenerMaxHoldTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpGlobalHoldTimeGroup = ctsxSxpGlobalHoldTimeGroup.setStatus('current')
ctsxSxpConnHoldTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 13)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnSpeakerMinHoldTime"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnListenerMinHoldTime"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnListenerMaxHoldTime"), ("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnHoldTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpConnHoldTimeGroup = ctsxSxpConnHoldTimeGroup.setStatus('current')
ctsxSxpConnCapbilityGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 14)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpConnCapability"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpConnCapbilityGroup = ctsxSxpConnCapbilityGroup.setStatus('current')
ctsxSxpVersionSupportGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 15)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpVersionSupport"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSxpVersionSupportGroup = ctsxSxpVersionSupportGroup.setStatus('current')
ctsxSgtMapPeerSeqGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 16)).setObjects(("CISCO-TRUSTSEC-SXP-MIB", "ctsxSxpSgtMapPeerSeq"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsxSgtMapPeerSeqGroup = ctsxSgtMapPeerSeqGroup.setStatus('current')
mibBuilder.exportSymbols("CISCO-TRUSTSEC-SXP-MIB", ctsxSxpConnHoldTimeGroup=ctsxSxpConnHoldTimeGroup, ctsxIpSgtMappingAddrType=ctsxIpSgtMappingAddrType, ciscoTrustSecSxpMIB=ciscoTrustSecSxpMIB, ctsxSxpSgtMapAddr=ctsxSxpSgtMapAddr, ctsxSxpConfigDefaultPassword=ctsxSxpConfigDefaultPassword, ciscoTrustSecSxpMIBCompliance2=ciscoTrustSecSxpMIBCompliance2, ctsxSxpListenerMaxHoldTime=ctsxSxpListenerMaxHoldTime, ctsxSgtMapExpansionAddrType=ctsxSgtMapExpansionAddrType, ctsxSxpConnCapbilityGroup=ctsxSxpConnCapbilityGroup, ctsxSxpNodeIdInfoGroup=ctsxSxpNodeIdInfoGroup, ctsxIpSgtMappingVrfName=ctsxIpSgtMappingVrfName, ctsxSxpConnPasswordUsed=ctsxSxpConnPasswordUsed, ctsxIpSgtMappingSgt=ctsxIpSgtMappingSgt, ctsxSxpConnConfigErrNotif=ctsxSxpConnConfigErrNotif, ctsxSxpDefaultSourceAddrType=ctsxSxpDefaultSourceAddrType, ctsxSgtMapConflictingVrfName=ctsxSgtMapConflictingVrfName, ctsxSxpSgtMapAddrType=ctsxSxpSgtMapAddrType, ctsxSgtMapConflictingNewSgt=ctsxSgtMapConflictingNewSgt, ctsxSxpNodeIdIpAddrType=ctsxSxpNodeIdIpAddrType, ctsxSxpSgtMapTable=ctsxSxpSgtMapTable, ctsxSxpBindingConflictNotifEnable=ctsxSxpBindingConflictNotifEnable, ctsxSxpConnectionEntry=ctsxSxpConnectionEntry, ctsxSxpSgtMapGroup=ctsxSxpSgtMapGroup, ciscoTrustSecSxpMIBConform=ciscoTrustSecSxpMIBConform, ctsxSxpViewDefaultPasswordType=ctsxSxpViewDefaultPasswordType, ctsxIpSgtMappingPeerAddrType=ctsxIpSgtMappingPeerAddrType, ctsxSxpConnStatus=ctsxSxpConnStatus, ctsxSxpConnHoldTime=ctsxSxpConnHoldTime, ctsxSxpMsgParseErrNotif=ctsxSxpMsgParseErrNotif, ctsxSgtMapExpansionLimit=ctsxSgtMapExpansionLimit, ctsxNotifsControlGroup=ctsxNotifsControlGroup, ciscoTrustSecSxpMIBNotifs=ciscoTrustSecSxpMIBNotifs, ctsxSxpGlobalObjects=ctsxSxpGlobalObjects, ctsxSxpConnectionTable=ctsxSxpConnectionTable, ctsxSxpBindingErrNotifEnable=ctsxSxpBindingErrNotifEnable, ctsxSxpConnSourceAddrErrNotifEnable=ctsxSxpConnSourceAddrErrNotifEnable, ctsxSxpBindingLogGroup=ctsxSxpBindingLogGroup, ctsxSxpAdminNodeId=ctsxSxpAdminNodeId, ctsxSxpSgtMapSgt=ctsxSxpSgtMapSgt, ctsxSxpGlobalGroup=ctsxSxpGlobalGroup, ciscoTrustSecSxpMIBNotifsOnlyInfo=ciscoTrustSecSxpMIBNotifsOnlyInfo, ctsxSxpListenerMinHoldTime=ctsxSxpListenerMinHoldTime, ctsxSxpOldOperNodeId=ctsxSxpOldOperNodeId, ctsxSxpConnVrfName=ctsxSxpConnVrfName, ctsxSxpSgtMapPeerAddr=ctsxSxpSgtMapPeerAddr, ctsxSxpConnModeLocation=ctsxSxpConnModeLocation, ctsxSxpConnSourceAddr=ctsxSxpConnSourceAddr, ctsxIpSgtMappingVrfId=ctsxIpSgtMappingVrfId, ctsxSxpConnStorageType=ctsxSxpConnStorageType, ctsxSxpSgtObjects=ctsxSxpSgtObjects, ctsxSxpVersionSupport=ctsxSxpVersionSupport, ctsxSxpConnSourceAddrType=ctsxSxpConnSourceAddrType, ciscoTrustSecSxpMIBCompliance=ciscoTrustSecSxpMIBCompliance, ctsxSxpNodeIdInterface=ctsxSxpNodeIdInterface, ctsxSxpOperNodeIdChangeNotifEnable=ctsxSxpOperNodeIdChangeNotifEnable, ctsxSxpOperNodeIdChangeNotif=ctsxSxpOperNodeIdChangeNotif, ctsxIpSgtMappingPeerAddr=ctsxIpSgtMappingPeerAddr, ctsxSxpNotifErrMsgGroup=ctsxSxpNotifErrMsgGroup, ctsxSxpOperNodeId=ctsxSxpOperNodeId, ctsxSgtMapExpansionAddrPrefixLength=ctsxSgtMapExpansionAddrPrefixLength, ctsxSxpSgtMapEntry=ctsxSxpSgtMapEntry, ctsxSgtMapExpansionAddr=ctsxSgtMapExpansionAddr, ciscoTrustSecSxpMIBCompliance3=ciscoTrustSecSxpMIBCompliance3, ctsxSxpConnOperSourceAddrType=ctsxSxpConnOperSourceAddrType, ctsxSxpBindingNotifInfoGroup=ctsxSxpBindingNotifInfoGroup, ctsxSxpSpeakerMinHoldTime=ctsxSxpSpeakerMinHoldTime, ctsxIpSgtMappingEntry=ctsxIpSgtMappingEntry, ctsxSxpBindingErrNotif=ctsxSxpBindingErrNotif, ctsxSxpConnConfigPassword=ctsxSxpConnConfigPassword, ctsxSxpSgtMapAddrPrefixLength=ctsxSxpSgtMapAddrPrefixLength, ctsxNotifsGroup=ctsxNotifsGroup, ctsxSxpConnSpeakerMinHoldTime=ctsxSxpConnSpeakerMinHoldTime, ctsxSxpConnInstance=ctsxSxpConnInstance, ctsxSxpSgtMapInstance=ctsxSxpSgtMapInstance, ciscoTrustSecSxpMIBCompliances=ciscoTrustSecSxpMIBCompliances, ctsxSxpConnUpNotifEnable=ctsxSxpConnUpNotifEnable, ctsxSxpConnPeerAddrType=ctsxSxpConnPeerAddrType, ctsxSxpBindingConflictNotif=ctsxSxpBindingConflictNotif, ctsxIpSgtMappingInstance=ctsxIpSgtMappingInstance, ctsxSxpConnViewPasswordType=ctsxSxpConnViewPasswordType, ctsxSxpReconPeriod=ctsxSxpReconPeriod, ctsxSxpBindingChangesLogEnable=ctsxSxpBindingChangesLogEnable, ctsxSxpConnStatusLastChange=ctsxSxpConnStatusLastChange, ctsxIpSgtMappingAddr=ctsxIpSgtMappingAddr, ctsxSxpVersionSupportGroup=ctsxSxpVersionSupportGroup, ctsxSxpConnDownNotif=ctsxSxpConnDownNotif, ctsxSxpConnMode=ctsxSxpConnMode, ctsxSxpViewDefaultPassword=ctsxSxpViewDefaultPassword, ctsxSgtMapConflictingOldSgt=ctsxSgtMapConflictingOldSgt, ctsxSxpRetryPeriod=ctsxSxpRetryPeriod, ctsxSxpConnSourceAddrErrNotif=ctsxSxpConnSourceAddrErrNotif, ctsxSxpGlobalHoldTimeGroup=ctsxSxpGlobalHoldTimeGroup, ctsxSxpExpansionFailNotifEnable=ctsxSxpExpansionFailNotifEnable, ctsxSxpConfigDefaultPasswordType=ctsxSxpConfigDefaultPasswordType, ctsxSgtMapPeerSeqGroup=ctsxSgtMapPeerSeqGroup, ctsxSxpExpansionFailNotif=ctsxSxpExpansionFailNotif, ctsxSxpConnVersion=ctsxSxpConnVersion, ctsxSxpSgtMapPeerAddrType=ctsxSxpSgtMapPeerAddrType, ctsxSxpConnDownNotifEnable=ctsxSxpConnDownNotifEnable, ctsxSxpVrfId=ctsxSxpVrfId, ctsxSxpNotifErrMsg=ctsxSxpNotifErrMsg, ciscoTrustSecSxpMIBObjects=ciscoTrustSecSxpMIBObjects, ctsxSxpConnOperSourceAddr=ctsxSxpConnOperSourceAddr, ctsxSxpConnCapability=ctsxSxpConnCapability, ctsxSxpSgtMapVrfId=ctsxSxpSgtMapVrfId, ctsxSgtMapExpansionVrf=ctsxSgtMapExpansionVrf, ctsxSxpConnConfigPasswordType=ctsxSxpConnConfigPasswordType, ciscoTrustSecSxpMIBNotifsControl=ciscoTrustSecSxpMIBNotifsControl, ciscoTrustSecSxpMIBGroups=ciscoTrustSecSxpMIBGroups, ctsxSxpConnRowStatus=ctsxSxpConnRowStatus, ctsxSxpConnListenerMinHoldTime=ctsxSxpConnListenerMinHoldTime, ctsxSxpConnListenerMaxHoldTime=ctsxSxpConnListenerMaxHoldTime, ctsxSxpConnConfigErrNotifEnable=ctsxSxpConnConfigErrNotifEnable, ctsxSxpVersionGroup=ctsxSxpVersionGroup, ctsxSxpMsgParseErrNotifEnable=ctsxSxpMsgParseErrNotifEnable, ctsxSxpSgtMapPeerSeq=ctsxSxpSgtMapPeerSeq, ctsxSxpEnable=ctsxSxpEnable, PYSNMP_MODULE_ID=ciscoTrustSecSxpMIB, ctsxSxpSgtMapVrfName=ctsxSxpSgtMapVrfName, ctsxIpSgtMappingGroup=ctsxIpSgtMappingGroup, ctsxIpSgtMappingStatus=ctsxIpSgtMappingStatus, ctsxSxpConnPeerAddr=ctsxSxpConnPeerAddr, ctsxSxpConnectionObjects=ctsxSxpConnectionObjects, ctsxSgtMapConflictingAddrType=ctsxSgtMapConflictingAddrType, ctsxSxpDefaultSourceAddr=ctsxSxpDefaultSourceAddr, ctsxSxpSgtMapStatus=ctsxSxpSgtMapStatus, ctsxSgtMapConflictingAddr=ctsxSgtMapConflictingAddr, ctsxSgtMapExpansionCount=ctsxSgtMapExpansionCount, ctsxSxpNodeIdIpAddr=ctsxSxpNodeIdIpAddr, ctsxSxpConnViewPassword=ctsxSxpConnViewPassword, ctsxSxpConnUpNotif=ctsxSxpConnUpNotif, ctsxSxpConnectionGroup=ctsxSxpConnectionGroup, ctsxIpSgtMappingTable=ctsxIpSgtMappingTable)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(cisco_vrf_name,) = mibBuilder.importSymbols('CISCO-TC', 'CiscoVrfName')
(cts_password_encryption_type, cts_password, cts_security_group_tag) = mibBuilder.importSymbols('CISCO-TRUSTSEC-TC-MIB', 'CtsPasswordEncryptionType', 'CtsPassword', 'CtsSecurityGroupTag')
(interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero')
(inet_address_prefix_length, inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressPrefixLength', 'InetAddress', 'InetAddressType')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(iso, gauge32, time_ticks, ip_address, bits, object_identity, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, module_identity, unsigned32, counter64, notification_type, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Gauge32', 'TimeTicks', 'IpAddress', 'Bits', 'ObjectIdentity', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'ModuleIdentity', 'Unsigned32', 'Counter64', 'NotificationType', 'Integer32')
(row_status, storage_type, display_string, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'StorageType', 'DisplayString', 'TruthValue', 'TextualConvention')
cisco_trust_sec_sxp_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 720))
ciscoTrustSecSxpMIB.setRevisions(('2012-04-17 00:00', '2010-11-24 00:00', '2010-02-03 00:00'))
if mibBuilder.loadTexts:
ciscoTrustSecSxpMIB.setLastUpdated('201204170000Z')
if mibBuilder.loadTexts:
ciscoTrustSecSxpMIB.setOrganization('Cisco Systems, Inc.')
cisco_trust_sec_sxp_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 0))
cisco_trust_sec_sxp_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1))
cisco_trust_sec_sxp_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2))
ctsx_sxp_global_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1))
ctsx_sxp_connection_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2))
ctsx_sxp_sgt_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3))
cisco_trust_sec_sxp_mib_notifs_control = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4))
cisco_trust_sec_sxp_mib_notifs_only_info = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5))
ctsx_sxp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpEnable.setStatus('current')
ctsx_sxp_config_default_password_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 2), cts_password_encryption_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConfigDefaultPasswordType.setStatus('current')
ctsx_sxp_config_default_password = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 3), cts_password()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConfigDefaultPassword.setStatus('current')
ctsx_sxp_view_default_password_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 4), cts_password_encryption_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpViewDefaultPasswordType.setStatus('current')
ctsx_sxp_view_default_password = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 5), cts_password()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpViewDefaultPassword.setStatus('current')
ctsx_sxp_default_source_addr_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 6), inet_address_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpDefaultSourceAddrType.setStatus('current')
ctsx_sxp_default_source_addr = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 7), inet_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpDefaultSourceAddr.setStatus('current')
ctsx_sxp_retry_period = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpRetryPeriod.setStatus('current')
ctsx_sxp_recon_period = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 9), unsigned32()).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpReconPeriod.setStatus('current')
ctsx_sxp_binding_changes_log_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpBindingChangesLogEnable.setStatus('current')
ctsx_sgt_map_expansion_limit = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 11), gauge32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionLimit.setStatus('current')
ctsx_sgt_map_expansion_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 12), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionCount.setStatus('current')
ctsx_sxp_admin_node_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 13), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpAdminNodeId.setStatus('current')
ctsx_sxp_node_id_interface = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 14), interface_index_or_zero()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpNodeIdInterface.setStatus('current')
ctsx_sxp_node_id_ip_addr_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 15), inet_address_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpNodeIdIpAddrType.setStatus('current')
ctsx_sxp_node_id_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 16), inet_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpNodeIdIpAddr.setStatus('current')
ctsx_sxp_oper_node_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 17), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpOperNodeId.setStatus('current')
ctsx_sxp_speaker_min_hold_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65534))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpSpeakerMinHoldTime.setStatus('current')
ctsx_sxp_listener_min_hold_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 19), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65534))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpListenerMinHoldTime.setStatus('current')
ctsx_sxp_listener_max_hold_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 20), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65534))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpListenerMaxHoldTime.setStatus('current')
ctsx_sxp_version_support = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('one', 2), ('two', 3), ('three', 4), ('four', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpVersionSupport.setStatus('current')
ctsx_sxp_connection_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1))
if mibBuilder.loadTexts:
ctsxSxpConnectionTable.setStatus('current')
ctsx_sxp_connection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnVrfName'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnPeerAddrType'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnPeerAddr'))
if mibBuilder.loadTexts:
ctsxSxpConnectionEntry.setStatus('current')
ctsx_sxp_conn_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 1), cisco_vrf_name())
if mibBuilder.loadTexts:
ctsxSxpConnVrfName.setStatus('current')
ctsx_sxp_conn_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 2), inet_address_type())
if mibBuilder.loadTexts:
ctsxSxpConnPeerAddrType.setStatus('current')
ctsx_sxp_conn_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 3), inet_address().subtype(subtypeSpec=value_size_constraint(1, 64)))
if mibBuilder.loadTexts:
ctsxSxpConnPeerAddr.setStatus('current')
ctsx_sxp_conn_source_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 4), inet_address_type().clone('unknown')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnSourceAddrType.setStatus('current')
ctsx_sxp_conn_source_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 5), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnSourceAddr.setStatus('current')
ctsx_sxp_conn_oper_source_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 6), inet_address_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnOperSourceAddrType.setStatus('current')
ctsx_sxp_conn_oper_source_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 7), inet_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnOperSourceAddr.setStatus('current')
ctsx_sxp_conn_password_used = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('default', 2), ('connectionSpecific', 3))).clone('none')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnPasswordUsed.setStatus('current')
ctsx_sxp_conn_config_password_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 9), cts_password_encryption_type().clone('none')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnConfigPasswordType.setStatus('current')
ctsx_sxp_conn_config_password = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 10), cts_password()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnConfigPassword.setStatus('current')
ctsx_sxp_conn_view_password_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 11), cts_password_encryption_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnViewPasswordType.setStatus('current')
ctsx_sxp_conn_view_password = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 12), cts_password()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnViewPassword.setStatus('current')
ctsx_sxp_conn_mode_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('peer', 2))).clone('local')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnModeLocation.setStatus('current')
ctsx_sxp_conn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('speaker', 1), ('listener', 2))).clone('speaker')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnMode.setStatus('current')
ctsx_sxp_conn_instance = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnInstance.setStatus('current')
ctsx_sxp_conn_status_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 16), unsigned32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnStatusLastChange.setStatus('current')
ctsx_sxp_conn_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('off', 2), ('on', 3), ('pendingOn', 4), ('deleteHoldDown', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnStatus.setStatus('current')
ctsx_sxp_vrf_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 18), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpVrfId.setStatus('current')
ctsx_sxp_conn_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 19), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnStorageType.setStatus('current')
ctsx_sxp_conn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 20), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnRowStatus.setStatus('current')
ctsx_sxp_conn_version = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('one', 2), ('two', 3), ('three', 4), ('four', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnVersion.setStatus('current')
ctsx_sxp_conn_speaker_min_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 22), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 65534), value_range_constraint(65535, 65535)))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnSpeakerMinHoldTime.setStatus('current')
ctsx_sxp_conn_listener_min_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 23), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 65534), value_range_constraint(65535, 65535)))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnListenerMinHoldTime.setStatus('current')
ctsx_sxp_conn_listener_max_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 24), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 65534), value_range_constraint(65535, 65535)))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
ctsxSxpConnListenerMaxHoldTime.setStatus('current')
ctsx_sxp_conn_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 25), unsigned32()).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnHoldTime.setStatus('current')
ctsx_sxp_conn_capability = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 2, 1, 1, 26), bits().clone(namedValues=named_values(('ipv4', 0), ('ipv6', 1), ('subnet', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpConnCapability.setStatus('current')
ctsx_ip_sgt_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1))
if mibBuilder.loadTexts:
ctsxIpSgtMappingTable.setStatus('current')
ctsx_ip_sgt_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingVrfId'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingAddrType'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingAddr'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingPeerAddrType'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingPeerAddr'))
if mibBuilder.loadTexts:
ctsxIpSgtMappingEntry.setStatus('current')
ctsx_ip_sgt_mapping_vrf_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 1), unsigned32())
if mibBuilder.loadTexts:
ctsxIpSgtMappingVrfId.setStatus('current')
ctsx_ip_sgt_mapping_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 2), inet_address_type())
if mibBuilder.loadTexts:
ctsxIpSgtMappingAddrType.setStatus('current')
ctsx_ip_sgt_mapping_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 3), inet_address().subtype(subtypeSpec=value_size_constraint(1, 48)))
if mibBuilder.loadTexts:
ctsxIpSgtMappingAddr.setStatus('current')
ctsx_ip_sgt_mapping_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 4), inet_address_type())
if mibBuilder.loadTexts:
ctsxIpSgtMappingPeerAddrType.setStatus('current')
ctsx_ip_sgt_mapping_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 5), inet_address().subtype(subtypeSpec=value_size_constraint(1, 48)))
if mibBuilder.loadTexts:
ctsxIpSgtMappingPeerAddr.setStatus('current')
ctsx_ip_sgt_mapping_sgt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 6), cts_security_group_tag()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxIpSgtMappingSgt.setStatus('current')
ctsx_ip_sgt_mapping_instance = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxIpSgtMappingInstance.setStatus('current')
ctsx_ip_sgt_mapping_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 8), cisco_vrf_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxIpSgtMappingVrfName.setStatus('current')
ctsx_ip_sgt_mapping_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('active', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxIpSgtMappingStatus.setStatus('current')
ctsx_sxp_sgt_map_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2))
if mibBuilder.loadTexts:
ctsxSxpSgtMapTable.setStatus('current')
ctsx_sxp_sgt_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1)).setIndexNames((0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapVrfId'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapAddrType'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapAddr'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapAddrPrefixLength'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapPeerAddrType'), (0, 'CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapPeerAddr'))
if mibBuilder.loadTexts:
ctsxSxpSgtMapEntry.setStatus('current')
ctsx_sxp_sgt_map_vrf_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 1), unsigned32())
if mibBuilder.loadTexts:
ctsxSxpSgtMapVrfId.setStatus('current')
ctsx_sxp_sgt_map_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 2), inet_address_type())
if mibBuilder.loadTexts:
ctsxSxpSgtMapAddrType.setStatus('current')
ctsx_sxp_sgt_map_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 3), inet_address().subtype(subtypeSpec=value_size_constraint(1, 48)))
if mibBuilder.loadTexts:
ctsxSxpSgtMapAddr.setStatus('current')
ctsx_sxp_sgt_map_addr_prefix_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 4), inet_address_prefix_length())
if mibBuilder.loadTexts:
ctsxSxpSgtMapAddrPrefixLength.setStatus('current')
ctsx_sxp_sgt_map_peer_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 5), inet_address_type())
if mibBuilder.loadTexts:
ctsxSxpSgtMapPeerAddrType.setStatus('current')
ctsx_sxp_sgt_map_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 6), inet_address().subtype(subtypeSpec=value_size_constraint(1, 48)))
if mibBuilder.loadTexts:
ctsxSxpSgtMapPeerAddr.setStatus('current')
ctsx_sxp_sgt_map_sgt = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 7), cts_security_group_tag()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpSgtMapSgt.setStatus('current')
ctsx_sxp_sgt_map_instance = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpSgtMapInstance.setStatus('current')
ctsx_sxp_sgt_map_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 9), cisco_vrf_name()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpSgtMapVrfName.setStatus('current')
ctsx_sxp_sgt_map_peer_seq = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 10), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpSgtMapPeerSeq.setStatus('current')
ctsx_sxp_sgt_map_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 3, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('active', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ctsxSxpSgtMapStatus.setStatus('current')
ctsx_sxp_conn_source_addr_err_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConnSourceAddrErrNotifEnable.setStatus('current')
ctsx_sxp_msg_parse_err_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpMsgParseErrNotifEnable.setStatus('current')
ctsx_sxp_conn_config_err_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 3), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConnConfigErrNotifEnable.setStatus('current')
ctsx_sxp_binding_err_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpBindingErrNotifEnable.setStatus('current')
ctsx_sxp_conn_up_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConnUpNotifEnable.setStatus('current')
ctsx_sxp_conn_down_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 6), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpConnDownNotifEnable.setStatus('current')
ctsx_sxp_expansion_fail_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 7), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpExpansionFailNotifEnable.setStatus('current')
ctsx_sxp_oper_node_id_change_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 8), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpOperNodeIdChangeNotifEnable.setStatus('current')
ctsx_sxp_binding_conflict_notif_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 4, 9), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ctsxSxpBindingConflictNotifEnable.setStatus('current')
ctsx_sgt_map_expansion_vrf = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 1), cisco_vrf_name()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionVrf.setStatus('current')
ctsx_sgt_map_expansion_addr_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 2), inet_address_type()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionAddrType.setStatus('current')
ctsx_sgt_map_expansion_addr = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 3), inet_address()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionAddr.setStatus('current')
ctsx_sgt_map_expansion_addr_prefix_length = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 4), inet_address_prefix_length()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapExpansionAddrPrefixLength.setStatus('current')
ctsx_sxp_notif_err_msg = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 5), snmp_admin_string()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSxpNotifErrMsg.setStatus('current')
ctsx_sgt_map_conflicting_vrf_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 6), cisco_vrf_name()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapConflictingVrfName.setStatus('current')
ctsx_sgt_map_conflicting_addr_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 7), inet_address_type()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapConflictingAddrType.setStatus('current')
ctsx_sgt_map_conflicting_addr = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 8), inet_address()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapConflictingAddr.setStatus('current')
ctsx_sgt_map_conflicting_old_sgt = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 9), cts_security_group_tag()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapConflictingOldSgt.setStatus('current')
ctsx_sgt_map_conflicting_new_sgt = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 10), cts_security_group_tag()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSgtMapConflictingNewSgt.setStatus('current')
ctsx_sxp_old_oper_node_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 720, 1, 5, 11), unsigned32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
ctsxSxpOldOperNodeId.setStatus('current')
ctsx_sxp_conn_source_addr_err_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 1)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'))
if mibBuilder.loadTexts:
ctsxSxpConnSourceAddrErrNotif.setStatus('current')
ctsx_sxp_msg_parse_err_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 2)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNotifErrMsg'))
if mibBuilder.loadTexts:
ctsxSxpMsgParseErrNotif.setStatus('current')
ctsx_sxp_conn_config_err_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 3)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNotifErrMsg'))
if mibBuilder.loadTexts:
ctsxSxpConnConfigErrNotif.setStatus('current')
ctsx_sxp_binding_err_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 4)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapVrfName'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNotifErrMsg'))
if mibBuilder.loadTexts:
ctsxSxpBindingErrNotif.setStatus('current')
ctsx_sxp_conn_up_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 5)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnStatus'))
if mibBuilder.loadTexts:
ctsxSxpConnUpNotif.setStatus('current')
ctsx_sxp_conn_down_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 6)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnStatus'))
if mibBuilder.loadTexts:
ctsxSxpConnDownNotif.setStatus('current')
ctsx_sxp_expansion_fail_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 7)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionLimit'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionCount'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionVrf'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddrPrefixLength'))
if mibBuilder.loadTexts:
ctsxSxpExpansionFailNotif.setStatus('current')
ctsx_sxp_oper_node_id_change_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 8)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOldOperNodeId'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOperNodeId'))
if mibBuilder.loadTexts:
ctsxSxpOperNodeIdChangeNotif.setStatus('current')
ctsx_sxp_binding_conflict_notif = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 720, 0, 9)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingVrfName'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingOldSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingNewSgt'))
if mibBuilder.loadTexts:
ctsxSxpBindingConflictNotif.setStatus('current')
cisco_trust_sec_sxp_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1))
cisco_trust_sec_sxp_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2))
cisco_trust_sec_sxp_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 1)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpGlobalGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnectionGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_trust_sec_sxp_mib_compliance = ciscoTrustSecSxpMIBCompliance.setStatus('deprecated')
cisco_trust_sec_sxp_mib_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 2)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpGlobalGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnectionGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpVersionGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_trust_sec_sxp_mib_compliance2 = ciscoTrustSecSxpMIBCompliance2.setStatus('deprecated')
cisco_trust_sec_sxp_mib_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 1, 3)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpGlobalGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnectionGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpVersionGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingLogGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingNotifInfoGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNodeIdInfoGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxNotifsControlGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxNotifsGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNotifErrMsgGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpGlobalHoldTimeGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnHoldTimeGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnCapbilityGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpVersionSupportGroup'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapPeerSeqGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_trust_sec_sxp_mib_compliance3 = ciscoTrustSecSxpMIBCompliance3.setStatus('current')
ctsx_sxp_global_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 1)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConfigDefaultPasswordType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConfigDefaultPassword'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpViewDefaultPasswordType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpViewDefaultPassword'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpDefaultSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpDefaultSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpRetryPeriod'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpReconPeriod'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_global_group = ctsxSxpGlobalGroup.setStatus('current')
ctsx_sxp_connection_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 2)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnOperSourceAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnPasswordUsed'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnConfigPasswordType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnConfigPassword'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnViewPasswordType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnViewPassword'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnModeLocation'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnMode'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnStatusLastChange'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnStatus'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpVrfId'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnStorageType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_connection_group = ctsxSxpConnectionGroup.setStatus('current')
ctsx_ip_sgt_mapping_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 3)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingVrfName'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxIpSgtMappingStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_ip_sgt_mapping_group = ctsxIpSgtMappingGroup.setStatus('current')
ctsx_sxp_version_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 4)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnVersion'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_version_group = ctsxSxpVersionGroup.setStatus('current')
ctsx_sxp_binding_log_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 5)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingChangesLogEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_binding_log_group = ctsxSxpBindingLogGroup.setStatus('current')
ctsx_sxp_binding_notif_info_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 6)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionVrf'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionAddrPrefixLength'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingVrfName'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingOldSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapConflictingNewSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOldOperNodeId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_binding_notif_info_group = ctsxSxpBindingNotifInfoGroup.setStatus('current')
ctsx_sxp_notif_err_msg_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 7)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNotifErrMsg'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_notif_err_msg_group = ctsxSxpNotifErrMsgGroup.setStatus('current')
ctsx_sxp_node_id_info_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 8)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpAdminNodeId'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNodeIdInterface'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNodeIdIpAddrType'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpNodeIdIpAddr'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOperNodeId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_node_id_info_group = ctsxSxpNodeIdInfoGroup.setStatus('current')
ctsx_sxp_sgt_map_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 9)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapSgt'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapInstance'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapVrfName'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapStatus'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionLimit'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSgtMapExpansionCount'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_sgt_map_group = ctsxSxpSgtMapGroup.setStatus('current')
ctsx_notifs_control_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 10)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnSourceAddrErrNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpMsgParseErrNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnConfigErrNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingErrNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnUpNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnDownNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpExpansionFailNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOperNodeIdChangeNotifEnable'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingConflictNotifEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_notifs_control_group = ctsxNotifsControlGroup.setStatus('current')
ctsx_notifs_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 11)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnSourceAddrErrNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpMsgParseErrNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnConfigErrNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingErrNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnUpNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnDownNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpExpansionFailNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpOperNodeIdChangeNotif'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpBindingConflictNotif'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_notifs_group = ctsxNotifsGroup.setStatus('current')
ctsx_sxp_global_hold_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 12)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSpeakerMinHoldTime'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpListenerMinHoldTime'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpListenerMaxHoldTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_global_hold_time_group = ctsxSxpGlobalHoldTimeGroup.setStatus('current')
ctsx_sxp_conn_hold_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 13)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnSpeakerMinHoldTime'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnListenerMinHoldTime'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnListenerMaxHoldTime'), ('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnHoldTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_conn_hold_time_group = ctsxSxpConnHoldTimeGroup.setStatus('current')
ctsx_sxp_conn_capbility_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 14)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpConnCapability'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_conn_capbility_group = ctsxSxpConnCapbilityGroup.setStatus('current')
ctsx_sxp_version_support_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 15)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpVersionSupport'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sxp_version_support_group = ctsxSxpVersionSupportGroup.setStatus('current')
ctsx_sgt_map_peer_seq_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 720, 2, 2, 16)).setObjects(('CISCO-TRUSTSEC-SXP-MIB', 'ctsxSxpSgtMapPeerSeq'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ctsx_sgt_map_peer_seq_group = ctsxSgtMapPeerSeqGroup.setStatus('current')
mibBuilder.exportSymbols('CISCO-TRUSTSEC-SXP-MIB', ctsxSxpConnHoldTimeGroup=ctsxSxpConnHoldTimeGroup, ctsxIpSgtMappingAddrType=ctsxIpSgtMappingAddrType, ciscoTrustSecSxpMIB=ciscoTrustSecSxpMIB, ctsxSxpSgtMapAddr=ctsxSxpSgtMapAddr, ctsxSxpConfigDefaultPassword=ctsxSxpConfigDefaultPassword, ciscoTrustSecSxpMIBCompliance2=ciscoTrustSecSxpMIBCompliance2, ctsxSxpListenerMaxHoldTime=ctsxSxpListenerMaxHoldTime, ctsxSgtMapExpansionAddrType=ctsxSgtMapExpansionAddrType, ctsxSxpConnCapbilityGroup=ctsxSxpConnCapbilityGroup, ctsxSxpNodeIdInfoGroup=ctsxSxpNodeIdInfoGroup, ctsxIpSgtMappingVrfName=ctsxIpSgtMappingVrfName, ctsxSxpConnPasswordUsed=ctsxSxpConnPasswordUsed, ctsxIpSgtMappingSgt=ctsxIpSgtMappingSgt, ctsxSxpConnConfigErrNotif=ctsxSxpConnConfigErrNotif, ctsxSxpDefaultSourceAddrType=ctsxSxpDefaultSourceAddrType, ctsxSgtMapConflictingVrfName=ctsxSgtMapConflictingVrfName, ctsxSxpSgtMapAddrType=ctsxSxpSgtMapAddrType, ctsxSgtMapConflictingNewSgt=ctsxSgtMapConflictingNewSgt, ctsxSxpNodeIdIpAddrType=ctsxSxpNodeIdIpAddrType, ctsxSxpSgtMapTable=ctsxSxpSgtMapTable, ctsxSxpBindingConflictNotifEnable=ctsxSxpBindingConflictNotifEnable, ctsxSxpConnectionEntry=ctsxSxpConnectionEntry, ctsxSxpSgtMapGroup=ctsxSxpSgtMapGroup, ciscoTrustSecSxpMIBConform=ciscoTrustSecSxpMIBConform, ctsxSxpViewDefaultPasswordType=ctsxSxpViewDefaultPasswordType, ctsxIpSgtMappingPeerAddrType=ctsxIpSgtMappingPeerAddrType, ctsxSxpConnStatus=ctsxSxpConnStatus, ctsxSxpConnHoldTime=ctsxSxpConnHoldTime, ctsxSxpMsgParseErrNotif=ctsxSxpMsgParseErrNotif, ctsxSgtMapExpansionLimit=ctsxSgtMapExpansionLimit, ctsxNotifsControlGroup=ctsxNotifsControlGroup, ciscoTrustSecSxpMIBNotifs=ciscoTrustSecSxpMIBNotifs, ctsxSxpGlobalObjects=ctsxSxpGlobalObjects, ctsxSxpConnectionTable=ctsxSxpConnectionTable, ctsxSxpBindingErrNotifEnable=ctsxSxpBindingErrNotifEnable, ctsxSxpConnSourceAddrErrNotifEnable=ctsxSxpConnSourceAddrErrNotifEnable, ctsxSxpBindingLogGroup=ctsxSxpBindingLogGroup, ctsxSxpAdminNodeId=ctsxSxpAdminNodeId, ctsxSxpSgtMapSgt=ctsxSxpSgtMapSgt, ctsxSxpGlobalGroup=ctsxSxpGlobalGroup, ciscoTrustSecSxpMIBNotifsOnlyInfo=ciscoTrustSecSxpMIBNotifsOnlyInfo, ctsxSxpListenerMinHoldTime=ctsxSxpListenerMinHoldTime, ctsxSxpOldOperNodeId=ctsxSxpOldOperNodeId, ctsxSxpConnVrfName=ctsxSxpConnVrfName, ctsxSxpSgtMapPeerAddr=ctsxSxpSgtMapPeerAddr, ctsxSxpConnModeLocation=ctsxSxpConnModeLocation, ctsxSxpConnSourceAddr=ctsxSxpConnSourceAddr, ctsxIpSgtMappingVrfId=ctsxIpSgtMappingVrfId, ctsxSxpConnStorageType=ctsxSxpConnStorageType, ctsxSxpSgtObjects=ctsxSxpSgtObjects, ctsxSxpVersionSupport=ctsxSxpVersionSupport, ctsxSxpConnSourceAddrType=ctsxSxpConnSourceAddrType, ciscoTrustSecSxpMIBCompliance=ciscoTrustSecSxpMIBCompliance, ctsxSxpNodeIdInterface=ctsxSxpNodeIdInterface, ctsxSxpOperNodeIdChangeNotifEnable=ctsxSxpOperNodeIdChangeNotifEnable, ctsxSxpOperNodeIdChangeNotif=ctsxSxpOperNodeIdChangeNotif, ctsxIpSgtMappingPeerAddr=ctsxIpSgtMappingPeerAddr, ctsxSxpNotifErrMsgGroup=ctsxSxpNotifErrMsgGroup, ctsxSxpOperNodeId=ctsxSxpOperNodeId, ctsxSgtMapExpansionAddrPrefixLength=ctsxSgtMapExpansionAddrPrefixLength, ctsxSxpSgtMapEntry=ctsxSxpSgtMapEntry, ctsxSgtMapExpansionAddr=ctsxSgtMapExpansionAddr, ciscoTrustSecSxpMIBCompliance3=ciscoTrustSecSxpMIBCompliance3, ctsxSxpConnOperSourceAddrType=ctsxSxpConnOperSourceAddrType, ctsxSxpBindingNotifInfoGroup=ctsxSxpBindingNotifInfoGroup, ctsxSxpSpeakerMinHoldTime=ctsxSxpSpeakerMinHoldTime, ctsxIpSgtMappingEntry=ctsxIpSgtMappingEntry, ctsxSxpBindingErrNotif=ctsxSxpBindingErrNotif, ctsxSxpConnConfigPassword=ctsxSxpConnConfigPassword, ctsxSxpSgtMapAddrPrefixLength=ctsxSxpSgtMapAddrPrefixLength, ctsxNotifsGroup=ctsxNotifsGroup, ctsxSxpConnSpeakerMinHoldTime=ctsxSxpConnSpeakerMinHoldTime, ctsxSxpConnInstance=ctsxSxpConnInstance, ctsxSxpSgtMapInstance=ctsxSxpSgtMapInstance, ciscoTrustSecSxpMIBCompliances=ciscoTrustSecSxpMIBCompliances, ctsxSxpConnUpNotifEnable=ctsxSxpConnUpNotifEnable, ctsxSxpConnPeerAddrType=ctsxSxpConnPeerAddrType, ctsxSxpBindingConflictNotif=ctsxSxpBindingConflictNotif, ctsxIpSgtMappingInstance=ctsxIpSgtMappingInstance, ctsxSxpConnViewPasswordType=ctsxSxpConnViewPasswordType, ctsxSxpReconPeriod=ctsxSxpReconPeriod, ctsxSxpBindingChangesLogEnable=ctsxSxpBindingChangesLogEnable, ctsxSxpConnStatusLastChange=ctsxSxpConnStatusLastChange, ctsxIpSgtMappingAddr=ctsxIpSgtMappingAddr, ctsxSxpVersionSupportGroup=ctsxSxpVersionSupportGroup, ctsxSxpConnDownNotif=ctsxSxpConnDownNotif, ctsxSxpConnMode=ctsxSxpConnMode, ctsxSxpViewDefaultPassword=ctsxSxpViewDefaultPassword, ctsxSgtMapConflictingOldSgt=ctsxSgtMapConflictingOldSgt, ctsxSxpRetryPeriod=ctsxSxpRetryPeriod, ctsxSxpConnSourceAddrErrNotif=ctsxSxpConnSourceAddrErrNotif, ctsxSxpGlobalHoldTimeGroup=ctsxSxpGlobalHoldTimeGroup, ctsxSxpExpansionFailNotifEnable=ctsxSxpExpansionFailNotifEnable, ctsxSxpConfigDefaultPasswordType=ctsxSxpConfigDefaultPasswordType, ctsxSgtMapPeerSeqGroup=ctsxSgtMapPeerSeqGroup, ctsxSxpExpansionFailNotif=ctsxSxpExpansionFailNotif, ctsxSxpConnVersion=ctsxSxpConnVersion, ctsxSxpSgtMapPeerAddrType=ctsxSxpSgtMapPeerAddrType, ctsxSxpConnDownNotifEnable=ctsxSxpConnDownNotifEnable, ctsxSxpVrfId=ctsxSxpVrfId, ctsxSxpNotifErrMsg=ctsxSxpNotifErrMsg, ciscoTrustSecSxpMIBObjects=ciscoTrustSecSxpMIBObjects, ctsxSxpConnOperSourceAddr=ctsxSxpConnOperSourceAddr, ctsxSxpConnCapability=ctsxSxpConnCapability, ctsxSxpSgtMapVrfId=ctsxSxpSgtMapVrfId, ctsxSgtMapExpansionVrf=ctsxSgtMapExpansionVrf, ctsxSxpConnConfigPasswordType=ctsxSxpConnConfigPasswordType, ciscoTrustSecSxpMIBNotifsControl=ciscoTrustSecSxpMIBNotifsControl, ciscoTrustSecSxpMIBGroups=ciscoTrustSecSxpMIBGroups, ctsxSxpConnRowStatus=ctsxSxpConnRowStatus, ctsxSxpConnListenerMinHoldTime=ctsxSxpConnListenerMinHoldTime, ctsxSxpConnListenerMaxHoldTime=ctsxSxpConnListenerMaxHoldTime, ctsxSxpConnConfigErrNotifEnable=ctsxSxpConnConfigErrNotifEnable, ctsxSxpVersionGroup=ctsxSxpVersionGroup, ctsxSxpMsgParseErrNotifEnable=ctsxSxpMsgParseErrNotifEnable, ctsxSxpSgtMapPeerSeq=ctsxSxpSgtMapPeerSeq, ctsxSxpEnable=ctsxSxpEnable, PYSNMP_MODULE_ID=ciscoTrustSecSxpMIB, ctsxSxpSgtMapVrfName=ctsxSxpSgtMapVrfName, ctsxIpSgtMappingGroup=ctsxIpSgtMappingGroup, ctsxIpSgtMappingStatus=ctsxIpSgtMappingStatus, ctsxSxpConnPeerAddr=ctsxSxpConnPeerAddr, ctsxSxpConnectionObjects=ctsxSxpConnectionObjects, ctsxSgtMapConflictingAddrType=ctsxSgtMapConflictingAddrType, ctsxSxpDefaultSourceAddr=ctsxSxpDefaultSourceAddr, ctsxSxpSgtMapStatus=ctsxSxpSgtMapStatus, ctsxSgtMapConflictingAddr=ctsxSgtMapConflictingAddr, ctsxSgtMapExpansionCount=ctsxSgtMapExpansionCount, ctsxSxpNodeIdIpAddr=ctsxSxpNodeIdIpAddr, ctsxSxpConnViewPassword=ctsxSxpConnViewPassword, ctsxSxpConnUpNotif=ctsxSxpConnUpNotif, ctsxSxpConnectionGroup=ctsxSxpConnectionGroup, ctsxIpSgtMappingTable=ctsxIpSgtMappingTable) |
txt = "hello, my name is Peter, I am 26 years old"
minusculas = txt.lower()
x = minusculas.split(", ")
cont = 0
for palabla in x:
for caracter in palabla:
if caracter == 'a' or caracter == 'e' or caracter == 'i' or caracter == 'o' or caracter == 'u':
cont += 1
#print(caracter,)
print(palabla," => ", cont)
#print(x) | txt = 'hello, my name is Peter, I am 26 years old'
minusculas = txt.lower()
x = minusculas.split(', ')
cont = 0
for palabla in x:
for caracter in palabla:
if caracter == 'a' or caracter == 'e' or caracter == 'i' or (caracter == 'o') or (caracter == 'u'):
cont += 1
print(palabla, ' => ', cont) |
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
# partial branches and excluded lines
a = 6
while True:
break
while 1:
break
while a: # pragma: no branch
break
if 0:
never_happen()
if 1:
a = 21
if a == 23:
raise AssertionError("Can't")
| a = 6
while True:
break
while 1:
break
while a:
break
if 0:
never_happen()
if 1:
a = 21
if a == 23:
raise assertion_error("Can't") |
mystock = ['kakao', 'naver']
print(mystock[0])
print(mystock[1])
for stock in mystock:
print(stock)
| mystock = ['kakao', 'naver']
print(mystock[0])
print(mystock[1])
for stock in mystock:
print(stock) |
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def mergeKLists(self, lists):
amount = len(lists)
interval = 1
while interval < amount:
for i in range(0, amount - interval, interval * 2):
lists[i] = self.merge2Lists(lists[i], lists[i + interval])
interval *= 2
return lists[0] if amount > 0 else None
def merge2Lists(self, l1, l2):
head = point = ListNode(0)
while l1 and l2:
if l1.val <= l2.val:
point.next = l1
l1 = l1.next
else:
point.next = l2
l2 = l1
l1 = point.next.next
point = point.next
if not l1:
point.next=l2
else:
point.next=l1
return head.next
| class Solution(object):
def merge_k_lists(self, lists):
amount = len(lists)
interval = 1
while interval < amount:
for i in range(0, amount - interval, interval * 2):
lists[i] = self.merge2Lists(lists[i], lists[i + interval])
interval *= 2
return lists[0] if amount > 0 else None
def merge2_lists(self, l1, l2):
head = point = list_node(0)
while l1 and l2:
if l1.val <= l2.val:
point.next = l1
l1 = l1.next
else:
point.next = l2
l2 = l1
l1 = point.next.next
point = point.next
if not l1:
point.next = l2
else:
point.next = l1
return head.next |
#!/usr/bin/python3
class standard:
def __init__(self, name, message):
self.app_name = name
self.app_message = message
def __del__(self):
print("Python3 object finalized for: standard")
def self_identify(self):
print("Class name: standard")
print("Application name: {name}".format(name=self.app_name))
print("Application message: {message}".format(message=self.app_message))
def main():
std_test = standard("Hello World", "Python OOP Demo")
std_test.self_identify()
if __name__ == "__main__":
main()
| class Standard:
def __init__(self, name, message):
self.app_name = name
self.app_message = message
def __del__(self):
print('Python3 object finalized for: standard')
def self_identify(self):
print('Class name: standard')
print('Application name: {name}'.format(name=self.app_name))
print('Application message: {message}'.format(message=self.app_message))
def main():
std_test = standard('Hello World', 'Python OOP Demo')
std_test.self_identify()
if __name__ == '__main__':
main() |
phonebook = {
"John" : 938477566,
"Jack" : 938377264,
"Jill" : 947662781
}
del phonebook["John"]
print(phonebook)
| phonebook = {'John': 938477566, 'Jack': 938377264, 'Jill': 947662781}
del phonebook['John']
print(phonebook) |
#Evaluate two variables:
x = "Hello"
y = 15
print(bool(x))
print(bool(y)) | x = 'Hello'
y = 15
print(bool(x))
print(bool(y)) |
# https://github.com/balloob/pychromecast
# Follow their example to get your chromecastname
#
chromecastName = "RobsKamerMuziek" # pychromecast.get_chromecasts_as_dict().keys()
server = 'http://192.168.1.147:8000/' # replace this with your local ip and your port
port = 8000
| chromecast_name = 'RobsKamerMuziek'
server = 'http://192.168.1.147:8000/'
port = 8000 |
class command_parser(object):
argument_array=[]
def __init__(self):
pass
def add_argument(self,arg):
self.argument_array.append(arg)
def get_shot_arg(self):
shot_arg=""
for arg in self.argument_array:
shot_arg=shot_arg+arg.shot_text+':'
return shot_arg
def get_long_arg(self):
long_arg=[]
for arg in self.argument_array:
long_arg.append(arg.long_text)
return long_arg
def print_help_message(self):
# print("Commands:")
for arg in self.argument_array:
message=" "+arg.shot_text
for i in range(len(message),5):
message=message+" "
message=message+" --"+arg.long_text
for i in range(len(message),30):
message=message+" "
# print(message+arg.helpmessage)
class base_command(object):
shot_text=''
long_text=''
helpmessage=''
def __init__(self,shot_text,long_text,helpmessage):
self.shot_text=shot_text
self.long_text=long_text
self.helpmessage=helpmessage
| class Command_Parser(object):
argument_array = []
def __init__(self):
pass
def add_argument(self, arg):
self.argument_array.append(arg)
def get_shot_arg(self):
shot_arg = ''
for arg in self.argument_array:
shot_arg = shot_arg + arg.shot_text + ':'
return shot_arg
def get_long_arg(self):
long_arg = []
for arg in self.argument_array:
long_arg.append(arg.long_text)
return long_arg
def print_help_message(self):
for arg in self.argument_array:
message = ' ' + arg.shot_text
for i in range(len(message), 5):
message = message + ' '
message = message + ' --' + arg.long_text
for i in range(len(message), 30):
message = message + ' '
class Base_Command(object):
shot_text = ''
long_text = ''
helpmessage = ''
def __init__(self, shot_text, long_text, helpmessage):
self.shot_text = shot_text
self.long_text = long_text
self.helpmessage = helpmessage |
ENV = "dev"
issuesPath = 'issues'
SERVICE_ACCOUNT_FILE = 'config/credentials/firebase_key.json'
AUTHORIZED_ORIGIN = '*'
DEBUG = True
| env = 'dev'
issues_path = 'issues'
service_account_file = 'config/credentials/firebase_key.json'
authorized_origin = '*'
debug = True |
expected_output = {
"interfaces": {
"GigabitEthernet0/0/0": {
"neighbors": {
"172.18.197.242": {
"address": "172.19.197.93",
"dead_time": "00:00:32",
"priority": 1,
"state": "FULL/BDR",
},
"172.19.197.251": {
"address": "172.19.197.91",
"dead_time": "00:00:32",
"priority": 1,
"state": "FULL/BDR",
},
}
},
"GigabitEthernet0/0/2": {
"neighbors": {
"172.19.197.252": {
"address": "172.19.197.92",
"dead_time": "00:00:32",
"priority": 1,
"state": "FULL/BDR",
}
}
},
"GigabitEthernet0/0/3": {
"neighbors": {
"172.19.197.253": {
"address": "172.19.197.94",
"dead_time": "00:00:32",
"priority": 1,
"state": "FULL/BDR",
}
}
},
"GigabitEthernet0/0/4": {
"neighbors": {
"172.19.197.254": {
"address": "172.19.197.90",
"dead_time": "00:00:32",
"priority": 1,
"state": "FULL/BDR",
}
}
},
}
}
| expected_output = {'interfaces': {'GigabitEthernet0/0/0': {'neighbors': {'172.18.197.242': {'address': '172.19.197.93', 'dead_time': '00:00:32', 'priority': 1, 'state': 'FULL/BDR'}, '172.19.197.251': {'address': '172.19.197.91', 'dead_time': '00:00:32', 'priority': 1, 'state': 'FULL/BDR'}}}, 'GigabitEthernet0/0/2': {'neighbors': {'172.19.197.252': {'address': '172.19.197.92', 'dead_time': '00:00:32', 'priority': 1, 'state': 'FULL/BDR'}}}, 'GigabitEthernet0/0/3': {'neighbors': {'172.19.197.253': {'address': '172.19.197.94', 'dead_time': '00:00:32', 'priority': 1, 'state': 'FULL/BDR'}}}, 'GigabitEthernet0/0/4': {'neighbors': {'172.19.197.254': {'address': '172.19.197.90', 'dead_time': '00:00:32', 'priority': 1, 'state': 'FULL/BDR'}}}}} |
# https://www.codewars.com/kata/alphabetically-ordered/train/python
# My solution
def alphabetic(s):
return sorted(s) == list(s)
# def alphabetic(s):
return all(a<=b for a,b in zip(s, s[1:]))
| def alphabetic(s):
return sorted(s) == list(s)
return all((a <= b for (a, b) in zip(s, s[1:]))) |
class Statistic:
def __init__(self):
self.events = {}
def add_event(self, event):
try:
self.events[event] += 1
except KeyError:
self.events[event] = 1
def display_events(self):
for event in sorted(self.events):
print("Event <%s> occurred %d times" % (event, self.events[event]))
def main():
s = Statistic()
s.add_event("e1")
s.add_event("e2")
s.add_event("e3")
s.add_event("e3")
s.add_event("e3")
s.add_event("e2")
s.display_events()
if __name__ == '__main__':
main() | class Statistic:
def __init__(self):
self.events = {}
def add_event(self, event):
try:
self.events[event] += 1
except KeyError:
self.events[event] = 1
def display_events(self):
for event in sorted(self.events):
print('Event <%s> occurred %d times' % (event, self.events[event]))
def main():
s = statistic()
s.add_event('e1')
s.add_event('e2')
s.add_event('e3')
s.add_event('e3')
s.add_event('e3')
s.add_event('e2')
s.display_events()
if __name__ == '__main__':
main() |
# time O(m*n*len(word))
class Solution:
def exist(self, board: List[List[str]], word: str) -> bool:
for i in range(len(board)):
for j in range(len(board[0])):
if self.dfs(board, i, j, set(), word, 0):
return True
return False
def dfs(self, board, x, y, visited, word, idx):
if idx == len(word):
return True
if (
0 <= x < len(board)
and 0 <= y < len(board[0])
and (x, y) not in visited
and board[x][y] == word[idx]
):
for direction in [(0, -1), (0, 1), (1, 0), (-1, 0)]:
new_x, new_y = x + direction[0], y + direction[1]
if self.dfs(board, new_x, new_y, visited | {(x, y)}, word, idx + 1):
return True
return False
| class Solution:
def exist(self, board: List[List[str]], word: str) -> bool:
for i in range(len(board)):
for j in range(len(board[0])):
if self.dfs(board, i, j, set(), word, 0):
return True
return False
def dfs(self, board, x, y, visited, word, idx):
if idx == len(word):
return True
if 0 <= x < len(board) and 0 <= y < len(board[0]) and ((x, y) not in visited) and (board[x][y] == word[idx]):
for direction in [(0, -1), (0, 1), (1, 0), (-1, 0)]:
(new_x, new_y) = (x + direction[0], y + direction[1])
if self.dfs(board, new_x, new_y, visited | {(x, y)}, word, idx + 1):
return True
return False |
# https://www.codechef.com/problems/COMM3
for T in range(int(input())):
n,k,l=int(input()),0,[]
for i in range(3):
l.append(list(map(int,input().split())))
if(((l[0][0]-l[1][0])**2+(l[0][1]-l[1][1])**2)<=n*n):k+=1
if(((l[0][0]-l[2][0])**2+(l[0][1]-l[2][1])**2)<=n*n):k+=1
if(((l[1][0]-l[2][0])**2+(l[1][1]-l[2][1])**2)<=n*n):k+=1
print("yes") if(k>1) else print("no") | for t in range(int(input())):
(n, k, l) = (int(input()), 0, [])
for i in range(3):
l.append(list(map(int, input().split())))
if (l[0][0] - l[1][0]) ** 2 + (l[0][1] - l[1][1]) ** 2 <= n * n:
k += 1
if (l[0][0] - l[2][0]) ** 2 + (l[0][1] - l[2][1]) ** 2 <= n * n:
k += 1
if (l[1][0] - l[2][0]) ** 2 + (l[1][1] - l[2][1]) ** 2 <= n * n:
k += 1
print('yes') if k > 1 else print('no') |
def fibonacciModified(t1, t2, n):
n-=2
t3=t2
while n!=0:
t3=t1+t2*t2
t1,t2=t2,t3
n-=1;
return t3
if __name__ == "__main__":
t1, t2, n = input().strip().split(' ')
t1, t2, n = [int(t1), int(t2), int(n)]
result = fibonacciModified(t1, t2, n)
print(result)
| def fibonacci_modified(t1, t2, n):
n -= 2
t3 = t2
while n != 0:
t3 = t1 + t2 * t2
(t1, t2) = (t2, t3)
n -= 1
return t3
if __name__ == '__main__':
(t1, t2, n) = input().strip().split(' ')
(t1, t2, n) = [int(t1), int(t2), int(n)]
result = fibonacci_modified(t1, t2, n)
print(result) |
def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def partition(a, start, end):
pivot = a[end]
pIndex = start
for i in range(start, end):
if a[i] <= pivot:
swap(a, i, pIndex)
pIndex = pIndex + 1
swap(a, end, pIndex)
return pIndex
def quicksort(a, start, end):
if start >= end:
return
pivot = partition(a, start, end)
quicksort(a, start, pivot - 1)
quicksort(a, pivot + 1, end)
if __name__ == '__main__':
a = [9, -3, 5, 2, 6, 8, -6, 1, 3]
quicksort(a, 0, len(a) - 1)
print(a) | def swap(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
def partition(a, start, end):
pivot = a[end]
p_index = start
for i in range(start, end):
if a[i] <= pivot:
swap(a, i, pIndex)
p_index = pIndex + 1
swap(a, end, pIndex)
return pIndex
def quicksort(a, start, end):
if start >= end:
return
pivot = partition(a, start, end)
quicksort(a, start, pivot - 1)
quicksort(a, pivot + 1, end)
if __name__ == '__main__':
a = [9, -3, 5, 2, 6, 8, -6, 1, 3]
quicksort(a, 0, len(a) - 1)
print(a) |
#
# PySNMP MIB module DGS1100-26ME-MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS1100-26ME-MGMT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:30:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
dgs1100_26ME, = mibBuilder.importSymbols("DGS1100PRIMGMT-MIB", "dgs1100-26ME")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
IpAddress, Gauge32, iso, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, MibIdentifier, NotificationType, Counter32, Bits, Integer32, Counter64, ModuleIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Gauge32", "iso", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "MibIdentifier", "NotificationType", "Counter32", "Bits", "Integer32", "Counter64", "ModuleIdentity", "Unsigned32")
RowStatus, MacAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "MacAddress", "TextualConvention", "DisplayString")
swL2MgmtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 10, 134, 12, 12))
if mibBuilder.loadTexts: swL2MgmtMIB.setLastUpdated('201404260000Z')
if mibBuilder.loadTexts: swL2MgmtMIB.setOrganization('D-Link Corp.')
class PortList(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 127)
class VlanIndex(Unsigned32):
pass
class VlanId(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 4094)
mibBuilder.exportSymbols("DGS1100-26ME-MGMT-MIB", PYSNMP_MODULE_ID=swL2MgmtMIB, swL2MgmtMIB=swL2MgmtMIB, VlanIndex=VlanIndex, VlanId=VlanId, PortList=PortList)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_range_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint')
(dgs1100_26_me,) = mibBuilder.importSymbols('DGS1100PRIMGMT-MIB', 'dgs1100-26ME')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(ip_address, gauge32, iso, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, mib_identifier, notification_type, counter32, bits, integer32, counter64, module_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'Gauge32', 'iso', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'MibIdentifier', 'NotificationType', 'Counter32', 'Bits', 'Integer32', 'Counter64', 'ModuleIdentity', 'Unsigned32')
(row_status, mac_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'MacAddress', 'TextualConvention', 'DisplayString')
sw_l2_mgmt_mib = module_identity((1, 3, 6, 1, 4, 1, 171, 10, 134, 12, 12))
if mibBuilder.loadTexts:
swL2MgmtMIB.setLastUpdated('201404260000Z')
if mibBuilder.loadTexts:
swL2MgmtMIB.setOrganization('D-Link Corp.')
class Portlist(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 127)
class Vlanindex(Unsigned32):
pass
class Vlanid(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 4094)
mibBuilder.exportSymbols('DGS1100-26ME-MGMT-MIB', PYSNMP_MODULE_ID=swL2MgmtMIB, swL2MgmtMIB=swL2MgmtMIB, VlanIndex=VlanIndex, VlanId=VlanId, PortList=PortList) |
# Suppose we have a string with some alphabet and we want to
# store all the letters from it in a tuple. Read the input string and
# print this tuple.
alphabet = input()
print(tuple(alphabet)) | alphabet = input()
print(tuple(alphabet)) |
# coding:950
__author__ = 'Liu'
def letraParaNumero(list_numerais):
resultado = ''
letra_para_numero = {
'um':'1', 'dois':'2', 'tres':'3', 'quatro':'4', 'cinco':'5', 'seis':'6', 'sete':'7', 'oito':'8', 'nove':'9', 'zero':'0'
}
for numeral in list_numerais:
resultado += letra_para_numero[numeral]
return resultado
print(letraParaNumero(['um', 'dois', 'tres']))
print(letraParaNumero(['quatro', 'cinco', 'seis']))
print(letraParaNumero(['sete', 'oito', 'nove']))
print(letraParaNumero(['um', 'zero', 'tres']))
| __author__ = 'Liu'
def letra_para_numero(list_numerais):
resultado = ''
letra_para_numero = {'um': '1', 'dois': '2', 'tres': '3', 'quatro': '4', 'cinco': '5', 'seis': '6', 'sete': '7', 'oito': '8', 'nove': '9', 'zero': '0'}
for numeral in list_numerais:
resultado += letra_para_numero[numeral]
return resultado
print(letra_para_numero(['um', 'dois', 'tres']))
print(letra_para_numero(['quatro', 'cinco', 'seis']))
print(letra_para_numero(['sete', 'oito', 'nove']))
print(letra_para_numero(['um', 'zero', 'tres'])) |
N,K = map(int, input().split())
S = list(input())
target = S[K-1]
if target == "A":
S[K-1] = "a"
elif target == "B":
S[K-1] = "b"
else:
S[K-1] = "c"
for str in S:
print(str, end="")
| (n, k) = map(int, input().split())
s = list(input())
target = S[K - 1]
if target == 'A':
S[K - 1] = 'a'
elif target == 'B':
S[K - 1] = 'b'
else:
S[K - 1] = 'c'
for str in S:
print(str, end='') |
def can_build(plat):
return plat=="android"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_java_dir("android")
env.disable_module()
| def can_build(plat):
return plat == 'android'
def configure(env):
if env['platform'] == 'android':
env.android_add_java_dir('android')
env.disable_module() |
class MyClass(object):
pass
def func():
# type: () -> MyClass
pass
| class Myclass(object):
pass
def func():
pass |
class Subsector:
def __init__(self):
self.systems = None
self.name = None
| class Subsector:
def __init__(self):
self.systems = None
self.name = None |
# Network parameters
NUM_DIGITS = 10
TRAIN_BEGIN = 101
TRAIN_END = 1001
CATEGORIES = 4
NUM_HIDDEN_1 = 512
NUM_HIDDEN_2 = 512
# Parameters
LEARNING_RATE = 0.005
TRAINING_EPOCHS = 50
BATCH_SIZE = 32
DECAY = 1e-6
MOMENTUM = 0.9 | num_digits = 10
train_begin = 101
train_end = 1001
categories = 4
num_hidden_1 = 512
num_hidden_2 = 512
learning_rate = 0.005
training_epochs = 50
batch_size = 32
decay = 1e-06
momentum = 0.9 |
class PFFlaskSwaggerConfig(object):
# General Config
enable_pf_api_convention: bool = False
default_tag_name: str = "Common"
# Auth Config
enable_jwt_auth_global: bool = False
# UI Config
enable_swagger_view_page: bool = True
enable_swagger_page_auth: bool = False
swagger_page_auth_user: str = "pfadmin"
swagger_page_auth_password: str = "pf_swagger"
# Swagger Config
title: str = "PF Flask Swagger"
version: str = "1.0.0"
# API Config
get_page_param: str = "page"
item_per_page_param: str = "per-page"
sort_field_param: str = "sort-field"
sort_order_param: str = "sort-order"
search_field_param: str = "search"
sort_default_order: str = "desc"
sort_default_field: str = "id"
| class Pfflaskswaggerconfig(object):
enable_pf_api_convention: bool = False
default_tag_name: str = 'Common'
enable_jwt_auth_global: bool = False
enable_swagger_view_page: bool = True
enable_swagger_page_auth: bool = False
swagger_page_auth_user: str = 'pfadmin'
swagger_page_auth_password: str = 'pf_swagger'
title: str = 'PF Flask Swagger'
version: str = '1.0.0'
get_page_param: str = 'page'
item_per_page_param: str = 'per-page'
sort_field_param: str = 'sort-field'
sort_order_param: str = 'sort-order'
search_field_param: str = 'search'
sort_default_order: str = 'desc'
sort_default_field: str = 'id' |
def remove_duplicates(arr):
arr[:] = list({i:0 for i in arr})
# test remove_duplicates
numbers = [1,66,32,34,2,33,11,32,87,3,4,16,55,23,66]
arr = [i for i in numbers]
remove_duplicates(arr)
print("Numbers: ", numbers)
print("Duplicates Removed: ", arr) | def remove_duplicates(arr):
arr[:] = list({i: 0 for i in arr})
numbers = [1, 66, 32, 34, 2, 33, 11, 32, 87, 3, 4, 16, 55, 23, 66]
arr = [i for i in numbers]
remove_duplicates(arr)
print('Numbers: ', numbers)
print('Duplicates Removed: ', arr) |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]:
if not root:
return []
res = []
def dfs(node, tmp, cur_sum):
cur_sum += node.val
if not node.left and not node.right:
if cur_sum == sum:
res.append(tmp[:] + [node.val])
return
if node.left:
dfs(node.left, tmp + [node.val], cur_sum)
if node.right:
dfs(node.right, tmp + [node.val], cur_sum)
dfs(root, [], 0)
return res
| class Solution:
def path_sum(self, root: TreeNode, sum: int) -> List[List[int]]:
if not root:
return []
res = []
def dfs(node, tmp, cur_sum):
cur_sum += node.val
if not node.left and (not node.right):
if cur_sum == sum:
res.append(tmp[:] + [node.val])
return
if node.left:
dfs(node.left, tmp + [node.val], cur_sum)
if node.right:
dfs(node.right, tmp + [node.val], cur_sum)
dfs(root, [], 0)
return res |
a = int(input())
if ((a%4 == 0) and (a%100 != 0 or a%400 == 0)):
print('1')
else:
print('0')
| a = int(input())
if a % 4 == 0 and (a % 100 != 0 or a % 400 == 0):
print('1')
else:
print('0') |
class Plot:
def __init__(self, x=None, y=None, layers=None, fig=None, ax=None):
self.x = x
self.y = y
self.layers = layers
self.fig = fig
self.ax = ax
| class Plot:
def __init__(self, x=None, y=None, layers=None, fig=None, ax=None):
self.x = x
self.y = y
self.layers = layers
self.fig = fig
self.ax = ax |
__name__ = "jade"
__version__ = "0.0.1"
__author__ = "Aaron Halfaker"
__author_email__ = "ahalfaker@wikimedia.org"
__description__ = "Judgment and Dialog Engine"
__url__ = "https://github.com/wiki-ai/jade"
__license__ = "MIT"
| __name__ = 'jade'
__version__ = '0.0.1'
__author__ = 'Aaron Halfaker'
__author_email__ = 'ahalfaker@wikimedia.org'
__description__ = 'Judgment and Dialog Engine'
__url__ = 'https://github.com/wiki-ai/jade'
__license__ = 'MIT' |
#! /usr/bin/env python
class arm_main:
def __init__(self):
list = []
self.planning_group = "arm_group"
list.append(self.planning_group)
object_f = arm_main()
object_f.planning_group = "test"
print(object_f.planning_group) | class Arm_Main:
def __init__(self):
list = []
self.planning_group = 'arm_group'
list.append(self.planning_group)
object_f = arm_main()
object_f.planning_group = 'test'
print(object_f.planning_group) |
#Program to find perfect numbers within a given range l,m (inclusive) in python
#This code is made for the issue #184(Print all the perfect numbers in a given range.)
l = int(input())
m = int(input())
perfect_numbers = []
if l > m:
l, m = m, l
for j in range(l,m+1):
divisor = []
for i in range(1,j):
if j%i == 0:
divisor.append(i)
if sum(divisor) == j:
perfect_numbers.append(j)
print("Found a perfect Number: " + str(j))
print("Perfect Numbers Found in the Range(" + str(l) + " & " + str(m) + ")are" + ":" , perfect_numbers)
| l = int(input())
m = int(input())
perfect_numbers = []
if l > m:
(l, m) = (m, l)
for j in range(l, m + 1):
divisor = []
for i in range(1, j):
if j % i == 0:
divisor.append(i)
if sum(divisor) == j:
perfect_numbers.append(j)
print('Found a perfect Number: ' + str(j))
print('Perfect Numbers Found in the Range(' + str(l) + ' & ' + str(m) + ')are' + ':', perfect_numbers) |
# Tuplas
# sao imutaveis depois de iniciado o programa ( comando de atribuir (=) nao funcionara)
print('-' * 30)
print('Exemplo 1 print')
mochila = ('Machado', 'Camisa', 'Bacon', 'Abacate')
print(mochila)
print('-' * 30)
print('Exemplo 2 fatiando')
# podemos manipular e fatir a tupla igual strings
print(mochila[0]) # print do Elemento 1 - Indice 0
print(mochila[2]) # print do Elemento 3 - Indice 2
print(mochila[0:2]) # print do Elemento 1 e 2 - Indice 0 e 1
print(mochila[2:]) # print dos elementos a partir do indice 2
print(mochila[-1]) # print do ultimo elemento
print('-' * 30)
print('Exemplo 3 sem range')
# varredura de elementos com laco de repeticao
for item in mochila:
print('Na minha mochila tem: {}' .format(item))
print('-' * 30)
print('Exemplo 4 - utilizando range')
# varredura utilizando range
tam = len(mochila)
for i in range(0, tam, 1):
print('Na minha mochila tem: {}' .format(mochila[i]))
print('-' * 30)
print('Exemplo 5 - Passando para outra tupla com atualizacao de tamanho')
upgrade = ('Queijo', 'Canivete')
mochila_grande = mochila + upgrade
print(mochila)
print(upgrade)
print(mochila_grande)
print('-' * 30)
print('Exemplo 6 - Utilizando concatenacao')
# obs: cuidado na ordem da juncao
mochila_grande_invertida = upgrade + mochila
print(mochila_grande)
print(mochila_grande_invertida)
| print('-' * 30)
print('Exemplo 1 print')
mochila = ('Machado', 'Camisa', 'Bacon', 'Abacate')
print(mochila)
print('-' * 30)
print('Exemplo 2 fatiando')
print(mochila[0])
print(mochila[2])
print(mochila[0:2])
print(mochila[2:])
print(mochila[-1])
print('-' * 30)
print('Exemplo 3 sem range')
for item in mochila:
print('Na minha mochila tem: {}'.format(item))
print('-' * 30)
print('Exemplo 4 - utilizando range')
tam = len(mochila)
for i in range(0, tam, 1):
print('Na minha mochila tem: {}'.format(mochila[i]))
print('-' * 30)
print('Exemplo 5 - Passando para outra tupla com atualizacao de tamanho')
upgrade = ('Queijo', 'Canivete')
mochila_grande = mochila + upgrade
print(mochila)
print(upgrade)
print(mochila_grande)
print('-' * 30)
print('Exemplo 6 - Utilizando concatenacao')
mochila_grande_invertida = upgrade + mochila
print(mochila_grande)
print(mochila_grande_invertida) |
#: Warn if a field that implements storage is missing it's reset value
MISSING_RESET = 1<<0
#: Warn if a field's bit offset is not explicitly specified
IMPLICIT_FIELD_POS = 1<<1
#: Warn if a component's address offset is not explicitly assigned
IMPLICIT_ADDR = 1<<2
#: Warn if an instance array's address stride is not a power of two
STRIDE_NOT_POW2 = 1<<3
#: Enforce that all addressable components are aligned based on their size.
#: Alignment is determined by the component's size rounded up to the next power
#: of two.
#:
#: Strict self-alignment may be desireable since it can simplify address decode
#: logic for hierarchical designs.
#:
#: This rule is a superset of ``STRIDE_NOT_POW2``
STRICT_SELF_ALIGN = 1<<4
#-------------------------------------------------------------------------------
#: Enable all warnings
ALL = (
MISSING_RESET
| IMPLICIT_FIELD_POS
| IMPLICIT_ADDR
| STRIDE_NOT_POW2
| STRICT_SELF_ALIGN
)
| missing_reset = 1 << 0
implicit_field_pos = 1 << 1
implicit_addr = 1 << 2
stride_not_pow2 = 1 << 3
strict_self_align = 1 << 4
all = MISSING_RESET | IMPLICIT_FIELD_POS | IMPLICIT_ADDR | STRIDE_NOT_POW2 | STRICT_SELF_ALIGN |
# 1470. Shuffle the Array
# Author- @lashewi
class Solution:
def shuffle(self, nums: List[int], n: int) -> List[int]:
out = []
for i in range(n):
out.append(nums[i])
out.append(nums[i+n])
return out
| class Solution:
def shuffle(self, nums: List[int], n: int) -> List[int]:
out = []
for i in range(n):
out.append(nums[i])
out.append(nums[i + n])
return out |
line = input()
result = "."
for word in line:
if word != result[-1]:
result += word
print(result.replace(".", "")) | line = input()
result = '.'
for word in line:
if word != result[-1]:
result += word
print(result.replace('.', '')) |
class Solution:
def isPalindrome(self, s: str) -> bool:
left=0
right=len(s)-1
while left<right:
while left<right and not s[left].isalpha() and not s[left].isdigit():
left+=1
while left<right and not s[right].isalpha() and not s[right].isdigit():
right-=1
if s[left].lower()!=s[right].lower():
return False
left+=1
right-=1
return True | class Solution:
def is_palindrome(self, s: str) -> bool:
left = 0
right = len(s) - 1
while left < right:
while left < right and (not s[left].isalpha()) and (not s[left].isdigit()):
left += 1
while left < right and (not s[right].isalpha()) and (not s[right].isdigit()):
right -= 1
if s[left].lower() != s[right].lower():
return False
left += 1
right -= 1
return True |
#!usr/bin/env python3
def main():
name = input("Enter ur Name to Start Quiz: ")
ans = input("TRUE or FALSE: Python was released in 1991:\n")
if ans == "TRUE":
print('Correct')
elif ans == "FALSE":
print('Wrong')
elif ans != ("TRUE" or "FALSE"):
print('Please answer TRUE or FALSE')
print('Bye')
if __name__ == "__main__":
main()
| def main():
name = input('Enter ur Name to Start Quiz: ')
ans = input('TRUE or FALSE: Python was released in 1991:\n')
if ans == 'TRUE':
print('Correct')
elif ans == 'FALSE':
print('Wrong')
elif ans != ('TRUE' or 'FALSE'):
print('Please answer TRUE or FALSE')
print('Bye')
if __name__ == '__main__':
main() |
maior = ''
while True:
a = input()
if a == '0':
print('\nThe biggest word: {}'.format(maior))
break
a = a.split()
for y, x in enumerate(a):
if len(x) >= len(maior):
maior = x
if y+1 == len(a):
print(len(x))
else:
print(len(x), end='-')
| maior = ''
while True:
a = input()
if a == '0':
print('\nThe biggest word: {}'.format(maior))
break
a = a.split()
for (y, x) in enumerate(a):
if len(x) >= len(maior):
maior = x
if y + 1 == len(a):
print(len(x))
else:
print(len(x), end='-') |
A, B, C, K = map(int, input().split())
ans = min(A, K)
K -= min(A, K)
K = max(0, K - B)
ans += -1 * min(K, C)
print(ans) | (a, b, c, k) = map(int, input().split())
ans = min(A, K)
k -= min(A, K)
k = max(0, K - B)
ans += -1 * min(K, C)
print(ans) |
#18560 Mateusz Boczarski
def testy():
#Zadanie 1
#Zdefiniuj klase Student(), ktora zawiera pola (niestatyczne): imie, nazwisko, nr_indeksu,
#kierunek. Klasa ma posiadac __init__(), w ktorym podczas tworzenia instancji (obiektu) przypisywane
#beda wartosci do wskazanych pol. Pole nr_indeksu powinno byc prywatne. Pokaz na obiekcie, ze nie
#mozna sie do tego pola odwolac. Poslugujac sie przeciazona metoda __str__() napisz procedure
#drukujaca pola obiektu (w kodzie procedury bez print()) przy podaniu obiektu do print().
print("Zadanie 1")
s1 = Student("Jan", "Kowalski", 1885, "IE")
print(s1.imie)
print(s1.nazwisko)
print(s1.kierunek)
#print(s1.__nr_indeksu) - 'Student' object has no attribute '__nr_indeksu'
print(s1)
#Zadanie 2
#Dla klasy Student() z zad.1 napisz przeciazona metode porownujaca dwa obiekty:
#mniejszy->wiekszy oraz rowny->rowny. Procedury maja porownywac pola zawierajace imiona i
#nazwiska, np. jezeli stduent1 ma nazwisko Adamczyk a student2 ma nazwisko Bakula metoda ma
#zwracac True (bo student1 < student2).
print("\nZadanie 2")
s2 = Student("Kamil", "Nowak", 1825, "IP")
print(s1.__lt__(s2))
print(s1.__eq__(s2))
#Zadanie 3
#Dodaj do klasy Student() prywatne pole statyczne o nazwie licznik. Napisz metode
#getLicznik(), ktora bedzie zwracala wartosc licznika. Pokaz, ze licznik funkcjonuje przy wywolaniu dla
#3 obiektow.
print("\nZadanie 3")
s3 = Student("Bartosz", "Kogut", 1878, "IE")
print("Licznik: %s"%(s3.getLicznik()))
#Zadanie 4
#Zdefiniuj klase StudentInformatyki(), ktora dziedziczy po klasie Student(). Student
#informatyki jawnie wykorzystuje konstruktor klasy Student() (super()). Dodatkowo ma pole
#specjalnosc a pole kierunek wypelnione jest wstepnie wartoscia ,,IIS".
print("\nZadanie 4")
s4 = StudentInformatyki("Mariusz", "Mroz", 1971, "", "Bazy danych")
print(s4.imie)
print(s4.nazwisko)
print(s4.kierunek)
print(s4.specjalnosc)
pass
class Student:
__licznik = 0
def __init__(self, imie, nazwisko, nr_indeksu, kierunek):
Student.__licznik += 1
self.imie = imie
self.nazwisko = nazwisko
self.__nr_indeksu = nr_indeksu
self.kierunek = kierunek
def getLicznik(self):
return self.__licznik
def __lt__(self, other):
if self.nazwisko < other.nazwisko:
return True
else:
return False
def __eq__(self, other):
if self.nazwisko == other.nazwisko:
return True
else:
return False
def __str__(self):
return "Imie: %s, Nazwisko: %s, Nr_indeksu: %d, Kierunek: %s"%(self.imie, self.nazwisko, self.__nr_indeksu, self.kierunek)
class StudentInformatyki(Student):
def __init__(self, imie, nazwisko, nr_indeksu, kierunek, specjalnosc):
super(StudentInformatyki, self).__init__(imie, nazwisko, nr_indeksu, kierunek)
self.kierunek = "IIS"
self.specjalnosc = specjalnosc
if __name__ == "__main__":
testy() | def testy():
print('Zadanie 1')
s1 = student('Jan', 'Kowalski', 1885, 'IE')
print(s1.imie)
print(s1.nazwisko)
print(s1.kierunek)
print(s1)
print('\nZadanie 2')
s2 = student('Kamil', 'Nowak', 1825, 'IP')
print(s1.__lt__(s2))
print(s1.__eq__(s2))
print('\nZadanie 3')
s3 = student('Bartosz', 'Kogut', 1878, 'IE')
print('Licznik: %s' % s3.getLicznik())
print('\nZadanie 4')
s4 = student_informatyki('Mariusz', 'Mroz', 1971, '', 'Bazy danych')
print(s4.imie)
print(s4.nazwisko)
print(s4.kierunek)
print(s4.specjalnosc)
pass
class Student:
__licznik = 0
def __init__(self, imie, nazwisko, nr_indeksu, kierunek):
Student.__licznik += 1
self.imie = imie
self.nazwisko = nazwisko
self.__nr_indeksu = nr_indeksu
self.kierunek = kierunek
def get_licznik(self):
return self.__licznik
def __lt__(self, other):
if self.nazwisko < other.nazwisko:
return True
else:
return False
def __eq__(self, other):
if self.nazwisko == other.nazwisko:
return True
else:
return False
def __str__(self):
return 'Imie: %s, Nazwisko: %s, Nr_indeksu: %d, Kierunek: %s' % (self.imie, self.nazwisko, self.__nr_indeksu, self.kierunek)
class Studentinformatyki(Student):
def __init__(self, imie, nazwisko, nr_indeksu, kierunek, specjalnosc):
super(StudentInformatyki, self).__init__(imie, nazwisko, nr_indeksu, kierunek)
self.kierunek = 'IIS'
self.specjalnosc = specjalnosc
if __name__ == '__main__':
testy() |
def heapify(customList, n, i):
smallest = i
l = 2 * i + 1
r = 2 * i + 2
if l < n and customList[l] < customList[smallest]:
smallest = l
if r < n and customList[r] < customList[smallest]:
smallest = r
if smallest != i:
customList[i], customList[smallest] = customList[smallest], customList[i]
heapify(customList, n, smallest)
def heapSort(customList):
n = len(customList)
for i in range(int(n / 2) - 1, -1, -1):
heapify(customList, n, i)
for i in range(n - 1, 0, -1):
customList[i], customList[0] = customList[0], customList[i]
heapify(customList, i, 0)
| def heapify(customList, n, i):
smallest = i
l = 2 * i + 1
r = 2 * i + 2
if l < n and customList[l] < customList[smallest]:
smallest = l
if r < n and customList[r] < customList[smallest]:
smallest = r
if smallest != i:
(customList[i], customList[smallest]) = (customList[smallest], customList[i])
heapify(customList, n, smallest)
def heap_sort(customList):
n = len(customList)
for i in range(int(n / 2) - 1, -1, -1):
heapify(customList, n, i)
for i in range(n - 1, 0, -1):
(customList[i], customList[0]) = (customList[0], customList[i])
heapify(customList, i, 0) |
# This program creates a JPEG File Name from a Basic String
word = "dog_image"
print("Filename: " + word)
word = word + ".jpeg"
print("Image filename: " + word)
# This section swaps the suffix '.jpeg' to '.jpg'
i = len(word)-5
# Check if there's a suffix '.jpeg'
if word[i:] == ".jpeg":
#Remove the suffix
word = word[0:i]
#Swap the suffix
word = word + ".jpg"
print("New image filename: " + word) | word = 'dog_image'
print('Filename: ' + word)
word = word + '.jpeg'
print('Image filename: ' + word)
i = len(word) - 5
if word[i:] == '.jpeg':
word = word[0:i]
word = word + '.jpg'
print('New image filename: ' + word) |
n= input()
def ismagicnumber(number):
if n[0] != '1':
return False
for i in range(len(n)):
if n[i] != '1' and n[i] != '4':
return False
for i in range(1, len(n)-1):
if n[i] == '4' and n[i-1] == '4' and n[i+1] == '4':
return False
return True
flag = ismagicnumber(n)
if flag:
print('YES')
else:
print('NO')
| n = input()
def ismagicnumber(number):
if n[0] != '1':
return False
for i in range(len(n)):
if n[i] != '1' and n[i] != '4':
return False
for i in range(1, len(n) - 1):
if n[i] == '4' and n[i - 1] == '4' and (n[i + 1] == '4'):
return False
return True
flag = ismagicnumber(n)
if flag:
print('YES')
else:
print('NO') |
square = lambda x : x*x
l = [1,2,3,4,5]
#map return the finale value of the list.
print("This is the map list.",list(map(square,l)))
#filter return the original value of an list.
print("This is the filter list.",list(filter(square,l))) | square = lambda x: x * x
l = [1, 2, 3, 4, 5]
print('This is the map list.', list(map(square, l)))
print('This is the filter list.', list(filter(square, l))) |
# Copyright (c) 2013 Mirantis Inc.
#
# 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.
DEFAULT_DATA = {
'users': [
{
'launchpad_id': 'john_doe',
'user_name': 'John Doe',
'emails': ['johndoe@gmail.com', 'jdoe@nec.com'],
'companies': [
{'company_name': '*independent', 'end_date': '2013-May-01'},
{'company_name': 'NEC', 'end_date': None},
]
},
{
'launchpad_id': 'ivan_ivanov',
'user_name': 'Ivan Ivanov',
'emails': ['ivanivan@yandex.ru', 'iivanov@mirantis.com'],
'companies': [
{'company_name': 'Mirantis', 'end_date': None},
]
}
],
'companies': [
{
'company_name': '*independent',
'domains': ['']
},
{
'company_name': 'NEC',
'domains': ['nec.com', 'nec.co.jp']
},
{
'company_name': 'Mirantis',
'domains': ['mirantis.com', 'mirantis.ru']
},
],
'repos': [
{
'branches': ['master'],
'module': 'stackalytics',
'project_type': 'stackforge',
'uri': 'git://git.openstack.org/stackforge/stackalytics.git'
}
],
'releases': [
{
'release_name': 'prehistory',
'end_date': '2011-Apr-21'
},
{
'release_name': 'Havana',
'end_date': '2013-Oct-17'
}
]
}
USERS = DEFAULT_DATA['users']
REPOS = DEFAULT_DATA['repos']
COMPANIES = DEFAULT_DATA['companies']
RELEASES = DEFAULT_DATA['releases']
| default_data = {'users': [{'launchpad_id': 'john_doe', 'user_name': 'John Doe', 'emails': ['johndoe@gmail.com', 'jdoe@nec.com'], 'companies': [{'company_name': '*independent', 'end_date': '2013-May-01'}, {'company_name': 'NEC', 'end_date': None}]}, {'launchpad_id': 'ivan_ivanov', 'user_name': 'Ivan Ivanov', 'emails': ['ivanivan@yandex.ru', 'iivanov@mirantis.com'], 'companies': [{'company_name': 'Mirantis', 'end_date': None}]}], 'companies': [{'company_name': '*independent', 'domains': ['']}, {'company_name': 'NEC', 'domains': ['nec.com', 'nec.co.jp']}, {'company_name': 'Mirantis', 'domains': ['mirantis.com', 'mirantis.ru']}], 'repos': [{'branches': ['master'], 'module': 'stackalytics', 'project_type': 'stackforge', 'uri': 'git://git.openstack.org/stackforge/stackalytics.git'}], 'releases': [{'release_name': 'prehistory', 'end_date': '2011-Apr-21'}, {'release_name': 'Havana', 'end_date': '2013-Oct-17'}]}
users = DEFAULT_DATA['users']
repos = DEFAULT_DATA['repos']
companies = DEFAULT_DATA['companies']
releases = DEFAULT_DATA['releases'] |
rows = 6
cols = 50
grid = []
for _ in range(rows):
grid.append([False] * cols)
for line in open('input.txt', 'r'):
if line.startswith('rect'):
(a, b) = line[4:].strip().split('x')
for i in range(int(b)):
for j in range(int(a)):
grid[i][j] = True
elif line.startswith('rotate row'):
(a, b) = line[13:].strip().split(' by ')
rowCopy = [False] * cols
for i in range(cols):
rowCopy[(i + int(b)) % cols] = grid[int(a)][i]
grid[int(a)] = rowCopy
elif line.startswith('rotate column'):
(a, b) = line[16:].strip().split(' by ')
colCopy = [False] * rows
for i in range(rows):
colCopy[(i + int(b)) % rows] = grid[i][int(a)]
for i in range(rows):
grid[i][int(a)] = colCopy[i]
print(sum([g.count(True) for g in grid]))
input()
| rows = 6
cols = 50
grid = []
for _ in range(rows):
grid.append([False] * cols)
for line in open('input.txt', 'r'):
if line.startswith('rect'):
(a, b) = line[4:].strip().split('x')
for i in range(int(b)):
for j in range(int(a)):
grid[i][j] = True
elif line.startswith('rotate row'):
(a, b) = line[13:].strip().split(' by ')
row_copy = [False] * cols
for i in range(cols):
rowCopy[(i + int(b)) % cols] = grid[int(a)][i]
grid[int(a)] = rowCopy
elif line.startswith('rotate column'):
(a, b) = line[16:].strip().split(' by ')
col_copy = [False] * rows
for i in range(rows):
colCopy[(i + int(b)) % rows] = grid[i][int(a)]
for i in range(rows):
grid[i][int(a)] = colCopy[i]
print(sum([g.count(True) for g in grid]))
input() |
def question(ab):
exa, exb = map(int, ab.split())
return "Odd" if exa * exb % 2 == 1 else "Even"
| def question(ab):
(exa, exb) = map(int, ab.split())
return 'Odd' if exa * exb % 2 == 1 else 'Even' |
# general driver elements
ELEMENTS = [
{
"name": "sendButton",
"classes": ["g-btn.m-rounded"],
"text": [],
"id": []
},
{
"name": "enterText",
"classes": [],
"text": [],
"id": ["new_post_text_input"]
},
{
"name": "enterMessage",
"classes": ["b-chat__message__text"],
"text": [],
"id": []
},
{
"name": "discountUserPromotion",
"classes": ["g-btn.m-rounded.m-border.m-sm"],
"text": [],
"id": []
},
{
"name": "tweet",
"xpath": ["//label[@for='new_post_tweet_send']"],
"classes": [],
"text": [],
"id": []
},
{
"name": "pollInput",
"xpath": ["//input[@class='form-control']"],
"classes": [],
"text": [],
"id": []
},
### upload
# send
{
"name": "new_post",
"classes": ["g-btn.m-rounded", "button.g-btn.m-rounded"],
"text": ["Post"],
"id": []
},
# record voice
{
"name": "recordVoice",
"classes": [None],
"text": [],
"id": []
},
# post price
{
"name": "post_price",
"classes": [None],
"text": [],
"id": []
},
# post price cancel
{
"name": "post_price_cancel",
"classes": [None],
"text": [],
"id": []
},
# post price save
{
"name": "post_price_save",
"classes": [None],
"text": [],
"id": []
},
# go live
{
"name": "go_live",
"classes": [None],
"text": [],
"id": []
},
# upload image file
{
"name": "image_upload",
"classes": ["button.g-btn.m-rounded.b-chat__btn-submit", "g-btn.m-rounded.b-chat__btn-submit"],
"text": [],
"id": ["fileupload_photo"]
},
# show more options # unnecessary w/ tabbing
{
"name": "moreOptions",
"classes": ["g-btn.m-flat.b-make-post__more-btn.has-tooltip", "g-btn.m-flat.b-make-post__more-btn", "button.g-btn.m-flat.b-make-post__more-btn"],
"text": [],
"id": []
},
# poll
{
"name": "poll",
"classes": ["g-btn.m-flat.b-make-post__voting-btn", "g-btn.m-flat.b-make-post__voting-btn.has-tooltip", "button.g-btn.m-flat.b-make-post__voting-btn", "button.g-btn.m-flat.b-make-post__voting-btn.has-tooltip"],
"text": ["<svg class=\"g-icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-more\" href=\"#icon-more\"></use></svg>"],
"id": []
},
# expire add
{
"name": "expiresAdd",
"classes": ["b-make-post__expire-period-btn"],
"text": ["Save"],
"id": []
},
{
"name": "expiresPeriods",
"classes": ["b-make-post__expire__label"],
"text": [],
"id": []
},
{
"name": "listSingleSave",
"classes": ["g-btn.m-transparent-bg"],
"text": ["Close"],
"id": []
},
{
"name": "expiresSave",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded"],
"text": ["Save"],
"id": []
},
{
"name": "expiresCancel",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded.m-border"],
"text": ["Cancel"],
"id": []
},
# poll cancel
{
"name": "pollCancel",
"classes": ["b-dropzone__preview__delete"],
"text": ["Cancel"],
"id": []
},
# poll duration
{
"name": "pollDuration",
"classes": ["g-btn.m-flat.b-make-post__voting__duration", "button.g-btn.m-flat.b-make-post__voting__duration", "g-btn.m-rounded.js-make-post-poll-duration-save", "button.g-btn.m-rounded.js-make-post-poll-duration-save"],
"text": [],
"id": []
},
# duration tabs
{
"name": "pollDurations",
"classes": ["b-make-post__expire__label"],
"text": [],
"id": []
},
# poll save duration
{
"name": "pollSave",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded", "button.g-btn.m-rounded"],
"text": ["Save"],
"id": []
},
# poll add question
{
"name": "pollQuestionAdd",
"classes": ["g-btn.m-flat.new_vote_add_option", "button.g-btn.m-flat.new_vote_add_option"],
"text": [],
"id": []
},
# expiration
{
"name": "expirationAdd",
"classes": ["g-btn.m-flat.b-make-post__expire-period-btn", "button.g-btn.m-flat.b-make-post__expire-period-btn"],
"text": [],
"id": []
},
# expiration periods (same for duration)
{
"name": "expirationPeriods",
"classes": ["b-make-post__expire__label", "button.b-make-post__expire__label"],
"text": [],
"id": []
},
# expiration save
{
"name": "expirationSave",
"classes": ["g-btn.m-rounded", "button.g-btn.m-rounded", "button.g-btn.m-rounded.js-make-post-poll-duration-save", "g-btn.m-rounded.js-make-post-poll-duration-save"],
"text": ["Save"],
"id": []
},
# expiration cancel
{
"name": "expirationCancel",
"classes": ["g-btn.m-rounded.m-border", "button.g-btn.m-rounded.m-border"],
"text": ["Cancel"],
"id": []
},
# discount modal for user
{
"name": "discountUserButton",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded"],
"text": ["Apply"],
"id": []
},
# discount save for user
{
"name": "discountUsers",
"classes": ["b-users__item.m-fans"],
"text": ["Save"],
"id": []
},
{
"name": "listSave",
"classes": ["g-btn.m-rounded.m-sm-width"],
"text": ["Add"],
"id": []
},
## price
# price add
{
"name": "priceClick",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded"], # "b-chat__btn-set-price", "button.g-btn.m-rounded"
"text": ["Save"],
"id": []
},
# price enter (adds .00)
{
"name": "priceEnter",
"classes": ["form-control.g-input", ".form-control.g-input", "input.form-control.g-input", "input.form-control.g-input"],
"text": ["Free"],
"id": []
},
# schedule add
{
"name": "scheduleAdd",
"classes": ["g-btn.m-flat.b-make-post__datepicker-btn", "button.g-btn.m-flat.b-make-post__datepicker-btn"],
"text": [],
"id": []
},
# schedule next month
{
"name": "scheduleNextMonth",
"classes": ["vdatetime-calendar__navigation--next", "button.vdatetime-calendar__navigation--next"],
"text": [],
"id": []
},
# schedule date
{
"name": "scheduleDate",
"classes": ["vdatetime-calendar__current--month", "div.vdatetime-calendar__navigation > div.vdatetime-calendar__current--month", ".vdatetime-calendar__current--month", "div.vdatetime-calendar__current--month", "vdatetime-popup__date", "div.vdatetime-popup__date"],
"text": [],
"id": []
},
# schedule minutes
{
"name": "scheduleMinutes",
"classes": ["vdatetime-time-picker__item", "button.vdatetime-time-picker__item", "vdatetime-time-picker__item.vdatetime-time-picker__item--selected"],
"text": [],
"id": []
},
# schedule hours
{
"name": "scheduleHours",
"classes": ["vdatetime-time-picker__item.vdatetime-time-picker__item", "button.vdatetime-time-picker__item.vdatetime-time-picker__item"],
"text": [],
"id": []
},
# schedule days
{
"name": "scheduleDays",
"classes": ["vdatetime-calendar__month__day", "button.vdatetime-calendar__month__day"],
"text": [],
"id": []
},
# schedule next
{
"name": "scheduleNext",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-transparent-bg.m-no-uppercase", "g-btn.m-rounded", "button.g-btn.m-rounded"],
"text": ["Next"],
"id": []
},
# schedule save
{
"name": "scheduleSave",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded", "button.g-btn.m-rounded"],
"text": ["Save"],
"id": []
},
# schedule cancel
{
"name": "scheduleCancel",
"classes": ["g-btn.m-transparent-bg", "custom-datepicker-button-cancel", "button.g-btn.m-rounded"],
"text": ["Cancel"],
"id": []
},
# schedule am/pm
{
"name": "scheduleAMPM",
"classes": ["vdatetime-time-picker__item.vdatetime-time-picker__item--selected"],
"text": [],
"id": []
},
### message
# message enter text
{
"name": "messageText",
"classes": ["form-control.b-make-post__text-input", ".form-control.b-chat__message-input"],
"text": [],
"id": []
},
# message upload image
{
"name": "uploadImageMessage",
"classes": ["g-btn.m-rounded.b-chat__btn-submit"],
"text": [],
"id": ["fileupload_photo"]
},
# upload error window close
# tab probably closes error windows...
{
"name": "errorUpload",
"classes": ["g-btn.m-transparent-bg", "g-btn.m-rounded.m-border", "button.g-btn.m-rounded.m-border"],
"text": ["Close"],
"id": []
},
# messages all
{
"name": "messagesAll",
"classes": ["b-chat__message__text"],
"text": [],
"id": []
},
# messages from user
{
"name": "messagesFrom",
"classes": ["m-from-me","b-chat__message.m-from-me"],
"text": [],
"id": []
},
## Users
{
"name": "usersUsernames",
"classes": ["g-user-username"],
"text": [],
"id": []
},
# users
{
"name": "usersUsers",
"classes": ["g-user-name__wrapper", "b-username"],
"text": [],
"id": ["profileUrl"]
},
# users started dates
{
"name": "usersStarteds",
"classes": ["b-fans__item__list__item"],
"text": [],
"id": []
},
# users ids
{
"name": "usersIds",
"classes": ["a.g-btn.m-rounded.m-border.m-sm", "a.g-button.m-rounded.m-border.m-profile.m-with-icon.m-message-btn"],
"text": [],
"id": []
},
# users count
{
"name": "usersCount",
"classes": ["l-sidebar__user-data__item__count", "b-tabs__nav__item.m-current"],
"text": [],
"id": []
},
{
"name": "followingCount",
"classes": ["b-tabs__nav__item.m-current"],
"text": [],
"id": []
},
# users discount buttons
{
"name": "discountUserButtons",
"classes": ["g-btn.m-rounded.m-border.m-sm"],
"text": [],
"id": []
},
{
"name": "newMessage",
"classes": ["g-page__header__btn.b-chats__btn-new.has-tooltip"],
"text": [],
"href": ["/my/chats/send"],
"id": [],
},
{
"name": "messageAll",
"classes": ["g-btn__text"],
"text": ["Fans"],
"id": [],
},
{
"name": "messageRecent",
"classes": ["g-btn__text"],
"text": ["Recent"],
"id": [],
},
{
"name": "messageFavorite",
"classes": ["g-btn__text"],
"text": ["FAVORITE"],
"id": [],
},
{
"name": "messageRenewers",
"classes": ["g-btn__text"],
"text": ["Renew"],
"id": [],
},
{
"name": "promotionalTrial",
"classes": ["g-btn.m-rounded.m-lg.m-flex.m-with-icon.m-uppercase"],
"text": ["create new free trial link"],
"id": [],
},
{
"name": "promotionalCampaignAmount",
"classes": ["form-control.b-fans__trial__select"],
"text": ["promo-campaign-discount-percent-select"],
"id": [],
},
{
"name": "promotionalCampaign",
"classes": ["g-btn.m-rounded.m-block.m-uppercase"],
"text": [" Add a promotional campaign "],
"id": [],
},
{
"name": "promotionalTrialShow",
"classes": ["g-box__header.m-icon-title.m-gray-bg"],
"text": ["Free trial links"],
"id": [],
},
{
"name": "promotionalCopy",
"classes": ["g-btn.m-rounded.m-uppercase"],
"text": ["Copy link to profile"],
"id": [],
},
{
"name": "promotionalTrialCount",
"classes": ["form-control.b-fans__trial__select"],
"text": [],
"id": ["trial-count-select"],
},
{
"name": "promotionalTrialExpiration",
"classes": [],
"text": [],
"id": ["trial-expiration-select"],
},
{
"name": "promotionalTrialMessage",
"classes": ["form-control.g-input"],
"text": ["Type a message to users (optional)"],
"id": [],
},
{
"name": "promotionalTrialDuration",
"classes": [],
"text": [],
"id": ["promo-campaign-period-select"],
},
{
"name": "promotionalTrialConfirm",
"classes": ["g-btn.m-rounded"],
"text": ["Create"],
"id": [],
},
{
"name": "promotionalTrialCancel",
"classes": ["g-btn.m-rounded.m-border"],
"text": ["Cancel"],
"id": [],
},
{
"name": "promotionalTrialLink",
"classes": ["g.btn.m-rounded"],
"text": ["Copy trial link"],
"id": [],
},
{
"name": "userOptions",
"classes": ["btn.dropdown-toggle.btn-link"],
"text": [],
"id": ["__BVID__56__BV_toggle_"],
},
{
"name": "discountUser",
"classes": ["button"],
"text": ["Give user a discount"],
"id": [],
},
{
"name": "promotionalTrialExpirationUser",
"classes": [],
"text": [],
"id": ["trial-expire-select"],
},
{
"name": "promotionalTrialDurationUser",
"classes": [],
"text": [],
"id": ["trial-period-select"],
},
{
"name": "promotionalTrialMessageUser",
"classes": ["form-control.g-input"],
"text": [],
"id": [],
},
{
"name": "promotionalTrialApply",
"classes": ["g-btn.m-rounded"],
"text": ["Apply"],
"id": [],
},
{
"name": "promotionalTrialCancel",
"classes": ["g-btn.m-rounded.m-border"],
"text": ["Cancel"],
"id": [],
},
{
"name": "numberOfPosts",
"classes": ["b-profile__actions__count"],
"text": [],
"id": [],
}
] | elements = [{'name': 'sendButton', 'classes': ['g-btn.m-rounded'], 'text': [], 'id': []}, {'name': 'enterText', 'classes': [], 'text': [], 'id': ['new_post_text_input']}, {'name': 'enterMessage', 'classes': ['b-chat__message__text'], 'text': [], 'id': []}, {'name': 'discountUserPromotion', 'classes': ['g-btn.m-rounded.m-border.m-sm'], 'text': [], 'id': []}, {'name': 'tweet', 'xpath': ["//label[@for='new_post_tweet_send']"], 'classes': [], 'text': [], 'id': []}, {'name': 'pollInput', 'xpath': ["//input[@class='form-control']"], 'classes': [], 'text': [], 'id': []}, {'name': 'new_post', 'classes': ['g-btn.m-rounded', 'button.g-btn.m-rounded'], 'text': ['Post'], 'id': []}, {'name': 'recordVoice', 'classes': [None], 'text': [], 'id': []}, {'name': 'post_price', 'classes': [None], 'text': [], 'id': []}, {'name': 'post_price_cancel', 'classes': [None], 'text': [], 'id': []}, {'name': 'post_price_save', 'classes': [None], 'text': [], 'id': []}, {'name': 'go_live', 'classes': [None], 'text': [], 'id': []}, {'name': 'image_upload', 'classes': ['button.g-btn.m-rounded.b-chat__btn-submit', 'g-btn.m-rounded.b-chat__btn-submit'], 'text': [], 'id': ['fileupload_photo']}, {'name': 'moreOptions', 'classes': ['g-btn.m-flat.b-make-post__more-btn.has-tooltip', 'g-btn.m-flat.b-make-post__more-btn', 'button.g-btn.m-flat.b-make-post__more-btn'], 'text': [], 'id': []}, {'name': 'poll', 'classes': ['g-btn.m-flat.b-make-post__voting-btn', 'g-btn.m-flat.b-make-post__voting-btn.has-tooltip', 'button.g-btn.m-flat.b-make-post__voting-btn', 'button.g-btn.m-flat.b-make-post__voting-btn.has-tooltip'], 'text': ['<svg class="g-icon" aria-hidden="true"><use xlink:href="#icon-more" href="#icon-more"></use></svg>'], 'id': []}, {'name': 'expiresAdd', 'classes': ['b-make-post__expire-period-btn'], 'text': ['Save'], 'id': []}, {'name': 'expiresPeriods', 'classes': ['b-make-post__expire__label'], 'text': [], 'id': []}, {'name': 'listSingleSave', 'classes': ['g-btn.m-transparent-bg'], 'text': ['Close'], 'id': []}, {'name': 'expiresSave', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded'], 'text': ['Save'], 'id': []}, {'name': 'expiresCancel', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded.m-border'], 'text': ['Cancel'], 'id': []}, {'name': 'pollCancel', 'classes': ['b-dropzone__preview__delete'], 'text': ['Cancel'], 'id': []}, {'name': 'pollDuration', 'classes': ['g-btn.m-flat.b-make-post__voting__duration', 'button.g-btn.m-flat.b-make-post__voting__duration', 'g-btn.m-rounded.js-make-post-poll-duration-save', 'button.g-btn.m-rounded.js-make-post-poll-duration-save'], 'text': [], 'id': []}, {'name': 'pollDurations', 'classes': ['b-make-post__expire__label'], 'text': [], 'id': []}, {'name': 'pollSave', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded', 'button.g-btn.m-rounded'], 'text': ['Save'], 'id': []}, {'name': 'pollQuestionAdd', 'classes': ['g-btn.m-flat.new_vote_add_option', 'button.g-btn.m-flat.new_vote_add_option'], 'text': [], 'id': []}, {'name': 'expirationAdd', 'classes': ['g-btn.m-flat.b-make-post__expire-period-btn', 'button.g-btn.m-flat.b-make-post__expire-period-btn'], 'text': [], 'id': []}, {'name': 'expirationPeriods', 'classes': ['b-make-post__expire__label', 'button.b-make-post__expire__label'], 'text': [], 'id': []}, {'name': 'expirationSave', 'classes': ['g-btn.m-rounded', 'button.g-btn.m-rounded', 'button.g-btn.m-rounded.js-make-post-poll-duration-save', 'g-btn.m-rounded.js-make-post-poll-duration-save'], 'text': ['Save'], 'id': []}, {'name': 'expirationCancel', 'classes': ['g-btn.m-rounded.m-border', 'button.g-btn.m-rounded.m-border'], 'text': ['Cancel'], 'id': []}, {'name': 'discountUserButton', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded'], 'text': ['Apply'], 'id': []}, {'name': 'discountUsers', 'classes': ['b-users__item.m-fans'], 'text': ['Save'], 'id': []}, {'name': 'listSave', 'classes': ['g-btn.m-rounded.m-sm-width'], 'text': ['Add'], 'id': []}, {'name': 'priceClick', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded'], 'text': ['Save'], 'id': []}, {'name': 'priceEnter', 'classes': ['form-control.g-input', '.form-control.g-input', 'input.form-control.g-input', 'input.form-control.g-input'], 'text': ['Free'], 'id': []}, {'name': 'scheduleAdd', 'classes': ['g-btn.m-flat.b-make-post__datepicker-btn', 'button.g-btn.m-flat.b-make-post__datepicker-btn'], 'text': [], 'id': []}, {'name': 'scheduleNextMonth', 'classes': ['vdatetime-calendar__navigation--next', 'button.vdatetime-calendar__navigation--next'], 'text': [], 'id': []}, {'name': 'scheduleDate', 'classes': ['vdatetime-calendar__current--month', 'div.vdatetime-calendar__navigation > div.vdatetime-calendar__current--month', '.vdatetime-calendar__current--month', 'div.vdatetime-calendar__current--month', 'vdatetime-popup__date', 'div.vdatetime-popup__date'], 'text': [], 'id': []}, {'name': 'scheduleMinutes', 'classes': ['vdatetime-time-picker__item', 'button.vdatetime-time-picker__item', 'vdatetime-time-picker__item.vdatetime-time-picker__item--selected'], 'text': [], 'id': []}, {'name': 'scheduleHours', 'classes': ['vdatetime-time-picker__item.vdatetime-time-picker__item', 'button.vdatetime-time-picker__item.vdatetime-time-picker__item'], 'text': [], 'id': []}, {'name': 'scheduleDays', 'classes': ['vdatetime-calendar__month__day', 'button.vdatetime-calendar__month__day'], 'text': [], 'id': []}, {'name': 'scheduleNext', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-transparent-bg.m-no-uppercase', 'g-btn.m-rounded', 'button.g-btn.m-rounded'], 'text': ['Next'], 'id': []}, {'name': 'scheduleSave', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded', 'button.g-btn.m-rounded'], 'text': ['Save'], 'id': []}, {'name': 'scheduleCancel', 'classes': ['g-btn.m-transparent-bg', 'custom-datepicker-button-cancel', 'button.g-btn.m-rounded'], 'text': ['Cancel'], 'id': []}, {'name': 'scheduleAMPM', 'classes': ['vdatetime-time-picker__item.vdatetime-time-picker__item--selected'], 'text': [], 'id': []}, {'name': 'messageText', 'classes': ['form-control.b-make-post__text-input', '.form-control.b-chat__message-input'], 'text': [], 'id': []}, {'name': 'uploadImageMessage', 'classes': ['g-btn.m-rounded.b-chat__btn-submit'], 'text': [], 'id': ['fileupload_photo']}, {'name': 'errorUpload', 'classes': ['g-btn.m-transparent-bg', 'g-btn.m-rounded.m-border', 'button.g-btn.m-rounded.m-border'], 'text': ['Close'], 'id': []}, {'name': 'messagesAll', 'classes': ['b-chat__message__text'], 'text': [], 'id': []}, {'name': 'messagesFrom', 'classes': ['m-from-me', 'b-chat__message.m-from-me'], 'text': [], 'id': []}, {'name': 'usersUsernames', 'classes': ['g-user-username'], 'text': [], 'id': []}, {'name': 'usersUsers', 'classes': ['g-user-name__wrapper', 'b-username'], 'text': [], 'id': ['profileUrl']}, {'name': 'usersStarteds', 'classes': ['b-fans__item__list__item'], 'text': [], 'id': []}, {'name': 'usersIds', 'classes': ['a.g-btn.m-rounded.m-border.m-sm', 'a.g-button.m-rounded.m-border.m-profile.m-with-icon.m-message-btn'], 'text': [], 'id': []}, {'name': 'usersCount', 'classes': ['l-sidebar__user-data__item__count', 'b-tabs__nav__item.m-current'], 'text': [], 'id': []}, {'name': 'followingCount', 'classes': ['b-tabs__nav__item.m-current'], 'text': [], 'id': []}, {'name': 'discountUserButtons', 'classes': ['g-btn.m-rounded.m-border.m-sm'], 'text': [], 'id': []}, {'name': 'newMessage', 'classes': ['g-page__header__btn.b-chats__btn-new.has-tooltip'], 'text': [], 'href': ['/my/chats/send'], 'id': []}, {'name': 'messageAll', 'classes': ['g-btn__text'], 'text': ['Fans'], 'id': []}, {'name': 'messageRecent', 'classes': ['g-btn__text'], 'text': ['Recent'], 'id': []}, {'name': 'messageFavorite', 'classes': ['g-btn__text'], 'text': ['FAVORITE'], 'id': []}, {'name': 'messageRenewers', 'classes': ['g-btn__text'], 'text': ['Renew'], 'id': []}, {'name': 'promotionalTrial', 'classes': ['g-btn.m-rounded.m-lg.m-flex.m-with-icon.m-uppercase'], 'text': ['create new free trial link'], 'id': []}, {'name': 'promotionalCampaignAmount', 'classes': ['form-control.b-fans__trial__select'], 'text': ['promo-campaign-discount-percent-select'], 'id': []}, {'name': 'promotionalCampaign', 'classes': ['g-btn.m-rounded.m-block.m-uppercase'], 'text': [' Add a promotional campaign '], 'id': []}, {'name': 'promotionalTrialShow', 'classes': ['g-box__header.m-icon-title.m-gray-bg'], 'text': ['Free trial links'], 'id': []}, {'name': 'promotionalCopy', 'classes': ['g-btn.m-rounded.m-uppercase'], 'text': ['Copy link to profile'], 'id': []}, {'name': 'promotionalTrialCount', 'classes': ['form-control.b-fans__trial__select'], 'text': [], 'id': ['trial-count-select']}, {'name': 'promotionalTrialExpiration', 'classes': [], 'text': [], 'id': ['trial-expiration-select']}, {'name': 'promotionalTrialMessage', 'classes': ['form-control.g-input'], 'text': ['Type a message to users (optional)'], 'id': []}, {'name': 'promotionalTrialDuration', 'classes': [], 'text': [], 'id': ['promo-campaign-period-select']}, {'name': 'promotionalTrialConfirm', 'classes': ['g-btn.m-rounded'], 'text': ['Create'], 'id': []}, {'name': 'promotionalTrialCancel', 'classes': ['g-btn.m-rounded.m-border'], 'text': ['Cancel'], 'id': []}, {'name': 'promotionalTrialLink', 'classes': ['g.btn.m-rounded'], 'text': ['Copy trial link'], 'id': []}, {'name': 'userOptions', 'classes': ['btn.dropdown-toggle.btn-link'], 'text': [], 'id': ['__BVID__56__BV_toggle_']}, {'name': 'discountUser', 'classes': ['button'], 'text': ['Give user a discount'], 'id': []}, {'name': 'promotionalTrialExpirationUser', 'classes': [], 'text': [], 'id': ['trial-expire-select']}, {'name': 'promotionalTrialDurationUser', 'classes': [], 'text': [], 'id': ['trial-period-select']}, {'name': 'promotionalTrialMessageUser', 'classes': ['form-control.g-input'], 'text': [], 'id': []}, {'name': 'promotionalTrialApply', 'classes': ['g-btn.m-rounded'], 'text': ['Apply'], 'id': []}, {'name': 'promotionalTrialCancel', 'classes': ['g-btn.m-rounded.m-border'], 'text': ['Cancel'], 'id': []}, {'name': 'numberOfPosts', 'classes': ['b-profile__actions__count'], 'text': [], 'id': []}] |
def buildUploadPypi():
info = 'pip install build twine\n' \
'pip install --upgrade build twine\n' \
'python -m build\n' \
'twine upload --skip-existing --repository pypi dist/*'
print(info)
return info
| def build_upload_pypi():
info = 'pip install build twine\npip install --upgrade build twine\npython -m build\ntwine upload --skip-existing --repository pypi dist/*'
print(info)
return info |
i = lambda x: x
k = lambda x: lambda f: x
| i = lambda x: x
k = lambda x: lambda f: x |
#1^3-3^3-5^3....
n=int(input("Enter number of digits: "))
sum=0
temp=1
for x in range(1,n+1):
temp=temp*pow(-1,x+1)
if x%2==1:
sum=sum+x*x*x*temp
print(x*x*x,end='-')
print('=',sum)
| n = int(input('Enter number of digits: '))
sum = 0
temp = 1
for x in range(1, n + 1):
temp = temp * pow(-1, x + 1)
if x % 2 == 1:
sum = sum + x * x * x * temp
print(x * x * x, end='-')
print('=', sum) |
__author__ = 'Kalyan'
notes = '''
For this assignment, you have to define a few basic classes to get an idea of defining your own types.
'''
# For this problem, define a iterator class called Repeater which can be used to generate an infinite
# sequence of this form: 1, 2, -2, 3, -3, 3, etc. (for each number N is repeated N times with opposing signs).
# Use the class instance state to keep track of the iteration state. Do not allocate large amounts of memory :)!
# Refer to: https://docs.python.org/2/library/stdtypes.html#iterator-types
def gen_num(n):
result=0
j=1
count=0
flag =True
while(flag):
sign=0
for i in range(j):
count+=1
sign+=1
if sign%2==0:
result= -1*j
else:
result = j
if (count ==n):
flag =False
break
j+=1
return result
class Repeater(object):
def __init__(self):
self.index=1
def __iter__(self):
return self
def next(self):
self.index+=1
return gen_num(self.index-1)
# get the sum of next n numbers returned by the repeater
def get_sum(r, n):
sum = 0
count = 0
# we can write code like this as r is an iterator
for value in r:
sum += value;
count += 1
if count == n:
break
return sum
def test_repeater_basic():
r = Repeater()
assert hasattr(r, "__init__")
assert hasattr(r, "__iter__")
assert hasattr(r, "next")
def test_repeater_function():
assert 1 == get_sum(Repeater(), 1)
assert 3 == get_sum(Repeater(), 2)
r1 = Repeater()
r2 = Repeater()
# state must be remembered across calls
assert 1 == get_sum(r1, 1)
assert 2 == get_sum(r1, 1)
assert -2 == get_sum(r1, 1)
assert 4 == get_sum(r2, 6)
assert 3 == get_sum(r1, 3)
assert 0 == get_sum(r2, 4)
assert 0 == get_sum(r1, 4)
# note that this should not result in any large lists or memory anywhere!
# uncomment this for testing, but comment it out again before submitting as it takes sometime to run.
# assert 501263 == get_sum(Repeater(), 10**6)
# assert 4999696 == get_sum(Repeater(), 10**7)
| __author__ = 'Kalyan'
notes = '\nFor this assignment, you have to define a few basic classes to get an idea of defining your own types.\n'
def gen_num(n):
result = 0
j = 1
count = 0
flag = True
while flag:
sign = 0
for i in range(j):
count += 1
sign += 1
if sign % 2 == 0:
result = -1 * j
else:
result = j
if count == n:
flag = False
break
j += 1
return result
class Repeater(object):
def __init__(self):
self.index = 1
def __iter__(self):
return self
def next(self):
self.index += 1
return gen_num(self.index - 1)
def get_sum(r, n):
sum = 0
count = 0
for value in r:
sum += value
count += 1
if count == n:
break
return sum
def test_repeater_basic():
r = repeater()
assert hasattr(r, '__init__')
assert hasattr(r, '__iter__')
assert hasattr(r, 'next')
def test_repeater_function():
assert 1 == get_sum(repeater(), 1)
assert 3 == get_sum(repeater(), 2)
r1 = repeater()
r2 = repeater()
assert 1 == get_sum(r1, 1)
assert 2 == get_sum(r1, 1)
assert -2 == get_sum(r1, 1)
assert 4 == get_sum(r2, 6)
assert 3 == get_sum(r1, 3)
assert 0 == get_sum(r2, 4)
assert 0 == get_sum(r1, 4) |
def maxab(a, b):
if (a>=b):
return a;
else:
return b;
print(maxab(3,6))
print(maxab(8,4))
print(maxab(5,5)) | def maxab(a, b):
if a >= b:
return a
else:
return b
print(maxab(3, 6))
print(maxab(8, 4))
print(maxab(5, 5)) |
def modulus(num, div):
if (type(num) != int) or (type(div) != int):
raise TypeError
return num % div
print(modulus(True, 1)) | def modulus(num, div):
if type(num) != int or type(div) != int:
raise TypeError
return num % div
print(modulus(True, 1)) |
#
# PySNMP MIB module RADLAN-SNMP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-SNMP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:49:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint")
InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress")
rnd, = mibBuilder.importSymbols("RADLAN-MIB", "rnd")
snmpTargetAddrExtEntry, = mibBuilder.importSymbols("SNMP-COMMUNITY-MIB", "snmpTargetAddrExtEntry")
SnmpEngineID, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpEngineID")
usmUserEntry, = mibBuilder.importSymbols("SNMP-USER-BASED-SM-MIB", "usmUserEntry")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, ModuleIdentity, TimeTicks, NotificationType, Gauge32, MibIdentifier, IpAddress, Bits, Counter32, ObjectIdentity, Unsigned32, iso, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "ModuleIdentity", "TimeTicks", "NotificationType", "Gauge32", "MibIdentifier", "IpAddress", "Bits", "Counter32", "ObjectIdentity", "Unsigned32", "iso", "Counter64")
RowStatus, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TruthValue", "DisplayString", "TextualConvention")
rlSNMP = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 98))
rlSNMP.setRevisions(('2011-02-11 00:00', '2010-02-15 00:00', '2007-09-10 00:00', '2006-06-06 00:00', '1904-10-20 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rlSNMP.setRevisionsDescriptions(('Added support in usmUserTable augment for authentication and privacy passwords saving.', '1. Changed SYNTAX of rlSnmpEngineID from OCTET STRING (SIZE(5..32))to SnmpEngineID. 2. Added rlInet2EngineIdTable.', 'Added rlEvents MIB.', 'Added rlSNMPenable object.', 'Initial version of this MIB.',))
if mibBuilder.loadTexts: rlSNMP.setLastUpdated('200709100000Z')
if mibBuilder.loadTexts: rlSNMP.setOrganization('Radlan Computer Communications Ltd.')
if mibBuilder.loadTexts: rlSNMP.setContactInfo('radlan.com')
if mibBuilder.loadTexts: rlSNMP.setDescription('Private MIB module for SNMP support in Radlan devices.')
rlSNMPv3 = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 98, 1))
rlTargetParamsTestingLevel = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("low", 1), ("high", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlTargetParamsTestingLevel.setStatus('current')
if mibBuilder.loadTexts: rlTargetParamsTestingLevel.setDescription('The level of the tests done when configuring an entry in the snmpTargetParamsTable.')
rlNotifyFilterTestingLevel = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("low", 1), ("high", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlNotifyFilterTestingLevel.setStatus('current')
if mibBuilder.loadTexts: rlNotifyFilterTestingLevel.setDescription('The level of the tests done when configuring an entry in the snmpNotifyFilterTable.')
rlSnmpEngineID = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 3), SnmpEngineID().clone(hexValue="0000000001")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlSnmpEngineID.setStatus('current')
if mibBuilder.loadTexts: rlSnmpEngineID.setDescription("A variable for setting the router's local engineID value. Setting this variable will effect the value of snmpEngineID. Setting this variable to the value '00 00 00 00 00'H will cause snmpEngineID to get an automatically created value based on the device basic MAC address. This method of setting the agent's engineID is recommended for stand-alone systems. Setting this variable to any other (valid) value will set snmpEngineID to this value. Setting this variable to all 'ff'H or all zeros is not allowed, with the exception of the value '00 00 00 00 00'H. The last method is recommended for stackable system, in order for the engineID to be unique within an administrative domain. Setting this value (to a value different then the default value) is required before configuring users data in usmUserTable and vacmSecurityToGroupTable. Changing the value of this variable has 2 side-effects: - All user data will be deleted, including: all usmUserTable configured entries and vacmSecurityToGroupTable entries where vacmSecurityModel = 3. - All snmpCommunityTable entries with snmpCommunityContextEngineID value equal to old rlSnmpEngineID value, will be updated with the new rlSnmpEngineID value.")
rlSNMPv3IpAddrToIndexTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 1, 4), )
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexTable.setStatus('current')
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexTable.setDescription('This table maps ip addresses to indices. The output index is used as a component in some SNMPv3 tables fields (for example: snmpTargetAddrName). Ipv4 addresses are not supported by this table. Note: in getNext operations on this table, only mappings which are in use in snmpTargetAddrTable (using rlTargetAddrMagicUsedInIndex) will be retreived. The mapped index does not include delimiters which are forbidden in SNMPv3 tag values (and thus can be used in tag fields). ')
rlSNMPv3IpAddrToIndexEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlSNMPv3IpAddrToIndexAddrType"), (0, "RADLAN-SNMP-MIB", "rlSNMPv3IpAddrToIndexAddr"))
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexEntry.setStatus('current')
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexEntry.setDescription(' The row definition for this table.')
rlSNMPv3IpAddrToIndexAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 1), InetAddressType())
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexAddrType.setStatus('current')
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexAddrType.setDescription('Type of NMS IP address.')
rlSNMPv3IpAddrToIndexAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 2), InetAddress())
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexAddr.setStatus('current')
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexAddr.setDescription('NMS IP address.')
rlSNMPv3IpAddrToIndexMappedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexMappedIndex.setStatus('current')
if mibBuilder.loadTexts: rlSNMPv3IpAddrToIndexMappedIndex.setDescription('The index mapped for this row ip address.')
rlTargetAddrExtTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 1, 5), )
if mibBuilder.loadTexts: rlTargetAddrExtTable.setStatus('current')
if mibBuilder.loadTexts: rlTargetAddrExtTable.setDescription('This table extends rlTargetAddrExtEntry. ')
rlTargetAddrExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 1, 5, 1), )
snmpTargetAddrExtEntry.registerAugmentions(("RADLAN-SNMP-MIB", "rlTargetAddrExtEntry"))
rlTargetAddrExtEntry.setIndexNames(*snmpTargetAddrExtEntry.getIndexNames())
if mibBuilder.loadTexts: rlTargetAddrExtEntry.setStatus('current')
if mibBuilder.loadTexts: rlTargetAddrExtEntry.setDescription(' The row definition for this table.')
rlTargetAddrMagicUsedInIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(4, 4), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlTargetAddrMagicUsedInIndex.setStatus('current')
if mibBuilder.loadTexts: rlTargetAddrMagicUsedInIndex.setDescription('Setting this field to a 4 octets length value means that ip mapping (using rlSNMPv3IpAddrToIndexTable) is used for this row. If such a mapping is not used, a 0-length octet string value should be used for this field (this is also the default). This field value is determined only once, upon creation of an entry in the snmpTargetAddrTable. A change in its value while updating an existing entry is ignored. Prior to creating a snmpTargetAddrTable entry with a 4 octets length value for this field, the rlSNMPv3IpAddrToIndexTable must be used in order to retrieve this value.')
rlInet2EngineIdTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 1, 6), )
if mibBuilder.loadTexts: rlInet2EngineIdTable.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdTable.setDescription('This table maps inet addresses to SNMPv3 engine identifiers. ')
rlInet2EngineIdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlInet2EngineIdAddressType"), (0, "RADLAN-SNMP-MIB", "rlInet2EngineIdAddress"))
if mibBuilder.loadTexts: rlInet2EngineIdEntry.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdEntry.setDescription(' The row definition for this table.')
rlInet2EngineIdAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 1), InetAddressType())
if mibBuilder.loadTexts: rlInet2EngineIdAddressType.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdAddressType.setDescription('Inet address type of the mapped inet address.')
rlInet2EngineIdAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 2), InetAddress())
if mibBuilder.loadTexts: rlInet2EngineIdAddress.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdAddress.setDescription('Mapped inet address.')
rlInet2EngineIdEngineId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 3), SnmpEngineID()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlInet2EngineIdEngineId.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdEngineId.setDescription('The SNMPv3 engine id to which the address denoted by rlInet2EngineIdAddressType and rlInet2EngineIdAddress is mapped.')
rlInet2EngineIdStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 4), RowStatus().clone('createAndGo')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlInet2EngineIdStatus.setStatus('current')
if mibBuilder.loadTexts: rlInet2EngineIdStatus.setDescription('The management control for this table.')
rlSNMPDomains = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 98, 2))
rlSnmpUDPMridDomain = ObjectIdentity((1, 3, 6, 1, 4, 1, 89, 98, 2, 1))
if mibBuilder.loadTexts: rlSnmpUDPMridDomain.setStatus('current')
if mibBuilder.loadTexts: rlSnmpUDPMridDomain.setDescription('The SNMPv2 over UDP transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPMridAddress.')
class RlSnmpUDPMridAddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS and the MRID through which it is connected in order to access the agent: octets contents encoding 1-4 IP-address network-byte order 5-6 UDP-port network-byte order 7-8 MRID network-byte order '
status = 'current'
displayHint = '1d.1d.1d.1d/2d/2d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8)
fixedLength = 8
rlSnmpUdpIpv6MridDomain = ObjectIdentity((1, 3, 6, 1, 4, 1, 89, 98, 2, 2))
if mibBuilder.loadTexts: rlSnmpUdpIpv6MridDomain.setStatus('current')
if mibBuilder.loadTexts: rlSnmpUdpIpv6MridDomain.setDescription('The SNMPv2 over UDP over IPv6 transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPIpv6MridAddress for global IPv6 addresses.')
class RlSnmpUDPIpv6MridAddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS and the MRID through which it is connected in order to access the agent: octets contents encoding 1-16 IPv6 address network-byte order 17-18 UDP-port network-byte order 19-20 MRID network-byte order '
status = 'current'
displayHint = '0a[2x:2x:2x:2x:2x:2x:2x:2x]0a:2d:2d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(20, 20)
fixedLength = 20
rlSnmpUdpIpv6zMridDomain = ObjectIdentity((1, 3, 6, 1, 4, 1, 89, 98, 2, 3))
if mibBuilder.loadTexts: rlSnmpUdpIpv6zMridDomain.setStatus('current')
if mibBuilder.loadTexts: rlSnmpUdpIpv6zMridDomain.setDescription('The SNMPv2 over UDP over IPv6 transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPIpv6zMridAddress for scoped IPv6 addresses with a zone index.')
class RlSnmpUDPIpv6zMridAddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS (consisting of an IPv6 address, a zone index and a port number) and the MRID through which it is connected in order to access the agent: octets contents encoding 1-16 IPv6 address network-byte order 17-20 zone index network-byte order 21-22 UDP-port network-byte order 23-24 MRID network-byte order '
status = 'current'
displayHint = '0a[2x:2x:2x:2x:2x:2x:2x:2x%4d]0a:2d'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(24, 24)
fixedLength = 24
rlSnmpRequestMridTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 3), )
if mibBuilder.loadTexts: rlSnmpRequestMridTable.setStatus('current')
if mibBuilder.loadTexts: rlSnmpRequestMridTable.setDescription('A table for determining the Mrid for the current SNMP request.')
rlSnmpRequestMridEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 3, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlSnmpRequestManagedMrid"))
if mibBuilder.loadTexts: rlSnmpRequestMridEntry.setStatus('current')
if mibBuilder.loadTexts: rlSnmpRequestMridEntry.setDescription(' The row definition for this table.')
rlSnmpRequestManagedMrid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlSnmpRequestManagedMrid.setStatus('current')
if mibBuilder.loadTexts: rlSnmpRequestManagedMrid.setDescription('The router instance the NMS wants to manage in the current SNMP request. The value of this object, when attaching a variable instance of the rlSnmpRequestManagedMridTable to an SNMP request, will determine the managed Mrid for this request. It is important to mention that the variable insance must be attached as the first variable in the PDU in order to influence all variables.')
rlSnmpRequestMridStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlSnmpRequestMridStatus.setStatus('current')
if mibBuilder.loadTexts: rlSnmpRequestMridStatus.setDescription('The status of this entry.')
rlSNMPenable = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlSNMPenable.setStatus('current')
if mibBuilder.loadTexts: rlSNMPenable.setDescription('Enables or disables SNMP.')
rndCommunityInetTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 5), )
if mibBuilder.loadTexts: rndCommunityInetTable.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetTable.setDescription('The community table of the agent')
rndCommunityInetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 5, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rndCommunityInetMngStationAddrType"), (0, "RADLAN-SNMP-MIB", "rndCommunityInetMngStationAddr"), (1, "RADLAN-SNMP-MIB", "rndCommunityInetString"))
if mibBuilder.loadTexts: rndCommunityInetEntry.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetEntry.setDescription(' The row definition for this table.')
rndCommunityInetMngStationAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 1), InetAddressType())
if mibBuilder.loadTexts: rndCommunityInetMngStationAddrType.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetMngStationAddrType.setDescription('Address type of the management station that will be allowed to communicate with the agent IP address')
rndCommunityInetMngStationAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 2), InetAddress())
if mibBuilder.loadTexts: rndCommunityInetMngStationAddr.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetMngStationAddr.setDescription('Address of the management station that will be allowed to communicate with the agent IP address')
rndCommunityInetString = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 20)))
if mibBuilder.loadTexts: rndCommunityInetString.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetString.setDescription('The community string with which the management station will communicate with the agent')
rndCommunityInetAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("readOnly", 1), ("readWrite", 2), ("super", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetAccess.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetAccess.setDescription('The allowed access to this management station')
rndCommunityInetTrapsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("snmpV1", 1), ("snmpV2", 2), ("snmpV3", 3), ("trapsDisable", 4)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetTrapsEnable.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetTrapsEnable.setDescription('Should the agent send traps to the management station, and what version is required')
rndCommunityInetStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("invalid", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetStatus.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetStatus.setDescription('The status of this entry. If the status is invalid the community entry will be deleted')
rndCommunityInetPortSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetPortSecurity.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetPortSecurity.setDescription('If enabled the device will only receive SNMP messages from the port, through which this NMS is reachable from the device.')
rndCommunityInetOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetOwner.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetOwner.setDescription('The owner of this community')
rndCommunityInetTrapDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(162)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetTrapDestPort.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetTrapDestPort.setDescription('The transport protocol (usually UDP) port to which traps to the management station represebted by this entry will be sent. The default is the well-known IANA assigned port number for SNMP traps. This object is relevant only if rndCommunityInetTrapsEnable has a value different from trapsDisable.')
rndCommunityInetAltAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 10), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetAltAddrType.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetAltAddrType.setDescription('For testing purposes')
rndCommunityInetAltAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 11), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rndCommunityInetAltAddr.setStatus('current')
if mibBuilder.loadTexts: rndCommunityInetAltAddr.setDescription('For testing purposes')
rlMridInetTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 6), )
if mibBuilder.loadTexts: rlMridInetTable.setStatus('current')
if mibBuilder.loadTexts: rlMridInetTable.setDescription('The MRID related configurations table of the agent')
rlMridInetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 6, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rndCommunityInetMngStationAddrType"), (0, "RADLAN-SNMP-MIB", "rndCommunityInetMngStationAddr"), (1, "RADLAN-SNMP-MIB", "rndCommunityInetString"))
if mibBuilder.loadTexts: rlMridInetEntry.setStatus('current')
if mibBuilder.loadTexts: rlMridInetEntry.setDescription(' The row definition for this table.')
rlMridInetConnection = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 6, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlMridInetConnection.setStatus('current')
if mibBuilder.loadTexts: rlMridInetConnection.setDescription('The router instance connecting the NMS who accessed the agent through the community table entry corresponding to the keys of this entry.')
rlInetManagedMrid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 6, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlInetManagedMrid.setStatus('current')
if mibBuilder.loadTexts: rlInetManagedMrid.setDescription('The router instance currently managed by the NMS who accessed the agent through the community table entry corresponding to the keys of this entry ')
rlEvents = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 98, 7))
rlEventsPollerId = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlEventsPollerId.setStatus('current')
if mibBuilder.loadTexts: rlEventsPollerId.setDescription(' The rlEventsPollerId is the 1st key in all the rlEvents tables. Each poller must first GET from this object his Id. The agent will ensure uniqueness.')
rlEventsDefaultPollingInterval = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 2), TimeTicks().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlEventsDefaultPollingInterval.setStatus('current')
if mibBuilder.loadTexts: rlEventsDefaultPollingInterval.setDescription('The default polling time. Will be used to detrermined whether the events configured by a poller in rlEventsTable can be destroyed, in absence of an entry for this poller in the rlEventsPollingControlTable.')
rlEventsDeleteEvents = MibScalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlEventsDeleteEvents.setStatus('current')
if mibBuilder.loadTexts: rlEventsDeleteEvents.setDescription(" SETting a id of an active poller will cause all the rows of this poller in the rlEventsTable to be destroyed. This is equivalent to SETting rlEventsStatus of each row of this poller to 'destroy'. GET operation on this variable is meaningless, and the value 0 will be returned in this case (actual pollers start from 1).")
rlEventsMaskTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 7, 4), )
if mibBuilder.loadTexts: rlEventsMaskTable.setStatus('current')
if mibBuilder.loadTexts: rlEventsMaskTable.setDescription('The table showing the events mask for each client.')
rlEventsMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlEventsMaskPollerId"))
if mibBuilder.loadTexts: rlEventsMaskEntry.setStatus('current')
if mibBuilder.loadTexts: rlEventsMaskEntry.setDescription(' The row definition for this table.')
rlEventsMaskPollerId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1, 1), Integer32())
if mibBuilder.loadTexts: rlEventsMaskPollerId.setStatus('current')
if mibBuilder.loadTexts: rlEventsMaskPollerId.setDescription('The poller id whose events are shown in this table ')
rlEventsMaskMask = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlEventsMaskMask.setStatus('current')
if mibBuilder.loadTexts: rlEventsMaskMask.setDescription('The semantics of the rlEventsMask is an array of timestamps (each 4 octets containing one time stamp). Each timestamp is in TimeTicks units encoded in network order. Thus the mask can contain up to 40 timestamps. If a place in the array is empty it will contain 0. Each timestamp shows the time of the last occurrence of the event whose rlEventIndexKey in the rlEventsTable for this client id is the same as its index in the array. Each for bytes of the rlEventsMask will contain the timestamp in TimeTicks units encoded in network order of the last time the event ')
rlEventsTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 7, 5), )
if mibBuilder.loadTexts: rlEventsTable.setStatus('current')
if mibBuilder.loadTexts: rlEventsTable.setDescription('The table relating the events recorded to the indices in the rlEventsMask.')
rlEventsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlEventsPoller"), (1, "RADLAN-SNMP-MIB", "rlEventId"))
if mibBuilder.loadTexts: rlEventsEntry.setStatus('current')
if mibBuilder.loadTexts: rlEventsEntry.setDescription(' The row definition for this table.')
rlEventsPoller = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 1), Integer32())
if mibBuilder.loadTexts: rlEventsPoller.setStatus('current')
if mibBuilder.loadTexts: rlEventsPoller.setDescription('The poller id whose event definitions are shown in this table.')
rlEventId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 2), ObjectIdentifier())
if mibBuilder.loadTexts: rlEventId.setStatus('current')
if mibBuilder.loadTexts: rlEventId.setDescription('The event id of the polled event. This is the notification object identifier (in case of a SNMPV2 notification) or the translation to SNMPv2 notation of an SNMPv1 trap according to the RFC 3584 (SNMP versions coexistence).')
rlEventIndexInMask = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlEventIndexInMask.setStatus('current')
if mibBuilder.loadTexts: rlEventIndexInMask.setDescription('Index in the rlEventsMaskMask of this poller id that has been allocated for this event by the device.')
rlEventsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlEventsStatus.setStatus('current')
if mibBuilder.loadTexts: rlEventsStatus.setDescription('RowStatus for this table. Note that the device may refuse for resource shortage reasons to honour a create request for this poller even if apparently there still is room in his rlEventsMaskMask (i.e. the poller has requested monitoring of less than 40 events). ')
rlEventsPollingControlTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 7, 6), )
if mibBuilder.loadTexts: rlEventsPollingControlTable.setStatus('current')
if mibBuilder.loadTexts: rlEventsPollingControlTable.setDescription('The polling control table for a poller. Currently contain only the polling interval.')
rlEventsPollingControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1), ).setIndexNames((0, "RADLAN-SNMP-MIB", "rlEventsPollingControlPollerId"))
if mibBuilder.loadTexts: rlEventsPollingControlEntry.setStatus('current')
if mibBuilder.loadTexts: rlEventsPollingControlEntry.setDescription(' The row definition for this table.')
rlEventsPollingControlPollerId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1, 1), Integer32())
if mibBuilder.loadTexts: rlEventsPollingControlPollerId.setStatus('current')
if mibBuilder.loadTexts: rlEventsPollingControlPollerId.setDescription('The poller id whose polling controls are shown in this table.')
rlEventsPollingControlPollingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1, 2), TimeTicks().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlEventsPollingControlPollingInterval.setStatus('current')
if mibBuilder.loadTexts: rlEventsPollingControlPollingInterval.setDescription('The desired polling interval for this poller. If the device has determined that the poller has not polled the device for 3 times this polling interval it may destroy all the data related to this poller in the rlevents database ')
rlUsmUserExtTable = MibTable((1, 3, 6, 1, 4, 1, 89, 98, 1, 8), )
if mibBuilder.loadTexts: rlUsmUserExtTable.setStatus('current')
if mibBuilder.loadTexts: rlUsmUserExtTable.setDescription('This table extends usmUserEntry. ')
rlUsmUserExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1), )
usmUserEntry.registerAugmentions(("RADLAN-SNMP-MIB", "rlUsmUserExtEntry"))
rlUsmUserExtEntry.setIndexNames(*usmUserEntry.getIndexNames())
if mibBuilder.loadTexts: rlUsmUserExtEntry.setStatus('current')
if mibBuilder.loadTexts: rlUsmUserExtEntry.setDescription(' The row definition for this table.')
rlUsmUserAuthPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlUsmUserAuthPassword.setStatus('current')
if mibBuilder.loadTexts: rlUsmUserAuthPassword.setDescription('Authentication password. Setting the field to a non zero-length value will convert the given password to a localized authentication key, appropriate to the corresponding usmUserAuthProtocol field. The key is localized using the appropriate usmUserEngineID field, according to the algorithm specified in RFC 2574. This field may be set to a non zero-length value if the following conditions hold: 1) This is the creation of the entry. 2) The value of the corresponding usmUserCloneFrom field is zeroDotZero. Setting the field in any other case will cause no effect.')
rlUsmUserPrivPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rlUsmUserPrivPassword.setStatus('current')
if mibBuilder.loadTexts: rlUsmUserPrivPassword.setDescription('Privacy password. Setting the field to a non zero-length value will convert the given password to a localized privacy key, appropriate to the corresponding usmUserAuthProtocol field. The key is localized using the appropriate usmUserEngineID field, according to the algorithm specified in RFC 2574. This field may be set to a non zero-length value if the following conditions hold: 1) This is the creation of the entry. 2) The value of the corresponding usmUserCloneFrom field is zeroDotZero. Setting the field in any other case will cause no effect.')
mibBuilder.exportSymbols("RADLAN-SNMP-MIB", rlInet2EngineIdTable=rlInet2EngineIdTable, rlEventsPollingControlPollingInterval=rlEventsPollingControlPollingInterval, rlSnmpRequestManagedMrid=rlSnmpRequestManagedMrid, rlInet2EngineIdStatus=rlInet2EngineIdStatus, RlSnmpUDPIpv6MridAddress=RlSnmpUDPIpv6MridAddress, rlSnmpRequestMridTable=rlSnmpRequestMridTable, rlTargetParamsTestingLevel=rlTargetParamsTestingLevel, rlEvents=rlEvents, rlSNMPv3IpAddrToIndexMappedIndex=rlSNMPv3IpAddrToIndexMappedIndex, rndCommunityInetMngStationAddrType=rndCommunityInetMngStationAddrType, rndCommunityInetTrapDestPort=rndCommunityInetTrapDestPort, rlEventsMaskPollerId=rlEventsMaskPollerId, rlEventsPoller=rlEventsPoller, rlSNMPv3IpAddrToIndexTable=rlSNMPv3IpAddrToIndexTable, rlMridInetConnection=rlMridInetConnection, rlSNMP=rlSNMP, rlSNMPv3IpAddrToIndexAddr=rlSNMPv3IpAddrToIndexAddr, rlEventsEntry=rlEventsEntry, RlSnmpUDPIpv6zMridAddress=RlSnmpUDPIpv6zMridAddress, rlTargetAddrMagicUsedInIndex=rlTargetAddrMagicUsedInIndex, rlSnmpRequestMridEntry=rlSnmpRequestMridEntry, rlSNMPv3IpAddrToIndexEntry=rlSNMPv3IpAddrToIndexEntry, rlEventsMaskEntry=rlEventsMaskEntry, rlMridInetTable=rlMridInetTable, rlSnmpUdpIpv6zMridDomain=rlSnmpUdpIpv6zMridDomain, PYSNMP_MODULE_ID=rlSNMP, rlSnmpRequestMridStatus=rlSnmpRequestMridStatus, rndCommunityInetString=rndCommunityInetString, rlSnmpUDPMridDomain=rlSnmpUDPMridDomain, rlInetManagedMrid=rlInetManagedMrid, rlEventIndexInMask=rlEventIndexInMask, rlEventsTable=rlEventsTable, rlUsmUserPrivPassword=rlUsmUserPrivPassword, rlEventsStatus=rlEventsStatus, rlSNMPDomains=rlSNMPDomains, rlEventsDeleteEvents=rlEventsDeleteEvents, rlInet2EngineIdAddress=rlInet2EngineIdAddress, rlInet2EngineIdEngineId=rlInet2EngineIdEngineId, rndCommunityInetAltAddr=rndCommunityInetAltAddr, rlNotifyFilterTestingLevel=rlNotifyFilterTestingLevel, rlInet2EngineIdEntry=rlInet2EngineIdEntry, rlSNMPv3=rlSNMPv3, rlEventsMaskMask=rlEventsMaskMask, rndCommunityInetEntry=rndCommunityInetEntry, rndCommunityInetTable=rndCommunityInetTable, rndCommunityInetMngStationAddr=rndCommunityInetMngStationAddr, rlSNMPenable=rlSNMPenable, rlMridInetEntry=rlMridInetEntry, rlEventsDefaultPollingInterval=rlEventsDefaultPollingInterval, rndCommunityInetOwner=rndCommunityInetOwner, rlEventsPollingControlPollerId=rlEventsPollingControlPollerId, rndCommunityInetAltAddrType=rndCommunityInetAltAddrType, rlEventsMaskTable=rlEventsMaskTable, rlUsmUserExtTable=rlUsmUserExtTable, rlSnmpEngineID=rlSnmpEngineID, rlTargetAddrExtEntry=rlTargetAddrExtEntry, rndCommunityInetStatus=rndCommunityInetStatus, rlUsmUserAuthPassword=rlUsmUserAuthPassword, rlEventsPollingControlTable=rlEventsPollingControlTable, rlUsmUserExtEntry=rlUsmUserExtEntry, rndCommunityInetTrapsEnable=rndCommunityInetTrapsEnable, rlTargetAddrExtTable=rlTargetAddrExtTable, rlSNMPv3IpAddrToIndexAddrType=rlSNMPv3IpAddrToIndexAddrType, RlSnmpUDPMridAddress=RlSnmpUDPMridAddress, rndCommunityInetAccess=rndCommunityInetAccess, rlEventId=rlEventId, rlInet2EngineIdAddressType=rlInet2EngineIdAddressType, rndCommunityInetPortSecurity=rndCommunityInetPortSecurity, rlEventsPollingControlEntry=rlEventsPollingControlEntry, rlSnmpUdpIpv6MridDomain=rlSnmpUdpIpv6MridDomain, rlEventsPollerId=rlEventsPollerId)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint')
(inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress')
(rnd,) = mibBuilder.importSymbols('RADLAN-MIB', 'rnd')
(snmp_target_addr_ext_entry,) = mibBuilder.importSymbols('SNMP-COMMUNITY-MIB', 'snmpTargetAddrExtEntry')
(snmp_engine_id,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpEngineID')
(usm_user_entry,) = mibBuilder.importSymbols('SNMP-USER-BASED-SM-MIB', 'usmUserEntry')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, module_identity, time_ticks, notification_type, gauge32, mib_identifier, ip_address, bits, counter32, object_identity, unsigned32, iso, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'ModuleIdentity', 'TimeTicks', 'NotificationType', 'Gauge32', 'MibIdentifier', 'IpAddress', 'Bits', 'Counter32', 'ObjectIdentity', 'Unsigned32', 'iso', 'Counter64')
(row_status, truth_value, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TruthValue', 'DisplayString', 'TextualConvention')
rl_snmp = module_identity((1, 3, 6, 1, 4, 1, 89, 98))
rlSNMP.setRevisions(('2011-02-11 00:00', '2010-02-15 00:00', '2007-09-10 00:00', '2006-06-06 00:00', '1904-10-20 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
rlSNMP.setRevisionsDescriptions(('Added support in usmUserTable augment for authentication and privacy passwords saving.', '1. Changed SYNTAX of rlSnmpEngineID from OCTET STRING (SIZE(5..32))to SnmpEngineID. 2. Added rlInet2EngineIdTable.', 'Added rlEvents MIB.', 'Added rlSNMPenable object.', 'Initial version of this MIB.'))
if mibBuilder.loadTexts:
rlSNMP.setLastUpdated('200709100000Z')
if mibBuilder.loadTexts:
rlSNMP.setOrganization('Radlan Computer Communications Ltd.')
if mibBuilder.loadTexts:
rlSNMP.setContactInfo('radlan.com')
if mibBuilder.loadTexts:
rlSNMP.setDescription('Private MIB module for SNMP support in Radlan devices.')
rl_snm_pv3 = mib_identifier((1, 3, 6, 1, 4, 1, 89, 98, 1))
rl_target_params_testing_level = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('low', 1), ('high', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlTargetParamsTestingLevel.setStatus('current')
if mibBuilder.loadTexts:
rlTargetParamsTestingLevel.setDescription('The level of the tests done when configuring an entry in the snmpTargetParamsTable.')
rl_notify_filter_testing_level = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('low', 1), ('high', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlNotifyFilterTestingLevel.setStatus('current')
if mibBuilder.loadTexts:
rlNotifyFilterTestingLevel.setDescription('The level of the tests done when configuring an entry in the snmpNotifyFilterTable.')
rl_snmp_engine_id = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 1, 3), snmp_engine_id().clone(hexValue='0000000001')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlSnmpEngineID.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpEngineID.setDescription("A variable for setting the router's local engineID value. Setting this variable will effect the value of snmpEngineID. Setting this variable to the value '00 00 00 00 00'H will cause snmpEngineID to get an automatically created value based on the device basic MAC address. This method of setting the agent's engineID is recommended for stand-alone systems. Setting this variable to any other (valid) value will set snmpEngineID to this value. Setting this variable to all 'ff'H or all zeros is not allowed, with the exception of the value '00 00 00 00 00'H. The last method is recommended for stackable system, in order for the engineID to be unique within an administrative domain. Setting this value (to a value different then the default value) is required before configuring users data in usmUserTable and vacmSecurityToGroupTable. Changing the value of this variable has 2 side-effects: - All user data will be deleted, including: all usmUserTable configured entries and vacmSecurityToGroupTable entries where vacmSecurityModel = 3. - All snmpCommunityTable entries with snmpCommunityContextEngineID value equal to old rlSnmpEngineID value, will be updated with the new rlSnmpEngineID value.")
rl_snm_pv3_ip_addr_to_index_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 1, 4))
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexTable.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexTable.setDescription('This table maps ip addresses to indices. The output index is used as a component in some SNMPv3 tables fields (for example: snmpTargetAddrName). Ipv4 addresses are not supported by this table. Note: in getNext operations on this table, only mappings which are in use in snmpTargetAddrTable (using rlTargetAddrMagicUsedInIndex) will be retreived. The mapped index does not include delimiters which are forbidden in SNMPv3 tag values (and thus can be used in tag fields). ')
rl_snm_pv3_ip_addr_to_index_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlSNMPv3IpAddrToIndexAddrType'), (0, 'RADLAN-SNMP-MIB', 'rlSNMPv3IpAddrToIndexAddr'))
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexEntry.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexEntry.setDescription(' The row definition for this table.')
rl_snm_pv3_ip_addr_to_index_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 1), inet_address_type())
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexAddrType.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexAddrType.setDescription('Type of NMS IP address.')
rl_snm_pv3_ip_addr_to_index_addr = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 2), inet_address())
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexAddr.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexAddr.setDescription('NMS IP address.')
rl_snm_pv3_ip_addr_to_index_mapped_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 4, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexMappedIndex.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPv3IpAddrToIndexMappedIndex.setDescription('The index mapped for this row ip address.')
rl_target_addr_ext_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 1, 5))
if mibBuilder.loadTexts:
rlTargetAddrExtTable.setStatus('current')
if mibBuilder.loadTexts:
rlTargetAddrExtTable.setDescription('This table extends rlTargetAddrExtEntry. ')
rl_target_addr_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 1, 5, 1))
snmpTargetAddrExtEntry.registerAugmentions(('RADLAN-SNMP-MIB', 'rlTargetAddrExtEntry'))
rlTargetAddrExtEntry.setIndexNames(*snmpTargetAddrExtEntry.getIndexNames())
if mibBuilder.loadTexts:
rlTargetAddrExtEntry.setStatus('current')
if mibBuilder.loadTexts:
rlTargetAddrExtEntry.setDescription(' The row definition for this table.')
rl_target_addr_magic_used_in_index = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(4, 4)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlTargetAddrMagicUsedInIndex.setStatus('current')
if mibBuilder.loadTexts:
rlTargetAddrMagicUsedInIndex.setDescription('Setting this field to a 4 octets length value means that ip mapping (using rlSNMPv3IpAddrToIndexTable) is used for this row. If such a mapping is not used, a 0-length octet string value should be used for this field (this is also the default). This field value is determined only once, upon creation of an entry in the snmpTargetAddrTable. A change in its value while updating an existing entry is ignored. Prior to creating a snmpTargetAddrTable entry with a 4 octets length value for this field, the rlSNMPv3IpAddrToIndexTable must be used in order to retrieve this value.')
rl_inet2_engine_id_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 1, 6))
if mibBuilder.loadTexts:
rlInet2EngineIdTable.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdTable.setDescription('This table maps inet addresses to SNMPv3 engine identifiers. ')
rl_inet2_engine_id_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlInet2EngineIdAddressType'), (0, 'RADLAN-SNMP-MIB', 'rlInet2EngineIdAddress'))
if mibBuilder.loadTexts:
rlInet2EngineIdEntry.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdEntry.setDescription(' The row definition for this table.')
rl_inet2_engine_id_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 1), inet_address_type())
if mibBuilder.loadTexts:
rlInet2EngineIdAddressType.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdAddressType.setDescription('Inet address type of the mapped inet address.')
rl_inet2_engine_id_address = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 2), inet_address())
if mibBuilder.loadTexts:
rlInet2EngineIdAddress.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdAddress.setDescription('Mapped inet address.')
rl_inet2_engine_id_engine_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 3), snmp_engine_id()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlInet2EngineIdEngineId.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdEngineId.setDescription('The SNMPv3 engine id to which the address denoted by rlInet2EngineIdAddressType and rlInet2EngineIdAddress is mapped.')
rl_inet2_engine_id_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 6, 1, 4), row_status().clone('createAndGo')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlInet2EngineIdStatus.setStatus('current')
if mibBuilder.loadTexts:
rlInet2EngineIdStatus.setDescription('The management control for this table.')
rl_snmp_domains = mib_identifier((1, 3, 6, 1, 4, 1, 89, 98, 2))
rl_snmp_udp_mrid_domain = object_identity((1, 3, 6, 1, 4, 1, 89, 98, 2, 1))
if mibBuilder.loadTexts:
rlSnmpUDPMridDomain.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpUDPMridDomain.setDescription('The SNMPv2 over UDP transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPMridAddress.')
class Rlsnmpudpmridaddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS and the MRID through which it is connected in order to access the agent: octets contents encoding 1-4 IP-address network-byte order 5-6 UDP-port network-byte order 7-8 MRID network-byte order '
status = 'current'
display_hint = '1d.1d.1d.1d/2d/2d'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8)
fixed_length = 8
rl_snmp_udp_ipv6_mrid_domain = object_identity((1, 3, 6, 1, 4, 1, 89, 98, 2, 2))
if mibBuilder.loadTexts:
rlSnmpUdpIpv6MridDomain.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpUdpIpv6MridDomain.setDescription('The SNMPv2 over UDP over IPv6 transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPIpv6MridAddress for global IPv6 addresses.')
class Rlsnmpudpipv6Mridaddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS and the MRID through which it is connected in order to access the agent: octets contents encoding 1-16 IPv6 address network-byte order 17-18 UDP-port network-byte order 19-20 MRID network-byte order '
status = 'current'
display_hint = '0a[2x:2x:2x:2x:2x:2x:2x:2x]0a:2d:2d'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(20, 20)
fixed_length = 20
rl_snmp_udp_ipv6z_mrid_domain = object_identity((1, 3, 6, 1, 4, 1, 89, 98, 2, 3))
if mibBuilder.loadTexts:
rlSnmpUdpIpv6zMridDomain.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpUdpIpv6zMridDomain.setDescription('The SNMPv2 over UDP over IPv6 transport domain, used when Multi-Instance Router is supported (more than one MIR instance exist). The corresponding transport address is of type RlSnmpUDPIpv6zMridAddress for scoped IPv6 addresses with a zone index.')
class Rlsnmpudpipv6Zmridaddress(TextualConvention, OctetString):
description = 'Represents the UDP address of NMS (consisting of an IPv6 address, a zone index and a port number) and the MRID through which it is connected in order to access the agent: octets contents encoding 1-16 IPv6 address network-byte order 17-20 zone index network-byte order 21-22 UDP-port network-byte order 23-24 MRID network-byte order '
status = 'current'
display_hint = '0a[2x:2x:2x:2x:2x:2x:2x:2x%4d]0a:2d'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(24, 24)
fixed_length = 24
rl_snmp_request_mrid_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 3))
if mibBuilder.loadTexts:
rlSnmpRequestMridTable.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpRequestMridTable.setDescription('A table for determining the Mrid for the current SNMP request.')
rl_snmp_request_mrid_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 3, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlSnmpRequestManagedMrid'))
if mibBuilder.loadTexts:
rlSnmpRequestMridEntry.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpRequestMridEntry.setDescription(' The row definition for this table.')
rl_snmp_request_managed_mrid = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlSnmpRequestManagedMrid.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpRequestManagedMrid.setDescription('The router instance the NMS wants to manage in the current SNMP request. The value of this object, when attaching a variable instance of the rlSnmpRequestManagedMridTable to an SNMP request, will determine the managed Mrid for this request. It is important to mention that the variable insance must be attached as the first variable in the PDU in order to influence all variables.')
rl_snmp_request_mrid_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlSnmpRequestMridStatus.setStatus('current')
if mibBuilder.loadTexts:
rlSnmpRequestMridStatus.setDescription('The status of this entry.')
rl_snm_penable = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlSNMPenable.setStatus('current')
if mibBuilder.loadTexts:
rlSNMPenable.setDescription('Enables or disables SNMP.')
rnd_community_inet_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 5))
if mibBuilder.loadTexts:
rndCommunityInetTable.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetTable.setDescription('The community table of the agent')
rnd_community_inet_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 5, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rndCommunityInetMngStationAddrType'), (0, 'RADLAN-SNMP-MIB', 'rndCommunityInetMngStationAddr'), (1, 'RADLAN-SNMP-MIB', 'rndCommunityInetString'))
if mibBuilder.loadTexts:
rndCommunityInetEntry.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetEntry.setDescription(' The row definition for this table.')
rnd_community_inet_mng_station_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 1), inet_address_type())
if mibBuilder.loadTexts:
rndCommunityInetMngStationAddrType.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetMngStationAddrType.setDescription('Address type of the management station that will be allowed to communicate with the agent IP address')
rnd_community_inet_mng_station_addr = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 2), inet_address())
if mibBuilder.loadTexts:
rndCommunityInetMngStationAddr.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetMngStationAddr.setDescription('Address of the management station that will be allowed to communicate with the agent IP address')
rnd_community_inet_string = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 20)))
if mibBuilder.loadTexts:
rndCommunityInetString.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetString.setDescription('The community string with which the management station will communicate with the agent')
rnd_community_inet_access = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('readOnly', 1), ('readWrite', 2), ('super', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetAccess.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetAccess.setDescription('The allowed access to this management station')
rnd_community_inet_traps_enable = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('snmpV1', 1), ('snmpV2', 2), ('snmpV3', 3), ('trapsDisable', 4)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetTrapsEnable.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetTrapsEnable.setDescription('Should the agent send traps to the management station, and what version is required')
rnd_community_inet_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('invalid', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetStatus.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetStatus.setDescription('The status of this entry. If the status is invalid the community entry will be deleted')
rnd_community_inet_port_security = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetPortSecurity.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetPortSecurity.setDescription('If enabled the device will only receive SNMP messages from the port, through which this NMS is reachable from the device.')
rnd_community_inet_owner = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetOwner.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetOwner.setDescription('The owner of this community')
rnd_community_inet_trap_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)).clone(162)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetTrapDestPort.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetTrapDestPort.setDescription('The transport protocol (usually UDP) port to which traps to the management station represebted by this entry will be sent. The default is the well-known IANA assigned port number for SNMP traps. This object is relevant only if rndCommunityInetTrapsEnable has a value different from trapsDisable.')
rnd_community_inet_alt_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 10), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetAltAddrType.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetAltAddrType.setDescription('For testing purposes')
rnd_community_inet_alt_addr = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 5, 1, 11), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rndCommunityInetAltAddr.setStatus('current')
if mibBuilder.loadTexts:
rndCommunityInetAltAddr.setDescription('For testing purposes')
rl_mrid_inet_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 6))
if mibBuilder.loadTexts:
rlMridInetTable.setStatus('current')
if mibBuilder.loadTexts:
rlMridInetTable.setDescription('The MRID related configurations table of the agent')
rl_mrid_inet_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 6, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rndCommunityInetMngStationAddrType'), (0, 'RADLAN-SNMP-MIB', 'rndCommunityInetMngStationAddr'), (1, 'RADLAN-SNMP-MIB', 'rndCommunityInetString'))
if mibBuilder.loadTexts:
rlMridInetEntry.setStatus('current')
if mibBuilder.loadTexts:
rlMridInetEntry.setDescription(' The row definition for this table.')
rl_mrid_inet_connection = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 6, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlMridInetConnection.setStatus('current')
if mibBuilder.loadTexts:
rlMridInetConnection.setDescription('The router instance connecting the NMS who accessed the agent through the community table entry corresponding to the keys of this entry.')
rl_inet_managed_mrid = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 6, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlInetManagedMrid.setStatus('current')
if mibBuilder.loadTexts:
rlInetManagedMrid.setDescription('The router instance currently managed by the NMS who accessed the agent through the community table entry corresponding to the keys of this entry ')
rl_events = mib_identifier((1, 3, 6, 1, 4, 1, 89, 98, 7))
rl_events_poller_id = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlEventsPollerId.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPollerId.setDescription(' The rlEventsPollerId is the 1st key in all the rlEvents tables. Each poller must first GET from this object his Id. The agent will ensure uniqueness.')
rl_events_default_polling_interval = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 2), time_ticks().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlEventsDefaultPollingInterval.setStatus('current')
if mibBuilder.loadTexts:
rlEventsDefaultPollingInterval.setDescription('The default polling time. Will be used to detrermined whether the events configured by a poller in rlEventsTable can be destroyed, in absence of an entry for this poller in the rlEventsPollingControlTable.')
rl_events_delete_events = mib_scalar((1, 3, 6, 1, 4, 1, 89, 98, 7, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlEventsDeleteEvents.setStatus('current')
if mibBuilder.loadTexts:
rlEventsDeleteEvents.setDescription(" SETting a id of an active poller will cause all the rows of this poller in the rlEventsTable to be destroyed. This is equivalent to SETting rlEventsStatus of each row of this poller to 'destroy'. GET operation on this variable is meaningless, and the value 0 will be returned in this case (actual pollers start from 1).")
rl_events_mask_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 7, 4))
if mibBuilder.loadTexts:
rlEventsMaskTable.setStatus('current')
if mibBuilder.loadTexts:
rlEventsMaskTable.setDescription('The table showing the events mask for each client.')
rl_events_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlEventsMaskPollerId'))
if mibBuilder.loadTexts:
rlEventsMaskEntry.setStatus('current')
if mibBuilder.loadTexts:
rlEventsMaskEntry.setDescription(' The row definition for this table.')
rl_events_mask_poller_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1, 1), integer32())
if mibBuilder.loadTexts:
rlEventsMaskPollerId.setStatus('current')
if mibBuilder.loadTexts:
rlEventsMaskPollerId.setDescription('The poller id whose events are shown in this table ')
rl_events_mask_mask = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 4, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlEventsMaskMask.setStatus('current')
if mibBuilder.loadTexts:
rlEventsMaskMask.setDescription('The semantics of the rlEventsMask is an array of timestamps (each 4 octets containing one time stamp). Each timestamp is in TimeTicks units encoded in network order. Thus the mask can contain up to 40 timestamps. If a place in the array is empty it will contain 0. Each timestamp shows the time of the last occurrence of the event whose rlEventIndexKey in the rlEventsTable for this client id is the same as its index in the array. Each for bytes of the rlEventsMask will contain the timestamp in TimeTicks units encoded in network order of the last time the event ')
rl_events_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 7, 5))
if mibBuilder.loadTexts:
rlEventsTable.setStatus('current')
if mibBuilder.loadTexts:
rlEventsTable.setDescription('The table relating the events recorded to the indices in the rlEventsMask.')
rl_events_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlEventsPoller'), (1, 'RADLAN-SNMP-MIB', 'rlEventId'))
if mibBuilder.loadTexts:
rlEventsEntry.setStatus('current')
if mibBuilder.loadTexts:
rlEventsEntry.setDescription(' The row definition for this table.')
rl_events_poller = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 1), integer32())
if mibBuilder.loadTexts:
rlEventsPoller.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPoller.setDescription('The poller id whose event definitions are shown in this table.')
rl_event_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 2), object_identifier())
if mibBuilder.loadTexts:
rlEventId.setStatus('current')
if mibBuilder.loadTexts:
rlEventId.setDescription('The event id of the polled event. This is the notification object identifier (in case of a SNMPV2 notification) or the translation to SNMPv2 notation of an SNMPv1 trap according to the RFC 3584 (SNMP versions coexistence).')
rl_event_index_in_mask = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlEventIndexInMask.setStatus('current')
if mibBuilder.loadTexts:
rlEventIndexInMask.setDescription('Index in the rlEventsMaskMask of this poller id that has been allocated for this event by the device.')
rl_events_status = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 5, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlEventsStatus.setStatus('current')
if mibBuilder.loadTexts:
rlEventsStatus.setDescription('RowStatus for this table. Note that the device may refuse for resource shortage reasons to honour a create request for this poller even if apparently there still is room in his rlEventsMaskMask (i.e. the poller has requested monitoring of less than 40 events). ')
rl_events_polling_control_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 7, 6))
if mibBuilder.loadTexts:
rlEventsPollingControlTable.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPollingControlTable.setDescription('The polling control table for a poller. Currently contain only the polling interval.')
rl_events_polling_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1)).setIndexNames((0, 'RADLAN-SNMP-MIB', 'rlEventsPollingControlPollerId'))
if mibBuilder.loadTexts:
rlEventsPollingControlEntry.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPollingControlEntry.setDescription(' The row definition for this table.')
rl_events_polling_control_poller_id = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1, 1), integer32())
if mibBuilder.loadTexts:
rlEventsPollingControlPollerId.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPollingControlPollerId.setDescription('The poller id whose polling controls are shown in this table.')
rl_events_polling_control_polling_interval = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 7, 6, 1, 2), time_ticks().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlEventsPollingControlPollingInterval.setStatus('current')
if mibBuilder.loadTexts:
rlEventsPollingControlPollingInterval.setDescription('The desired polling interval for this poller. If the device has determined that the poller has not polled the device for 3 times this polling interval it may destroy all the data related to this poller in the rlevents database ')
rl_usm_user_ext_table = mib_table((1, 3, 6, 1, 4, 1, 89, 98, 1, 8))
if mibBuilder.loadTexts:
rlUsmUserExtTable.setStatus('current')
if mibBuilder.loadTexts:
rlUsmUserExtTable.setDescription('This table extends usmUserEntry. ')
rl_usm_user_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1))
usmUserEntry.registerAugmentions(('RADLAN-SNMP-MIB', 'rlUsmUserExtEntry'))
rlUsmUserExtEntry.setIndexNames(*usmUserEntry.getIndexNames())
if mibBuilder.loadTexts:
rlUsmUserExtEntry.setStatus('current')
if mibBuilder.loadTexts:
rlUsmUserExtEntry.setDescription(' The row definition for this table.')
rl_usm_user_auth_password = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlUsmUserAuthPassword.setStatus('current')
if mibBuilder.loadTexts:
rlUsmUserAuthPassword.setDescription('Authentication password. Setting the field to a non zero-length value will convert the given password to a localized authentication key, appropriate to the corresponding usmUserAuthProtocol field. The key is localized using the appropriate usmUserEngineID field, according to the algorithm specified in RFC 2574. This field may be set to a non zero-length value if the following conditions hold: 1) This is the creation of the entry. 2) The value of the corresponding usmUserCloneFrom field is zeroDotZero. Setting the field in any other case will cause no effect.')
rl_usm_user_priv_password = mib_table_column((1, 3, 6, 1, 4, 1, 89, 98, 1, 8, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rlUsmUserPrivPassword.setStatus('current')
if mibBuilder.loadTexts:
rlUsmUserPrivPassword.setDescription('Privacy password. Setting the field to a non zero-length value will convert the given password to a localized privacy key, appropriate to the corresponding usmUserAuthProtocol field. The key is localized using the appropriate usmUserEngineID field, according to the algorithm specified in RFC 2574. This field may be set to a non zero-length value if the following conditions hold: 1) This is the creation of the entry. 2) The value of the corresponding usmUserCloneFrom field is zeroDotZero. Setting the field in any other case will cause no effect.')
mibBuilder.exportSymbols('RADLAN-SNMP-MIB', rlInet2EngineIdTable=rlInet2EngineIdTable, rlEventsPollingControlPollingInterval=rlEventsPollingControlPollingInterval, rlSnmpRequestManagedMrid=rlSnmpRequestManagedMrid, rlInet2EngineIdStatus=rlInet2EngineIdStatus, RlSnmpUDPIpv6MridAddress=RlSnmpUDPIpv6MridAddress, rlSnmpRequestMridTable=rlSnmpRequestMridTable, rlTargetParamsTestingLevel=rlTargetParamsTestingLevel, rlEvents=rlEvents, rlSNMPv3IpAddrToIndexMappedIndex=rlSNMPv3IpAddrToIndexMappedIndex, rndCommunityInetMngStationAddrType=rndCommunityInetMngStationAddrType, rndCommunityInetTrapDestPort=rndCommunityInetTrapDestPort, rlEventsMaskPollerId=rlEventsMaskPollerId, rlEventsPoller=rlEventsPoller, rlSNMPv3IpAddrToIndexTable=rlSNMPv3IpAddrToIndexTable, rlMridInetConnection=rlMridInetConnection, rlSNMP=rlSNMP, rlSNMPv3IpAddrToIndexAddr=rlSNMPv3IpAddrToIndexAddr, rlEventsEntry=rlEventsEntry, RlSnmpUDPIpv6zMridAddress=RlSnmpUDPIpv6zMridAddress, rlTargetAddrMagicUsedInIndex=rlTargetAddrMagicUsedInIndex, rlSnmpRequestMridEntry=rlSnmpRequestMridEntry, rlSNMPv3IpAddrToIndexEntry=rlSNMPv3IpAddrToIndexEntry, rlEventsMaskEntry=rlEventsMaskEntry, rlMridInetTable=rlMridInetTable, rlSnmpUdpIpv6zMridDomain=rlSnmpUdpIpv6zMridDomain, PYSNMP_MODULE_ID=rlSNMP, rlSnmpRequestMridStatus=rlSnmpRequestMridStatus, rndCommunityInetString=rndCommunityInetString, rlSnmpUDPMridDomain=rlSnmpUDPMridDomain, rlInetManagedMrid=rlInetManagedMrid, rlEventIndexInMask=rlEventIndexInMask, rlEventsTable=rlEventsTable, rlUsmUserPrivPassword=rlUsmUserPrivPassword, rlEventsStatus=rlEventsStatus, rlSNMPDomains=rlSNMPDomains, rlEventsDeleteEvents=rlEventsDeleteEvents, rlInet2EngineIdAddress=rlInet2EngineIdAddress, rlInet2EngineIdEngineId=rlInet2EngineIdEngineId, rndCommunityInetAltAddr=rndCommunityInetAltAddr, rlNotifyFilterTestingLevel=rlNotifyFilterTestingLevel, rlInet2EngineIdEntry=rlInet2EngineIdEntry, rlSNMPv3=rlSNMPv3, rlEventsMaskMask=rlEventsMaskMask, rndCommunityInetEntry=rndCommunityInetEntry, rndCommunityInetTable=rndCommunityInetTable, rndCommunityInetMngStationAddr=rndCommunityInetMngStationAddr, rlSNMPenable=rlSNMPenable, rlMridInetEntry=rlMridInetEntry, rlEventsDefaultPollingInterval=rlEventsDefaultPollingInterval, rndCommunityInetOwner=rndCommunityInetOwner, rlEventsPollingControlPollerId=rlEventsPollingControlPollerId, rndCommunityInetAltAddrType=rndCommunityInetAltAddrType, rlEventsMaskTable=rlEventsMaskTable, rlUsmUserExtTable=rlUsmUserExtTable, rlSnmpEngineID=rlSnmpEngineID, rlTargetAddrExtEntry=rlTargetAddrExtEntry, rndCommunityInetStatus=rndCommunityInetStatus, rlUsmUserAuthPassword=rlUsmUserAuthPassword, rlEventsPollingControlTable=rlEventsPollingControlTable, rlUsmUserExtEntry=rlUsmUserExtEntry, rndCommunityInetTrapsEnable=rndCommunityInetTrapsEnable, rlTargetAddrExtTable=rlTargetAddrExtTable, rlSNMPv3IpAddrToIndexAddrType=rlSNMPv3IpAddrToIndexAddrType, RlSnmpUDPMridAddress=RlSnmpUDPMridAddress, rndCommunityInetAccess=rndCommunityInetAccess, rlEventId=rlEventId, rlInet2EngineIdAddressType=rlInet2EngineIdAddressType, rndCommunityInetPortSecurity=rndCommunityInetPortSecurity, rlEventsPollingControlEntry=rlEventsPollingControlEntry, rlSnmpUdpIpv6MridDomain=rlSnmpUdpIpv6MridDomain, rlEventsPollerId=rlEventsPollerId) |
media = validas = 0
while True:
nota = float(input())
if nota > 10 or nota < 0:
print("nota invalida")
else:
media += nota
validas += 1
if validas == 2:
media /= 2
print(f"media = {media:.2f}")
validas = 0
media = 0
while True:
print("novo calculo (1-sim 2-nao)")
novo = int(input())
if novo == 1 or novo == 2:
break
if novo == 2:
break
| media = validas = 0
while True:
nota = float(input())
if nota > 10 or nota < 0:
print('nota invalida')
else:
media += nota
validas += 1
if validas == 2:
media /= 2
print(f'media = {media:.2f}')
validas = 0
media = 0
while True:
print('novo calculo (1-sim 2-nao)')
novo = int(input())
if novo == 1 or novo == 2:
break
if novo == 2:
break |
#!/bin/python3
n = int(input("Input problem ID:"))
n -= 101
user = n // 4
rnk = n % 4
tab = [
['UC','DG','RB',''],
['HC','IB','FJ',''],
['GK','UH','QH',''],
['EE','DJ','IH',''],
['HL','MI','EJ',''],
['MB','UI','ED',''],
['AA','BG','ML',''],
['CF','TE','QG',''],
['PH','UJ','BB',''],
['CI','SD','NG',''],
['DK','LD','IJ',''],
['NC','BJ','FK',''],
['CH','NJ','RH',''],
['QF','BE','KI',''],
['AC','PG','HM',''],
['PJ','ID','EG',''],
['SI','KC','GI',''],
['OG','CK','DB',''],
['QE','GH','NI',''],
['OL','KA','MG',''],
['SG','NL','KH',''],
['QJ','KG','AB',''],
['KD','IL','NF',''],
['CM','NE','HD',''],
['DH','EC','BM',''],
['LC','CD','JI',''],
['DL','ME','PE',''],
['LI','AI','RJ',''],
['SF','II','HG',''],
['RE','LL','OA',''],
['FB','QD','DA',''],
['TC','AE','CB',''],
['GF','AG','JC',''],
['PA','TH','EH',''],
['AJ','TK','EI',''],
['UL','AF','SK',''],
['BH','RD','OK',''],
['FC','JD','OE',''],
['TF','FF','DD',''],
['CJ','HK','MJ',''],
['FG','GL','AL',''],
['FI','IC','QC',''],
['MD','OJ','HI',''],
['KK','JH','OB',''],
['BK','GJ','KE',''],
['CA','IK','LE',''],
['RI','LK','PD',''],
['JE','LB','HB',''],
['BL','RG','AH',''],
['AK','GG','JG','']
]
link = [
["https://codeforces.com/gym/101221", "statements/2014-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/101239", "statements/2015-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/101242", "statements/2016-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/101471", "statements/2017-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/102482", "statements/2018-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/102511", "statements/2019-acmicpc-world-finals-en.pdf"],
["https://codeforces.com/gym/101630", "statements/20172018-acmicpc-northeastern-european-regional-contest-neerc-17-en.pdf"],
["https://codeforces.com/gym/101190", "statements/20162017-acmicpc-northeastern-european-regional-contest-neerc-16-en.pdf"],
["https://codeforces.com/gym/100851", "statements/20152016-acmicpc-northeastern-european-regional-contest-neerc-15-en.pdf"],
["https://codeforces.com/gym/100553", "statements/20142015-acmicpc-northeastern-european-regional-contest-neerc-14-en.pdf"],
["https://codeforces.com/gym/100307", "statements/20132014-acmicpc-northeastern-european-regional-contest-neerc-13-en.pdf"],
["https://codeforces.com/gym/101620", "statements/20172018-acmicpc-central-europe-regional-contest-cerc-17-en.pdf"],
["https://codeforces.com/gym/101173", "statements/20162017-acmicpc-central-europe-regional-contest-cerc-16-en.pdf"],
["https://codeforces.com/gym/101480", "statements/20152016-acmicpc-central-europe-regional-contest-cerc-15-en.pdf"],
["https://codeforces.com/gym/100543", "statements/20142015-acmicpc-central-europe-regional-contest-cerc-14-en.pdf"],
["https://codeforces.com/gym/100299", "statements/20132014-acm-icpc-central-european-regional-contest-cerc-13-en.pdf"],
["https://codeforces.com/gym/101612", "statements/20172018-acmicpc-neerc-northern-subregional-contest-en.pdf"],
["https://codeforces.com/gym/101142", "statements/20162017-acmicpc-neerc-northern-subregional-contest-en.pdf"],
["https://codeforces.com/gym/100801", "statements/20152016-acmicpc-neerc-northern-subregional-contest-en.pdf"],
["https://codeforces.com/gym/100531", "statements/20142015-acmicpc-neerc-northern-subregional-contest-en.pdf"],
["https://codeforces.com/gym/100269", "statements/20132014-acmicpc-neerc-nothern-subregional-contest-en.pdf"]
]
pr = tab[user][rnk]
print('Directory:', user, 'Problem:', tab[user][rnk])
if pr != '':
id = ord(pr[0]) - ord('A')
print('Submit:', link[id][0] + '/submit/' + pr[1])
print('Statement:', 'xdg-open ./' + link[id][1])
| n = int(input('Input problem ID:'))
n -= 101
user = n // 4
rnk = n % 4
tab = [['UC', 'DG', 'RB', ''], ['HC', 'IB', 'FJ', ''], ['GK', 'UH', 'QH', ''], ['EE', 'DJ', 'IH', ''], ['HL', 'MI', 'EJ', ''], ['MB', 'UI', 'ED', ''], ['AA', 'BG', 'ML', ''], ['CF', 'TE', 'QG', ''], ['PH', 'UJ', 'BB', ''], ['CI', 'SD', 'NG', ''], ['DK', 'LD', 'IJ', ''], ['NC', 'BJ', 'FK', ''], ['CH', 'NJ', 'RH', ''], ['QF', 'BE', 'KI', ''], ['AC', 'PG', 'HM', ''], ['PJ', 'ID', 'EG', ''], ['SI', 'KC', 'GI', ''], ['OG', 'CK', 'DB', ''], ['QE', 'GH', 'NI', ''], ['OL', 'KA', 'MG', ''], ['SG', 'NL', 'KH', ''], ['QJ', 'KG', 'AB', ''], ['KD', 'IL', 'NF', ''], ['CM', 'NE', 'HD', ''], ['DH', 'EC', 'BM', ''], ['LC', 'CD', 'JI', ''], ['DL', 'ME', 'PE', ''], ['LI', 'AI', 'RJ', ''], ['SF', 'II', 'HG', ''], ['RE', 'LL', 'OA', ''], ['FB', 'QD', 'DA', ''], ['TC', 'AE', 'CB', ''], ['GF', 'AG', 'JC', ''], ['PA', 'TH', 'EH', ''], ['AJ', 'TK', 'EI', ''], ['UL', 'AF', 'SK', ''], ['BH', 'RD', 'OK', ''], ['FC', 'JD', 'OE', ''], ['TF', 'FF', 'DD', ''], ['CJ', 'HK', 'MJ', ''], ['FG', 'GL', 'AL', ''], ['FI', 'IC', 'QC', ''], ['MD', 'OJ', 'HI', ''], ['KK', 'JH', 'OB', ''], ['BK', 'GJ', 'KE', ''], ['CA', 'IK', 'LE', ''], ['RI', 'LK', 'PD', ''], ['JE', 'LB', 'HB', ''], ['BL', 'RG', 'AH', ''], ['AK', 'GG', 'JG', '']]
link = [['https://codeforces.com/gym/101221', 'statements/2014-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/101239', 'statements/2015-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/101242', 'statements/2016-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/101471', 'statements/2017-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/102482', 'statements/2018-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/102511', 'statements/2019-acmicpc-world-finals-en.pdf'], ['https://codeforces.com/gym/101630', 'statements/20172018-acmicpc-northeastern-european-regional-contest-neerc-17-en.pdf'], ['https://codeforces.com/gym/101190', 'statements/20162017-acmicpc-northeastern-european-regional-contest-neerc-16-en.pdf'], ['https://codeforces.com/gym/100851', 'statements/20152016-acmicpc-northeastern-european-regional-contest-neerc-15-en.pdf'], ['https://codeforces.com/gym/100553', 'statements/20142015-acmicpc-northeastern-european-regional-contest-neerc-14-en.pdf'], ['https://codeforces.com/gym/100307', 'statements/20132014-acmicpc-northeastern-european-regional-contest-neerc-13-en.pdf'], ['https://codeforces.com/gym/101620', 'statements/20172018-acmicpc-central-europe-regional-contest-cerc-17-en.pdf'], ['https://codeforces.com/gym/101173', 'statements/20162017-acmicpc-central-europe-regional-contest-cerc-16-en.pdf'], ['https://codeforces.com/gym/101480', 'statements/20152016-acmicpc-central-europe-regional-contest-cerc-15-en.pdf'], ['https://codeforces.com/gym/100543', 'statements/20142015-acmicpc-central-europe-regional-contest-cerc-14-en.pdf'], ['https://codeforces.com/gym/100299', 'statements/20132014-acm-icpc-central-european-regional-contest-cerc-13-en.pdf'], ['https://codeforces.com/gym/101612', 'statements/20172018-acmicpc-neerc-northern-subregional-contest-en.pdf'], ['https://codeforces.com/gym/101142', 'statements/20162017-acmicpc-neerc-northern-subregional-contest-en.pdf'], ['https://codeforces.com/gym/100801', 'statements/20152016-acmicpc-neerc-northern-subregional-contest-en.pdf'], ['https://codeforces.com/gym/100531', 'statements/20142015-acmicpc-neerc-northern-subregional-contest-en.pdf'], ['https://codeforces.com/gym/100269', 'statements/20132014-acmicpc-neerc-nothern-subregional-contest-en.pdf']]
pr = tab[user][rnk]
print('Directory:', user, 'Problem:', tab[user][rnk])
if pr != '':
id = ord(pr[0]) - ord('A')
print('Submit:', link[id][0] + '/submit/' + pr[1])
print('Statement:', 'xdg-open ./' + link[id][1]) |
# def max_num(a, b, c):
# if a >= b and a >= c:
# return a
# elif b >= a and b >= c:
# return b
# else:
# return c
# print(max_num(6,3,4))
def max_num():
num1 = int(input("Please enter first number: "))
num2 = int(input("Please enter second number: "))
num3 = int(input("Please enter third number: "))
if num1 >= num2 and num1 >= num3:
return "Max is " + str(num1)
elif num2 >= num1 and num2 >= num3:
return "Max is " + str(num2)
else:
return "Max is " + str(num3)
print(max_num())
| def max_num():
num1 = int(input('Please enter first number: '))
num2 = int(input('Please enter second number: '))
num3 = int(input('Please enter third number: '))
if num1 >= num2 and num1 >= num3:
return 'Max is ' + str(num1)
elif num2 >= num1 and num2 >= num3:
return 'Max is ' + str(num2)
else:
return 'Max is ' + str(num3)
print(max_num()) |
# -*- coding: utf-8 -*-
def cartesius_to_image_coord(x, y, bounds):
assert bounds.is_set()
assert bounds.image_width
assert bounds.image_height
assert x != None
assert y != None
x = float(x)
y = float(y)
x_ratio = (x - bounds.left) / (bounds.right - bounds.left)
y_ratio = (y - bounds.bottom) / (bounds.top - bounds.bottom)
return (x_ratio * bounds.image_width, bounds.image_height - y_ratio * bounds.image_height)
def min_max(*n):
if not n:
return None
min_result = n[0]
max_result = n[0]
for i in n:
if i != None:
if min_result == None or i < min_result:
min_result = i
if max_result == None or i > max_result:
max_result = i
return min_result, max_result
| def cartesius_to_image_coord(x, y, bounds):
assert bounds.is_set()
assert bounds.image_width
assert bounds.image_height
assert x != None
assert y != None
x = float(x)
y = float(y)
x_ratio = (x - bounds.left) / (bounds.right - bounds.left)
y_ratio = (y - bounds.bottom) / (bounds.top - bounds.bottom)
return (x_ratio * bounds.image_width, bounds.image_height - y_ratio * bounds.image_height)
def min_max(*n):
if not n:
return None
min_result = n[0]
max_result = n[0]
for i in n:
if i != None:
if min_result == None or i < min_result:
min_result = i
if max_result == None or i > max_result:
max_result = i
return (min_result, max_result) |
# LIST OPERATION EDABIT SOLUTION:
def list_operation(x, y, n):
# creating a list to append the elements that are divisible by 'n'.
l = []
# creating a for-loop to iterate from the x to y (both inclusive).
for i in range(x, y + 1):
# creating a nested if-statement to check for the element's divisibility by 'n'.
if i % n == 0:
# code to append the element into the created list if the element is divisible by 'n'.
l.append(i)
# returning the list.
return l
| def list_operation(x, y, n):
l = []
for i in range(x, y + 1):
if i % n == 0:
l.append(i)
return l |
def run_server(model=None):
print("Starting server.")
if __name__ == "__main__":
run_server()
| def run_server(model=None):
print('Starting server.')
if __name__ == '__main__':
run_server() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.