content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# WAP to demonstrate simple exception handling in Python def ExceptionHandling(): try: a += 10 except NameError as e: print(e) def main(): ExceptionHandling() if __name__ == "__main__": main()
def exception_handling(): try: a += 10 except NameError as e: print(e) def main(): exception_handling() if __name__ == '__main__': main()
SECRET_KEY = 'gk2ptgp9mB' SALT = 'SALT' PERM_FILE = 'perms.json' UPLOAD_FOLDER = 'uploads' DB_FILE = 'db.db'
secret_key = 'gk2ptgp9mB' salt = 'SALT' perm_file = 'perms.json' upload_folder = 'uploads' db_file = 'db.db'
# Uses python3 def get_fibonacci_last_digit_naive(n): if n <= 1: return n previous = 0 current = 1 for _ in range(n - 1): previous, current = current, previous + current return current % 10 def get_digit_fast(n): if n <= 1: return n prev, curr = 0, 1 for _ in range(n - 1): prev, curr = curr, (prev + curr) % 10 return curr if __name__ == '__main__': n = int(input()) print(get_digit_fast(n))
def get_fibonacci_last_digit_naive(n): if n <= 1: return n previous = 0 current = 1 for _ in range(n - 1): (previous, current) = (current, previous + current) return current % 10 def get_digit_fast(n): if n <= 1: return n (prev, curr) = (0, 1) for _ in range(n - 1): (prev, curr) = (curr, (prev + curr) % 10) return curr if __name__ == '__main__': n = int(input()) print(get_digit_fast(n))
suitcase = ["sunglasses", "hat", "passport", "laptop", "suit", "shoes"] first = suitcase[0:2] # The first and second items (index zero and one) print(first) middle = suitcase[2:4] # Third and fourth items (index two and three) print(middle) last = suitcase[4:6] # The last two items (index four and five)
suitcase = ['sunglasses', 'hat', 'passport', 'laptop', 'suit', 'shoes'] first = suitcase[0:2] print(first) middle = suitcase[2:4] print(middle) last = suitcase[4:6]
# https://leetcode.com/problems/decode-ways/submissions/ # https://leetcode.com/problems/decode-ways/discuss/253018/Python%3A-Easy-to-understand-explanation-bottom-up-dynamic-programming class Solution_recursion_memo: def numDecodings(self, s): L = len(s) def helper(idx, memo): if idx == L: return 1 if idx > L or s[idx] == '0': # we cannot land on '0' or exceed s return float('-inf') if idx in memo: return memo[idx] else: if s[idx] == '1' or (s[idx] == '2' and int(s[idx:idx+2]) < 27): one = helper(idx+1, memo) two = helper(idx+2, memo) res = max(one, 0) + max(two, 0) else: res = helper(idx+1, memo) memo[idx] = res return res res = helper(0, {}) return res if res != float('-inf') else 0 class Solution_dp_table: def numDecodings(self, s: str) -> int: if not s or s[0]=='0': return 0 dp = [0 for x in range(len(s) + 1)] # base case initialization dp[0:2] = [1,1] for i in range(2, len(s) + 1): # One step jump # need to ignore if it is '0', since it must belong to '10' or '20' which is handled below if 0 < int(s[i-1:i]): #(2) dp[i] = dp[i - 1] # Two step jump if 10 <= int(s[i-2:i]) <= 26: #(3) dp[i] += dp[i - 2] return dp[-1] def memoize(f): memo = {} def wrapper(*args): if args not in memo: memo[args] = f(*args) return memo[args] return wrapper # what are we memoizing? note that self.numDecodings(s[:-1]) will evaluate first. # as this recursive stack finishes, we already traversed the string s once # so when we evaluate self.numDecodings(s[:-2]), we can make use of some of the results we already calculated # this uses up more memory than the approach on top class Solution_memoize: @memoize def numDecodings(self, s): if len(s) == 0: return 1 elif len(s) == 1: if s[0] == '0': return 0 else: return 1 if int(s[-1]) > 0: if 9 < int(s[-2:]) < 27: return self.numDecodings(s[:-1]) + self.numDecodings(s[:-2]) else: return self.numDecodings(s[:-1]) elif 9 < int(s[-2:]) < 27: return self.numDecodings(s[:-2]) else: return 0
class Solution_Recursion_Memo: def num_decodings(self, s): l = len(s) def helper(idx, memo): if idx == L: return 1 if idx > L or s[idx] == '0': return float('-inf') if idx in memo: return memo[idx] else: if s[idx] == '1' or (s[idx] == '2' and int(s[idx:idx + 2]) < 27): one = helper(idx + 1, memo) two = helper(idx + 2, memo) res = max(one, 0) + max(two, 0) else: res = helper(idx + 1, memo) memo[idx] = res return res res = helper(0, {}) return res if res != float('-inf') else 0 class Solution_Dp_Table: def num_decodings(self, s: str) -> int: if not s or s[0] == '0': return 0 dp = [0 for x in range(len(s) + 1)] dp[0:2] = [1, 1] for i in range(2, len(s) + 1): if 0 < int(s[i - 1:i]): dp[i] = dp[i - 1] if 10 <= int(s[i - 2:i]) <= 26: dp[i] += dp[i - 2] return dp[-1] def memoize(f): memo = {} def wrapper(*args): if args not in memo: memo[args] = f(*args) return memo[args] return wrapper class Solution_Memoize: @memoize def num_decodings(self, s): if len(s) == 0: return 1 elif len(s) == 1: if s[0] == '0': return 0 else: return 1 if int(s[-1]) > 0: if 9 < int(s[-2:]) < 27: return self.numDecodings(s[:-1]) + self.numDecodings(s[:-2]) else: return self.numDecodings(s[:-1]) elif 9 < int(s[-2:]) < 27: return self.numDecodings(s[:-2]) else: return 0
#!/usr/bin/env python3 all_cases = [[[8, 1, 6], [3, 5, 7], [4, 9, 2]], [[6, 1, 8], [7, 5, 3], [2, 9, 4]], [[4, 9, 2], [3, 5, 7], [8, 1, 6]], [[2, 9, 4], [7, 5, 3], [6, 1, 8]], [[8, 3, 4], [1, 5, 9], [6, 7, 2]], [[4, 3, 8], [9, 5, 1], [2, 7, 6]], [[6, 7, 2], [1, 5, 9], [8, 3, 4]], [[2, 7, 6], [9, 5, 1], [4, 3, 8]], ] s = [] for s_i in range(3): s_t = [int(s_temp) for s_temp in input().strip().split(' ')] s.append(s_t) diffs = [sum([abs(cases[i][j] - s[i][j]) for i in range(0, 3) for j in range(0, 3)]) for cases in all_cases] print(min(diffs)) # Origin code # for cases in all_cases: # diff = 0 # for i in range(0, 3): # for j in range(0, 3): # diff += abs(cases[i][j] - s[i][j]) # diffs.append(diff) # # tranpose sample # seeds.append([list(t) for t in list(zip(*seed))])
all_cases = [[[8, 1, 6], [3, 5, 7], [4, 9, 2]], [[6, 1, 8], [7, 5, 3], [2, 9, 4]], [[4, 9, 2], [3, 5, 7], [8, 1, 6]], [[2, 9, 4], [7, 5, 3], [6, 1, 8]], [[8, 3, 4], [1, 5, 9], [6, 7, 2]], [[4, 3, 8], [9, 5, 1], [2, 7, 6]], [[6, 7, 2], [1, 5, 9], [8, 3, 4]], [[2, 7, 6], [9, 5, 1], [4, 3, 8]]] s = [] for s_i in range(3): s_t = [int(s_temp) for s_temp in input().strip().split(' ')] s.append(s_t) diffs = [sum([abs(cases[i][j] - s[i][j]) for i in range(0, 3) for j in range(0, 3)]) for cases in all_cases] print(min(diffs))
def CountWithPseudocounts(Motifs): t = len(Motifs) k = len(Motifs[0]) count = {} # insert your code here for symbol in "ACGT": count[symbol] = [] for j in range(k): count[symbol].append(1) for i in range(t): for j in range(k): symbol = Motifs[i][j] count[symbol][j] += 1 return count
def count_with_pseudocounts(Motifs): t = len(Motifs) k = len(Motifs[0]) count = {} for symbol in 'ACGT': count[symbol] = [] for j in range(k): count[symbol].append(1) for i in range(t): for j in range(k): symbol = Motifs[i][j] count[symbol][j] += 1 return count
DEBUG = True SECRET_KEY = 'trinity kevin place' SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/angular_flask.db'
debug = True secret_key = 'trinity kevin place' sqlalchemy_database_uri = 'sqlite:////tmp/angular_flask.db'
def cb(result): print('Service has been created') heartbeatTimeout = 15 payload = {'tags': ['tag1', 'tag2', 'tag3']} d = client.services.register('serviceId', heartbeatTimeout, payload) d.addCallback(cb) reactor.run()
def cb(result): print('Service has been created') heartbeat_timeout = 15 payload = {'tags': ['tag1', 'tag2', 'tag3']} d = client.services.register('serviceId', heartbeatTimeout, payload) d.addCallback(cb) reactor.run()
# Code generated by font-to-py.py. # Font: DejaVuSans.ttf version = '0.26' def height(): return 20 def max_width(): return 20 def hmap(): return False def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font =\ b'\x0a\x00\x0c\x00\x00\x06\x00\x00\x06\x6e\x00\x86\x6f\x00\xce\x01'\ b'\x00\x7c\x00\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x08\x00\xfe\x67\x00\xfe\x67\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00'\ b'\x3e\x00\x00\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x00\x3e'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x06\x00\x30\x06\x00'\ b'\x30\x66\x00\x30\x7f\x00\xf0\x07\x00\x3f\x06\x00\x31\x46\x00\x30'\ b'\x7e\x00\xf0\x0f\x00\x7f\x06\x00\x33\x06\x00\x30\x06\x00\x30\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xe0\x30\x00\xf0'\ b'\x61\x00\xb8\x61\x00\x98\x63\x00\xfe\xff\x03\x18\x63\x00\x18\x73'\ b'\x00\x30\x3e\x00\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x12\x00\x78\x00\x00\xfe\x01\x00\x02\x01\x00\x02\x41\x00\xfe\x31'\ b'\x00\x78\x18\x00\x00\x06\x00\x00\x03\x00\xc0\x00\x00\x60\x00\x00'\ b'\x18\x1e\x00\x8c\x7f\x00\x82\x40\x00\x80\x40\x00\x80\x7f\x00\x00'\ b'\x1e\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x1e\x00\x00\x3f\x00'\ b'\xf8\x33\x00\xfc\x61\x00\xce\x61\x00\x86\x63\x00\x06\x77\x00\x06'\ b'\x3e\x00\x0c\x1c\x00\x00\x3e\x00\x00\x77\x00\x00\x63\x00\x00\x40'\ b'\x00\x00\x00\x00\x04\x00\x3e\x00\x00\x3e\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x07\x00\xc0\x1f\x00\xf8\xff\x00\x1e\xc0\x03\x02\x00\x02'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x02\x00\x02\x1e\xc0'\ b'\x03\xf8\xff\x00\xc0\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0a\x00\x84\x00\x00\x48\x00\x00\x48\x00\x00\x30\x00\x00\xfe\x01'\ b'\x00\x30\x00\x00\x48\x00\x00\x48\x00\x00\x84\x00\x00\x00\x00\x00'\ b'\x10\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03'\ b'\x00\xf8\x7f\x00\xf8\x7f\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00'\ b'\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x06\x00\x00\x00\x03\x00\xe0\x01\x00\xe0\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x07\x00\x00\x06\x00\x00\x06\x00\x00\x06'\ b'\x00\x00\x06\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00'\ b'\x60\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x06\x00\x00\x80\x01\x00\xf8\x01\x80\x7f\x00\xf8\x07\x00\x7e'\ b'\x00\x00\x06\x00\x00\x0c\x00\xf0\x0f\x00\xf8\x1f\x00\x1c\x38\x00'\ b'\x06\x60\x00\x06\x60\x00\x06\x60\x00\x06\x60\x00\x1c\x38\x00\xf8'\ b'\x1f\x00\xf0\x0f\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x60\x00'\ b'\x0c\x60\x00\x06\x60\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x60\x00\x00'\ b'\x60\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x0c\x00\x0c\x60\x00\x06\x70\x00\x06\x78\x00\x06\x7c\x00\x06'\ b'\x6e\x00\x06\x67\x00\x8e\x63\x00\xfc\x60\x00\x78\x60\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x30\x00\x06\x60\x00\x86'\ b'\x61\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\xce\x73\x00\x7c\x3f'\ b'\x00\x78\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00'\ b'\x0e\x00\x00\x0f\x00\xc0\x0d\x00\x70\x0c\x00\x18\x0c\x00\x0e\x0c'\ b'\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x0c\x00\x00\x0c\x00\x00\x00\x00'\ b'\x00\x00\x00\x0c\x00\x00\x30\x00\xfe\x61\x00\xfe\x60\x00\xc6\x60'\ b'\x00\xc6\x60\x00\xc6\x60\x00\xc6\x31\x00\x86\x3f\x00\x00\x1f\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xe0\x0f\x00\xf8\x3f'\ b'\x00\x9c\x31\x00\x8e\x60\x00\xc6\x60\x00\xc6\x60\x00\xc6\x60\x00'\ b'\xc6\x71\x00\x8c\x3f\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x0c'\ b'\x00\x06\x00\x00\x06\x00\x00\x06\x40\x00\x06\x78\x00\x06\x3f\x00'\ b'\xc6\x07\x00\xfe\x01\x00\x3e\x00\x00\x06\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x0c\x00\x38\x1e\x00\x7c\x3f\x00\xce\x73\x00'\ b'\x86\x61\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\xce\x73\x00\x7c'\ b'\x3f\x00\x38\x1e\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xf8\x00\x00'\ b'\xfc\x31\x00\x8e\x63\x00\x06\x63\x00\x06\x63\x00\x06\x63\x00\x06'\ b'\x71\x00\x8c\x39\x00\xfc\x1f\x00\xf0\x07\x00\x00\x00\x00\x00\x00'\ b'\x00\x06\x00\x60\x60\x00\x60\x60\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x06\x00\x00\x00\x03\x60\xe0\x01\x60\xe0\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x03\x00\x00\x03'\ b'\x00\x80\x07\x00\x80\x07\x00\x80\x07\x00\xc0\x0c\x00\xc0\x0c\x00'\ b'\xc0\x0c\x00\x60\x18\x00\x60\x18\x00\x60\x18\x00\x30\x30\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\xc0\x0c\x00'\ b'\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0'\ b'\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x30'\ b'\x30\x00\x60\x18\x00\x60\x18\x00\x60\x18\x00\xc0\x0c\x00\xc0\x0c'\ b'\x00\xc0\x0c\x00\x80\x07\x00\x80\x07\x00\x80\x07\x00\x00\x03\x00'\ b'\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0a'\ b'\x00\x0c\x00\x00\x06\x00\x00\x06\x6e\x00\x86\x6f\x00\xce\x01\x00'\ b'\x7c\x00\x00\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13'\ b'\x00\x80\x1f\x00\xe0\x3f\x00\x78\xf0\x00\x18\xc0\x01\x0c\x80\x01'\ b'\x8c\x8f\x03\xc6\x1f\x03\xc6\x18\x03\xc6\x18\x03\x86\x08\x03\xc6'\ b'\x1f\x03\xc6\x9f\x01\x0c\xd8\x00\x1c\x08\x00\x38\x0c\x00\xf0\x07'\ b'\x00\xc0\x03\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x40\x00\x00'\ b'\x78\x00\x00\x3e\x00\xc0\x0f\x00\xf8\x0d\x00\x3e\x0c\x00\x0e\x0c'\ b'\x00\x3e\x0c\x00\xf8\x0d\x00\xc0\x0f\x00\x00\x3e\x00\x00\x78\x00'\ b'\x00\x40\x00\x0d\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x61\x00\x86\x61'\ b'\x00\x86\x61\x00\x86\x61\x00\xce\x61\x00\xfc\x73\x00\x78\x3e\x00'\ b'\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\xe0\x07'\ b'\x00\xf8\x1f\x00\x1c\x38\x00\x0c\x30\x00\x06\x60\x00\x06\x60\x00'\ b'\x06\x60\x00\x06\x60\x00\x06\x60\x00\x06\x60\x00\x0c\x30\x00\x00'\ b'\x00\x00\x00\x00\x00\x0f\x00\xfe\x7f\x00\xfe\x7f\x00\x06\x60\x00'\ b'\x06\x60\x00\x06\x60\x00\x06\x60\x00\x06\x60\x00\x0e\x70\x00\x0c'\ b'\x30\x00\x1c\x38\x00\xf8\x1f\x00\xe0\x07\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x61\x00\x86'\ b'\x61\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\x86\x61'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe'\ b'\x7f\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01'\ b'\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0'\ b'\x07\x00\xf8\x1f\x00\x1c\x38\x00\x0c\x30\x00\x06\x60\x00\x06\x60'\ b'\x00\x06\x60\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\x8c\x3f\x00'\ b'\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\xfe\x7f'\ b'\x00\xfe\x7f\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00'\ b'\x80\x01\x00\x80\x01\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\xfe\x7f\x00\xfe\x7f\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00'\ b'\x06\x00\x00\x06\x00\x00\x07\xfe\xff\x03\xfe\xff\x01\x00\x00\x00'\ b'\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\xc0\x01\x00\xe0\x03\x00\x70\x07'\ b'\x00\x38\x0e\x00\x1c\x1c\x00\x0e\x38\x00\x06\x70\x00\x02\x60\x00'\ b'\x00\x40\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x60'\ b'\x00\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\x60\x00'\ b'\x00\x60\x00\x00\x00\x00\x00\x00\x00\x10\x00\xfe\x7f\x00\xfe\x7f'\ b'\x00\x0e\x00\x00\x7e\x00\x00\xf0\x03\x00\x80\x0f\x00\x80\x0f\x00'\ b'\xf0\x03\x00\x7e\x00\x00\x0e\x00\x00\xfe\x7f\x00\xfe\x7f\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\xfe\x7f\x00'\ b'\xfe\x7f\x00\x1e\x00\x00\x78\x00\x00\xe0\x01\x00\x80\x07\x00\x00'\ b'\x1e\x00\x00\x78\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0\x07\x00\xf8\x1f\x00\x1c'\ b'\x38\x00\x0c\x30\x00\x06\x60\x00\x06\x60\x00\x06\x60\x00\x06\x60'\ b'\x00\x06\x60\x00\x0c\x30\x00\x1c\x38\x00\xf8\x1f\x00\xe0\x07\x00'\ b'\x00\x00\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x01'\ b'\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\xce\x01\x00\xfc\x00\x00'\ b'\x78\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0\x07'\ b'\x00\xf8\x1f\x00\x1c\x38\x00\x0c\x30\x00\x06\x60\x00\x06\x60\x00'\ b'\x06\x60\x00\x06\x60\x00\x06\xe0\x01\x0c\xb0\x01\x1c\x38\x01\xf8'\ b'\x1f\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x0d\x00\xfe\x7f\x00'\ b'\xfe\x7f\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\xce'\ b'\x07\x00\xfc\x1e\x00\x78\x7c\x00\x00\x70\x00\x00\x40\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x78\x30\x00\xfc\x60\x00\xce\x60\x00\xc6'\ b'\x60\x00\x86\x61\x00\x86\x61\x00\x86\x61\x00\x86\x73\x00\x0c\x3f'\ b'\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x06\x00\x00\x06'\ b'\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\xfe\x7f\x00\xfe\x7f'\ b'\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00'\ b'\x0e\x00\xfe\x0f\x00\xfe\x3f\x00\x00\x30\x00\x00\x60\x00\x00\x60'\ b'\x00\x00\x60\x00\x00\x60\x00\x00\x30\x00\xfe\x3f\x00\xfe\x0f\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x02\x00'\ b'\x00\x1e\x00\x00\x7c\x00\x00\xf0\x03\x00\x80\x1f\x00\x00\x7c\x00'\ b'\x00\x70\x00\x00\x7c\x00\x80\x1f\x00\xf0\x03\x00\x7c\x00\x00\x1e'\ b'\x00\x00\x02\x00\x00\x14\x00\x06\x00\x00\x7e\x00\x00\xf8\x07\x00'\ b'\x80\x7f\x00\x00\x78\x00\x00\x7e\x00\xe0\x1f\x00\xfe\x01\x00\x1e'\ b'\x00\x00\x1e\x00\x00\xfe\x01\x00\xe0\x1f\x00\x00\x7e\x00\x00\x78'\ b'\x00\x80\x7f\x00\xf8\x07\x00\x7e\x00\x00\x06\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x0e\x00\x00\x40\x00\x02\x60\x00\x06\x78\x00\x1e\x1c'\ b'\x00\x78\x0f\x00\xf0\x07\x00\xc0\x03\x00\xf0\x0f\x00\x38\x1e\x00'\ b'\x1e\x78\x00\x06\x60\x00\x02\x40\x00\x00\x00\x00\x00\x00\x00\x0c'\ b'\x00\x02\x00\x00\x06\x00\x00\x1e\x00\x00\x38\x00\x00\xf0\x00\x00'\ b'\xc0\x7f\x00\xc0\x7f\x00\xf0\x00\x00\x38\x00\x00\x1e\x00\x00\x06'\ b'\x00\x00\x02\x00\x00\x0d\x00\x06\x60\x00\x06\x70\x00\x06\x7c\x00'\ b'\x06\x6e\x00\x06\x67\x00\xc6\x63\x00\xe6\x60\x00\x76\x60\x00\x3e'\ b'\x60\x00\x0e\x60\x00\x06\x60\x00\x00\x00\x00\x00\x00\x00\x07\x00'\ b'\xfe\xff\x03\xfe\xff\x03\x06\x00\x03\x06\x00\x03\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x06\x00\x06\x00\x00\x7e\x00\x00\xf8\x07\x00'\ b'\x80\x7f\x00\x00\xf8\x01\x00\x80\x01\x07\x00\x06\x00\x03\x06\x00'\ b'\x03\xfe\xff\x03\xfe\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x10\x00\x00\x00\x00\x20\x00\x00\x10\x00\x00\x18\x00\x00\x0c\x00'\ b'\x00\x06\x00\x00\x06\x00\x00\x0c\x00\x00\x18\x00\x00\x10\x00\x00'\ b'\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x0a\x00\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01'\ b'\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00'\ b'\x80\x01\x0a\x00\x01\x00\x00\x03\x00\x00\x0e\x00\x00\x08\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x0b\x00\x00\x3c\x00\xc0\x7e\x00\x60\x63\x00\x60\x63\x00'\ b'\x60\x63\x00\x60\x63\x00\x60\x33\x00\xc0\x7f\x00\x80\x7f\x00\x00'\ b'\x00\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\xc0\x30\x00'\ b'\x60\x60\x00\x60\x60\x00\x60\x60\x00\xe0\x70\x00\xc0\x3f\x00\x80'\ b'\x1f\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00\x0f\x00\xc0\x3f\x00'\ b'\xc0\x30\x00\x60\x60\x00\x60\x60\x00\x60\x60\x00\x60\x60\x00\xc0'\ b'\x30\x00\x00\x00\x00\x0b\x00\x80\x1f\x00\xc0\x3f\x00\xe0\x70\x00'\ b'\x60\x60\x00\x60\x60\x00\x60\x60\x00\xc0\x30\x00\xfe\x7f\x00\xfe'\ b'\x7f\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x0f\x00\xc0\x3f\x00'\ b'\xc0\x36\x00\x60\x66\x00\x60\x66\x00\x60\x66\x00\x60\x66\x00\xe0'\ b'\x66\x00\xc0\x67\x00\x80\x37\x00\x00\x00\x00\x07\x00\x60\x00\x00'\ b'\x60\x00\x00\xfc\x7f\x00\xfe\x7f\x00\x66\x00\x00\x66\x00\x00\x66'\ b'\x00\x00\x0b\x00\x80\x1f\x00\xc0\x3f\x03\xe0\x70\x06\x60\x60\x06'\ b'\x60\x60\x06\x60\x60\x06\xc0\x30\x07\xe0\xff\x03\xe0\xff\x00\x00'\ b'\x00\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\xc0\x00\x00'\ b'\x60\x00\x00\x60\x00\x00\x60\x00\x00\xe0\x00\x00\xc0\x7f\x00\x80'\ b'\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\xe6\x7f\x00'\ b'\xe6\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00'\ b'\x06\x00\x00\x06\xe6\xff\x07\xe6\xff\x03\x00\x00\x00\x0b\x00\xfe'\ b'\x7f\x00\xfe\x7f\x00\x00\x06\x00\x00\x0f\x00\x80\x19\x00\xc0\x30'\ b'\x00\x60\x60\x00\x20\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x05\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x11\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00\x00\x60\x00\x00\x60'\ b'\x00\x00\x60\x00\x00\xe0\x7f\x00\x80\x7f\x00\xc0\x00\x00\x60\x00'\ b'\x00\x60\x00\x00\x60\x00\x00\xe0\x7f\x00\x80\x7f\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x0c\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00'\ b'\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\xe0\x00\x00\xc0\x7f\x00'\ b'\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x0f'\ b'\x00\xc0\x3f\x00\xc0\x30\x00\x60\x60\x00\x60\x60\x00\x60\x60\x00'\ b'\x60\x60\x00\xc0\x30\x00\xc0\x3f\x00\x00\x0f\x00\x00\x00\x00\x0b'\ b'\x00\xe0\xff\x07\xe0\xff\x07\xc0\x30\x00\x60\x60\x00\x60\x60\x00'\ b'\x60\x60\x00\xe0\x70\x00\xc0\x3f\x00\x80\x1f\x00\x00\x00\x00\x00'\ b'\x00\x00\x0b\x00\x80\x1f\x00\xc0\x3f\x00\xe0\x70\x00\x60\x60\x00'\ b'\x60\x60\x00\x60\x60\x00\xc0\x30\x00\xe0\xff\x07\xe0\xff\x07\x00'\ b'\x00\x00\x00\x00\x00\x08\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00\x00'\ b'\x60\x00\x00\x60\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x09'\ b'\x00\xc0\x31\x00\xc0\x63\x00\x60\x63\x00\x60\x63\x00\x60\x66\x00'\ b'\x60\x66\x00\x60\x3e\x00\xc0\x3c\x00\x00\x00\x00\x08\x00\x60\x00'\ b'\x00\xfc\x3f\x00\xfc\x7f\x00\x60\x60\x00\x60\x60\x00\x60\x60\x00'\ b'\x60\x60\x00\x00\x00\x00\x0c\x00\xe0\x1f\x00\xe0\x3f\x00\x00\x70'\ b'\x00\x00\x60\x00\x00\x60\x00\x00\x60\x00\x00\x30\x00\xe0\x7f\x00'\ b'\xe0\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x20\x00'\ b'\x00\xe0\x01\x00\xc0\x0f\x00\x00\x3e\x00\x00\x70\x00\x00\x70\x00'\ b'\x00\x3e\x00\xc0\x0f\x00\xe0\x01\x00\x20\x00\x00\x00\x00\x00\x11'\ b'\x00\xe0\x00\x00\xe0\x0f\x00\x00\x7f\x00\x00\x70\x00\x00\x7c\x00'\ b'\x80\x0f\x00\xe0\x01\x00\xe0\x01\x00\x80\x0f\x00\x00\x7c\x00\x00'\ b'\x70\x00\x00\x7f\x00\xe0\x0f\x00\xe0\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0b\x00\x20\x40\x00\x60\x60\x00\xe0\x79\x00\x80'\ b'\x1f\x00\x00\x06\x00\x00\x06\x00\x80\x1f\x00\xe0\x79\x00\x60\x60'\ b'\x00\x20\x40\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x60\x00\x00\xe0'\ b'\x01\x06\x80\x07\x06\x00\x9e\x07\x00\xf8\x03\x00\xf8\x00\x00\x1e'\ b'\x00\x80\x07\x00\xe0\x01\x00\x60\x00\x00\x00\x00\x00\x0b\x00\x60'\ b'\x60\x00\x60\x70\x00\x60\x7c\x00\x60\x7e\x00\x60\x67\x00\xe0\x63'\ b'\x00\xe0\x60\x00\x60\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x03\x00\x00\x03\x00\x00\x07\x00\xfc\xff\x03\xfe\xfc'\ b'\x07\x06\x00\x06\x06\x00\x06\x06\x00\x06\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x06\x00\xfe\xff\x0f\xfe\xff\x0f\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x06\x00\x06\x06'\ b'\x00\x06\x06\x00\x06\xfe\xfc\x07\xfc\xff\x03\x00\x07\x00\x00\x03'\ b'\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x10\x00\x00\x03\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01'\ b'\x00\x80\x01\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00'\ b'\x00\x03\x00\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00' _index =\ b'\x00\x00\x20\x00\x34\x00\x4e\x00\x68\x00\x9a\x00\xc0\x00\xf8\x00'\ b'\x24\x01\x32\x01\x49\x01\x60\x01\x80\x01\xb2\x01\xc6\x01\xdd\x01'\ b'\xf1\x01\x05\x02\x2b\x02\x51\x02\x77\x02\x9d\x02\xc3\x02\xe9\x02'\ b'\x0f\x03\x35\x03\x5b\x03\x81\x03\x95\x03\xa9\x03\xdb\x03\x0d\x04'\ b'\x3f\x04\x5f\x04\x9a\x04\xc3\x04\xec\x04\x15\x05\x44\x05\x6a\x05'\ b'\x8d\x05\xbc\x05\xe8\x05\xfc\x05\x10\x06\x36\x06\x59\x06\x8b\x06'\ b'\xb7\x06\xe6\x06\x0c\x07\x3b\x07\x64\x07\x8a\x07\xb0\x07\xdc\x07'\ b'\x05\x08\x43\x08\x6f\x08\x95\x08\xbe\x08\xd5\x08\xe9\x08\x00\x09'\ b'\x32\x09\x52\x09\x72\x09\x95\x09\xb8\x09\xd5\x09\xf8\x09\x1b\x0a'\ b'\x32\x0a\x55\x0a\x7b\x0a\x8c\x0a\x9d\x0a\xc0\x0a\xd1\x0a\x06\x0b'\ b'\x2c\x0b\x4f\x0b\x72\x0b\x95\x0b\xaf\x0b\xcc\x0b\xe6\x0b\x0c\x0c'\ b'\x2f\x0c\x64\x0c\x87\x0c\xad\x0c\xd0\x0c\xf6\x0c\x0a\x0d\x30\x0d'\ b'\x62\x0d' _mvfont = memoryview(_font) def _chr_addr(ordch): offset = 2 * (ordch - 32) return int.from_bytes(_index[offset:offset + 2], 'little') def get_width(s): width = 0 for ch in s: ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 32 offset = _chr_addr(ordch) width += int.from_bytes(_font[offset:offset + 2], 'little') return width def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 32 offset = _chr_addr(ordch) width = int.from_bytes(_font[offset:offset + 2], 'little') next_offs = _chr_addr(ordch +1) return _mvfont[offset + 2:next_offs], width
version = '0.26' def height(): return 20 def max_width(): return 20 def hmap(): return False def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font = b'\n\x00\x0c\x00\x00\x06\x00\x00\x06n\x00\x86o\x00\xce\x01\x00|\x00\x008\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\xfeg\x00\xfeg\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00>\x00\x00>\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x06\x000\x06\x000f\x000\x7f\x00\xf0\x07\x00?\x06\x001F\x000~\x00\xf0\x0f\x00\x7f\x06\x003\x06\x000\x06\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xe00\x00\xf0a\x00\xb8a\x00\x98c\x00\xfe\xff\x03\x18c\x00\x18s\x000>\x00\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00x\x00\x00\xfe\x01\x00\x02\x01\x00\x02A\x00\xfe1\x00x\x18\x00\x00\x06\x00\x00\x03\x00\xc0\x00\x00`\x00\x00\x18\x1e\x00\x8c\x7f\x00\x82@\x00\x80@\x00\x80\x7f\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x1e\x00\x00?\x00\xf83\x00\xfca\x00\xcea\x00\x86c\x00\x06w\x00\x06>\x00\x0c\x1c\x00\x00>\x00\x00w\x00\x00c\x00\x00@\x00\x00\x00\x00\x04\x00>\x00\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\xc0\x1f\x00\xf8\xff\x00\x1e\xc0\x03\x02\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x02\x00\x02\x1e\xc0\x03\xf8\xff\x00\xc0\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00\x84\x00\x00H\x00\x00H\x00\x000\x00\x00\xfe\x01\x000\x00\x00H\x00\x00H\x00\x00\x84\x00\x00\x00\x00\x00\x10\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\xf8\x7f\x00\xf8\x7f\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x03\x00\xe0\x01\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x80\x01\x00\xf8\x01\x80\x7f\x00\xf8\x07\x00~\x00\x00\x06\x00\x00\x0c\x00\xf0\x0f\x00\xf8\x1f\x00\x1c8\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x1c8\x00\xf8\x1f\x00\xf0\x0f\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c`\x00\x0c`\x00\x06`\x00\xfe\x7f\x00\xfe\x7f\x00\x00`\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c`\x00\x06p\x00\x06x\x00\x06|\x00\x06n\x00\x06g\x00\x8ec\x00\xfc`\x00x`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c0\x00\x06`\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\xces\x00|?\x00x\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x0e\x00\x00\x0f\x00\xc0\r\x00p\x0c\x00\x18\x0c\x00\x0e\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x0c\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x000\x00\xfea\x00\xfe`\x00\xc6`\x00\xc6`\x00\xc6`\x00\xc61\x00\x86?\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xe0\x0f\x00\xf8?\x00\x9c1\x00\x8e`\x00\xc6`\x00\xc6`\x00\xc6`\x00\xc6q\x00\x8c?\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x06\x00\x00\x06\x00\x00\x06@\x00\x06x\x00\x06?\x00\xc6\x07\x00\xfe\x01\x00>\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x008\x1e\x00|?\x00\xces\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\xces\x00|?\x008\x1e\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xf8\x00\x00\xfc1\x00\x8ec\x00\x06c\x00\x06c\x00\x06c\x00\x06q\x00\x8c9\x00\xfc\x1f\x00\xf0\x07\x00\x00\x00\x00\x00\x00\x00\x06\x00``\x00``\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x03`\xe0\x01`\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x03\x00\x00\x03\x00\x80\x07\x00\x80\x07\x00\x80\x07\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00`\x18\x00`\x18\x00`\x18\x0000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x0000\x00`\x18\x00`\x18\x00`\x18\x00\xc0\x0c\x00\xc0\x0c\x00\xc0\x0c\x00\x80\x07\x00\x80\x07\x00\x80\x07\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00\x0c\x00\x00\x06\x00\x00\x06n\x00\x86o\x00\xce\x01\x00|\x00\x008\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x13\x00\x80\x1f\x00\xe0?\x00x\xf0\x00\x18\xc0\x01\x0c\x80\x01\x8c\x8f\x03\xc6\x1f\x03\xc6\x18\x03\xc6\x18\x03\x86\x08\x03\xc6\x1f\x03\xc6\x9f\x01\x0c\xd8\x00\x1c\x08\x008\x0c\x00\xf0\x07\x00\xc0\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00@\x00\x00x\x00\x00>\x00\xc0\x0f\x00\xf8\r\x00>\x0c\x00\x0e\x0c\x00>\x0c\x00\xf8\r\x00\xc0\x0f\x00\x00>\x00\x00x\x00\x00@\x00\r\x00\xfe\x7f\x00\xfe\x7f\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\xcea\x00\xfcs\x00x>\x00\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\r\x00\xe0\x07\x00\xf8\x1f\x00\x1c8\x00\x0c0\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xfe\x7f\x00\xfe\x7f\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x0ep\x00\x0c0\x00\x1c8\x00\xf8\x1f\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\x86a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0\x07\x00\xf8\x1f\x00\x1c8\x00\x0c0\x00\x06`\x00\x06`\x00\x06`\x00\x86a\x00\x86a\x00\x86a\x00\x8c?\x00\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\xfe\x7f\x00\xfe\x7f\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x06\x00\x00\x06\x00\x00\x07\xfe\xff\x03\xfe\xff\x01\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\xc0\x01\x00\xe0\x03\x00p\x07\x008\x0e\x00\x1c\x1c\x00\x0e8\x00\x06p\x00\x02`\x00\x00@\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x10\x00\xfe\x7f\x00\xfe\x7f\x00\x0e\x00\x00~\x00\x00\xf0\x03\x00\x80\x0f\x00\x80\x0f\x00\xf0\x03\x00~\x00\x00\x0e\x00\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\xfe\x7f\x00\xfe\x7f\x00\x1e\x00\x00x\x00\x00\xe0\x01\x00\x80\x07\x00\x00\x1e\x00\x00x\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0\x07\x00\xf8\x1f\x00\x1c8\x00\x0c0\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x0c0\x00\x1c8\x00\xf8\x1f\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\xce\x01\x00\xfc\x00\x00x\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\xe0\x07\x00\xf8\x1f\x00\x1c8\x00\x0c0\x00\x06`\x00\x06`\x00\x06`\x00\x06`\x00\x06\xe0\x01\x0c\xb0\x01\x1c8\x01\xf8\x1f\x00\xe0\x07\x00\x00\x00\x00\x00\x00\x00\r\x00\xfe\x7f\x00\xfe\x7f\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\x86\x01\x00\xce\x07\x00\xfc\x1e\x00x|\x00\x00p\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x0c\x00x0\x00\xfc`\x00\xce`\x00\xc6`\x00\x86a\x00\x86a\x00\x86a\x00\x86s\x00\x0c?\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\xfe\x7f\x00\xfe\x7f\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x06\x00\x00\x0e\x00\xfe\x0f\x00\xfe?\x00\x000\x00\x00`\x00\x00`\x00\x00`\x00\x00`\x00\x000\x00\xfe?\x00\xfe\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\r\x00\x02\x00\x00\x1e\x00\x00|\x00\x00\xf0\x03\x00\x80\x1f\x00\x00|\x00\x00p\x00\x00|\x00\x80\x1f\x00\xf0\x03\x00|\x00\x00\x1e\x00\x00\x02\x00\x00\x14\x00\x06\x00\x00~\x00\x00\xf8\x07\x00\x80\x7f\x00\x00x\x00\x00~\x00\xe0\x1f\x00\xfe\x01\x00\x1e\x00\x00\x1e\x00\x00\xfe\x01\x00\xe0\x1f\x00\x00~\x00\x00x\x00\x80\x7f\x00\xf8\x07\x00~\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00@\x00\x02`\x00\x06x\x00\x1e\x1c\x00x\x0f\x00\xf0\x07\x00\xc0\x03\x00\xf0\x0f\x008\x1e\x00\x1ex\x00\x06`\x00\x02@\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x02\x00\x00\x06\x00\x00\x1e\x00\x008\x00\x00\xf0\x00\x00\xc0\x7f\x00\xc0\x7f\x00\xf0\x00\x008\x00\x00\x1e\x00\x00\x06\x00\x00\x02\x00\x00\r\x00\x06`\x00\x06p\x00\x06|\x00\x06n\x00\x06g\x00\xc6c\x00\xe6`\x00v`\x00>`\x00\x0e`\x00\x06`\x00\x00\x00\x00\x00\x00\x00\x07\x00\xfe\xff\x03\xfe\xff\x03\x06\x00\x03\x06\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x06\x00\x00~\x00\x00\xf8\x07\x00\x80\x7f\x00\x00\xf8\x01\x00\x80\x01\x07\x00\x06\x00\x03\x06\x00\x03\xfe\xff\x03\xfe\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00 \x00\x00\x10\x00\x00\x18\x00\x00\x0c\x00\x00\x06\x00\x00\x06\x00\x00\x0c\x00\x00\x18\x00\x00\x10\x00\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\n\x00\x01\x00\x00\x03\x00\x00\x0e\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00<\x00\xc0~\x00`c\x00`c\x00`c\x00`c\x00`3\x00\xc0\x7f\x00\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\xc00\x00``\x00``\x00``\x00\xe0p\x00\xc0?\x00\x80\x1f\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x0f\x00\xc0?\x00\xc00\x00``\x00``\x00``\x00``\x00\xc00\x00\x00\x00\x00\x0b\x00\x80\x1f\x00\xc0?\x00\xe0p\x00``\x00``\x00``\x00\xc00\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x0f\x00\xc0?\x00\xc06\x00`f\x00`f\x00`f\x00`f\x00\xe0f\x00\xc0g\x00\x807\x00\x00\x00\x00\x07\x00`\x00\x00`\x00\x00\xfc\x7f\x00\xfe\x7f\x00f\x00\x00f\x00\x00f\x00\x00\x0b\x00\x80\x1f\x00\xc0?\x03\xe0p\x06``\x06``\x06``\x06\xc00\x07\xe0\xff\x03\xe0\xff\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xfe\x7f\x00\xfe\x7f\x00\xc0\x00\x00`\x00\x00`\x00\x00`\x00\x00\xe0\x00\x00\xc0\x7f\x00\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\xe6\x7f\x00\xe6\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x06\x00\x00\x06\xe6\xff\x07\xe6\xff\x03\x00\x00\x00\x0b\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x06\x00\x00\x0f\x00\x80\x19\x00\xc00\x00``\x00 @\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\xfe\x7f\x00\xfe\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00\x00`\x00\x00`\x00\x00`\x00\x00\xe0\x7f\x00\x80\x7f\x00\xc0\x00\x00`\x00\x00`\x00\x00`\x00\x00\xe0\x7f\x00\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00\x00`\x00\x00`\x00\x00`\x00\x00\xe0\x00\x00\xc0\x7f\x00\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x0f\x00\xc0?\x00\xc00\x00``\x00``\x00``\x00``\x00\xc00\x00\xc0?\x00\x00\x0f\x00\x00\x00\x00\x0b\x00\xe0\xff\x07\xe0\xff\x07\xc00\x00``\x00``\x00``\x00\xe0p\x00\xc0?\x00\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x80\x1f\x00\xc0?\x00\xe0p\x00``\x00``\x00``\x00\xc00\x00\xe0\xff\x07\xe0\xff\x07\x00\x00\x00\x00\x00\x00\x08\x00\xe0\x7f\x00\xe0\x7f\x00\xc0\x00\x00`\x00\x00`\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\xc01\x00\xc0c\x00`c\x00`c\x00`f\x00`f\x00`>\x00\xc0<\x00\x00\x00\x00\x08\x00`\x00\x00\xfc?\x00\xfc\x7f\x00``\x00``\x00``\x00``\x00\x00\x00\x00\x0c\x00\xe0\x1f\x00\xe0?\x00\x00p\x00\x00`\x00\x00`\x00\x00`\x00\x000\x00\xe0\x7f\x00\xe0\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00 \x00\x00\xe0\x01\x00\xc0\x0f\x00\x00>\x00\x00p\x00\x00p\x00\x00>\x00\xc0\x0f\x00\xe0\x01\x00 \x00\x00\x00\x00\x00\x11\x00\xe0\x00\x00\xe0\x0f\x00\x00\x7f\x00\x00p\x00\x00|\x00\x80\x0f\x00\xe0\x01\x00\xe0\x01\x00\x80\x0f\x00\x00|\x00\x00p\x00\x00\x7f\x00\xe0\x0f\x00\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00 @\x00``\x00\xe0y\x00\x80\x1f\x00\x00\x06\x00\x00\x06\x00\x80\x1f\x00\xe0y\x00``\x00 @\x00\x00\x00\x00\x0c\x00\x00\x00\x00`\x00\x00\xe0\x01\x06\x80\x07\x06\x00\x9e\x07\x00\xf8\x03\x00\xf8\x00\x00\x1e\x00\x80\x07\x00\xe0\x01\x00`\x00\x00\x00\x00\x00\x0b\x00``\x00`p\x00`|\x00`~\x00`g\x00\xe0c\x00\xe0`\x00``\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x03\x00\x00\x03\x00\x00\x07\x00\xfc\xff\x03\xfe\xfc\x07\x06\x00\x06\x06\x00\x06\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\xfe\xff\x0f\xfe\xff\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x06\x00\x06\x06\x00\x06\x06\x00\x06\xfe\xfc\x07\xfc\xff\x03\x00\x07\x00\x00\x03\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x03\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x80\x01\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x00\x03\x00\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' _index = b'\x00\x00 \x004\x00N\x00h\x00\x9a\x00\xc0\x00\xf8\x00$\x012\x01I\x01`\x01\x80\x01\xb2\x01\xc6\x01\xdd\x01\xf1\x01\x05\x02+\x02Q\x02w\x02\x9d\x02\xc3\x02\xe9\x02\x0f\x035\x03[\x03\x81\x03\x95\x03\xa9\x03\xdb\x03\r\x04?\x04_\x04\x9a\x04\xc3\x04\xec\x04\x15\x05D\x05j\x05\x8d\x05\xbc\x05\xe8\x05\xfc\x05\x10\x066\x06Y\x06\x8b\x06\xb7\x06\xe6\x06\x0c\x07;\x07d\x07\x8a\x07\xb0\x07\xdc\x07\x05\x08C\x08o\x08\x95\x08\xbe\x08\xd5\x08\xe9\x08\x00\t2\tR\tr\t\x95\t\xb8\t\xd5\t\xf8\t\x1b\n2\nU\n{\n\x8c\n\x9d\n\xc0\n\xd1\n\x06\x0b,\x0bO\x0br\x0b\x95\x0b\xaf\x0b\xcc\x0b\xe6\x0b\x0c\x0c/\x0cd\x0c\x87\x0c\xad\x0c\xd0\x0c\xf6\x0c\n\r0\rb\r' _mvfont = memoryview(_font) def _chr_addr(ordch): offset = 2 * (ordch - 32) return int.from_bytes(_index[offset:offset + 2], 'little') def get_width(s): width = 0 for ch in s: ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 32 offset = _chr_addr(ordch) width += int.from_bytes(_font[offset:offset + 2], 'little') return width def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 32 offset = _chr_addr(ordch) width = int.from_bytes(_font[offset:offset + 2], 'little') next_offs = _chr_addr(ordch + 1) return (_mvfont[offset + 2:next_offs], width)
DEFAULT_MAPPING = { "login": "login", "password": "password", "account": "account", } MODULE_KEY = "click_creds.classes.ClickCreds"
default_mapping = {'login': 'login', 'password': 'password', 'account': 'account'} module_key = 'click_creds.classes.ClickCreds'
if __name__ == "__main__": im = 256 ih = 256 print("P3\n",im," ",ih,"\n255\n") for j in range(ih, 0, -1): for i in range(im): r = i / (im-1) g = j / (ih -1) b = 0.25 ir = int(255.999 * r) ig = int(255.999 * g) ib = int(255.999 * b) print(ir, " ", ig, " ", ib)
if __name__ == '__main__': im = 256 ih = 256 print('P3\n', im, ' ', ih, '\n255\n') for j in range(ih, 0, -1): for i in range(im): r = i / (im - 1) g = j / (ih - 1) b = 0.25 ir = int(255.999 * r) ig = int(255.999 * g) ib = int(255.999 * b) print(ir, ' ', ig, ' ', ib)
def maxRepeating(str): l = len(str) count = 0 res = str[0] for i in range(l): cur_count = 1 for j in range(i + 1, l): if (str[i] != str[j]): break cur_count += 1 # Update result if required if cur_count > count : count = cur_count res = str[i] return res lst = [] # number of elemetns as input N = int(input()) # iterating till the range for i in range(0, N): ele = int(input()) lst.append(ele) # adding the element ltos=' '.join([str(elem) for elem in lst]) print(maxRepeating(ltos))
def max_repeating(str): l = len(str) count = 0 res = str[0] for i in range(l): cur_count = 1 for j in range(i + 1, l): if str[i] != str[j]: break cur_count += 1 if cur_count > count: count = cur_count res = str[i] return res lst = [] n = int(input()) for i in range(0, N): ele = int(input()) lst.append(ele) ltos = ' '.join([str(elem) for elem in lst]) print(max_repeating(ltos))
dot3StatsTable = u'.1.3.6.1.2.1.10.7.2.1' dot3StatsAlignmentErrors = dot3StatsTable + u'.2' dot3StatsFCSErrors = dot3StatsTable + u'.3' dot3StatsFrameTooLongs = dot3StatsTable + u'.13' dots3stats_table_oids = [dot3StatsFCSErrors, dot3StatsAlignmentErrors, dot3StatsFrameTooLongs]
dot3_stats_table = u'.1.3.6.1.2.1.10.7.2.1' dot3_stats_alignment_errors = dot3StatsTable + u'.2' dot3_stats_fcs_errors = dot3StatsTable + u'.3' dot3_stats_frame_too_longs = dot3StatsTable + u'.13' dots3stats_table_oids = [dot3StatsFCSErrors, dot3StatsAlignmentErrors, dot3StatsFrameTooLongs]
x1 = 1 y1 = 0 x2 = 0 y2 = -2 m1 = (y2 / x1) print(f'X-intercept = {x1, x2} and Y-intercept = {y1, y2}\nSlope = {m1}') # 8
x1 = 1 y1 = 0 x2 = 0 y2 = -2 m1 = y2 / x1 print(f'X-intercept = {(x1, x2)} and Y-intercept = {(y1, y2)}\nSlope = {m1}')
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on: 2021/07/10 12:48 @Author: Merc2 '''
""" Created on: 2021/07/10 12:48 @Author: Merc2 """
class Xbpm(Device): x = Cpt(EpicsSignalRO, 'Pos:X-I') y = Cpt(EpicsSignalRO, 'Pos:Y-I') a = Cpt(EpicsSignalRO, 'Ampl:ACurrAvg-I') b = Cpt(EpicsSignalRO, 'Ampl:BCurrAvg-I') c = Cpt(EpicsSignalRO, 'Ampl:CCurrAvg-I') d = Cpt(EpicsSignalRO, 'Ampl:DCurrAvg-I') total = Cpt(EpicsSignalRO, 'Ampl:CurrTotal-I') class Best(Device): x_mean = Cpt(EpicsSignal, 'PosX_Mean') x_std = Cpt(EpicsSignal, 'PosX_Std') y_mean = Cpt(EpicsSignal, 'PosY_Mean') y_std = Cpt(EpicsSignal, 'PosY_Std') int_mean = Cpt(EpicsSignal, 'Int_Mean') int_std = Cpt(EpicsSignal, 'Int_Std') xbpm2 = Xbpm('SR:C17-BI{XBPM:2}', name='xbpm2') #best = Best('XF:16IDB-CT{Best}:BPM0:', name='best')
class Xbpm(Device): x = cpt(EpicsSignalRO, 'Pos:X-I') y = cpt(EpicsSignalRO, 'Pos:Y-I') a = cpt(EpicsSignalRO, 'Ampl:ACurrAvg-I') b = cpt(EpicsSignalRO, 'Ampl:BCurrAvg-I') c = cpt(EpicsSignalRO, 'Ampl:CCurrAvg-I') d = cpt(EpicsSignalRO, 'Ampl:DCurrAvg-I') total = cpt(EpicsSignalRO, 'Ampl:CurrTotal-I') class Best(Device): x_mean = cpt(EpicsSignal, 'PosX_Mean') x_std = cpt(EpicsSignal, 'PosX_Std') y_mean = cpt(EpicsSignal, 'PosY_Mean') y_std = cpt(EpicsSignal, 'PosY_Std') int_mean = cpt(EpicsSignal, 'Int_Mean') int_std = cpt(EpicsSignal, 'Int_Std') xbpm2 = xbpm('SR:C17-BI{XBPM:2}', name='xbpm2')
# # PySNMP MIB module V2H124-24-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/V2H124-24-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:33:28 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") ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") dot1dStpPortEntry, BridgeId, Timeout, dot1dStpPort = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dStpPortEntry", "BridgeId", "Timeout", "dot1dStpPort") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") PortList, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, TimeTicks, Integer32, MibIdentifier, IpAddress, ModuleIdentity, enterprises, Bits, Gauge32, Counter32, Unsigned32, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "TimeTicks", "Integer32", "MibIdentifier", "IpAddress", "ModuleIdentity", "enterprises", "Bits", "Gauge32", "Counter32", "Unsigned32", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "NotificationType") DisplayString, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue", "RowStatus") v2h124_24MIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 52, 4, 12, 30)).setLabel("v2h124-24MIB") v2h124_24MIB.setRevisions(('2004-01-21 20:31', '2003-12-12 17:04', '2003-07-25 19:59', '2003-07-18 21:42', '2003-12-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: v2h124_24MIB.setRevisionsDescriptions(('v2h124-24MIB and v2h124-24 were both defined as the same OID, removed v2h124-24 from the definition of v2h124-24MIB.', 'Changed ctronExp(12) to ctronV2H(12), ctronExp is defined as cabletron.mibs.2', 'Comments highlighting changes would go here.', 'Relocation to current branch and additional corrections.', 'Initial version of this MIB.',)) if mibBuilder.loadTexts: v2h124_24MIB.setLastUpdated('200401212031Z') if mibBuilder.loadTexts: v2h124_24MIB.setOrganization('Enterasys Networks, Inc') if mibBuilder.loadTexts: v2h124_24MIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: [email protected] WWW: http://www.enterasys.com') if mibBuilder.loadTexts: v2h124_24MIB.setDescription('The MIB module for V2H124-24.') v2h124_24MIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1)).setLabel("v2h124-24MIBObjects") v2h124_24Notifications = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2)).setLabel("v2h124-24Notifications") v2h124_24Conformance = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 3)).setLabel("v2h124-24Conformance") switchMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1)) portMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2)) trunkMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3)) lacpMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4)) staMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5)) restartMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7)) mirrorMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8)) igmpSnoopMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9)) ipMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10)) bcastStormMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11)) vlanMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12)) priorityMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13)) trapDestMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14)) qosMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16)) securityMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17)) sysLogMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19)) lineMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20)) sysTimeMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23)) fileMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24)) class ValidStatus(TextualConvention, Integer32): description = 'A simple status value for the object to create and destroy a table entry. This is a simplified variant of RowStatus as it supports only two values. Setting it to valid(1) creates an entry. Setting it to invalid(2) destroys an entry.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("valid", 1), ("invalid", 2)) switchManagementVlan = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readwrite") if mibBuilder.loadTexts: switchManagementVlan.setStatus('current') if mibBuilder.loadTexts: switchManagementVlan.setDescription('The VLAN on which management is done.') v2h124switchNumber = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124switchNumber.setStatus('current') if mibBuilder.loadTexts: v2h124switchNumber.setDescription('The total number of switches present on this system.') v2h124switchInfoTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3), ) if mibBuilder.loadTexts: v2h124switchInfoTable.setStatus('current') if mibBuilder.loadTexts: v2h124switchInfoTable.setDescription('Table of descriptive and status information about the switch units in this system.') v2h124switchInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1), ).setIndexNames((0, "V2H124-24-MIB", "v2h124swUnitIndex")) if mibBuilder.loadTexts: v2h124switchInfoEntry.setStatus('current') if mibBuilder.loadTexts: v2h124switchInfoEntry.setDescription('Table providing descriptions and status information for switch units.') v2h124swUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: v2h124swUnitIndex.setStatus('current') if mibBuilder.loadTexts: v2h124swUnitIndex.setDescription('This object identifies the switch within the system for which this entry contains information. This value can never be greater than switchNumber.') v2h124swHardwareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swHardwareVer.setStatus('current') if mibBuilder.loadTexts: v2h124swHardwareVer.setDescription('Hardware version of the main board.') v2h124swMicrocodeVer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swMicrocodeVer.setStatus('current') if mibBuilder.loadTexts: v2h124swMicrocodeVer.setDescription('Microcode version of the main board.') v2h124swLoaderVer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swLoaderVer.setStatus('current') if mibBuilder.loadTexts: v2h124swLoaderVer.setDescription('Loader version of the main board.') v2h124swBootRomVer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swBootRomVer.setStatus('current') if mibBuilder.loadTexts: v2h124swBootRomVer.setDescription('Boot ROM code version of the main board.') v2h124swOpCodeVer = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swOpCodeVer.setStatus('current') if mibBuilder.loadTexts: v2h124swOpCodeVer.setDescription('Operation code version of the main board.') v2h124swPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swPortNumber.setStatus('current') if mibBuilder.loadTexts: v2h124swPortNumber.setDescription('The number of ports of this switch.') v2h124swPowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("internalPower", 1), ("redundantPower", 2), ("internalAndRedundantPower", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swPowerStatus.setStatus('current') if mibBuilder.loadTexts: v2h124swPowerStatus.setDescription('Indicates the switch using internalPower(1), redundantPower(2) or both(3)') v2h124swRoleInSystem = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("master", 1), ("backupMaster", 2), ("slave", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swRoleInSystem.setStatus('current') if mibBuilder.loadTexts: v2h124swRoleInSystem.setDescription('Indicates the switch is master(1), backupMaster(2) or slave(3) in this system.') v2h124swSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swSerialNumber.setStatus('current') if mibBuilder.loadTexts: v2h124swSerialNumber.setDescription('Serial number of the switch.') v2h124swExpansionSlot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("notPresent", 1), ("other", 2), ("hundredBaseFxScMmf", 3), ("hundredBaseFxScSmf", 4), ("hundredBaseFxMtrjMmf", 5), ("thousandBaseSxScMmf", 6), ("thousandBaseSxMtrjMmf", 7), ("thousandBaseXGbic", 8), ("thousandBaseLxScSmf", 9), ("thousandBaseT", 10), ("stackingModule", 11), ("thousandBaseSfp", 12), ("tenHundredBaseT4port", 13), ("tenHundredBaseFxMtrj4port", 14), ("comboStackingSfp", 15), ("tenHundredBaseT", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swExpansionSlot1.setStatus('current') if mibBuilder.loadTexts: v2h124swExpansionSlot1.setDescription('Type of expansion module in this switch slot 1.') v2h124swExpansionSlot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("notPresent", 1), ("other", 2), ("hundredBaseFxScMmf", 3), ("hundredBaseFxScSmf", 4), ("hundredBaseFxMtrjMmf", 5), ("thousandBaseSxScMmf", 6), ("thousandBaseSxMtrjMmf", 7), ("thousandBaseXGbic", 8), ("thousandBaseLxScSmf", 9), ("thousandBaseT", 10), ("stackingModule", 11), ("thousandBaseSfp", 12), ("tenHundredBaseT4port", 13), ("tenHundredBaseFxMtrj4port", 14), ("comboStackingSfp", 15), ("tenHundredBaseT", 16)))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swExpansionSlot2.setStatus('current') if mibBuilder.loadTexts: v2h124swExpansionSlot2.setDescription('Type of expansion module in this switch slot 2.') v2h124swServiceTag = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: v2h124swServiceTag.setStatus('current') if mibBuilder.loadTexts: v2h124swServiceTag.setDescription('Service tag serial-number of the switch.') switchOperState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("ok", 3), ("noncritical", 4), ("critical", 5), ("nonrecoverable", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: switchOperState.setStatus('current') if mibBuilder.loadTexts: switchOperState.setDescription('Global operation state of the switch.') switchProductId = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5)) swProdName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swProdName.setStatus('current') if mibBuilder.loadTexts: swProdName.setDescription('The product name of this switch.') swProdManufacturer = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swProdManufacturer.setStatus('current') if mibBuilder.loadTexts: swProdManufacturer.setDescription('The product manufacturer of this switch.') swProdDescription = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swProdDescription.setStatus('current') if mibBuilder.loadTexts: swProdDescription.setDescription('The product description of this switch.') swProdVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swProdVersion.setStatus('current') if mibBuilder.loadTexts: swProdVersion.setDescription('The runtime code version of this switch.') swProdUrl = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readonly") if mibBuilder.loadTexts: swProdUrl.setStatus('current') if mibBuilder.loadTexts: swProdUrl.setDescription('The URL of this switch, which we can connect through a web browser.') swIdentifier = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swIdentifier.setStatus('current') if mibBuilder.loadTexts: swIdentifier.setDescription('A unique identifier of which switch in the chassis is currently being looked at.') swChassisServiceTag = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: swChassisServiceTag.setStatus('current') if mibBuilder.loadTexts: swChassisServiceTag.setDescription('The service tag of the chassis this switch resides in.') switchIndivPowerTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6), ) if mibBuilder.loadTexts: switchIndivPowerTable.setStatus('current') if mibBuilder.loadTexts: switchIndivPowerTable.setDescription('Table about statuses of individual powers.') switchIndivPowerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1), ).setIndexNames((0, "V2H124-24-MIB", "swIndivPowerUnitIndex"), (0, "V2H124-24-MIB", "swIndivPowerIndex")) if mibBuilder.loadTexts: switchIndivPowerEntry.setStatus('current') if mibBuilder.loadTexts: switchIndivPowerEntry.setDescription('Table about statuses of individual powers.') swIndivPowerUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: swIndivPowerUnitIndex.setStatus('current') if mibBuilder.loadTexts: swIndivPowerUnitIndex.setDescription('This is defined as v2h124swUnitIndex.') swIndivPowerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("internalPower", 1), ("externalPower", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: swIndivPowerIndex.setStatus('current') if mibBuilder.loadTexts: swIndivPowerIndex.setDescription('1 means internal power. 2 means external power.') swIndivPowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notPresent", 1), ("green", 2), ("red", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swIndivPowerStatus.setStatus('current') if mibBuilder.loadTexts: swIndivPowerStatus.setDescription('notPresent(1) means not present. green(2) means up. red(3) means down.') portTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1), ) if mibBuilder.loadTexts: portTable.setStatus('current') if mibBuilder.loadTexts: portTable.setDescription('Table of descriptive and status information describing the configuration of each switch port. This table also contains information about each trunk.') portEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "portIndex")) if mibBuilder.loadTexts: portEntry.setStatus('current') if mibBuilder.loadTexts: portEntry.setDescription('An entry in the table, describing the configuration of one switch port or trunk.') portIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: portIndex.setStatus('current') if mibBuilder.loadTexts: portIndex.setDescription('The port and the trunk (including trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') portName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portName.setStatus('current') if mibBuilder.loadTexts: portName.setDescription('The name of the port or trunk. This is the same as ifAlias in the IF-MIB (RFC2863 or later).') portType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("other", 1), ("hundredBaseTX", 2), ("hundredBaseFX", 3), ("thousandBaseSX", 4), ("thousandBaseLX", 5), ("thousandBaseT", 6), ("thousandBaseGBIC", 7), ("thousandBaseSfp", 8), ("hundredBaseFxScSingleMode", 9), ("hundredBaseFxScMultiMode", 10)))).setMaxAccess("readonly") if mibBuilder.loadTexts: portType.setStatus('current') if mibBuilder.loadTexts: portType.setDescription('Indicates the port type of the configuration of the switch') portSpeedDpxCfg = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("reserved", 1), ("halfDuplex10", 2), ("fullDuplex10", 3), ("halfDuplex100", 4), ("fullDuplex100", 5), ("halfDuplex1000", 6), ("fullDuplex1000", 7))).clone('halfDuplex10')).setMaxAccess("readwrite") if mibBuilder.loadTexts: portSpeedDpxCfg.setStatus('current') if mibBuilder.loadTexts: portSpeedDpxCfg.setDescription('Configures the speed and duplex mode for a port or trunk, according to: halfDuplex10(2) - 10Mbps and half duplex mode fullDuplex10(3) - 10Mbps and full duplex mode halfDuplex100(4) - 100Mbps and half duplex mode fullDuplex100(5) - 100Mbps and full duplex mode halfDuplex1000(6) - 1000Mbps and half duplex mode fullDuplex1000(7) - 1000Mbps and full duplex mode hundredBaseTX port can be set as halfDuplex10(2) fullDuplex10(3) halfDuplex100(4) fullDuplex100(5) hundredBaseFX port can be set as halfDuplex100(4) fullDuplex100(5) thousandBaseSX port can be set as halfDuplex1000(6) fullDuplex1000(7) The actual operating speed and duplex of the port is given by portSpeedDpxStatus.') portFlowCtrlCfg = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("backPressure", 3), ("dot3xFlowControl", 4))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: portFlowCtrlCfg.setStatus('current') if mibBuilder.loadTexts: portFlowCtrlCfg.setDescription('(1) Flow control mechanism is enabled. If the port type is hundredBaseTX or thousandBaseSX: When the port is operating in halfDuplex mode, the port uses backPressure flow control mechanism. When the port is operating in fullDuplex mode, the port uses IEEE 802.3x flow control mechanism. If the port type is hundredBaseFX: When the port is operating in halfDuplex mode, the port uses backPressure flow control mechanism. When the port is operating in fullDuplex mode, Flow control mechanism will not function. (2) Flow control mechanism is disabled. (3) Flow control mechanism is backPressure. when the port is in fullDuplex mode.This flow control mechanism will not function. (4) Flow control mechanism is IEEE 802.3x flow control. when the port is in halfDuplex mode.This flow control mechanism will not function. hundredBaseTX and thousandBaseSX port can be set as: enabled(1), disabled(2), backPressure(3), dot3xFlowControl(4). hundredBaseFX port can be set as: enabled(1), disabled(2), backPressure(3). The actual flow control mechanism is used given by portFlowCtrlStatus.') portCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 6), Bits().clone(namedValues=NamedValues(("portCap10half", 0), ("portCap10full", 1), ("portCap100half", 2), ("portCap100full", 3), ("portCap1000half", 4), ("portCap1000full", 5), ("reserved6", 6), ("reserved7", 7), ("reserved8", 8), ("reserved9", 9), ("reserved10", 10), ("reserved11", 11), ("reserved12", 12), ("reserved13", 13), ("portCapSym", 14), ("portCapFlowCtrl", 15)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portCapabilities.setStatus('current') if mibBuilder.loadTexts: portCapabilities.setDescription('Port or trunk capabilities.') portAutonegotiation = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 7), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: portAutonegotiation.setStatus('current') if mibBuilder.loadTexts: portAutonegotiation.setDescription('Whether auto-negotiation is enabled.') portSpeedDpxStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("error", 1), ("halfDuplex10", 2), ("fullDuplex10", 3), ("halfDuplex100", 4), ("fullDuplex100", 5), ("halfDuplex1000", 6), ("fullDuplex1000", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: portSpeedDpxStatus.setStatus('current') if mibBuilder.loadTexts: portSpeedDpxStatus.setDescription('The operating speed and duplex mode of the switched port or trunk. If the entry represents a trunk, the speed is that of its individual members unless the member ports have been inconsistently configured in which case the value is error(1).') portFlowCtrlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("error", 1), ("backPressure", 2), ("dot3xFlowControl", 3), ("none", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: portFlowCtrlStatus.setStatus('current') if mibBuilder.loadTexts: portFlowCtrlStatus.setDescription('(2) BackPressure flow control machanism is used. (3) IEEE 802.3 flow control machanism is used. (4) Flow control mechanism is disabled. If the entry represents a trunk and the member ports have been inconsistently configured then this value is error(1).') portTrunkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: portTrunkIndex.setStatus('current') if mibBuilder.loadTexts: portTrunkIndex.setDescription('The trunk to which this port belongs. A value of 0 means that this port does not belong to any trunk. A value greater than zero means that this port belongs to trunk at trunkIndex, defined by the corresponding trunkPorts.') trunkMaxId = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trunkMaxId.setStatus('current') if mibBuilder.loadTexts: trunkMaxId.setDescription('The maximum number for a trunk identifier.') trunkValidNumber = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trunkValidNumber.setStatus('current') if mibBuilder.loadTexts: trunkValidNumber.setDescription('The number of valid trunks.') trunkTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3), ) if mibBuilder.loadTexts: trunkTable.setStatus('current') if mibBuilder.loadTexts: trunkTable.setDescription('Table describing the configuration and status of each trunk.') trunkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1), ).setIndexNames((0, "V2H124-24-MIB", "trunkIndex")) if mibBuilder.loadTexts: trunkEntry.setStatus('current') if mibBuilder.loadTexts: trunkEntry.setDescription('An entry describing the configuration and status of a particular trunk.') trunkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: trunkIndex.setStatus('current') if mibBuilder.loadTexts: trunkIndex.setDescription('Identifies the trunk within the switch that is described by the table entry.') trunkPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 2), PortList()).setMaxAccess("readcreate") if mibBuilder.loadTexts: trunkPorts.setStatus('current') if mibBuilder.loadTexts: trunkPorts.setDescription('The complete set of ports currently associated with this trunk.') trunkCreation = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("lacp", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trunkCreation.setStatus('current') if mibBuilder.loadTexts: trunkCreation.setDescription('A value of static(1) means a statically configured trunk. A value of lacp(2) means an LACP-configured trunk.') trunkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 4), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: trunkStatus.setStatus('current') if mibBuilder.loadTexts: trunkStatus.setDescription('Writing this to valid(1) creates an entry. Writing this to invalid(2) destroys an entry. A trunk created by LACP cannot be manually destroyed or (re)configured.') lacpPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1), ) if mibBuilder.loadTexts: lacpPortTable.setStatus('current') if mibBuilder.loadTexts: lacpPortTable.setDescription('Table for LACP port configuration.') lacpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "lacpPortIndex")) if mibBuilder.loadTexts: lacpPortEntry.setStatus('current') if mibBuilder.loadTexts: lacpPortEntry.setDescription('Entry for LACP port configuration. While an entry may exist for a particular port, the port may not support LACP and an attempt to enable LACP may result in failure.') lacpPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: lacpPortIndex.setStatus('current') if mibBuilder.loadTexts: lacpPortIndex.setDescription('The port interface of the lacpPortTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') lacpPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1, 2), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: lacpPortStatus.setStatus('current') if mibBuilder.loadTexts: lacpPortStatus.setDescription('Whether 802.3ad LACP is enabled.') staSystemStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 1), EnabledStatus().clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: staSystemStatus.setStatus('current') if mibBuilder.loadTexts: staSystemStatus.setDescription('Global spanning tree status. (1) Spanning tree protocol is enabled. (2) Spanning tree protocol is disabled.') staPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2), ) if mibBuilder.loadTexts: staPortTable.setStatus('current') if mibBuilder.loadTexts: staPortTable.setDescription('The table manages port settings for Spanning Tree Protocol 802.1d, or 802.1w depending on the value specified by staProtocolType.') staPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1), ) dot1dStpPortEntry.registerAugmentions(("V2H124-24-MIB", "staPortEntry")) staPortEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames()) if mibBuilder.loadTexts: staPortEntry.setStatus('current') if mibBuilder.loadTexts: staPortEntry.setDescription('The conceptual entry of staPortTable.') staPortFastForward = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 2), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPortFastForward.setStatus('current') if mibBuilder.loadTexts: staPortFastForward.setDescription('Whether fast forwarding is enabled.') staPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPortProtocolMigration.setReference('IEEE 802.1w clause 14.8.2.4, 17.18.10, 17.26') if mibBuilder.loadTexts: staPortProtocolMigration.setStatus('current') if mibBuilder.loadTexts: staPortProtocolMigration.setDescription('When operating in RSTP (version 2) mode, setting this object to TRUE(1) object forces the port to transmit RSTP BPDUs. Any other operation on this object has no effect and it always returns FALSE(2) when read.') staPortAdminEdgePort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPortAdminEdgePort.setReference('IEEE 802.1t clause 14.8.2, 18.3.3') if mibBuilder.loadTexts: staPortAdminEdgePort.setStatus('current') if mibBuilder.loadTexts: staPortAdminEdgePort.setDescription('The administrative value of the Edge Port parameter. A value of TRUE(1) indicates that this port should be assumed to be an edge-port and a value of FALSE(2) indicates that this port should be assumed to be a non-edge-port.') staPortOperEdgePort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: staPortOperEdgePort.setReference('IEEE 802.1t clause 14.8.2, 18.3.4') if mibBuilder.loadTexts: staPortOperEdgePort.setStatus('current') if mibBuilder.loadTexts: staPortOperEdgePort.setDescription('The operational value of the Edge Port parameter. The object is initialized to the value of staPortAdminEdgePort and is set FALSE when a BPDU is received.') staPortAdminPointToPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("forceTrue", 0), ("forceFalse", 1), ("auto", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPortAdminPointToPoint.setReference('IEEE 802.1w clause 6.4.3, 6.5, 14.8.2') if mibBuilder.loadTexts: staPortAdminPointToPoint.setStatus('current') if mibBuilder.loadTexts: staPortAdminPointToPoint.setDescription('The administrative point-to-point status of the LAN segment attached to this port. A value of forceTrue(0) indicates that this port should always be treated as if it is connected to a point-to-point link. A value of forceFalse(1) indicates that this port should be treated as having a shared media connection. A value of auto(2) indicates that this port is considered to have a point-to-point link if it is an Aggregator and all of its members can be aggregated, or if the MAC entity is configured for full duplex operation, either through auto-negotiation or by explicit configuration.') staPortOperPointToPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: staPortOperPointToPoint.setReference('IEEE 802.1w clause 6.4.3, 6.5, 14.8.2') if mibBuilder.loadTexts: staPortOperPointToPoint.setStatus('current') if mibBuilder.loadTexts: staPortOperPointToPoint.setDescription('The operational point-to-point status of the LAN segment attached to this port. It indicates whether a port is considered to have a point-to-point connection or not. The value is determined by explicit configuration or by auto-detection, as described in the staPortAdminPointToPoint object.') staPortLongPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPortLongPathCost.setStatus('current') if mibBuilder.loadTexts: staPortLongPathCost.setDescription('The contribution of this port to the path cost (as a 32 bit value) of paths towards the spanning tree root which include this port. This object is used to configure the spanning tree port path cost as a 32 bit value when the staPathCostMethod is long(2). If the staPathCostMethod is short(1), this MIB object is not instantiated.') staProtocolType = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("stp", 1), ("rstp", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: staProtocolType.setReference('IEEE 802.1w clause 14.8.1, 17.12, 17.16.1') if mibBuilder.loadTexts: staProtocolType.setStatus('current') if mibBuilder.loadTexts: staProtocolType.setDescription("The version of Spanning Tree Protocol the bridge is currently running. The value 'stp(1)' indicates the Spanning Tree Protocol is as specified in IEEE 802.1D,'rstp(2)' indicates the Rapid Spanning Tree Protocol is as specified in IEEE 802.1w New values may be defined in the future as new or updated versions of the protocol become available.") staTxHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: staTxHoldCount.setReference('IEEE 802.1w clause 17.16.6') if mibBuilder.loadTexts: staTxHoldCount.setStatus('current') if mibBuilder.loadTexts: staTxHoldCount.setDescription('The minimum interval between the transmission of consecutive RSTP/MSTP BPDUs in seconds.') staPathCostMethod = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2))).clone('short')).setMaxAccess("readwrite") if mibBuilder.loadTexts: staPathCostMethod.setStatus('current') if mibBuilder.loadTexts: staPathCostMethod.setDescription("Indicates the type of spanning tree path cost mode configured on the switch. This mode applies to all instances of the Spanning tree protocol running on the switch. When the value of this MIB object is changed, the path cost of all ports will be reassigned to the default path cost values based on the new spanning tree path cost mode and the ports' speed. When the value of this MIB object is set to long(2), the staPortLongPathCost MIB object must be used to retrieve/ configure the spanning tree port path cost as a 32 bit value. The set operation on dot1dStpPortPathCost in the BRIDGE-MIB will be rejected. When retrieving the value of dot1dStpPortPathCost, the maximum value of 65535 will be returned if the value of staPortLongPathCost for the same instance exceeds 65535. When the value of this MIB object is set to short(1), the dot1dStpPortPathCost in the BRIDGE-MIB must be used.") xstMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6)) xstInstanceCfgTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4), ) if mibBuilder.loadTexts: xstInstanceCfgTable.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTable.setDescription('This table is used to configure Rapid Spanning Tree. Only the first row of the table is used by RST. In the future this table may be used to support other spanning tree protocols.') xstInstanceCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1), ).setIndexNames((0, "V2H124-24-MIB", "xstInstanceCfgIndex")) if mibBuilder.loadTexts: xstInstanceCfgEntry.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgEntry.setDescription('A conceptual row containing the properties of the RST instance.') xstInstanceCfgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: xstInstanceCfgIndex.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgIndex.setDescription('The index for an entry in the xstInstanceCfgTable table. For RST only the first row in the table is used.') xstInstanceCfgPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 61440))).setMaxAccess("readwrite") if mibBuilder.loadTexts: xstInstanceCfgPriority.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgPriority.setDescription('The priority of a specific spanning tree instance. The value assigned should be in the range 0-61440 in steps of 4096.') xstInstanceCfgTimeSinceTopologyChange = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgTimeSinceTopologyChange.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTimeSinceTopologyChange.setDescription('The time (in hundredths of second) since the last topology change detected by the bridge entity in RST.') xstInstanceCfgTopChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgTopChanges.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTopChanges.setDescription('The total number of topology changes detected by this bridge in RST since the management entity was last reset or initialized.') xstInstanceCfgDesignatedRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 5), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgDesignatedRoot.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgDesignatedRoot.setDescription('The bridge identifier of the root of the spanning tree as determined by the Rapid Spanning Tree Protocol (802.1w) executed by this node. This value is used as the Root Identifier parameter in all Configuration Bridge PDUs originated by this node.') xstInstanceCfgRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgRootCost.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgRootCost.setDescription('The cost of the path to the root as seen from this bridge of the RST.') xstInstanceCfgRootPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgRootPort.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgRootPort.setDescription('The number of the port which offers the lowest cost path from this bridge to the root bridge of the RST .') xstInstanceCfgMaxAge = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 8), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgMaxAge.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgMaxAge.setDescription('The maximum age of Rapid Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.') xstInstanceCfgHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 9), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgHelloTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgHelloTime.setDescription('The amount of time between the transmission of Configuration bridge PDUs by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second. This is the actual value that this bridge is currently using in RST.') xstInstanceCfgHoldTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 10), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgHoldTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgHoldTime.setDescription('This time value determines the interval length during which no more than two Configuration bridge PDUs shall be transmitted by this node, in units of hundredths of a second.') xstInstanceCfgForwardDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 11), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgForwardDelay.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgForwardDelay.setDescription('For the RST protocol, this time value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the Forwarding state. The value determines how long the port stays in each of the Listening and Learning states, which precede the Forwarding state. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database. This value is the current value being used by the bridge. xstInstanceCfgBridgeForwardDelay defines the value that this bridge and all others would start using if/when this bridge were to become the root.') xstInstanceCfgBridgeMaxAge = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 12), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgBridgeMaxAge.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeMaxAge.setDescription('For RST protocol, the time (in hundredths of second) that all bridges use for MaxAge when this bridge is acting as the root. Note that 802.1D-1990 specifies that the range for this parameter is related to the value of xstInstanceCfgBridgeHelloTime. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xstInstanceCfgBridgeHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 13), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgBridgeHelloTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeHelloTime.setDescription('For the RST protocol, the time (in hundredths of second) that all bridges use for HelloTime when this bridge is acting as the root. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xstInstanceCfgBridgeForwardDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 14), Timeout()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgBridgeForwardDelay.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeForwardDelay.setDescription('For the RST protocol, the time (in hundredths of second) that all bridges use for ForwardDelay when this bridge is acting as the root. Note that 802.1D-1990 specifies that the range for this parameter is related to the value of xstInstanceCfgBridgeMaxAge. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xstInstanceCfgTxHoldCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgTxHoldCount.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTxHoldCount.setDescription('For the RST protocol, the value used by the Port Transmit state machine to limit the maximum transmission rate.') xstInstanceCfgPathCostMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstanceCfgPathCostMethod.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgPathCostMethod.setDescription("For RST protocol, this indicates the type of spanning tree path cost mode used by the switch. The mode applies to all instances of the Spanning Tree protocol running on the switch. When the value of this MIB object is changed, the path cost of all ports will be reassigned to the default path cost values based on the new spanning tree path cost mode and the ports' speed. When the value of this MIB object is set to long(2), the xstInstancePortPathCost MIB object must be used in order to retrieve/configure the spanning tree port path cost as a 32 bit value. The set operation on dot1dStpPortPathCost in the BRIDGE-MIB will be rejected. While retrieving the value of dot1dStpPortPathCost, the maximum value of 65535 will be returned if the value of xstInstancePortPathCost for the same instance exceeds 65535. When the value of this MIB object is set to short(1), the dot1dStpPortPathCost in the BRIDGE-MIB must be used.") xstInstancePortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5), ) if mibBuilder.loadTexts: xstInstancePortTable.setStatus('current') if mibBuilder.loadTexts: xstInstancePortTable.setDescription('The extension table for dot1dStpPortEntry to provide additional Spanning Tree information and configuration.') xstInstancePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1), ).setIndexNames((0, "V2H124-24-MIB", "xstInstanceCfgIndex"), (0, "BRIDGE-MIB", "dot1dStpPort")) if mibBuilder.loadTexts: xstInstancePortEntry.setStatus('current') if mibBuilder.loadTexts: xstInstancePortEntry.setDescription('The conceptual row for xstInstancePortTable.') xstInstancePortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 240))).setMaxAccess("readwrite") if mibBuilder.loadTexts: xstInstancePortPriority.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPriority.setDescription('Defines the priority used for this port in the Spanning Tree Algorithm. If the path cost for all ports on a switch is the same, the port with the highest priority (i.e., lowest value) will be configured as an active link in the Spanning Tree. This makes a port with higher priority less likely to be blocked if the Spanning Tree Algorithm is detecting network loops. Where more than one port is assigned the highest priority, the port with lowest numeric identifier will be enabled.') xstInstancePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("discarding", 1), ("learning", 2), ("forwarding", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortState.setStatus('current') if mibBuilder.loadTexts: xstInstancePortState.setDescription("The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame: discarding(1) Port receives configuration messages, but does not forward packets. learning(2) Port has transmitted configuration messages for an interval set by the Forward Delay parameter without receiving contradictory information. Port address table is cleared, and the port begins learning addresses. forwarding(3) Port forwards packets, and continues learning addresses. For ports which are disabled (see xstInstancePortEnable), this object will have a value of discarding(1).") xstInstancePortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 5), EnabledStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortEnable.setStatus('current') if mibBuilder.loadTexts: xstInstancePortEnable.setDescription('The enabled/disabled status of the port.') xstInstancePortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: xstInstancePortPathCost.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPathCost.setDescription('The pathcost of the RST in the range 1 to 200000000. This parameter is used to determine the best path between devices. Therefore, lower values should be assigned to ports attached to faster media, and higher values assigned to ports with slower media. (Path cost takes precedence over port priority).') xstInstancePortDesignatedRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 7), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortDesignatedRoot.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedRoot.setDescription('The unique Bridge Identifier of the Bridge recorded as the Root in the Configuration BPDUs transmitted by the Designated Bridge for the segment to which the port is attached.') xstInstancePortDesignatedCost = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortDesignatedCost.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedCost.setDescription('The path cost of the Designated Port of the segment connected to this port. This value is compared to the Root Path Cost field in received bridge PDUs.') xstInstancePortDesignatedBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 9), BridgeId()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment.") xstInstancePortDesignatedPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortDesignatedPort.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedPort.setDescription("The Port Identifier of the port on the Designated Bridge for this port's segment.") xstInstancePortForwardTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortForwardTransitions.setStatus('current') if mibBuilder.loadTexts: xstInstancePortForwardTransitions.setDescription('The number of times this port has transitioned from the Learning state to the Forwarding state.') xstInstancePortPortRole = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backup", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: xstInstancePortPortRole.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPortRole.setDescription('The role of the port in the RST protocol: (1) The port has no role within the spanning tree (2) The port is part of the active topology connecting the bridge to the root bridge (i.e., root port) (3) The port is connecting a LAN through the bridge to the root bridge (i.e., designated port) (4) The port may provide connectivity if other bridges, bridge ports, or LANs fail or are removed. (5) The port provides backup if other bridges, bridge ports, or LANs fail or are removed.') restartOpCodeFile = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: restartOpCodeFile.setStatus('current') if mibBuilder.loadTexts: restartOpCodeFile.setDescription('Name of op-code file for start-up.') restartConfigFile = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: restartConfigFile.setStatus('current') if mibBuilder.loadTexts: restartConfigFile.setDescription('Name of configuration file for start-up.') restartControl = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("running", 1), ("warmBoot", 2), ("coldBoot", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: restartControl.setStatus('current') if mibBuilder.loadTexts: restartControl.setDescription("Setting this object to warmBoot(2) causes the device to reinitializing itself such that neither the agent configuration nor the protocol entity implementation is altered. Setting this object to coldBoot(3) causes the device to reinitializing itself such that the agent's configuration or the protocol entity implementation may be altered. When the device is running normally, this variable has a value of running(1).") mirrorTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1), ) if mibBuilder.loadTexts: mirrorTable.setStatus('current') if mibBuilder.loadTexts: mirrorTable.setDescription('Table for port mirroring, enabling a port to be mirrored to/from another port. Not all ports cannot be mirrored and limitations may apply as to which ports can be used as either source or destination ports.') mirrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "mirrorDestinationPort"), (0, "V2H124-24-MIB", "mirrorSourcePort")) if mibBuilder.loadTexts: mirrorEntry.setStatus('current') if mibBuilder.loadTexts: mirrorEntry.setDescription('The conceptual row of mirrorTable.') mirrorDestinationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: mirrorDestinationPort.setStatus('current') if mibBuilder.loadTexts: mirrorDestinationPort.setDescription('The destination port interface for mirrored packets. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') mirrorSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 2), Integer32()) if mibBuilder.loadTexts: mirrorSourcePort.setStatus('current') if mibBuilder.loadTexts: mirrorSourcePort.setDescription('The source port interface for mirrored packets. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') mirrorType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("rx", 1), ("tx", 2), ("both", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: mirrorType.setStatus('current') if mibBuilder.loadTexts: mirrorType.setDescription('If this value is rx(1), receive packets will be mirrored. If this value is tx(2), transmit packets will be mirrored. If this value is both(3), both receive and transmit packets will be mirrored.') mirrorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 4), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: mirrorStatus.setStatus('current') if mibBuilder.loadTexts: mirrorStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') igmpSnoopStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 1), EnabledStatus().clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopStatus.setDescription('Parameter to enable or disable IGMP snooping on the device. When enabled, the device will examine IGMP packets and set up filters for IGMP ports. ') igmpSnoopQuerier = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 2), EnabledStatus().clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopQuerier.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQuerier.setDescription('Enables (disables) whether the switch acts as an IGMP Querier.') igmpSnoopQueryCount = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 10)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopQueryCount.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryCount.setDescription('The query count from a querier, during which a response is expected from an endstation. If a querier has sent a number of counts defined by igmpSnoopQueryCount, but an endstation has not responded, a countdown timer is started using the time defined by igmpSnoopQueryMaxResponseTime. If the countdown finishes, and the endstation still has not responded, then that endstation is deemed to have left the multicast group.') igmpSnoopQueryInterval = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 125)).clone(125)).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopQueryInterval.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryInterval.setDescription('The interval (in seconds) between IGMP host-query messages sent by the switch.') igmpSnoopQueryMaxResponseTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 25)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopQueryMaxResponseTime.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryMaxResponseTime.setDescription('The time after a query, during which a response is expected from an endstation. If a querier has sent a number of queries defined by igmpSnoopQueryCount, but an endstation has not responded, a countdown timer is started using an initial value set by igmpSnoopQueryMaxResponseTime. If the countdown finishes, and the endstation still has not responded, then that the endstation is deemed to have left the multicast group.') igmpSnoopRouterPortExpireTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(300, 500)).clone(300)).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopRouterPortExpireTime.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterPortExpireTime.setDescription('Sets the time (in seconds) the switch waits after the previous querier has stopped querying before the router port (which received Query packets from previous querier) expires.') igmpSnoopVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: igmpSnoopVersion.setStatus('current') if mibBuilder.loadTexts: igmpSnoopVersion.setDescription('IGMP Version snooped') igmpSnoopRouterCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8), ) if mibBuilder.loadTexts: igmpSnoopRouterCurrentTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentTable.setDescription('Table for current router ports.') igmpSnoopRouterCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1), ).setIndexNames((0, "V2H124-24-MIB", "igmpSnoopRouterCurrentVlanIndex")) if mibBuilder.loadTexts: igmpSnoopRouterCurrentEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentEntry.setDescription('Entry for current router ports.') igmpSnoopRouterCurrentVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 1), Unsigned32()) if mibBuilder.loadTexts: igmpSnoopRouterCurrentVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopRouterStaticTable.') igmpSnoopRouterCurrentPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 2), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: igmpSnoopRouterCurrentPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentPorts.setDescription('The set of ports which are current router ports, including static router ports. Please refer to igmpSnoopRouterStaticTable.') igmpSnoopRouterCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: igmpSnoopRouterCurrentStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentStatus.setDescription('The set of ports which are static router ports.') igmpSnoopRouterStaticTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9), ) if mibBuilder.loadTexts: igmpSnoopRouterStaticTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticTable.setDescription('Table for static router ports.') igmpSnoopRouterStaticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1), ).setIndexNames((0, "V2H124-24-MIB", "igmpSnoopRouterStaticVlanIndex")) if mibBuilder.loadTexts: igmpSnoopRouterStaticEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticEntry.setDescription('Entry for static router ports.') igmpSnoopRouterStaticVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 1), Unsigned32()) if mibBuilder.loadTexts: igmpSnoopRouterStaticVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopRouterStaticTable.') igmpSnoopRouterStaticPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 2), PortList()).setMaxAccess("readcreate") if mibBuilder.loadTexts: igmpSnoopRouterStaticPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticPorts.setDescription('The set of ports which are static router ports.') igmpSnoopRouterStaticStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 3), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: igmpSnoopRouterStaticStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') igmpSnoopMulticastCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10), ) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentTable.setDescription('Table for current multicast addresses.') igmpSnoopMulticastCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1), ).setIndexNames((0, "V2H124-24-MIB", "igmpSnoopMulticastCurrentVlanIndex"), (0, "V2H124-24-MIB", "igmpSnoopMulticastCurrentIpAddress")) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentEntry.setDescription('Entry for current multicast addresses.') igmpSnoopMulticastCurrentVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 1), Unsigned32()) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopMulticastStaticTable.') igmpSnoopMulticastCurrentIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 2), IpAddress()) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentIpAddress.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentIpAddress.setDescription('IP address of multicast group.') igmpSnoopMulticastCurrentPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 3), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: igmpSnoopMulticastCurrentPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentPorts.setDescription('The set of ports which are members of a multicast group, including static members. Please refer to igmpSnoopMulticastStaticTable.') igmpSnoopMulticastCurrentStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 4), PortList()).setMaxAccess("readonly") if mibBuilder.loadTexts: igmpSnoopMulticastCurrentStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentStatus.setDescription('The set of ports which are static members.') igmpSnoopMulticastStaticTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11), ) if mibBuilder.loadTexts: igmpSnoopMulticastStaticTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticTable.setDescription('Table for static multicast addresses.') igmpSnoopMulticastStaticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1), ).setIndexNames((0, "V2H124-24-MIB", "igmpSnoopMulticastStaticVlanIndex"), (0, "V2H124-24-MIB", "igmpSnoopMulticastStaticIpAddress")) if mibBuilder.loadTexts: igmpSnoopMulticastStaticEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticEntry.setDescription('Entry for static multicast addresses.') igmpSnoopMulticastStaticVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 1), Unsigned32()) if mibBuilder.loadTexts: igmpSnoopMulticastStaticVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopMulticastStaticTable.') igmpSnoopMulticastStaticIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 2), IpAddress()) if mibBuilder.loadTexts: igmpSnoopMulticastStaticIpAddress.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticIpAddress.setDescription('IP address of multicast group.') igmpSnoopMulticastStaticPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 3), PortList()).setMaxAccess("readcreate") if mibBuilder.loadTexts: igmpSnoopMulticastStaticPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticPorts.setDescription('The set of ports which are members.') igmpSnoopMulticastStaticStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 4), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: igmpSnoopMulticastStaticStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') netConfigTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1), ) if mibBuilder.loadTexts: netConfigTable.setStatus('current') if mibBuilder.loadTexts: netConfigTable.setDescription('A table of netConfigEntries.') netConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "netConfigIfIndex"), (0, "V2H124-24-MIB", "netConfigIPAddress"), (0, "V2H124-24-MIB", "netConfigSubnetMask")) if mibBuilder.loadTexts: netConfigEntry.setStatus('current') if mibBuilder.loadTexts: netConfigEntry.setDescription('A set of configuration parameters for a particular network interface on this device. If the device has no network interface, this table is empty. The index is composed of the ifIndex assigned to the corresponding interface.') netConfigIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: netConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: netConfigIfIndex.setDescription('The VLAN interface being used by this table entry. Only the VLAN interfaces which have an IP configured will appear in the table.') netConfigIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 2), IpAddress()) if mibBuilder.loadTexts: netConfigIPAddress.setStatus('current') if mibBuilder.loadTexts: netConfigIPAddress.setDescription('The IP address of this Net interface. The default value for this object is 0.0.0.0. If either the netConfigIPAddress or netConfigSubnetMask are 0.0.0.0, then when the device boots, it may use BOOTP to try to figure out what these values should be. If BOOTP fails, before the device can talk on the network, this value must be configured (e.g., through a terminal attached to the device).') netConfigSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 3), IpAddress()) if mibBuilder.loadTexts: netConfigSubnetMask.setStatus('current') if mibBuilder.loadTexts: netConfigSubnetMask.setDescription('The subnet mask of this Net interface. The default value for this object is 0.0.0.0. If either the netConfigIPAddress or netConfigSubnetMask are 0.0.0.0, then when the device boots, it may use BOOTP to try to figure out what these values should be. If BOOTP fails, before the device can talk on the network, this value must be configured (e.g., through a terminal attached to the device).') netConfigPrimaryInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: netConfigPrimaryInterface.setStatus('current') if mibBuilder.loadTexts: netConfigPrimaryInterface.setDescription('Whether this is a primary interface.') netConfigUnnumbered = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unnumbered", 1), ("notUnnumbered", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: netConfigUnnumbered.setStatus('current') if mibBuilder.loadTexts: netConfigUnnumbered.setDescription('Whether this is an unnumbered interface.') netConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: netConfigStatus.setStatus('current') if mibBuilder.loadTexts: netConfigStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") netDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: netDefaultGateway.setStatus('current') if mibBuilder.loadTexts: netDefaultGateway.setDescription('The IP Address of the default gateway. If this value is undefined or unknown, it shall have the value 0.0.0.0.') ipHttpState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 3), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipHttpState.setStatus('current') if mibBuilder.loadTexts: ipHttpState.setDescription('Whether HTTP is enabled.') ipHttpPort = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipHttpPort.setStatus('current') if mibBuilder.loadTexts: ipHttpPort.setDescription('The port number for HTTP.') ipDhcpRestart = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("restart", 1), ("noRestart", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipDhcpRestart.setStatus('current') if mibBuilder.loadTexts: ipDhcpRestart.setDescription('When set to restart(1) the DHCP server will restart. When read, this value always returns noRestart(2).') ipHttpsState = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 6), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipHttpsState.setStatus('current') if mibBuilder.loadTexts: ipHttpsState.setDescription('Whether HTTPS is enabled.') ipHttpsPort = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipHttpsPort.setStatus('current') if mibBuilder.loadTexts: ipHttpsPort.setDescription('The port number for HTTPS.') bcastStormTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1), ) if mibBuilder.loadTexts: bcastStormTable.setStatus('current') if mibBuilder.loadTexts: bcastStormTable.setDescription('Table to manage the control of broadcast storms for ports.') bcastStormEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "bcastStormIfIndex")) if mibBuilder.loadTexts: bcastStormEntry.setStatus('current') if mibBuilder.loadTexts: bcastStormEntry.setDescription('The conceptual row of bcastStormTable.') bcastStormIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: bcastStormIfIndex.setStatus('current') if mibBuilder.loadTexts: bcastStormIfIndex.setDescription('The port and the trunk (including trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') bcastStormStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 2), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bcastStormStatus.setStatus('current') if mibBuilder.loadTexts: bcastStormStatus.setDescription('Whether broadcast storm protection is enabled.') bcastStormSampleType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pkt-rate", 1), ("octet-rate", 2), ("percent", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bcastStormSampleType.setStatus('current') if mibBuilder.loadTexts: bcastStormSampleType.setDescription('Sample type. If this is pkt-rate(1), then bcastStormPktRate is used to specify the broadcast storm threshold. If this is octet-rate(2), then bcastStormOctetRate determines the broadcast storm threshold. If this is percent(3), then bcastStormPercent determines the threshold.') bcastStormPktRate = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bcastStormPktRate.setStatus('current') if mibBuilder.loadTexts: bcastStormPktRate.setDescription('Broadcast storm threshold as packets per second. If this entry is for a trunk, this is the value for each member port.') bcastStormOctetRate = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bcastStormOctetRate.setStatus('current') if mibBuilder.loadTexts: bcastStormOctetRate.setDescription('Broadcast storm threshold as octets per second. If this entry is for a trunk, this is the value for each member port.') bcastStormPercent = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bcastStormPercent.setStatus('current') if mibBuilder.loadTexts: bcastStormPercent.setDescription('Broadcast storm threshold as percentage of bandwidth.') vlanTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1), ) if mibBuilder.loadTexts: vlanTable.setStatus('current') if mibBuilder.loadTexts: vlanTable.setDescription('Table for VLAN configuration.') vlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "vlanIndex")) if mibBuilder.loadTexts: vlanEntry.setStatus('current') if mibBuilder.loadTexts: vlanEntry.setDescription('Entry for VLAN configuration.') vlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: vlanIndex.setStatus('current') if mibBuilder.loadTexts: vlanIndex.setDescription('Based on dot1qVlanIndex in the Q-BRIDGE-MIB. This table has only one entry - the entry for the VLAN of the management interface.') vlanAddressMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("user", 1), ("bootp", 2), ("dhcp", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanAddressMethod.setStatus('current') if mibBuilder.loadTexts: vlanAddressMethod.setDescription('Method to get the IP address.') vlanPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2), ) if mibBuilder.loadTexts: vlanPortTable.setStatus('current') if mibBuilder.loadTexts: vlanPortTable.setDescription('Table for port configuration in VLAN.') vlanPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1), ).setIndexNames((0, "V2H124-24-MIB", "vlanPortIndex")) if mibBuilder.loadTexts: vlanPortEntry.setStatus('current') if mibBuilder.loadTexts: vlanPortEntry.setDescription('Entry for port configuration in VLAN.') vlanPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: vlanPortIndex.setStatus('current') if mibBuilder.loadTexts: vlanPortIndex.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qPvid in the Q-BRIDGE-MIB.') vlanPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("hybrid", 1), ("dot1qTrunk", 2), ("access", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vlanPortMode.setStatus('current') if mibBuilder.loadTexts: vlanPortMode.setDescription('This variable sets the 802.1Q VLAN mode. Setting it to hybrid(1) sets a hybrid link. Setting it to dot1qTrunk(2) sets a trunk link. Setting it to access(3) sets an access link.') prioIpPrecDscpStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("precedence", 2), ("dscp", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpPrecDscpStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPrecDscpStatus.setDescription('Selects whether no frame priority mapping, IP ToS precedence mapping or DSCP mapping is performed.') prioIpPrecTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2), ) if mibBuilder.loadTexts: prioIpPrecTable.setStatus('current') if mibBuilder.loadTexts: prioIpPrecTable.setDescription('Table for IP precedence priority mapping.') prioIpPrecEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1), ).setIndexNames((0, "V2H124-24-MIB", "prioIpPrecPort"), (0, "V2H124-24-MIB", "prioIpPrecValue")) if mibBuilder.loadTexts: prioIpPrecEntry.setStatus('current') if mibBuilder.loadTexts: prioIpPrecEntry.setDescription('Entry for IP precedence priority mapping.') prioIpPrecPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 2), Integer32()) if mibBuilder.loadTexts: prioIpPrecPort.setStatus('current') if mibBuilder.loadTexts: prioIpPrecPort.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prioIpPrecValue = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: prioIpPrecValue.setStatus('current') if mibBuilder.loadTexts: prioIpPrecValue.setDescription('Value of IP ToS Precedence as specified in the packet header.') prioIpPrecCos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpPrecCos.setReference('P-BRIDGE-MIB.dot1dPriority.dot1dTrafficClassTable.') if mibBuilder.loadTexts: prioIpPrecCos.setStatus('current') if mibBuilder.loadTexts: prioIpPrecCos.setDescription('Class of Service (CoS) as defined by dot1dTrafficClassPriority in the P-BRIDGE-MIB. The IP ToS precedence value in the same table row will be mapped to this CoS. This CoS is then further mapped to the hardware queue according to dot1dTrafficClassTable.') prioIpPrecRestoreDefault = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpPrecRestoreDefault.setStatus('current') if mibBuilder.loadTexts: prioIpPrecRestoreDefault.setDescription('Enables the IP Precedence settings of a port to be restored to their default values. To reset the settings of a port, assign prioIpPrecRestoreDefault to the value of ifIndex defined by the ifIndex in the IF-MIB. For example, If 1 is written to it, then the IP priorities of port 1 will be restored to default. When read, this object always returns 0.') prioIpDscpTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4), ) if mibBuilder.loadTexts: prioIpDscpTable.setStatus('current') if mibBuilder.loadTexts: prioIpDscpTable.setDescription('Table for IP DSCP priority mapping.') prioIpDscpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1), ).setIndexNames((0, "V2H124-24-MIB", "prioIpDscpPort"), (0, "V2H124-24-MIB", "prioIpDscpValue")) if mibBuilder.loadTexts: prioIpDscpEntry.setStatus('current') if mibBuilder.loadTexts: prioIpDscpEntry.setDescription('Entry for IP DSCP priority mapping.') prioIpDscpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 1), Integer32()) if mibBuilder.loadTexts: prioIpDscpPort.setStatus('current') if mibBuilder.loadTexts: prioIpDscpPort.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prioIpDscpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: prioIpDscpValue.setStatus('current') if mibBuilder.loadTexts: prioIpDscpValue.setDescription('Value of IP DSCP as specified in the packet header.') prioIpDscpCos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpDscpCos.setReference('P-BRIDGE-MIB.dot1dPriority.dot1dTrafficClassTable.') if mibBuilder.loadTexts: prioIpDscpCos.setStatus('current') if mibBuilder.loadTexts: prioIpDscpCos.setDescription('Class of Service as defined by dot1dTrafficClassPriority in the P-BRIDGE-MIB. The prioIpDscpValue value in the same table row will be mapped to this Class of Service (COS). This CoS is then further mapped to the hardware queue according to dot1dTrafficClassTable.') prioIpDscpRestoreDefault = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpDscpRestoreDefault.setStatus('current') if mibBuilder.loadTexts: prioIpDscpRestoreDefault.setDescription('Enables the IP DSCP settings of a port to be reset to their defaults. To reset the IP DSCP settings of a port, assign the value of the relevant ifIndex defined by the ifIndex in the IF-MIB. For example, assigning the value 1 will result in the IP DSCP settings of port 1 being restored to their default. When read, this object always returns 0.') prioIpPortEnableStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 6), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioIpPortEnableStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPortEnableStatus.setDescription('Whether IP Port priority look-up is enabled.') prioIpPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7), ) if mibBuilder.loadTexts: prioIpPortTable.setStatus('current') if mibBuilder.loadTexts: prioIpPortTable.setDescription('Table for IP port priority mapping.') prioIpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1), ).setIndexNames((0, "V2H124-24-MIB", "prioIpPortPhysPort"), (0, "V2H124-24-MIB", "prioIpPortValue")) if mibBuilder.loadTexts: prioIpPortEntry.setStatus('current') if mibBuilder.loadTexts: prioIpPortEntry.setDescription('Entry for IP port priority mapping.') prioIpPortPhysPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 1), Integer32()) if mibBuilder.loadTexts: prioIpPortPhysPort.setStatus('current') if mibBuilder.loadTexts: prioIpPortPhysPort.setDescription('The port and the trunk (excluding trunk member) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prioIpPortValue = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: prioIpPortValue.setStatus('current') if mibBuilder.loadTexts: prioIpPortValue.setDescription('IP port for this value.') prioIpPortCos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prioIpPortCos.setStatus('current') if mibBuilder.loadTexts: prioIpPortCos.setDescription('Class of service for this entry.') prioIpPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 4), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: prioIpPortStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPortStatus.setDescription('Writing this to valid(1) creates an entry. Writing this to invalid(2) destroys an entry.') prioCopy = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8)) prioCopyIpPrec = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 1), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioCopyIpPrec.setStatus('current') if mibBuilder.loadTexts: prioCopyIpPrec.setDescription('Action to copy IP Precedence settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prioCopyIpDscp = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 2), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioCopyIpDscp.setStatus('current') if mibBuilder.loadTexts: prioCopyIpDscp.setDescription('Action to copy IP DSCP settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prioCopyIpPort = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 3), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioCopyIpPort.setStatus('current') if mibBuilder.loadTexts: prioCopyIpPort.setDescription('Action to copy IP Port settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prioWrrTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9), ) if mibBuilder.loadTexts: prioWrrTable.setStatus('current') if mibBuilder.loadTexts: prioWrrTable.setDescription('Table for weighted round robin (WRR).') prioWrrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1), ).setIndexNames((0, "V2H124-24-MIB", "prioWrrTrafficClass")) if mibBuilder.loadTexts: prioWrrEntry.setStatus('current') if mibBuilder.loadTexts: prioWrrEntry.setDescription('Entry for weighted round robin (WRR).') prioWrrTrafficClass = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: prioWrrTrafficClass.setReference('MIB.IETF|Q-BRIDGE-MIB.dot1dTrafficClass.') if mibBuilder.loadTexts: prioWrrTrafficClass.setStatus('current') if mibBuilder.loadTexts: prioWrrTrafficClass.setDescription('Traffic class for this entry, as defined in dot1dTrafficClass in the P-BRIDGE-MIB. The actual maximum depends on the hardware, and is equal to dot1dPortNumTrafficClasses-1.') prioWrrWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: prioWrrWeight.setStatus('current') if mibBuilder.loadTexts: prioWrrWeight.setDescription('Weight for this entry.') trapDestTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1), ) if mibBuilder.loadTexts: trapDestTable.setReference('RMON2-MIB, mib2(1).rmon(16).probeConfig(19).trapDestTable(13).') if mibBuilder.loadTexts: trapDestTable.setStatus('current') if mibBuilder.loadTexts: trapDestTable.setDescription('A list of trap destination entries.') trapDestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "trapDestAddress")) if mibBuilder.loadTexts: trapDestEntry.setStatus('current') if mibBuilder.loadTexts: trapDestEntry.setDescription('A destination entry describes the destination IP address, the community string and SNMP version to use when sending a trap.') trapDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 1), IpAddress()) if mibBuilder.loadTexts: trapDestAddress.setStatus('current') if mibBuilder.loadTexts: trapDestAddress.setDescription('The address to send traps.') trapDestCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readcreate") if mibBuilder.loadTexts: trapDestCommunity.setStatus('current') if mibBuilder.loadTexts: trapDestCommunity.setDescription('A community to which this destination address belongs.') trapDestStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 3), ValidStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: trapDestStatus.setStatus('current') if mibBuilder.loadTexts: trapDestStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') trapDestVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("version1", 1), ("version2", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: trapDestVersion.setStatus('current') if mibBuilder.loadTexts: trapDestVersion.setDescription('Determines the version of the Trap that is to be sent to the trap Receiver. If the value is 1, then a SNMP version 1 trap will be sent and if the value is 2, a SNMP version 2 trap is sent.') rateLimitMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1)) rateLimitStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 1), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rateLimitStatus.setStatus('current') if mibBuilder.loadTexts: rateLimitStatus.setDescription('Whether rate limit is enabled.') rateLimitPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2), ) if mibBuilder.loadTexts: rateLimitPortTable.setStatus('current') if mibBuilder.loadTexts: rateLimitPortTable.setDescription('Table for rate limit of each port.') rateLimitPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1), ).setIndexNames((0, "V2H124-24-MIB", "rlPortIndex")) if mibBuilder.loadTexts: rateLimitPortEntry.setStatus('current') if mibBuilder.loadTexts: rateLimitPortEntry.setDescription('Entry for rate limit of each port.') rlPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: rlPortIndex.setStatus('current') if mibBuilder.loadTexts: rlPortIndex.setDescription('The port and the trunk (including trunk member) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') rlPortInputLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlPortInputLimit.setStatus('current') if mibBuilder.loadTexts: rlPortInputLimit.setDescription('Value of the input rate limit. Its unit is megabits per second. For a 100 Mb/s port, the range is 1 to 100. For a 1000 Mb/s port, the range is 1 to 1000.') rlPortOutputLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlPortOutputLimit.setStatus('current') if mibBuilder.loadTexts: rlPortOutputLimit.setDescription('Value of the output rate limit. Its unit is megabits per second. For a 100 Mb/s port, the range is 1 to 100. For a 1000 Mb/s port, the range is 1 to 1000.') rlPortInputStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 6), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlPortInputStatus.setStatus('current') if mibBuilder.loadTexts: rlPortInputStatus.setDescription('Whether input rate limit is enabled for this port.') rlPortOutputStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 7), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: rlPortOutputStatus.setStatus('current') if mibBuilder.loadTexts: rlPortOutputStatus.setDescription('Whether output rate limit is enabled for this port.') markerMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2)) markerTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1), ) if mibBuilder.loadTexts: markerTable.setStatus('current') if mibBuilder.loadTexts: markerTable.setDescription('The marker table.') markerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "markerIfIndex"), (0, "V2H124-24-MIB", "markerAclName")) if mibBuilder.loadTexts: markerEntry.setStatus('current') if mibBuilder.loadTexts: markerEntry.setDescription('Entry for marker table.') markerIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: markerIfIndex.setStatus('current') if mibBuilder.loadTexts: markerIfIndex.setDescription('The interface index of the marker table. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') markerAclName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))) if mibBuilder.loadTexts: markerAclName.setStatus('current') if mibBuilder.loadTexts: markerAclName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device.') markerActionBitList = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 3), Bits().clone(namedValues=NamedValues(("dscp", 0), ("precedence", 1), ("priority", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: markerActionBitList.setStatus('current') if mibBuilder.loadTexts: markerActionBitList.setDescription('The marker action bit list, in right to left order. for example: 0x3(11 in binary) means dscp(0) and precedence(1) 0x4(100 in binary) means priority(2)') markerDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: markerDscp.setStatus('current') if mibBuilder.loadTexts: markerDscp.setDescription('The Dscp value of the marker entry.') markerPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: markerPrecedence.setStatus('current') if mibBuilder.loadTexts: markerPrecedence.setDescription('The precedence value of the marker entry.') markerPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: markerPriority.setStatus('current') if mibBuilder.loadTexts: markerPriority.setDescription('The priority value of the marker entry.') markerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: markerStatus.setStatus('current') if mibBuilder.loadTexts: markerStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") cosMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3)) prioAclToCosMappingTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1), ) if mibBuilder.loadTexts: prioAclToCosMappingTable.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingTable.setDescription('Table for Acl to Cos Mapping.') prioAclToCosMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "prioAclToCosMappingIfIndex"), (0, "V2H124-24-MIB", "prioAclToCosMappingAclName")) if mibBuilder.loadTexts: prioAclToCosMappingEntry.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingEntry.setDescription('Entry for Acl to Cos Mapping.') prioAclToCosMappingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: prioAclToCosMappingIfIndex.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingIfIndex.setDescription('The port interface of the prioAclToCosMappingEntry. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prioAclToCosMappingAclName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))) if mibBuilder.loadTexts: prioAclToCosMappingAclName.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingAclName.setDescription('The name of an IP ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device.') prioAclToCosMappingCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readcreate") if mibBuilder.loadTexts: prioAclToCosMappingCosValue.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingCosValue.setDescription('Cos value of the prioAclToCosMappingTable.') prioAclToCosMappingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: prioAclToCosMappingStatus.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") portSecurityMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2)) radiusMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4)) tacacsMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5)) sshMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6)) aclMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7)) portSecPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1), ) if mibBuilder.loadTexts: portSecPortTable.setStatus('current') if mibBuilder.loadTexts: portSecPortTable.setDescription('The Port Security(MAC binding) Table') portSecPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "portSecPortIndex")) if mibBuilder.loadTexts: portSecPortEntry.setStatus('current') if mibBuilder.loadTexts: portSecPortEntry.setDescription('The entry of portSecPortTable') portSecPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: portSecPortIndex.setStatus('current') if mibBuilder.loadTexts: portSecPortIndex.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') portSecPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 2), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: portSecPortStatus.setStatus('current') if mibBuilder.loadTexts: portSecPortStatus.setDescription('Set enabled(1) to enable port security and set disabled(2) to disable port security.') portSecAction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("trap", 2), ("shutdown", 3), ("trapAndShutdown", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portSecAction.setStatus('current') if mibBuilder.loadTexts: portSecAction.setDescription('The corresponding actions that will take place when a port is under intruded, when this variable is set to none(1), no action will perform, when this variable is set to trap(2), a swPortSecurityTrap trap will send, when this variable is set to shutdown(3), the port will shutdown, when this variable is set to trapAndShutdown(4), a swPortSecurityTrap will send and the port will shutdown.') portSecMaxMacCount = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: portSecMaxMacCount.setStatus('current') if mibBuilder.loadTexts: portSecMaxMacCount.setDescription('The maximun number of MAC addresses that will be learned and locked. When we change the value of this variable, if the portSecPortStatus is enabled, we will discard all secure MAC and begin to learn again, until the number of MAC has reached this value, and only the secure MAC addresses can enter this port. If the portSecPortStatus is disabled, we will begin to learn the MAC, and auto enabled the portSecPortStatus when the MAC has reached this value.') radiusServerAddress = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: radiusServerAddress.setStatus('current') if mibBuilder.loadTexts: radiusServerAddress.setDescription('IP address of RADIUS server.') radiusServerPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: radiusServerPortNumber.setStatus('current') if mibBuilder.loadTexts: radiusServerPortNumber.setDescription('IP port number of RADIUS server.') radiusServerKey = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite") if mibBuilder.loadTexts: radiusServerKey.setStatus('current') if mibBuilder.loadTexts: radiusServerKey.setDescription('Key for RADIUS. This variable can only be set. When this variable is read, it always returns a zero-length string.') radiusServerRetransmit = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: radiusServerRetransmit.setStatus('current') if mibBuilder.loadTexts: radiusServerRetransmit.setDescription('Maximum number of retransmissions for RADIUS.') radiusServerTimeout = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: radiusServerTimeout.setStatus('current') if mibBuilder.loadTexts: radiusServerTimeout.setDescription('Timeout for RADIUS.') tacacsServerAddress = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tacacsServerAddress.setStatus('current') if mibBuilder.loadTexts: tacacsServerAddress.setDescription('IP address of TACACS server.') tacacsServerPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tacacsServerPortNumber.setStatus('current') if mibBuilder.loadTexts: tacacsServerPortNumber.setDescription('IP port number of TACACS server.') tacacsServerKey = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tacacsServerKey.setStatus('current') if mibBuilder.loadTexts: tacacsServerKey.setDescription('The encryption key used to authenticate logon access for the client using TACAS. Do not use blank spaces in the string. This variable can only be set. When this variable is read, it always returns a zero-length string.') sshServerStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 1), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sshServerStatus.setStatus('current') if mibBuilder.loadTexts: sshServerStatus.setDescription('The status of Secure Shell Server, set this value to 1 to enable SSH server, set this value to 2 to disable the SSH server.') sshServerMajorVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sshServerMajorVersion.setStatus('current') if mibBuilder.loadTexts: sshServerMajorVersion.setDescription('The major version of the SSH Server.') sshServerMinorVersion = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sshServerMinorVersion.setStatus('current') if mibBuilder.loadTexts: sshServerMinorVersion.setDescription('The minor version of the SSH Server.') sshTimeout = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sshTimeout.setStatus('current') if mibBuilder.loadTexts: sshTimeout.setDescription('The time interval that the router waits for the SSH client to respond. The range is 1-120.') sshAuthRetries = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 5))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sshAuthRetries.setStatus('current') if mibBuilder.loadTexts: sshAuthRetries.setDescription('The number of attempts after which the interface is reset. The range is 1-5.') sshConnInfoTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6), ) if mibBuilder.loadTexts: sshConnInfoTable.setStatus('current') if mibBuilder.loadTexts: sshConnInfoTable.setDescription('The table for Secure Shell Connection.') sshConnInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1), ).setIndexNames((0, "V2H124-24-MIB", "sshConnID")) if mibBuilder.loadTexts: sshConnInfoEntry.setStatus('current') if mibBuilder.loadTexts: sshConnInfoEntry.setDescription('The conceptual row for sshConnInfoTable.') sshConnID = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 1), Integer32()) if mibBuilder.loadTexts: sshConnID.setStatus('current') if mibBuilder.loadTexts: sshConnID.setDescription('The connection ID of the Secure Shell Connection.') sshConnMajorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sshConnMajorVersion.setStatus('current') if mibBuilder.loadTexts: sshConnMajorVersion.setDescription('The SSH major version.') sshConnMinorVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sshConnMinorVersion.setStatus('current') if mibBuilder.loadTexts: sshConnMinorVersion.setDescription('The SSH minor version.') sshConnStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("negotiationStart", 1), ("authenticationStart", 2), ("sessionStart", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sshConnStatus.setStatus('current') if mibBuilder.loadTexts: sshConnStatus.setDescription('The SSH connection State. negotiationStart(1) mean the SSH is in its negotiation start state, authenticationStart(2) mean the SSH is in authentication start state, sessionStart(3) mean the SSH is in session start State.') sshConnEncryptionType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("des", 2), ("tribeDes", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sshConnEncryptionType.setStatus('current') if mibBuilder.loadTexts: sshConnEncryptionType.setDescription('The encryption type of the SSH. none(1) mean no encryption , des(2) mean using DES encryption, tribeDes mean using 3DES encryption.') sshConnUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: sshConnUserName.setStatus('current') if mibBuilder.loadTexts: sshConnUserName.setDescription('The user name of the connection.') sshDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noDisconnect", 1), ("disconnect", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sshDisconnect.setStatus('current') if mibBuilder.loadTexts: sshDisconnect.setDescription('Set the variable to disconnect to disconnect the connection, when read, this variable always return noDisconnect(1).') aclIpAceTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1), ) if mibBuilder.loadTexts: aclIpAceTable.setStatus('current') if mibBuilder.loadTexts: aclIpAceTable.setDescription('The conceptual table of all of aclIpAceEntry ') aclIpAceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclIpAceName"), (0, "V2H124-24-MIB", "aclIpAceIndex")) if mibBuilder.loadTexts: aclIpAceEntry.setStatus('current') if mibBuilder.loadTexts: aclIpAceEntry.setDescription('The conceptual row for aclIpAceTable.') aclIpAceName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))) if mibBuilder.loadTexts: aclIpAceName.setStatus('current') if mibBuilder.loadTexts: aclIpAceName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device') aclIpAceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))) if mibBuilder.loadTexts: aclIpAceIndex.setStatus('current') if mibBuilder.loadTexts: aclIpAceIndex.setDescription('The unique index of an ACE within an ACL ') aclIpAcePrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclIpAcePrecedence.setStatus('current') if mibBuilder.loadTexts: aclIpAcePrecedence.setDescription('Specifies the IP precedence value') aclIpAceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permit", 1), ("deny", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceAction.setStatus('current') if mibBuilder.loadTexts: aclIpAceAction.setDescription(' the aclIpAceAction of aces which have the same aclIpAceName must be the same') aclIpAceSourceIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 5), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceSourceIpAddr.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourceIpAddr.setDescription("The specified source IP address. The packet's source address is AND-ed with the value of aclIpAceSourceIpAddrBitmask and then compared against the value of this object.") aclIpAceSourceIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 6), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourceIpAddrBitmask.setDescription('The specified source IP address mask ') aclIpAceDestIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 7), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceDestIpAddr.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestIpAddr.setDescription("The specified destination IP address. The packet's destination address is AND-ed with the value of aclIpAceDestIpAddrBitmask and then compared against the value of this object") aclIpAceDestIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 8), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestIpAddrBitmask.setDescription('The specified destination IP address mask') aclIpAceProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceProtocol.setStatus('current') if mibBuilder.loadTexts: aclIpAceProtocol.setDescription("The protocol number field in the IP header used to indicate the higher layer protocol as specified in RFC 1700. A value value of 0 matches every IP packet. the object=256, means 'any' For example : 0 is IP, 1 is ICMP, 2 is IGMP, 4 is IP in IP encapsulation, 6 is TCP, 9 is IGRP, 17 is UDP, 47 is GRE, 50 is ESP, 51 is AH, 88 is IGRP, 89 is OSPF, 94 is KA9Q/NOS compatible IP over IP, 103 is PIMv2, 108 is PCP. ") aclIpAcePrec = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAcePrec.setStatus('current') if mibBuilder.loadTexts: aclIpAcePrec.setDescription('') aclIpAceTos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceTos.setStatus('current') if mibBuilder.loadTexts: aclIpAceTos.setDescription('') aclIpAceDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceDscp.setStatus('current') if mibBuilder.loadTexts: aclIpAceDscp.setDescription('') aclIpAceSourcePortOp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOperator", 1), ("equal", 2), ("range", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceSourcePortOp.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourcePortOp.setDescription('') aclIpAceMinSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceMinSourcePort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMinSourcePort.setDescription('') aclIpAceMaxSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceMaxSourcePort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMaxSourcePort.setDescription('') aclIpAceSourcePortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourcePortBitmask.setDescription('') aclIpAceDestPortOp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOperator", 1), ("equal", 2), ("range", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceDestPortOp.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestPortOp.setDescription('') aclIpAceMinDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceMinDestPort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMinDestPort.setDescription('') aclIpAceMaxDestPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceMaxDestPort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMaxDestPort.setDescription('') aclIpAceDestPortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestPortBitmask.setDescription('') aclIpAceControlCode = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceControlCode.setStatus('current') if mibBuilder.loadTexts: aclIpAceControlCode.setDescription(" Indicates how a the control flags of TCP packet's to be compared to be compared. aceIpControlCode is AND-ed with aceIpControlCodeBitmask") aclIpAceControlCodeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceControlCodeBitmask.setDescription("Indicates how a the control flags of TCP packet's to be compared to be compared. it can be used to check multiple flags of the FIN, SYN, RST, PSH, ACK, URG by sum of FIN=1, SYN=2, RST=4, PSH=8, ACK=16, URG=32 ") aclIpAceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 23), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIpAceStatus.setStatus('current') if mibBuilder.loadTexts: aclIpAceStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") aclMacAceTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2), ) if mibBuilder.loadTexts: aclMacAceTable.setStatus('current') if mibBuilder.loadTexts: aclMacAceTable.setDescription('The conceptual table of all of aclMacAceEntry ') aclMacAceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclMacAceName"), (0, "V2H124-24-MIB", "aclMacAceIndex")) if mibBuilder.loadTexts: aclMacAceEntry.setStatus('current') if mibBuilder.loadTexts: aclMacAceEntry.setDescription('The conceptual row for aclMacAceTable. ') aclMacAceName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))) if mibBuilder.loadTexts: aclMacAceName.setStatus('current') if mibBuilder.loadTexts: aclMacAceName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device') aclMacAceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))) if mibBuilder.loadTexts: aclMacAceIndex.setStatus('current') if mibBuilder.loadTexts: aclMacAceIndex.setDescription('The unique index of an ACE within an ACL') aclMacAcePrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclMacAcePrecedence.setStatus('current') if mibBuilder.loadTexts: aclMacAcePrecedence.setDescription('Specifies the IP precedence value') aclMacAceAction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permit", 1), ("deny", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceAction.setStatus('current') if mibBuilder.loadTexts: aclMacAceAction.setDescription('the aclMacAceAction of aces which have the same aclMacAceName must be the same') aclMacAcePktformat = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("any", 1), ("untagged-Eth2", 2), ("untagged802Dot3", 3), ("tagggedEth2", 4), ("tagged802Dot3", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAcePktformat.setStatus('current') if mibBuilder.loadTexts: aclMacAcePktformat.setDescription('used to check the packet format of the packets') aclMacAceSourceMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceSourceMacAddr.setStatus('current') if mibBuilder.loadTexts: aclMacAceSourceMacAddr.setDescription("Indicates the 48 bits destination MAC address. The specified source mac of the packet The packet's source mac address is AND-ed with the value of aceMacSourceMacAddrBitmask and then compared against the value of this object.") aclMacAceSourceMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceSourceMacAddrBitmask.setDescription('The specified source mac address mask.') aclMacAceDestMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceDestMacAddr.setStatus('current') if mibBuilder.loadTexts: aclMacAceDestMacAddr.setDescription("Indicates the 48 bits destination MAC address. The specified destination mac of the packet The packet's destination mac address is AND-ed with the value of aceMacDestMacAddrBitmask and then compared against the value of this object.") aclMacAceDestMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceDestMacAddrBitmask.setDescription('The specified destination mac address mask.') aclMacAceVidOp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOperator", 1), ("equal", 2), ("range", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceVidOp.setStatus('current') if mibBuilder.loadTexts: aclMacAceVidOp.setDescription('') aclMacAceMinVid = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceMinVid.setStatus('current') if mibBuilder.loadTexts: aclMacAceMinVid.setDescription('') aclMacAceVidBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceVidBitmask.setDescription('') aclMacAceMaxVid = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceMaxVid.setStatus('current') if mibBuilder.loadTexts: aclMacAceMaxVid.setDescription('') aclMacAceEtherTypeOp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOperator", 1), ("equal", 2), ("range", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceEtherTypeOp.setStatus('current') if mibBuilder.loadTexts: aclMacAceEtherTypeOp.setDescription('') aclMacAceEtherTypeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceEtherTypeBitmask.setDescription('') aclMacAceMinEtherType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1536, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceMinEtherType.setStatus('current') if mibBuilder.loadTexts: aclMacAceMinEtherType.setDescription('') aclMacAceMaxEtherType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1536, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceMaxEtherType.setStatus('current') if mibBuilder.loadTexts: aclMacAceMaxEtherType.setDescription('') aclMacAceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 18), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclMacAceStatus.setStatus('current') if mibBuilder.loadTexts: aclMacAceStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") aclAclGroupTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3), ) if mibBuilder.loadTexts: aclAclGroupTable.setStatus('current') if mibBuilder.loadTexts: aclAclGroupTable.setDescription(' the conceptual table of aclAclGroupEntry ') aclAclGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclAclGroupIfIndex")) if mibBuilder.loadTexts: aclAclGroupEntry.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEntry.setDescription('The conceptual row for aclAclGroupTable.') aclAclGroupIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: aclAclGroupIfIndex.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIfIndex.setDescription('the interface number specified the ACL bining to.') aclAclGroupIngressIpAcl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aclAclGroupIngressIpAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIngressIpAcl.setDescription('specified the ingress ip acl(standard or extended) binding to the interface.') aclAclGroupEgressIpAcl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aclAclGroupEgressIpAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEgressIpAcl.setDescription('specified the egress ip acl(standard or extended) binding to the interface.') aclAclGroupIngressMacAcl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aclAclGroupIngressMacAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIngressMacAcl.setDescription('specified the ingress mac acl binding to the interface.') aclAclGroupEgressMacAcl = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: aclAclGroupEgressMacAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEgressMacAcl.setDescription('specified the egress mac acl binding to the interface.') aclIngressIpMaskTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4), ) if mibBuilder.loadTexts: aclIngressIpMaskTable.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskTable.setDescription(' the conceptual table of aclIngressIpMaskEntry ') aclIngressIpMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclIngressIpMaskIndex")) if mibBuilder.loadTexts: aclIngressIpMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskEntry.setDescription('The conceptual row for aclIngressIpMaskTable.') aclIngressIpMaskIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: aclIngressIpMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIndex.setDescription('') aclIngressIpMaskPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclIngressIpMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskPrecedence.setDescription('') aclIngressIpMaskIsEnableTos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 3), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskIsEnableTos.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableTos.setDescription('') aclIngressIpMaskIsEnableDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 4), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskIsEnableDscp.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableDscp.setDescription('') aclIngressIpMaskIsEnablePrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 5), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskIsEnablePrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnablePrecedence.setDescription('') aclIngressIpMaskIsEnableProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 6), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskIsEnableProtocol.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableProtocol.setDescription('') aclIngressIpMaskSourceIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskSourceIpAddrBitmask.setDescription('') aclIngressIpMaskDestIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskDestIpAddrBitmask.setDescription('') aclIngressIpMaskSourcePortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskSourcePortBitmask.setDescription('') aclIngressIpMaskDestPortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskDestPortBitmask.setDescription('') aclIngressIpMaskControlCodeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskControlCodeBitmask.setDescription('') aclIngressIpMaskStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 12), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressIpMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") aclEgressIpMaskTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5), ) if mibBuilder.loadTexts: aclEgressIpMaskTable.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskTable.setDescription(' the conceptual table of aclEgressIpMaskEntry ') aclEgressIpMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclEgressIpMaskIndex")) if mibBuilder.loadTexts: aclEgressIpMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskEntry.setDescription('The conceptual row for aclEgressIpMaskTable.') aclEgressIpMaskIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: aclEgressIpMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIndex.setDescription('') aclEgressIpMaskPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclEgressIpMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskPrecedence.setDescription('') aclEgressIpMaskIsEnableTos = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 3), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskIsEnableTos.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableTos.setDescription('') aclEgressIpMaskIsEnableDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 4), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskIsEnableDscp.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableDscp.setDescription('') aclEgressIpMaskIsEnablePrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 5), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskIsEnablePrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnablePrecedence.setDescription('') aclEgressIpMaskIsEnableProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 6), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskIsEnableProtocol.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableProtocol.setDescription('') aclEgressIpMaskSourceIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskSourceIpAddrBitmask.setDescription('') aclEgressIpMaskDestIpAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskDestIpAddrBitmask.setDescription('') aclEgressIpMaskSourcePortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskSourcePortBitmask.setDescription('') aclEgressIpMaskDestPortBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskDestPortBitmask.setDescription('') aclEgressIpMaskControlCodeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskControlCodeBitmask.setDescription('') aclEgressIpMaskStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 12), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressIpMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") aclIngressMacMaskTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6), ) if mibBuilder.loadTexts: aclIngressMacMaskTable.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskTable.setDescription(' the conceptual table of aclIngressMacMaskEntry ') aclIngressMacMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclIngressMacMaskIndex")) if mibBuilder.loadTexts: aclIngressMacMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskEntry.setDescription('The conceptual row for aclIngressMacMaskTable.') aclIngressMacMaskIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: aclIngressMacMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskIndex.setDescription('') aclIngressMacMaskPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclIngressMacMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskPrecedence.setDescription('') aclIngressMacMaskSourceMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskSourceMacAddrBitmask.setDescription('') aclIngressMacMaskDestMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskDestMacAddrBitmask.setDescription('') aclIngressMacMaskVidBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskVidBitmask.setDescription('') aclIngressMacMaskEtherTypeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskEtherTypeBitmask.setDescription('') aclIngressMacMaskIsEnablePktformat = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 7), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskIsEnablePktformat.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskIsEnablePktformat.setDescription('') aclIngressMacMaskStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclIngressMacMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") aclEgressMacMaskTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7), ) if mibBuilder.loadTexts: aclEgressMacMaskTable.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskTable.setDescription(' the conceptual table of aclEgressMacMaskEntry ') aclEgressMacMaskEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1), ).setIndexNames((0, "V2H124-24-MIB", "aclEgressMacMaskIndex")) if mibBuilder.loadTexts: aclEgressMacMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskEntry.setDescription('The conceptual row for aclEgressMacMaskTable.') aclEgressMacMaskIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))) if mibBuilder.loadTexts: aclEgressMacMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskIndex.setDescription('') aclEgressMacMaskPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: aclEgressMacMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskPrecedence.setDescription('') aclEgressMacMaskSourceMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskSourceMacAddrBitmask.setDescription('') aclEgressMacMaskDestMacAddrBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskDestMacAddrBitmask.setDescription('') aclEgressMacMaskVidBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskVidBitmask.setDescription('') aclEgressMacMaskEtherTypeBitmask = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskEtherTypeBitmask.setDescription('') aclEgressMacMaskIsEnablePktformat = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 7), EnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskIsEnablePktformat.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskIsEnablePktformat.setDescription('') aclEgressMacMaskStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: aclEgressMacMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") sysLogStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 1), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysLogStatus.setStatus('current') if mibBuilder.loadTexts: sysLogStatus.setDescription('Whether the system log is enabled.') sysLogHistoryFlashLevel = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysLogHistoryFlashLevel.setStatus('current') if mibBuilder.loadTexts: sysLogHistoryFlashLevel.setDescription('Severity level for logging to flash.') sysLogHistoryRamLevel = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysLogHistoryRamLevel.setStatus('current') if mibBuilder.loadTexts: sysLogHistoryRamLevel.setDescription('Severity level for logging to RAM.') consoleMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1)) telnetMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2)) consoleDataBits = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("databits7", 1), ("databits8", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleDataBits.setStatus('current') if mibBuilder.loadTexts: consoleDataBits.setDescription('Number of data bits.') consoleParity = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("partyNone", 1), ("partyEven", 2), ("partyOdd", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleParity.setStatus('current') if mibBuilder.loadTexts: consoleParity.setDescription('Define the generation of a parity bit.') consoleBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("baudRate9600", 1), ("baudRate19200", 2), ("baudRate38400", 3), ("baudRate57600", 4), ("baudRate115200", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleBaudRate.setStatus('current') if mibBuilder.loadTexts: consoleBaudRate.setDescription('Baud rate. Valid values are 115200, 57600, 38400, 19200, and 9600.') consoleStopBits = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("stopbits1", 1), ("stopbits2", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleStopBits.setStatus('current') if mibBuilder.loadTexts: consoleStopBits.setDescription('The stop Bits of the console, valid value is stopbits1(1) or stopbits2(2)') consoleExecTimeout = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleExecTimeout.setStatus('current') if mibBuilder.loadTexts: consoleExecTimeout.setDescription('In serial console, use the consoleExecTimeout variable to set the interval that the EXEC command interpreter waits until user input is detected, set the value to 0 to disable it.') consolePasswordThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consolePasswordThreshold.setStatus('current') if mibBuilder.loadTexts: consolePasswordThreshold.setDescription('The number of failed console logon attempts that may be made before the system will not accept a further attempt for the time specified by consoleSilentTime. A value of 0 disables the functionality.') consoleSilentTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: consoleSilentTime.setStatus('current') if mibBuilder.loadTexts: consoleSilentTime.setDescription('The length of time that the management console is inaccessible for after the number of failed logon attempts has reached consolePasswordThreshold. A value of 0 disables the functionality.') telnetExecTimeout = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: telnetExecTimeout.setStatus('current') if mibBuilder.loadTexts: telnetExecTimeout.setDescription('Specifies the interval that the system waits for user input before terminating the current telnet session.') telnetPasswordThreshold = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: telnetPasswordThreshold.setStatus('current') if mibBuilder.loadTexts: telnetPasswordThreshold.setDescription('The number of failed telnet logon attempts that may be made before the system will not accept a further attempt to logon with telnet.') sntpMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1)) sntpStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 1), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sntpStatus.setStatus('current') if mibBuilder.loadTexts: sntpStatus.setDescription('Set enabled(1) to enable the SNTP, set disabled(2) to disable the SNTP.') sntpServiceMode = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unicast", 1), ("broadcast", 2), ("anycast", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sntpServiceMode.setStatus('current') if mibBuilder.loadTexts: sntpServiceMode.setDescription('Service mode.') sntpPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 16384))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sntpPollInterval.setStatus('current') if mibBuilder.loadTexts: sntpPollInterval.setDescription('Polling interval.') sntpServerTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4), ) if mibBuilder.loadTexts: sntpServerTable.setStatus('current') if mibBuilder.loadTexts: sntpServerTable.setDescription('Table for SNTP servers') sntpServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1), ).setIndexNames((0, "V2H124-24-MIB", "sntpServerIndex")) if mibBuilder.loadTexts: sntpServerEntry.setStatus('current') if mibBuilder.loadTexts: sntpServerEntry.setDescription('Entry for SNTP servers.') sntpServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 3))) if mibBuilder.loadTexts: sntpServerIndex.setStatus('current') if mibBuilder.loadTexts: sntpServerIndex.setDescription('The index of a server. This table has fixed size.') sntpServerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: sntpServerIpAddress.setStatus('current') if mibBuilder.loadTexts: sntpServerIpAddress.setDescription('The IP address of a server. Valid IP addresses must occupy contiguous indexes. All IP addresses after the last valid index is 0.') sysCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysCurrentTime.setStatus('current') if mibBuilder.loadTexts: sysCurrentTime.setDescription("It is a text string in the following form, based on Unix: 'Mmm _d hh:mm:ss yyyy'. 'Mmm' is the first three letters of the English name of the month. '_d' is the day of month. A single-digit day is preceded by the space. 'hh:mm:ss' is a 24-hour representations of hours, minutes, and seconds. A single-digit hour is preceded by a zero. 'yyyy' is the four-digit year. An example is: 'Jan 1 02:03:04 2002'.") sysTimeZone = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysTimeZone.setStatus('current') if mibBuilder.loadTexts: sysTimeZone.setDescription("It is a text string in the following form: '[s]hh:mm'. '[s]' is a plus-or-minus sign. For UTC, this is omitted. For a positive offset, this is '+'. For a negative offset, this is '-'. 'hh:mm' in the hour and minute offset from UTC. A single-digit hour is preceded by a zero.") sysTimeZoneName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sysTimeZoneName.setStatus('current') if mibBuilder.loadTexts: sysTimeZoneName.setDescription('The name of the time zone.') fileCopyMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1)) fileCopySrcOperType = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("file", 1), ("runningCfg", 2), ("startUpCfg", 3), ("tftp", 4), ("unit", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopySrcOperType.setStatus('current') if mibBuilder.loadTexts: fileCopySrcOperType.setDescription("The Copy Operation in which we want to perform to the fileCopyDestOperType, this operation is similar to the CLI command 'copy fileCopySrcOperType fileCopyDestOperType'. file(1) means we want to perform the 'copy file fileCopyDestType' operation, runningCfg(2) means we want to perform the 'copy running-config fileCopyDestOperType' operation, startUpCfg(3) means we want to perform the 'copy startup-config fileCopyDestOperType' operation, tftp(4) means we want to perform the 'copy tftp fileCopyDestOperType' operation, unit(5) is only available in stacking system, in which we can copy files from one unit to another unit and it means we want to perform the 'copy unit fileCopyDestOperType' operation. The possible permutations is as follow: (1)copy file file (2)copy file runningCfg (3) copy file startUpCfg (4)copy file tftp (5) copy file unit(for stacking system only) (6)copy runningCfg file (7)copy runningCfg startUpCfg (8)copy runningCfg tftp (9)copy startupCfg file (10)copy startupCfg runningCfg (11)copy startupCfg tftp (12)copy tftp file (13)copy tftp runningCfg (14)copy tftp startUpCfg (15)copy unit file.") fileCopySrcFileName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopySrcFileName.setStatus('current') if mibBuilder.loadTexts: fileCopySrcFileName.setDescription('The source file name for fileCopyMgt when a copy operation is next requested via this MIB. This value is set to the zero length string when no file name has been specified. Note: if the fileCopySrcOperType is runningCfg(2) or startUpCfg(3), this variable can be ignored.') fileCopyDestOperType = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("file", 1), ("runningCfg", 2), ("startUpCfg", 3), ("tftp", 4), ("unit", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyDestOperType.setStatus('current') if mibBuilder.loadTexts: fileCopyDestOperType.setDescription("The Copy Operation in which we want to perform from the fileCopySrcOperType, this operation is similar to the CLI command 'copy fileCopySrcOperType fileCopyDestOperType'. file(1) means we want to perform the 'copy fileCopySrcType file ' operation, runningCfg(2) means we want to perform the 'copy fileCopySrcOperType running-config ' operation, startUpCfg(3) means we want to perform the 'copy fileCopySrcOperType startup-config ' operation, tftp(4) means we want to perform the 'copy fileCopySrcOperType tftp' operation, unit(5) is only available in stacking system, in which we can copy files from one unit to another unit and it means we want to perform the 'copy fileCopySrcOperType unit' operation. The possible permutations is as follow: (1)copy file file (2)copy file runningCfg (3) copy file startUpCfg (4)copy file tftp (5) copy file unit(for stacking system only) (6)copy runningCfg file (7)copy runningCfg startUpCfg (8)copy runningCfg tftp (9)copy startupCfg file (10)copy startupCfg runningCfg (11)copy startupCfg tftp (12)copy tftp file (13)copy tftp runningCfg (14)copy tftp startUpCfg (15)copy unit file.") fileCopyDestFileName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 127))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyDestFileName.setStatus('current') if mibBuilder.loadTexts: fileCopyDestFileName.setDescription('The destination file name for fileCopyMgt when a copy operation is next requested via this MIB. This value is set to the zero length string when no file name has been specified. Note: if the fileCopyDestOperType is runningCfg(2) or startupCfg(3), this variable can be ignored.') fileCopyFileType = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("opcode", 1), ("config", 2), ("bootRom", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyFileType.setStatus('current') if mibBuilder.loadTexts: fileCopyFileType.setDescription('Type of file to copy in fileCopyMgt. If the fileCopySrcOperType or fileCopyDestOperType is either runningCfg(2) or startupCfg(3), this variable can be ignored. If the fileCopySrcOperType or fileCopyDestOperType is unit(5), this variable cannot be set to bootRom(3).') fileCopyTftpServer = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyTftpServer.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpServer.setDescription("The IP address of the TFTP server for transfer when a download is next requested via this MIB. This value is set to '0.0.0.0' when no IP address has been specified. If neither fileCopySrcOperType nor fileCopyDestOperType is tftp(4), this variable can be ignored.") fileCopyUnitId = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyUnitId.setStatus('current') if mibBuilder.loadTexts: fileCopyUnitId.setDescription("Specify the unit of the switch for stackable device when performing the 'copy unit file' or 'copy file unit' action, If neither fileCopySrcOperType nor fileCopyDestOperType is unit(5), this variable can be ignored.") fileCopyAction = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notCopying", 1), ("copy", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyAction.setStatus('current') if mibBuilder.loadTexts: fileCopyAction.setDescription('Setting this object to copy(2) to begin the copy Operation.') fileCopyStatus = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=NamedValues(("fileCopyTftpUndefError", 1), ("fileCopyTftpFileNotFound", 2), ("fileCopyTftpAccessViolation", 3), ("fileCopyTftpDiskFull", 4), ("fileCopyTftpIllegalOperation", 5), ("fileCopyTftpUnkownTransferId", 6), ("fileCopyTftpFileExisted", 7), ("fileCopyTftpNoSuchUser", 8), ("fileCopyTftpTimeout", 9), ("fileCopyTftpSendError", 10), ("fileCopyTftpReceiverError", 11), ("fileCopyTftpSocketOpenError", 12), ("fileCopyTftpSocketBindError", 13), ("fileCopyTftpUserCancel", 14), ("fileCopyTftpCompleted", 15), ("fileCopyParaError", 16), ("fileCopyBusy", 17), ("fileCopyUnknown", 18), ("fileCopyReadFileError", 19), ("fileCopySetStartupError", 20), ("fileCopyFileSizeExceed", 21), ("fileCopyMagicWordError", 22), ("fileCopyImageTypeError", 23), ("fileCopyHeaderChecksumError", 24), ("fileCopyImageChecksumError", 25), ("fileCopyWriteFlashFinish", 26), ("fileCopyWriteFlashError", 27), ("fileCopyWriteFlashProgramming", 28), ("fileCopyError", 29), ("fileCopySuccess", 30), ("fileCopyCompleted", 31)))).setMaxAccess("readonly") if mibBuilder.loadTexts: fileCopyStatus.setStatus('current') if mibBuilder.loadTexts: fileCopyStatus.setDescription('The status of the last copy procedure, if any. This object will have a value of downloadStatusUnknown(2) if no copy operation has been performed.') fileCopyTftpErrMsg = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: fileCopyTftpErrMsg.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpErrMsg.setDescription('The tftp error message, this value is meaningful only when the fileCopyStatus is fileCopyTftpUndefError(1).') fileCopyTftpServerHostName = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileCopyTftpServerHostName.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpServerHostName.setDescription("The IP address or DNS of the TFTP server for transfer when a download is next requested via this MIB. This value is set to '0.0.0.0' when no IP address has been specified. If neither fileCopySrcOperType nor fileCopyDestOperType is tftp(4), this variable can be ignored.") fileInfoMgt = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2)) fileInfoTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1), ) if mibBuilder.loadTexts: fileInfoTable.setStatus('current') if mibBuilder.loadTexts: fileInfoTable.setDescription('This table contain the information of the file system, we can also perform the delete, set startup file operation.') fileInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1), ).setIndexNames((0, "V2H124-24-MIB", "fileInfoUnitID"), (1, "V2H124-24-MIB", "fileInfoFileName")) if mibBuilder.loadTexts: fileInfoEntry.setStatus('current') if mibBuilder.loadTexts: fileInfoEntry.setDescription('A conceptually row for fileInfoTable.') fileInfoUnitID = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 1), Integer32()) if mibBuilder.loadTexts: fileInfoUnitID.setStatus('current') if mibBuilder.loadTexts: fileInfoUnitID.setDescription('The unit of the switch in a stacking system, in a non-stacking system, it value is always 1.') fileInfoFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))) if mibBuilder.loadTexts: fileInfoFileName.setStatus('current') if mibBuilder.loadTexts: fileInfoFileName.setDescription('The file Name of the file System in the device.') fileInfoFileType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("diag", 1), ("runtime", 2), ("syslog", 3), ("cmdlog", 4), ("config", 5), ("postlog", 6), ("private", 7), ("certificate", 8), ("webarchive", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: fileInfoFileType.setStatus('current') if mibBuilder.loadTexts: fileInfoFileType.setDescription('The file type of the file System in the device.') fileInfoIsStartUp = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileInfoIsStartUp.setStatus('current') if mibBuilder.loadTexts: fileInfoIsStartUp.setDescription('This flag indicate whether this file is a startup file, Setting this object to truth(1) to indicate this is a startup file, setting this object to false(2) is a invalid operation.') fileInfoFileSize = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fileInfoFileSize.setStatus('current') if mibBuilder.loadTexts: fileInfoFileSize.setDescription('The sizes( in bytes) of the file.') fileInfoCreationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readonly") if mibBuilder.loadTexts: fileInfoCreationTime.setStatus('current') if mibBuilder.loadTexts: fileInfoCreationTime.setDescription('The creation time of the file.') fileInfoDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noDelete", 1), ("delete", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: fileInfoDelete.setStatus('current') if mibBuilder.loadTexts: fileInfoDelete.setDescription('Writing this object to delete(2) to delete a file, when read, this always return noDelete(1).') v2h124_24Traps = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1)).setLabel("v2h124-24Traps") v2h124_24TrapsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1, 0)).setLabel("v2h124-24TrapsPrefix") swPowerStatusChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1, 0, 1)).setObjects(("V2H124-24-MIB", "swIndivPowerUnitIndex"), ("V2H124-24-MIB", "swIndivPowerIndex"), ("V2H124-24-MIB", "swIndivPowerStatus")) if mibBuilder.loadTexts: swPowerStatusChangeTrap.setStatus('current') if mibBuilder.loadTexts: swPowerStatusChangeTrap.setDescription('This trap is sent when the power state changes.') mibBuilder.exportSymbols("V2H124-24-MIB", ipHttpState=ipHttpState, staTxHoldCount=staTxHoldCount, portSpeedDpxCfg=portSpeedDpxCfg, igmpSnoopRouterCurrentVlanIndex=igmpSnoopRouterCurrentVlanIndex, markerStatus=markerStatus, staPortEntry=staPortEntry, ipHttpPort=ipHttpPort, xstInstanceCfgPriority=xstInstanceCfgPriority, xstInstanceCfgIndex=xstInstanceCfgIndex, ipHttpsState=ipHttpsState, bcastStormStatus=bcastStormStatus, xstInstancePortEntry=xstInstancePortEntry, mirrorSourcePort=mirrorSourcePort, igmpSnoopMulticastCurrentIpAddress=igmpSnoopMulticastCurrentIpAddress, prioIpPrecCos=prioIpPrecCos, swIndivPowerStatus=swIndivPowerStatus, swIndivPowerUnitIndex=swIndivPowerUnitIndex, netConfigSubnetMask=netConfigSubnetMask, aclIpAceTable=aclIpAceTable, v2h124swPowerStatus=v2h124swPowerStatus, aclIpAceSourcePortOp=aclIpAceSourcePortOp, prioCopyIpDscp=prioCopyIpDscp, ipDhcpRestart=ipDhcpRestart, sntpPollInterval=sntpPollInterval, sshServerMajorVersion=sshServerMajorVersion, xstInstanceCfgPathCostMethod=xstInstanceCfgPathCostMethod, trapDestCommunity=trapDestCommunity, aclEgressIpMaskEntry=aclEgressIpMaskEntry, aclMacAceName=aclMacAceName, sshConnMinorVersion=sshConnMinorVersion, prioCopyIpPrec=prioCopyIpPrec, aclAclGroupTable=aclAclGroupTable, sysCurrentTime=sysCurrentTime, sntpMgt=sntpMgt, prioIpPortStatus=prioIpPortStatus, sntpServiceMode=sntpServiceMode, staSystemStatus=staSystemStatus, igmpSnoopMulticastCurrentStatus=igmpSnoopMulticastCurrentStatus, aclEgressIpMaskIsEnablePrecedence=aclEgressIpMaskIsEnablePrecedence, fileInfoCreationTime=fileInfoCreationTime, swProdDescription=swProdDescription, aclIngressMacMaskEtherTypeBitmask=aclIngressMacMaskEtherTypeBitmask, rlPortIndex=rlPortIndex, mirrorTable=mirrorTable, staProtocolType=staProtocolType, prioIpPortValue=prioIpPortValue, xstInstanceCfgDesignatedRoot=xstInstanceCfgDesignatedRoot, fileCopyDestOperType=fileCopyDestOperType, xstInstanceCfgTxHoldCount=xstInstanceCfgTxHoldCount, bcastStormEntry=bcastStormEntry, trapDestMgt=trapDestMgt, aclIngressMacMaskVidBitmask=aclIngressMacMaskVidBitmask, portTrunkIndex=portTrunkIndex, trapDestEntry=trapDestEntry, aclIngressIpMaskSourcePortBitmask=aclIngressIpMaskSourcePortBitmask, fileCopyUnitId=fileCopyUnitId, aclMacAcePrecedence=aclMacAcePrecedence, vlanPortTable=vlanPortTable, portSecurityMgt=portSecurityMgt, rlPortOutputLimit=rlPortOutputLimit, telnetPasswordThreshold=telnetPasswordThreshold, prioIpPrecEntry=prioIpPrecEntry, xstInstanceCfgMaxAge=xstInstanceCfgMaxAge, prioWrrTrafficClass=prioWrrTrafficClass, fileCopyAction=fileCopyAction, lacpPortTable=lacpPortTable, igmpSnoopRouterCurrentTable=igmpSnoopRouterCurrentTable, rlPortInputLimit=rlPortInputLimit, prioIpDscpRestoreDefault=prioIpDscpRestoreDefault, prioAclToCosMappingCosValue=prioAclToCosMappingCosValue, prioIpDscpTable=prioIpDscpTable, xstInstanceCfgHoldTime=xstInstanceCfgHoldTime, fileCopyTftpServerHostName=fileCopyTftpServerHostName, v2h124swPortNumber=v2h124swPortNumber, igmpSnoopRouterCurrentEntry=igmpSnoopRouterCurrentEntry, xstInstancePortPortRole=xstInstancePortPortRole, v2h124swUnitIndex=v2h124swUnitIndex, portSpeedDpxStatus=portSpeedDpxStatus, aclEgressMacMaskPrecedence=aclEgressMacMaskPrecedence, staPortFastForward=staPortFastForward, prioAclToCosMappingEntry=prioAclToCosMappingEntry, portEntry=portEntry, prioIpPrecValue=prioIpPrecValue, xstInstancePortEnable=xstInstancePortEnable, xstMgt=xstMgt, aclEgressMacMaskDestMacAddrBitmask=aclEgressMacMaskDestMacAddrBitmask, xstInstanceCfgRootCost=xstInstanceCfgRootCost, aclMacAceStatus=aclMacAceStatus, trunkValidNumber=trunkValidNumber, sysLogHistoryFlashLevel=sysLogHistoryFlashLevel, fileCopyMgt=fileCopyMgt, aclEgressMacMaskSourceMacAddrBitmask=aclEgressMacMaskSourceMacAddrBitmask, prioIpPrecDscpStatus=prioIpPrecDscpStatus, xstInstanceCfgHelloTime=xstInstanceCfgHelloTime, aclMacAceMinVid=aclMacAceMinVid, markerTable=markerTable, sshServerMinorVersion=sshServerMinorVersion, radiusServerRetransmit=radiusServerRetransmit, aclEgressIpMaskIsEnableProtocol=aclEgressIpMaskIsEnableProtocol, sntpServerTable=sntpServerTable, staPortOperEdgePort=staPortOperEdgePort, consoleBaudRate=consoleBaudRate, aclMacAceDestMacAddrBitmask=aclMacAceDestMacAddrBitmask, igmpSnoopRouterCurrentStatus=igmpSnoopRouterCurrentStatus, rateLimitMgt=rateLimitMgt, sysTimeZoneName=sysTimeZoneName, trunkStatus=trunkStatus, fileInfoMgt=fileInfoMgt, v2h124_24TrapsPrefix=v2h124_24TrapsPrefix, mirrorStatus=mirrorStatus, aclMacAceDestMacAddr=aclMacAceDestMacAddr, prioIpDscpValue=prioIpDscpValue, aclIpAceName=aclIpAceName, prioAclToCosMappingStatus=prioAclToCosMappingStatus, v2h124swBootRomVer=v2h124swBootRomVer, fileInfoFileType=fileInfoFileType, consoleStopBits=consoleStopBits, sshConnInfoTable=sshConnInfoTable, rateLimitPortTable=rateLimitPortTable, xstInstancePortPriority=xstInstancePortPriority, v2h124swRoleInSystem=v2h124swRoleInSystem, portSecPortStatus=portSecPortStatus, qosMgt=qosMgt, PYSNMP_MODULE_ID=v2h124_24MIB, igmpSnoopMulticastStaticIpAddress=igmpSnoopMulticastStaticIpAddress, igmpSnoopRouterPortExpireTime=igmpSnoopRouterPortExpireTime, fileInfoTable=fileInfoTable, aclIngressIpMaskDestPortBitmask=aclIngressIpMaskDestPortBitmask, igmpSnoopRouterStaticTable=igmpSnoopRouterStaticTable, xstInstancePortDesignatedBridge=xstInstancePortDesignatedBridge, aclEgressMacMaskVidBitmask=aclEgressMacMaskVidBitmask, aclEgressIpMaskDestIpAddrBitmask=aclEgressIpMaskDestIpAddrBitmask, markerIfIndex=markerIfIndex, markerPrecedence=markerPrecedence, prioWrrEntry=prioWrrEntry, igmpSnoopMulticastCurrentPorts=igmpSnoopMulticastCurrentPorts, fileCopyFileType=fileCopyFileType, radiusServerTimeout=radiusServerTimeout, prioCopy=prioCopy, aclIpAceIndex=aclIpAceIndex, fileCopySrcFileName=fileCopySrcFileName, aclEgressMacMaskIndex=aclEgressMacMaskIndex, switchIndivPowerTable=switchIndivPowerTable, igmpSnoopMulticastStaticStatus=igmpSnoopMulticastStaticStatus, vlanPortMode=vlanPortMode, vlanIndex=vlanIndex, sshConnID=sshConnID, prioIpDscpPort=prioIpDscpPort, aclAclGroupEntry=aclAclGroupEntry, markerAclName=markerAclName, aclIngressIpMaskIsEnableDscp=aclIngressIpMaskIsEnableDscp, mirrorMgt=mirrorMgt, sntpStatus=sntpStatus, sshConnInfoEntry=sshConnInfoEntry, switchIndivPowerEntry=switchIndivPowerEntry, xstInstanceCfgTopChanges=xstInstanceCfgTopChanges, xstInstancePortPathCost=xstInstancePortPathCost, xstInstancePortDesignatedRoot=xstInstancePortDesignatedRoot, v2h124swExpansionSlot1=v2h124swExpansionSlot1, aclIngressMacMaskSourceMacAddrBitmask=aclIngressMacMaskSourceMacAddrBitmask, xstInstanceCfgBridgeHelloTime=xstInstanceCfgBridgeHelloTime, aclMacAceMinEtherType=aclMacAceMinEtherType, xstInstanceCfgBridgeMaxAge=xstInstanceCfgBridgeMaxAge, fileInfoDelete=fileInfoDelete, aclIpAcePrecedence=aclIpAcePrecedence, sntpServerIpAddress=sntpServerIpAddress, v2h124_24MIBObjects=v2h124_24MIBObjects, aclIngressIpMaskIsEnablePrecedence=aclIngressIpMaskIsEnablePrecedence, aclEgressMacMaskIsEnablePktformat=aclEgressMacMaskIsEnablePktformat, lacpMgt=lacpMgt, aclMacAceTable=aclMacAceTable, igmpSnoopQueryInterval=igmpSnoopQueryInterval, aclIpAceMaxDestPort=aclIpAceMaxDestPort, staMgt=staMgt, aclEgressIpMaskIndex=aclEgressIpMaskIndex, aclIpAceProtocol=aclIpAceProtocol, aclEgressIpMaskIsEnableDscp=aclEgressIpMaskIsEnableDscp, sysLogMgt=sysLogMgt, radiusServerAddress=radiusServerAddress, staPathCostMethod=staPathCostMethod, trapDestAddress=trapDestAddress, radiusServerPortNumber=radiusServerPortNumber, v2h124switchInfoEntry=v2h124switchInfoEntry, swPowerStatusChangeTrap=swPowerStatusChangeTrap, xstInstanceCfgForwardDelay=xstInstanceCfgForwardDelay, fileInfoIsStartUp=fileInfoIsStartUp, sshAuthRetries=sshAuthRetries, markerMgt=markerMgt, tacacsServerKey=tacacsServerKey, v2h124swServiceTag=v2h124swServiceTag, trunkMgt=trunkMgt, netConfigTable=netConfigTable, aclIpAceDestIpAddr=aclIpAceDestIpAddr, igmpSnoopRouterStaticVlanIndex=igmpSnoopRouterStaticVlanIndex, aclAclGroupIngressMacAcl=aclAclGroupIngressMacAcl, aclMacAceEtherTypeOp=aclMacAceEtherTypeOp, telnetMgt=telnetMgt, prioIpPrecTable=prioIpPrecTable, prioWrrWeight=prioWrrWeight, priorityMgt=priorityMgt, aclIngressMacMaskIsEnablePktformat=aclIngressMacMaskIsEnablePktformat, aclIngressIpMaskControlCodeBitmask=aclIngressIpMaskControlCodeBitmask, aclIngressIpMaskStatus=aclIngressIpMaskStatus, aclIngressIpMaskDestIpAddrBitmask=aclIngressIpMaskDestIpAddrBitmask, vlanAddressMethod=vlanAddressMethod, staPortAdminPointToPoint=staPortAdminPointToPoint, prioIpPortTable=prioIpPortTable, prioIpPortPhysPort=prioIpPortPhysPort, aclMgt=aclMgt, netConfigIfIndex=netConfigIfIndex, v2h124swLoaderVer=v2h124swLoaderVer, prioAclToCosMappingIfIndex=prioAclToCosMappingIfIndex, sysTimeMgt=sysTimeMgt, sshTimeout=sshTimeout, aclIngressMacMaskTable=aclIngressMacMaskTable, bcastStormPercent=bcastStormPercent, lacpPortEntry=lacpPortEntry, sntpServerIndex=sntpServerIndex, consolePasswordThreshold=consolePasswordThreshold, aclAclGroupIfIndex=aclAclGroupIfIndex, igmpSnoopMulticastStaticEntry=igmpSnoopMulticastStaticEntry, igmpSnoopMulticastStaticVlanIndex=igmpSnoopMulticastStaticVlanIndex, prioIpPrecRestoreDefault=prioIpPrecRestoreDefault, sysTimeZone=sysTimeZone, trapDestVersion=trapDestVersion, netConfigEntry=netConfigEntry, aclEgressIpMaskSourceIpAddrBitmask=aclEgressIpMaskSourceIpAddrBitmask, netConfigPrimaryInterface=netConfigPrimaryInterface, v2h124swMicrocodeVer=v2h124swMicrocodeVer, vlanMgt=vlanMgt, bcastStormMgt=bcastStormMgt, aclAclGroupIngressIpAcl=aclAclGroupIngressIpAcl, xstInstanceCfgRootPort=xstInstanceCfgRootPort, aclEgressMacMaskTable=aclEgressMacMaskTable, aclIngressMacMaskStatus=aclIngressMacMaskStatus, portName=portName, aclIpAceControlCodeBitmask=aclIpAceControlCodeBitmask, aclEgressIpMaskDestPortBitmask=aclEgressIpMaskDestPortBitmask, tacacsMgt=tacacsMgt, sshDisconnect=sshDisconnect, aclEgressMacMaskEntry=aclEgressMacMaskEntry, ipHttpsPort=ipHttpsPort, aclIngressIpMaskEntry=aclIngressIpMaskEntry, markerPriority=markerPriority, lineMgt=lineMgt, rlPortOutputStatus=rlPortOutputStatus, portSecPortIndex=portSecPortIndex, aclMacAceVidOp=aclMacAceVidOp, igmpSnoopRouterStaticEntry=igmpSnoopRouterStaticEntry, prioIpPortEnableStatus=prioIpPortEnableStatus, xstInstanceCfgTable=xstInstanceCfgTable, sshConnUserName=sshConnUserName, cosMgt=cosMgt, aclAclGroupEgressIpAcl=aclAclGroupEgressIpAcl) mibBuilder.exportSymbols("V2H124-24-MIB", sshServerStatus=sshServerStatus, aclIngressMacMaskIndex=aclIngressMacMaskIndex, aclIngressIpMaskIsEnableProtocol=aclIngressIpMaskIsEnableProtocol, trapDestStatus=trapDestStatus, lacpPortIndex=lacpPortIndex, aclMacAceVidBitmask=aclMacAceVidBitmask, igmpSnoopMulticastCurrentTable=igmpSnoopMulticastCurrentTable, consoleSilentTime=consoleSilentTime, consoleDataBits=consoleDataBits, portFlowCtrlCfg=portFlowCtrlCfg, aclIngressMacMaskPrecedence=aclIngressMacMaskPrecedence, igmpSnoopRouterStaticStatus=igmpSnoopRouterStaticStatus, xstInstancePortState=xstInstancePortState, markerEntry=markerEntry, prioIpDscpEntry=prioIpDscpEntry, aclMacAcePktformat=aclMacAcePktformat, prioIpDscpCos=prioIpDscpCos, restartOpCodeFile=restartOpCodeFile, prioCopyIpPort=prioCopyIpPort, aclIpAceStatus=aclIpAceStatus, fileCopyTftpErrMsg=fileCopyTftpErrMsg, portCapabilities=portCapabilities, aclIpAceTos=aclIpAceTos, aclIpAceDscp=aclIpAceDscp, aclIpAceDestIpAddrBitmask=aclIpAceDestIpAddrBitmask, v2h124_24Notifications=v2h124_24Notifications, portSecPortEntry=portSecPortEntry, trunkCreation=trunkCreation, prioIpPrecPort=prioIpPrecPort, markerDscp=markerDscp, aclMacAceMaxEtherType=aclMacAceMaxEtherType, sntpServerEntry=sntpServerEntry, staPortOperPointToPoint=staPortOperPointToPoint, tacacsServerAddress=tacacsServerAddress, aclIpAcePrec=aclIpAcePrec, fileInfoFileName=fileInfoFileName, rlPortInputStatus=rlPortInputStatus, restartMgt=restartMgt, xstInstancePortTable=xstInstancePortTable, telnetExecTimeout=telnetExecTimeout, consoleExecTimeout=consoleExecTimeout, aclMacAceSourceMacAddrBitmask=aclMacAceSourceMacAddrBitmask, ValidStatus=ValidStatus, fileInfoEntry=fileInfoEntry, aclEgressIpMaskTable=aclEgressIpMaskTable, vlanPortEntry=vlanPortEntry, netDefaultGateway=netDefaultGateway, aclIpAceSourcePortBitmask=aclIpAceSourcePortBitmask, aclMacAceMaxVid=aclMacAceMaxVid, swChassisServiceTag=swChassisServiceTag, prioIpPortEntry=prioIpPortEntry, sshConnEncryptionType=sshConnEncryptionType, aclIngressMacMaskEntry=aclIngressMacMaskEntry, aclIpAceMaxSourcePort=aclIpAceMaxSourcePort, fileCopyDestFileName=fileCopyDestFileName, aclIpAceDestPortOp=aclIpAceDestPortOp, aclIpAceSourceIpAddr=aclIpAceSourceIpAddr, igmpSnoopMulticastStaticPorts=igmpSnoopMulticastStaticPorts, swProdName=swProdName, aclIpAceEntry=aclIpAceEntry, v2h124switchNumber=v2h124switchNumber, fileInfoUnitID=fileInfoUnitID, swProdManufacturer=swProdManufacturer, aclIpAceSourceIpAddrBitmask=aclIpAceSourceIpAddrBitmask, swIdentifier=swIdentifier, fileCopyStatus=fileCopyStatus, portSecMaxMacCount=portSecMaxMacCount, igmpSnoopRouterCurrentPorts=igmpSnoopRouterCurrentPorts, prioAclToCosMappingTable=prioAclToCosMappingTable, switchProductId=switchProductId, netConfigStatus=netConfigStatus, portType=portType, igmpSnoopQuerier=igmpSnoopQuerier, sshMgt=sshMgt, v2h124_24Conformance=v2h124_24Conformance, fileMgt=fileMgt, xstInstancePortDesignatedCost=xstInstancePortDesignatedCost, xstInstanceCfgEntry=xstInstanceCfgEntry, vlanPortIndex=vlanPortIndex, portMgt=portMgt, aclIngressMacMaskDestMacAddrBitmask=aclIngressMacMaskDestMacAddrBitmask, aclIngressIpMaskPrecedence=aclIngressIpMaskPrecedence, v2h124swExpansionSlot2=v2h124swExpansionSlot2, trunkPorts=trunkPorts, aclIpAceDestPortBitmask=aclIpAceDestPortBitmask, igmpSnoopMulticastCurrentEntry=igmpSnoopMulticastCurrentEntry, trunkEntry=trunkEntry, rateLimitPortEntry=rateLimitPortEntry, igmpSnoopMulticastStaticTable=igmpSnoopMulticastStaticTable, fileCopySrcOperType=fileCopySrcOperType, radiusMgt=radiusMgt, swProdVersion=swProdVersion, rateLimitStatus=rateLimitStatus, consoleParity=consoleParity, switchMgt=switchMgt, radiusServerKey=radiusServerKey, staPortTable=staPortTable, netConfigUnnumbered=netConfigUnnumbered, sshConnMajorVersion=sshConnMajorVersion, aclIngressIpMaskIsEnableTos=aclIngressIpMaskIsEnableTos, aclEgressIpMaskPrecedence=aclEgressIpMaskPrecedence, swProdUrl=swProdUrl, aclEgressMacMaskEtherTypeBitmask=aclEgressMacMaskEtherTypeBitmask, prioWrrTable=prioWrrTable, v2h124_24MIB=v2h124_24MIB, aclIngressIpMaskSourceIpAddrBitmask=aclIngressIpMaskSourceIpAddrBitmask, v2h124switchInfoTable=v2h124switchInfoTable, xstInstancePortForwardTransitions=xstInstancePortForwardTransitions, v2h124swHardwareVer=v2h124swHardwareVer, aclIpAceMinSourcePort=aclIpAceMinSourcePort, restartConfigFile=restartConfigFile, aclEgressIpMaskStatus=aclEgressIpMaskStatus, aclIpAceMinDestPort=aclIpAceMinDestPort, switchOperState=switchOperState, markerActionBitList=markerActionBitList, igmpSnoopQueryMaxResponseTime=igmpSnoopQueryMaxResponseTime, igmpSnoopQueryCount=igmpSnoopQueryCount, bcastStormSampleType=bcastStormSampleType, v2h124swOpCodeVer=v2h124swOpCodeVer, aclMacAceEntry=aclMacAceEntry, lacpPortStatus=lacpPortStatus, bcastStormPktRate=bcastStormPktRate, prioIpPortCos=prioIpPortCos, aclIngressIpMaskIndex=aclIngressIpMaskIndex, aclEgressIpMaskSourcePortBitmask=aclEgressIpMaskSourcePortBitmask, xstInstanceCfgBridgeForwardDelay=xstInstanceCfgBridgeForwardDelay, sshConnStatus=sshConnStatus, portSecPortTable=portSecPortTable, aclMacAceIndex=aclMacAceIndex, portFlowCtrlStatus=portFlowCtrlStatus, mirrorDestinationPort=mirrorDestinationPort, staPortProtocolMigration=staPortProtocolMigration, igmpSnoopVersion=igmpSnoopVersion, igmpSnoopStatus=igmpSnoopStatus, aclMacAceSourceMacAddr=aclMacAceSourceMacAddr, bcastStormIfIndex=bcastStormIfIndex, aclIpAceControlCode=aclIpAceControlCode, restartControl=restartControl, portIndex=portIndex, switchManagementVlan=switchManagementVlan, aclIpAceAction=aclIpAceAction, xstInstancePortDesignatedPort=xstInstancePortDesignatedPort, netConfigIPAddress=netConfigIPAddress, prioAclToCosMappingAclName=prioAclToCosMappingAclName, aclEgressIpMaskControlCodeBitmask=aclEgressIpMaskControlCodeBitmask, aclEgressMacMaskStatus=aclEgressMacMaskStatus, ipMgt=ipMgt, aclMacAceEtherTypeBitmask=aclMacAceEtherTypeBitmask, sysLogStatus=sysLogStatus, vlanEntry=vlanEntry, aclMacAceAction=aclMacAceAction, igmpSnoopMgt=igmpSnoopMgt, portAutonegotiation=portAutonegotiation, consoleMgt=consoleMgt, bcastStormTable=bcastStormTable, securityMgt=securityMgt, portTable=portTable, sysLogHistoryRamLevel=sysLogHistoryRamLevel, igmpSnoopRouterStaticPorts=igmpSnoopRouterStaticPorts, portSecAction=portSecAction, fileCopyTftpServer=fileCopyTftpServer, staPortAdminEdgePort=staPortAdminEdgePort, aclIngressIpMaskTable=aclIngressIpMaskTable, fileInfoFileSize=fileInfoFileSize, v2h124_24Traps=v2h124_24Traps, v2h124swSerialNumber=v2h124swSerialNumber, mirrorEntry=mirrorEntry, aclAclGroupEgressMacAcl=aclAclGroupEgressMacAcl, trapDestTable=trapDestTable, staPortLongPathCost=staPortLongPathCost, mirrorType=mirrorType, aclEgressIpMaskIsEnableTos=aclEgressIpMaskIsEnableTos, trunkIndex=trunkIndex, igmpSnoopMulticastCurrentVlanIndex=igmpSnoopMulticastCurrentVlanIndex, bcastStormOctetRate=bcastStormOctetRate, xstInstanceCfgTimeSinceTopologyChange=xstInstanceCfgTimeSinceTopologyChange, swIndivPowerIndex=swIndivPowerIndex, vlanTable=vlanTable, trunkMaxId=trunkMaxId, trunkTable=trunkTable, tacacsServerPortNumber=tacacsServerPortNumber)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (dot1d_stp_port_entry, bridge_id, timeout, dot1d_stp_port) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dStpPortEntry', 'BridgeId', 'Timeout', 'dot1dStpPort') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (port_list,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'PortList') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, time_ticks, integer32, mib_identifier, ip_address, module_identity, enterprises, bits, gauge32, counter32, unsigned32, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'TimeTicks', 'Integer32', 'MibIdentifier', 'IpAddress', 'ModuleIdentity', 'enterprises', 'Bits', 'Gauge32', 'Counter32', 'Unsigned32', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'NotificationType') (display_string, textual_convention, truth_value, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'TruthValue', 'RowStatus') v2h124_24_mib = module_identity((1, 3, 6, 1, 4, 1, 52, 4, 12, 30)).setLabel('v2h124-24MIB') v2h124_24MIB.setRevisions(('2004-01-21 20:31', '2003-12-12 17:04', '2003-07-25 19:59', '2003-07-18 21:42', '2003-12-06 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: v2h124_24MIB.setRevisionsDescriptions(('v2h124-24MIB and v2h124-24 were both defined as the same OID, removed v2h124-24 from the definition of v2h124-24MIB.', 'Changed ctronExp(12) to ctronV2H(12), ctronExp is defined as cabletron.mibs.2', 'Comments highlighting changes would go here.', 'Relocation to current branch and additional corrections.', 'Initial version of this MIB.')) if mibBuilder.loadTexts: v2h124_24MIB.setLastUpdated('200401212031Z') if mibBuilder.loadTexts: v2h124_24MIB.setOrganization('Enterasys Networks, Inc') if mibBuilder.loadTexts: v2h124_24MIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: [email protected] WWW: http://www.enterasys.com') if mibBuilder.loadTexts: v2h124_24MIB.setDescription('The MIB module for V2H124-24.') v2h124_24_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1)).setLabel('v2h124-24MIBObjects') v2h124_24_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2)).setLabel('v2h124-24Notifications') v2h124_24_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 3)).setLabel('v2h124-24Conformance') switch_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1)) port_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2)) trunk_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3)) lacp_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4)) sta_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5)) restart_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7)) mirror_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8)) igmp_snoop_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9)) ip_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10)) bcast_storm_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11)) vlan_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12)) priority_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13)) trap_dest_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14)) qos_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16)) security_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17)) sys_log_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19)) line_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20)) sys_time_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23)) file_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24)) class Validstatus(TextualConvention, Integer32): description = 'A simple status value for the object to create and destroy a table entry. This is a simplified variant of RowStatus as it supports only two values. Setting it to valid(1) creates an entry. Setting it to invalid(2) destroys an entry.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('valid', 1), ('invalid', 2)) switch_management_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4094))).setMaxAccess('readwrite') if mibBuilder.loadTexts: switchManagementVlan.setStatus('current') if mibBuilder.loadTexts: switchManagementVlan.setDescription('The VLAN on which management is done.') v2h124switch_number = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124switchNumber.setStatus('current') if mibBuilder.loadTexts: v2h124switchNumber.setDescription('The total number of switches present on this system.') v2h124switch_info_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3)) if mibBuilder.loadTexts: v2h124switchInfoTable.setStatus('current') if mibBuilder.loadTexts: v2h124switchInfoTable.setDescription('Table of descriptive and status information about the switch units in this system.') v2h124switch_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1)).setIndexNames((0, 'V2H124-24-MIB', 'v2h124swUnitIndex')) if mibBuilder.loadTexts: v2h124switchInfoEntry.setStatus('current') if mibBuilder.loadTexts: v2h124switchInfoEntry.setDescription('Table providing descriptions and status information for switch units.') v2h124sw_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 1), integer32()) if mibBuilder.loadTexts: v2h124swUnitIndex.setStatus('current') if mibBuilder.loadTexts: v2h124swUnitIndex.setDescription('This object identifies the switch within the system for which this entry contains information. This value can never be greater than switchNumber.') v2h124sw_hardware_ver = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swHardwareVer.setStatus('current') if mibBuilder.loadTexts: v2h124swHardwareVer.setDescription('Hardware version of the main board.') v2h124sw_microcode_ver = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swMicrocodeVer.setStatus('current') if mibBuilder.loadTexts: v2h124swMicrocodeVer.setDescription('Microcode version of the main board.') v2h124sw_loader_ver = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swLoaderVer.setStatus('current') if mibBuilder.loadTexts: v2h124swLoaderVer.setDescription('Loader version of the main board.') v2h124sw_boot_rom_ver = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swBootRomVer.setStatus('current') if mibBuilder.loadTexts: v2h124swBootRomVer.setDescription('Boot ROM code version of the main board.') v2h124sw_op_code_ver = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swOpCodeVer.setStatus('current') if mibBuilder.loadTexts: v2h124swOpCodeVer.setDescription('Operation code version of the main board.') v2h124sw_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swPortNumber.setStatus('current') if mibBuilder.loadTexts: v2h124swPortNumber.setDescription('The number of ports of this switch.') v2h124sw_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('internalPower', 1), ('redundantPower', 2), ('internalAndRedundantPower', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swPowerStatus.setStatus('current') if mibBuilder.loadTexts: v2h124swPowerStatus.setDescription('Indicates the switch using internalPower(1), redundantPower(2) or both(3)') v2h124sw_role_in_system = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('master', 1), ('backupMaster', 2), ('slave', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swRoleInSystem.setStatus('current') if mibBuilder.loadTexts: v2h124swRoleInSystem.setDescription('Indicates the switch is master(1), backupMaster(2) or slave(3) in this system.') v2h124sw_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swSerialNumber.setStatus('current') if mibBuilder.loadTexts: v2h124swSerialNumber.setDescription('Serial number of the switch.') v2h124sw_expansion_slot1 = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('notPresent', 1), ('other', 2), ('hundredBaseFxScMmf', 3), ('hundredBaseFxScSmf', 4), ('hundredBaseFxMtrjMmf', 5), ('thousandBaseSxScMmf', 6), ('thousandBaseSxMtrjMmf', 7), ('thousandBaseXGbic', 8), ('thousandBaseLxScSmf', 9), ('thousandBaseT', 10), ('stackingModule', 11), ('thousandBaseSfp', 12), ('tenHundredBaseT4port', 13), ('tenHundredBaseFxMtrj4port', 14), ('comboStackingSfp', 15), ('tenHundredBaseT', 16)))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swExpansionSlot1.setStatus('current') if mibBuilder.loadTexts: v2h124swExpansionSlot1.setDescription('Type of expansion module in this switch slot 1.') v2h124sw_expansion_slot2 = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('notPresent', 1), ('other', 2), ('hundredBaseFxScMmf', 3), ('hundredBaseFxScSmf', 4), ('hundredBaseFxMtrjMmf', 5), ('thousandBaseSxScMmf', 6), ('thousandBaseSxMtrjMmf', 7), ('thousandBaseXGbic', 8), ('thousandBaseLxScSmf', 9), ('thousandBaseT', 10), ('stackingModule', 11), ('thousandBaseSfp', 12), ('tenHundredBaseT4port', 13), ('tenHundredBaseFxMtrj4port', 14), ('comboStackingSfp', 15), ('tenHundredBaseT', 16)))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swExpansionSlot2.setStatus('current') if mibBuilder.loadTexts: v2h124swExpansionSlot2.setDescription('Type of expansion module in this switch slot 2.') v2h124sw_service_tag = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 3, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: v2h124swServiceTag.setStatus('current') if mibBuilder.loadTexts: v2h124swServiceTag.setDescription('Service tag serial-number of the switch.') switch_oper_state = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('ok', 3), ('noncritical', 4), ('critical', 5), ('nonrecoverable', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: switchOperState.setStatus('current') if mibBuilder.loadTexts: switchOperState.setDescription('Global operation state of the switch.') switch_product_id = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5)) sw_prod_name = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swProdName.setStatus('current') if mibBuilder.loadTexts: swProdName.setDescription('The product name of this switch.') sw_prod_manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swProdManufacturer.setStatus('current') if mibBuilder.loadTexts: swProdManufacturer.setDescription('The product manufacturer of this switch.') sw_prod_description = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swProdDescription.setStatus('current') if mibBuilder.loadTexts: swProdDescription.setDescription('The product description of this switch.') sw_prod_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swProdVersion.setStatus('current') if mibBuilder.loadTexts: swProdVersion.setDescription('The runtime code version of this switch.') sw_prod_url = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readonly') if mibBuilder.loadTexts: swProdUrl.setStatus('current') if mibBuilder.loadTexts: swProdUrl.setDescription('The URL of this switch, which we can connect through a web browser.') sw_identifier = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swIdentifier.setStatus('current') if mibBuilder.loadTexts: swIdentifier.setDescription('A unique identifier of which switch in the chassis is currently being looked at.') sw_chassis_service_tag = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 5, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: swChassisServiceTag.setStatus('current') if mibBuilder.loadTexts: swChassisServiceTag.setDescription('The service tag of the chassis this switch resides in.') switch_indiv_power_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6)) if mibBuilder.loadTexts: switchIndivPowerTable.setStatus('current') if mibBuilder.loadTexts: switchIndivPowerTable.setDescription('Table about statuses of individual powers.') switch_indiv_power_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1)).setIndexNames((0, 'V2H124-24-MIB', 'swIndivPowerUnitIndex'), (0, 'V2H124-24-MIB', 'swIndivPowerIndex')) if mibBuilder.loadTexts: switchIndivPowerEntry.setStatus('current') if mibBuilder.loadTexts: switchIndivPowerEntry.setDescription('Table about statuses of individual powers.') sw_indiv_power_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: swIndivPowerUnitIndex.setStatus('current') if mibBuilder.loadTexts: swIndivPowerUnitIndex.setDescription('This is defined as v2h124swUnitIndex.') sw_indiv_power_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('internalPower', 1), ('externalPower', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: swIndivPowerIndex.setStatus('current') if mibBuilder.loadTexts: swIndivPowerIndex.setDescription('1 means internal power. 2 means external power.') sw_indiv_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 1, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notPresent', 1), ('green', 2), ('red', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swIndivPowerStatus.setStatus('current') if mibBuilder.loadTexts: swIndivPowerStatus.setDescription('notPresent(1) means not present. green(2) means up. red(3) means down.') port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1)) if mibBuilder.loadTexts: portTable.setStatus('current') if mibBuilder.loadTexts: portTable.setDescription('Table of descriptive and status information describing the configuration of each switch port. This table also contains information about each trunk.') port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'portIndex')) if mibBuilder.loadTexts: portEntry.setStatus('current') if mibBuilder.loadTexts: portEntry.setDescription('An entry in the table, describing the configuration of one switch port or trunk.') port_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 1), integer32()) if mibBuilder.loadTexts: portIndex.setStatus('current') if mibBuilder.loadTexts: portIndex.setDescription('The port and the trunk (including trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') port_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portName.setStatus('current') if mibBuilder.loadTexts: portName.setDescription('The name of the port or trunk. This is the same as ifAlias in the IF-MIB (RFC2863 or later).') port_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('other', 1), ('hundredBaseTX', 2), ('hundredBaseFX', 3), ('thousandBaseSX', 4), ('thousandBaseLX', 5), ('thousandBaseT', 6), ('thousandBaseGBIC', 7), ('thousandBaseSfp', 8), ('hundredBaseFxScSingleMode', 9), ('hundredBaseFxScMultiMode', 10)))).setMaxAccess('readonly') if mibBuilder.loadTexts: portType.setStatus('current') if mibBuilder.loadTexts: portType.setDescription('Indicates the port type of the configuration of the switch') port_speed_dpx_cfg = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('reserved', 1), ('halfDuplex10', 2), ('fullDuplex10', 3), ('halfDuplex100', 4), ('fullDuplex100', 5), ('halfDuplex1000', 6), ('fullDuplex1000', 7))).clone('halfDuplex10')).setMaxAccess('readwrite') if mibBuilder.loadTexts: portSpeedDpxCfg.setStatus('current') if mibBuilder.loadTexts: portSpeedDpxCfg.setDescription('Configures the speed and duplex mode for a port or trunk, according to: halfDuplex10(2) - 10Mbps and half duplex mode fullDuplex10(3) - 10Mbps and full duplex mode halfDuplex100(4) - 100Mbps and half duplex mode fullDuplex100(5) - 100Mbps and full duplex mode halfDuplex1000(6) - 1000Mbps and half duplex mode fullDuplex1000(7) - 1000Mbps and full duplex mode hundredBaseTX port can be set as halfDuplex10(2) fullDuplex10(3) halfDuplex100(4) fullDuplex100(5) hundredBaseFX port can be set as halfDuplex100(4) fullDuplex100(5) thousandBaseSX port can be set as halfDuplex1000(6) fullDuplex1000(7) The actual operating speed and duplex of the port is given by portSpeedDpxStatus.') port_flow_ctrl_cfg = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('backPressure', 3), ('dot3xFlowControl', 4))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: portFlowCtrlCfg.setStatus('current') if mibBuilder.loadTexts: portFlowCtrlCfg.setDescription('(1) Flow control mechanism is enabled. If the port type is hundredBaseTX or thousandBaseSX: When the port is operating in halfDuplex mode, the port uses backPressure flow control mechanism. When the port is operating in fullDuplex mode, the port uses IEEE 802.3x flow control mechanism. If the port type is hundredBaseFX: When the port is operating in halfDuplex mode, the port uses backPressure flow control mechanism. When the port is operating in fullDuplex mode, Flow control mechanism will not function. (2) Flow control mechanism is disabled. (3) Flow control mechanism is backPressure. when the port is in fullDuplex mode.This flow control mechanism will not function. (4) Flow control mechanism is IEEE 802.3x flow control. when the port is in halfDuplex mode.This flow control mechanism will not function. hundredBaseTX and thousandBaseSX port can be set as: enabled(1), disabled(2), backPressure(3), dot3xFlowControl(4). hundredBaseFX port can be set as: enabled(1), disabled(2), backPressure(3). The actual flow control mechanism is used given by portFlowCtrlStatus.') port_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 6), bits().clone(namedValues=named_values(('portCap10half', 0), ('portCap10full', 1), ('portCap100half', 2), ('portCap100full', 3), ('portCap1000half', 4), ('portCap1000full', 5), ('reserved6', 6), ('reserved7', 7), ('reserved8', 8), ('reserved9', 9), ('reserved10', 10), ('reserved11', 11), ('reserved12', 12), ('reserved13', 13), ('portCapSym', 14), ('portCapFlowCtrl', 15)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portCapabilities.setStatus('current') if mibBuilder.loadTexts: portCapabilities.setDescription('Port or trunk capabilities.') port_autonegotiation = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 7), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: portAutonegotiation.setStatus('current') if mibBuilder.loadTexts: portAutonegotiation.setDescription('Whether auto-negotiation is enabled.') port_speed_dpx_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('error', 1), ('halfDuplex10', 2), ('fullDuplex10', 3), ('halfDuplex100', 4), ('fullDuplex100', 5), ('halfDuplex1000', 6), ('fullDuplex1000', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: portSpeedDpxStatus.setStatus('current') if mibBuilder.loadTexts: portSpeedDpxStatus.setDescription('The operating speed and duplex mode of the switched port or trunk. If the entry represents a trunk, the speed is that of its individual members unless the member ports have been inconsistently configured in which case the value is error(1).') port_flow_ctrl_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('error', 1), ('backPressure', 2), ('dot3xFlowControl', 3), ('none', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: portFlowCtrlStatus.setStatus('current') if mibBuilder.loadTexts: portFlowCtrlStatus.setDescription('(2) BackPressure flow control machanism is used. (3) IEEE 802.3 flow control machanism is used. (4) Flow control mechanism is disabled. If the entry represents a trunk and the member ports have been inconsistently configured then this value is error(1).') port_trunk_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 2, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: portTrunkIndex.setStatus('current') if mibBuilder.loadTexts: portTrunkIndex.setDescription('The trunk to which this port belongs. A value of 0 means that this port does not belong to any trunk. A value greater than zero means that this port belongs to trunk at trunkIndex, defined by the corresponding trunkPorts.') trunk_max_id = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trunkMaxId.setStatus('current') if mibBuilder.loadTexts: trunkMaxId.setDescription('The maximum number for a trunk identifier.') trunk_valid_number = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trunkValidNumber.setStatus('current') if mibBuilder.loadTexts: trunkValidNumber.setDescription('The number of valid trunks.') trunk_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3)) if mibBuilder.loadTexts: trunkTable.setStatus('current') if mibBuilder.loadTexts: trunkTable.setDescription('Table describing the configuration and status of each trunk.') trunk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1)).setIndexNames((0, 'V2H124-24-MIB', 'trunkIndex')) if mibBuilder.loadTexts: trunkEntry.setStatus('current') if mibBuilder.loadTexts: trunkEntry.setDescription('An entry describing the configuration and status of a particular trunk.') trunk_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 1), integer32()) if mibBuilder.loadTexts: trunkIndex.setStatus('current') if mibBuilder.loadTexts: trunkIndex.setDescription('Identifies the trunk within the switch that is described by the table entry.') trunk_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 2), port_list()).setMaxAccess('readcreate') if mibBuilder.loadTexts: trunkPorts.setStatus('current') if mibBuilder.loadTexts: trunkPorts.setDescription('The complete set of ports currently associated with this trunk.') trunk_creation = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('lacp', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trunkCreation.setStatus('current') if mibBuilder.loadTexts: trunkCreation.setDescription('A value of static(1) means a statically configured trunk. A value of lacp(2) means an LACP-configured trunk.') trunk_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 3, 3, 1, 4), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: trunkStatus.setStatus('current') if mibBuilder.loadTexts: trunkStatus.setDescription('Writing this to valid(1) creates an entry. Writing this to invalid(2) destroys an entry. A trunk created by LACP cannot be manually destroyed or (re)configured.') lacp_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1)) if mibBuilder.loadTexts: lacpPortTable.setStatus('current') if mibBuilder.loadTexts: lacpPortTable.setDescription('Table for LACP port configuration.') lacp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'lacpPortIndex')) if mibBuilder.loadTexts: lacpPortEntry.setStatus('current') if mibBuilder.loadTexts: lacpPortEntry.setDescription('Entry for LACP port configuration. While an entry may exist for a particular port, the port may not support LACP and an attempt to enable LACP may result in failure.') lacp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1, 1), integer32()) if mibBuilder.loadTexts: lacpPortIndex.setStatus('current') if mibBuilder.loadTexts: lacpPortIndex.setDescription('The port interface of the lacpPortTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') lacp_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 4, 1, 1, 2), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: lacpPortStatus.setStatus('current') if mibBuilder.loadTexts: lacpPortStatus.setDescription('Whether 802.3ad LACP is enabled.') sta_system_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 1), enabled_status().clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: staSystemStatus.setStatus('current') if mibBuilder.loadTexts: staSystemStatus.setDescription('Global spanning tree status. (1) Spanning tree protocol is enabled. (2) Spanning tree protocol is disabled.') sta_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2)) if mibBuilder.loadTexts: staPortTable.setStatus('current') if mibBuilder.loadTexts: staPortTable.setDescription('The table manages port settings for Spanning Tree Protocol 802.1d, or 802.1w depending on the value specified by staProtocolType.') sta_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1)) dot1dStpPortEntry.registerAugmentions(('V2H124-24-MIB', 'staPortEntry')) staPortEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames()) if mibBuilder.loadTexts: staPortEntry.setStatus('current') if mibBuilder.loadTexts: staPortEntry.setDescription('The conceptual entry of staPortTable.') sta_port_fast_forward = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 2), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPortFastForward.setStatus('current') if mibBuilder.loadTexts: staPortFastForward.setDescription('Whether fast forwarding is enabled.') sta_port_protocol_migration = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPortProtocolMigration.setReference('IEEE 802.1w clause 14.8.2.4, 17.18.10, 17.26') if mibBuilder.loadTexts: staPortProtocolMigration.setStatus('current') if mibBuilder.loadTexts: staPortProtocolMigration.setDescription('When operating in RSTP (version 2) mode, setting this object to TRUE(1) object forces the port to transmit RSTP BPDUs. Any other operation on this object has no effect and it always returns FALSE(2) when read.') sta_port_admin_edge_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPortAdminEdgePort.setReference('IEEE 802.1t clause 14.8.2, 18.3.3') if mibBuilder.loadTexts: staPortAdminEdgePort.setStatus('current') if mibBuilder.loadTexts: staPortAdminEdgePort.setDescription('The administrative value of the Edge Port parameter. A value of TRUE(1) indicates that this port should be assumed to be an edge-port and a value of FALSE(2) indicates that this port should be assumed to be a non-edge-port.') sta_port_oper_edge_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: staPortOperEdgePort.setReference('IEEE 802.1t clause 14.8.2, 18.3.4') if mibBuilder.loadTexts: staPortOperEdgePort.setStatus('current') if mibBuilder.loadTexts: staPortOperEdgePort.setDescription('The operational value of the Edge Port parameter. The object is initialized to the value of staPortAdminEdgePort and is set FALSE when a BPDU is received.') sta_port_admin_point_to_point = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('forceTrue', 0), ('forceFalse', 1), ('auto', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPortAdminPointToPoint.setReference('IEEE 802.1w clause 6.4.3, 6.5, 14.8.2') if mibBuilder.loadTexts: staPortAdminPointToPoint.setStatus('current') if mibBuilder.loadTexts: staPortAdminPointToPoint.setDescription('The administrative point-to-point status of the LAN segment attached to this port. A value of forceTrue(0) indicates that this port should always be treated as if it is connected to a point-to-point link. A value of forceFalse(1) indicates that this port should be treated as having a shared media connection. A value of auto(2) indicates that this port is considered to have a point-to-point link if it is an Aggregator and all of its members can be aggregated, or if the MAC entity is configured for full duplex operation, either through auto-negotiation or by explicit configuration.') sta_port_oper_point_to_point = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: staPortOperPointToPoint.setReference('IEEE 802.1w clause 6.4.3, 6.5, 14.8.2') if mibBuilder.loadTexts: staPortOperPointToPoint.setStatus('current') if mibBuilder.loadTexts: staPortOperPointToPoint.setDescription('The operational point-to-point status of the LAN segment attached to this port. It indicates whether a port is considered to have a point-to-point connection or not. The value is determined by explicit configuration or by auto-detection, as described in the staPortAdminPointToPoint object.') sta_port_long_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPortLongPathCost.setStatus('current') if mibBuilder.loadTexts: staPortLongPathCost.setDescription('The contribution of this port to the path cost (as a 32 bit value) of paths towards the spanning tree root which include this port. This object is used to configure the spanning tree port path cost as a 32 bit value when the staPathCostMethod is long(2). If the staPathCostMethod is short(1), this MIB object is not instantiated.') sta_protocol_type = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('stp', 1), ('rstp', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: staProtocolType.setReference('IEEE 802.1w clause 14.8.1, 17.12, 17.16.1') if mibBuilder.loadTexts: staProtocolType.setStatus('current') if mibBuilder.loadTexts: staProtocolType.setDescription("The version of Spanning Tree Protocol the bridge is currently running. The value 'stp(1)' indicates the Spanning Tree Protocol is as specified in IEEE 802.1D,'rstp(2)' indicates the Rapid Spanning Tree Protocol is as specified in IEEE 802.1w New values may be defined in the future as new or updated versions of the protocol become available.") sta_tx_hold_count = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: staTxHoldCount.setReference('IEEE 802.1w clause 17.16.6') if mibBuilder.loadTexts: staTxHoldCount.setStatus('current') if mibBuilder.loadTexts: staTxHoldCount.setDescription('The minimum interval between the transmission of consecutive RSTP/MSTP BPDUs in seconds.') sta_path_cost_method = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2))).clone('short')).setMaxAccess('readwrite') if mibBuilder.loadTexts: staPathCostMethod.setStatus('current') if mibBuilder.loadTexts: staPathCostMethod.setDescription("Indicates the type of spanning tree path cost mode configured on the switch. This mode applies to all instances of the Spanning tree protocol running on the switch. When the value of this MIB object is changed, the path cost of all ports will be reassigned to the default path cost values based on the new spanning tree path cost mode and the ports' speed. When the value of this MIB object is set to long(2), the staPortLongPathCost MIB object must be used to retrieve/ configure the spanning tree port path cost as a 32 bit value. The set operation on dot1dStpPortPathCost in the BRIDGE-MIB will be rejected. When retrieving the value of dot1dStpPortPathCost, the maximum value of 65535 will be returned if the value of staPortLongPathCost for the same instance exceeds 65535. When the value of this MIB object is set to short(1), the dot1dStpPortPathCost in the BRIDGE-MIB must be used.") xst_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6)) xst_instance_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4)) if mibBuilder.loadTexts: xstInstanceCfgTable.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTable.setDescription('This table is used to configure Rapid Spanning Tree. Only the first row of the table is used by RST. In the future this table may be used to support other spanning tree protocols.') xst_instance_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1)).setIndexNames((0, 'V2H124-24-MIB', 'xstInstanceCfgIndex')) if mibBuilder.loadTexts: xstInstanceCfgEntry.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgEntry.setDescription('A conceptual row containing the properties of the RST instance.') xst_instance_cfg_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: xstInstanceCfgIndex.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgIndex.setDescription('The index for an entry in the xstInstanceCfgTable table. For RST only the first row in the table is used.') xst_instance_cfg_priority = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 61440))).setMaxAccess('readwrite') if mibBuilder.loadTexts: xstInstanceCfgPriority.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgPriority.setDescription('The priority of a specific spanning tree instance. The value assigned should be in the range 0-61440 in steps of 4096.') xst_instance_cfg_time_since_topology_change = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgTimeSinceTopologyChange.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTimeSinceTopologyChange.setDescription('The time (in hundredths of second) since the last topology change detected by the bridge entity in RST.') xst_instance_cfg_top_changes = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgTopChanges.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTopChanges.setDescription('The total number of topology changes detected by this bridge in RST since the management entity was last reset or initialized.') xst_instance_cfg_designated_root = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 5), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgDesignatedRoot.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgDesignatedRoot.setDescription('The bridge identifier of the root of the spanning tree as determined by the Rapid Spanning Tree Protocol (802.1w) executed by this node. This value is used as the Root Identifier parameter in all Configuration Bridge PDUs originated by this node.') xst_instance_cfg_root_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgRootCost.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgRootCost.setDescription('The cost of the path to the root as seen from this bridge of the RST.') xst_instance_cfg_root_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgRootPort.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgRootPort.setDescription('The number of the port which offers the lowest cost path from this bridge to the root bridge of the RST .') xst_instance_cfg_max_age = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 8), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgMaxAge.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgMaxAge.setDescription('The maximum age of Rapid Spanning Tree Protocol information learned from the network on any port before it is discarded, in units of hundredths of a second. This is the actual value that this bridge is currently using.') xst_instance_cfg_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 9), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgHelloTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgHelloTime.setDescription('The amount of time between the transmission of Configuration bridge PDUs by this node on any port when it is the root of the spanning tree or trying to become so, in units of hundredths of a second. This is the actual value that this bridge is currently using in RST.') xst_instance_cfg_hold_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 10), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgHoldTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgHoldTime.setDescription('This time value determines the interval length during which no more than two Configuration bridge PDUs shall be transmitted by this node, in units of hundredths of a second.') xst_instance_cfg_forward_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 11), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgForwardDelay.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgForwardDelay.setDescription('For the RST protocol, this time value, measured in units of hundredths of a second, controls how fast a port changes its spanning state when moving towards the Forwarding state. The value determines how long the port stays in each of the Listening and Learning states, which precede the Forwarding state. This value is also used, when a topology change has been detected and is underway, to age all dynamic entries in the Forwarding Database. This value is the current value being used by the bridge. xstInstanceCfgBridgeForwardDelay defines the value that this bridge and all others would start using if/when this bridge were to become the root.') xst_instance_cfg_bridge_max_age = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 12), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgBridgeMaxAge.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeMaxAge.setDescription('For RST protocol, the time (in hundredths of second) that all bridges use for MaxAge when this bridge is acting as the root. Note that 802.1D-1990 specifies that the range for this parameter is related to the value of xstInstanceCfgBridgeHelloTime. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xst_instance_cfg_bridge_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 13), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgBridgeHelloTime.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeHelloTime.setDescription('For the RST protocol, the time (in hundredths of second) that all bridges use for HelloTime when this bridge is acting as the root. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xst_instance_cfg_bridge_forward_delay = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 14), timeout()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgBridgeForwardDelay.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgBridgeForwardDelay.setDescription('For the RST protocol, the time (in hundredths of second) that all bridges use for ForwardDelay when this bridge is acting as the root. Note that 802.1D-1990 specifies that the range for this parameter is related to the value of xstInstanceCfgBridgeMaxAge. The granularity of this timer is specified by 802.1D-1990 to be 1 second.') xst_instance_cfg_tx_hold_count = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgTxHoldCount.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgTxHoldCount.setDescription('For the RST protocol, the value used by the Port Transmit state machine to limit the maximum transmission rate.') xst_instance_cfg_path_cost_method = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 4, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstanceCfgPathCostMethod.setStatus('current') if mibBuilder.loadTexts: xstInstanceCfgPathCostMethod.setDescription("For RST protocol, this indicates the type of spanning tree path cost mode used by the switch. The mode applies to all instances of the Spanning Tree protocol running on the switch. When the value of this MIB object is changed, the path cost of all ports will be reassigned to the default path cost values based on the new spanning tree path cost mode and the ports' speed. When the value of this MIB object is set to long(2), the xstInstancePortPathCost MIB object must be used in order to retrieve/configure the spanning tree port path cost as a 32 bit value. The set operation on dot1dStpPortPathCost in the BRIDGE-MIB will be rejected. While retrieving the value of dot1dStpPortPathCost, the maximum value of 65535 will be returned if the value of xstInstancePortPathCost for the same instance exceeds 65535. When the value of this MIB object is set to short(1), the dot1dStpPortPathCost in the BRIDGE-MIB must be used.") xst_instance_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5)) if mibBuilder.loadTexts: xstInstancePortTable.setStatus('current') if mibBuilder.loadTexts: xstInstancePortTable.setDescription('The extension table for dot1dStpPortEntry to provide additional Spanning Tree information and configuration.') xst_instance_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1)).setIndexNames((0, 'V2H124-24-MIB', 'xstInstanceCfgIndex'), (0, 'BRIDGE-MIB', 'dot1dStpPort')) if mibBuilder.loadTexts: xstInstancePortEntry.setStatus('current') if mibBuilder.loadTexts: xstInstancePortEntry.setDescription('The conceptual row for xstInstancePortTable.') xst_instance_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 240))).setMaxAccess('readwrite') if mibBuilder.loadTexts: xstInstancePortPriority.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPriority.setDescription('Defines the priority used for this port in the Spanning Tree Algorithm. If the path cost for all ports on a switch is the same, the port with the highest priority (i.e., lowest value) will be configured as an active link in the Spanning Tree. This makes a port with higher priority less likely to be blocked if the Spanning Tree Algorithm is detecting network loops. Where more than one port is assigned the highest priority, the port with lowest numeric identifier will be enabled.') xst_instance_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('discarding', 1), ('learning', 2), ('forwarding', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortState.setStatus('current') if mibBuilder.loadTexts: xstInstancePortState.setDescription("The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame: discarding(1) Port receives configuration messages, but does not forward packets. learning(2) Port has transmitted configuration messages for an interval set by the Forward Delay parameter without receiving contradictory information. Port address table is cleared, and the port begins learning addresses. forwarding(3) Port forwards packets, and continues learning addresses. For ports which are disabled (see xstInstancePortEnable), this object will have a value of discarding(1).") xst_instance_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 5), enabled_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortEnable.setStatus('current') if mibBuilder.loadTexts: xstInstancePortEnable.setDescription('The enabled/disabled status of the port.') xst_instance_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: xstInstancePortPathCost.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPathCost.setDescription('The pathcost of the RST in the range 1 to 200000000. This parameter is used to determine the best path between devices. Therefore, lower values should be assigned to ports attached to faster media, and higher values assigned to ports with slower media. (Path cost takes precedence over port priority).') xst_instance_port_designated_root = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 7), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortDesignatedRoot.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedRoot.setDescription('The unique Bridge Identifier of the Bridge recorded as the Root in the Configuration BPDUs transmitted by the Designated Bridge for the segment to which the port is attached.') xst_instance_port_designated_cost = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortDesignatedCost.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedCost.setDescription('The path cost of the Designated Port of the segment connected to this port. This value is compared to the Root Path Cost field in received bridge PDUs.') xst_instance_port_designated_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 9), bridge_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortDesignatedBridge.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedBridge.setDescription("The Bridge Identifier of the bridge which this port considers to be the Designated Bridge for this port's segment.") xst_instance_port_designated_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortDesignatedPort.setStatus('current') if mibBuilder.loadTexts: xstInstancePortDesignatedPort.setDescription("The Port Identifier of the port on the Designated Bridge for this port's segment.") xst_instance_port_forward_transitions = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortForwardTransitions.setStatus('current') if mibBuilder.loadTexts: xstInstancePortForwardTransitions.setDescription('The number of times this port has transitioned from the Learning state to the Forwarding state.') xst_instance_port_port_role = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 5, 6, 5, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('disabled', 1), ('root', 2), ('designated', 3), ('alternate', 4), ('backup', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: xstInstancePortPortRole.setStatus('current') if mibBuilder.loadTexts: xstInstancePortPortRole.setDescription('The role of the port in the RST protocol: (1) The port has no role within the spanning tree (2) The port is part of the active topology connecting the bridge to the root bridge (i.e., root port) (3) The port is connecting a LAN through the bridge to the root bridge (i.e., designated port) (4) The port may provide connectivity if other bridges, bridge ports, or LANs fail or are removed. (5) The port provides backup if other bridges, bridge ports, or LANs fail or are removed.') restart_op_code_file = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: restartOpCodeFile.setStatus('current') if mibBuilder.loadTexts: restartOpCodeFile.setDescription('Name of op-code file for start-up.') restart_config_file = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: restartConfigFile.setStatus('current') if mibBuilder.loadTexts: restartConfigFile.setDescription('Name of configuration file for start-up.') restart_control = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 7, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('running', 1), ('warmBoot', 2), ('coldBoot', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: restartControl.setStatus('current') if mibBuilder.loadTexts: restartControl.setDescription("Setting this object to warmBoot(2) causes the device to reinitializing itself such that neither the agent configuration nor the protocol entity implementation is altered. Setting this object to coldBoot(3) causes the device to reinitializing itself such that the agent's configuration or the protocol entity implementation may be altered. When the device is running normally, this variable has a value of running(1).") mirror_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1)) if mibBuilder.loadTexts: mirrorTable.setStatus('current') if mibBuilder.loadTexts: mirrorTable.setDescription('Table for port mirroring, enabling a port to be mirrored to/from another port. Not all ports cannot be mirrored and limitations may apply as to which ports can be used as either source or destination ports.') mirror_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'mirrorDestinationPort'), (0, 'V2H124-24-MIB', 'mirrorSourcePort')) if mibBuilder.loadTexts: mirrorEntry.setStatus('current') if mibBuilder.loadTexts: mirrorEntry.setDescription('The conceptual row of mirrorTable.') mirror_destination_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 1), integer32()) if mibBuilder.loadTexts: mirrorDestinationPort.setStatus('current') if mibBuilder.loadTexts: mirrorDestinationPort.setDescription('The destination port interface for mirrored packets. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') mirror_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 2), integer32()) if mibBuilder.loadTexts: mirrorSourcePort.setStatus('current') if mibBuilder.loadTexts: mirrorSourcePort.setDescription('The source port interface for mirrored packets. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') mirror_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('rx', 1), ('tx', 2), ('both', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: mirrorType.setStatus('current') if mibBuilder.loadTexts: mirrorType.setDescription('If this value is rx(1), receive packets will be mirrored. If this value is tx(2), transmit packets will be mirrored. If this value is both(3), both receive and transmit packets will be mirrored.') mirror_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 8, 1, 1, 4), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: mirrorStatus.setStatus('current') if mibBuilder.loadTexts: mirrorStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') igmp_snoop_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 1), enabled_status().clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopStatus.setDescription('Parameter to enable or disable IGMP snooping on the device. When enabled, the device will examine IGMP packets and set up filters for IGMP ports. ') igmp_snoop_querier = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 2), enabled_status().clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopQuerier.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQuerier.setDescription('Enables (disables) whether the switch acts as an IGMP Querier.') igmp_snoop_query_count = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 3), integer32().subtype(subtypeSpec=value_range_constraint(2, 10)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopQueryCount.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryCount.setDescription('The query count from a querier, during which a response is expected from an endstation. If a querier has sent a number of counts defined by igmpSnoopQueryCount, but an endstation has not responded, a countdown timer is started using the time defined by igmpSnoopQueryMaxResponseTime. If the countdown finishes, and the endstation still has not responded, then that endstation is deemed to have left the multicast group.') igmp_snoop_query_interval = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 4), integer32().subtype(subtypeSpec=value_range_constraint(60, 125)).clone(125)).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopQueryInterval.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryInterval.setDescription('The interval (in seconds) between IGMP host-query messages sent by the switch.') igmp_snoop_query_max_response_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 5), integer32().subtype(subtypeSpec=value_range_constraint(5, 25)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopQueryMaxResponseTime.setStatus('current') if mibBuilder.loadTexts: igmpSnoopQueryMaxResponseTime.setDescription('The time after a query, during which a response is expected from an endstation. If a querier has sent a number of queries defined by igmpSnoopQueryCount, but an endstation has not responded, a countdown timer is started using an initial value set by igmpSnoopQueryMaxResponseTime. If the countdown finishes, and the endstation still has not responded, then that the endstation is deemed to have left the multicast group.') igmp_snoop_router_port_expire_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 6), integer32().subtype(subtypeSpec=value_range_constraint(300, 500)).clone(300)).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopRouterPortExpireTime.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterPortExpireTime.setDescription('Sets the time (in seconds) the switch waits after the previous querier has stopped querying before the router port (which received Query packets from previous querier) expires.') igmp_snoop_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: igmpSnoopVersion.setStatus('current') if mibBuilder.loadTexts: igmpSnoopVersion.setDescription('IGMP Version snooped') igmp_snoop_router_current_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8)) if mibBuilder.loadTexts: igmpSnoopRouterCurrentTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentTable.setDescription('Table for current router ports.') igmp_snoop_router_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1)).setIndexNames((0, 'V2H124-24-MIB', 'igmpSnoopRouterCurrentVlanIndex')) if mibBuilder.loadTexts: igmpSnoopRouterCurrentEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentEntry.setDescription('Entry for current router ports.') igmp_snoop_router_current_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 1), unsigned32()) if mibBuilder.loadTexts: igmpSnoopRouterCurrentVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopRouterStaticTable.') igmp_snoop_router_current_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 2), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: igmpSnoopRouterCurrentPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentPorts.setDescription('The set of ports which are current router ports, including static router ports. Please refer to igmpSnoopRouterStaticTable.') igmp_snoop_router_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 8, 1, 3), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: igmpSnoopRouterCurrentStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterCurrentStatus.setDescription('The set of ports which are static router ports.') igmp_snoop_router_static_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9)) if mibBuilder.loadTexts: igmpSnoopRouterStaticTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticTable.setDescription('Table for static router ports.') igmp_snoop_router_static_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1)).setIndexNames((0, 'V2H124-24-MIB', 'igmpSnoopRouterStaticVlanIndex')) if mibBuilder.loadTexts: igmpSnoopRouterStaticEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticEntry.setDescription('Entry for static router ports.') igmp_snoop_router_static_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 1), unsigned32()) if mibBuilder.loadTexts: igmpSnoopRouterStaticVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopRouterStaticTable.') igmp_snoop_router_static_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 2), port_list()).setMaxAccess('readcreate') if mibBuilder.loadTexts: igmpSnoopRouterStaticPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticPorts.setDescription('The set of ports which are static router ports.') igmp_snoop_router_static_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 9, 1, 3), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: igmpSnoopRouterStaticStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopRouterStaticStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') igmp_snoop_multicast_current_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10)) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentTable.setDescription('Table for current multicast addresses.') igmp_snoop_multicast_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1)).setIndexNames((0, 'V2H124-24-MIB', 'igmpSnoopMulticastCurrentVlanIndex'), (0, 'V2H124-24-MIB', 'igmpSnoopMulticastCurrentIpAddress')) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentEntry.setDescription('Entry for current multicast addresses.') igmp_snoop_multicast_current_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 1), unsigned32()) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopMulticastStaticTable.') igmp_snoop_multicast_current_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 2), ip_address()) if mibBuilder.loadTexts: igmpSnoopMulticastCurrentIpAddress.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentIpAddress.setDescription('IP address of multicast group.') igmp_snoop_multicast_current_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 3), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentPorts.setDescription('The set of ports which are members of a multicast group, including static members. Please refer to igmpSnoopMulticastStaticTable.') igmp_snoop_multicast_current_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 10, 1, 4), port_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastCurrentStatus.setDescription('The set of ports which are static members.') igmp_snoop_multicast_static_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11)) if mibBuilder.loadTexts: igmpSnoopMulticastStaticTable.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticTable.setDescription('Table for static multicast addresses.') igmp_snoop_multicast_static_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1)).setIndexNames((0, 'V2H124-24-MIB', 'igmpSnoopMulticastStaticVlanIndex'), (0, 'V2H124-24-MIB', 'igmpSnoopMulticastStaticIpAddress')) if mibBuilder.loadTexts: igmpSnoopMulticastStaticEntry.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticEntry.setDescription('Entry for static multicast addresses.') igmp_snoop_multicast_static_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 1), unsigned32()) if mibBuilder.loadTexts: igmpSnoopMulticastStaticVlanIndex.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticVlanIndex.setDescription('The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qVlanIndex in the Q-BRIDGE-MIB. The entry will only appear here after a configure to igmpSnoopMulticastStaticTable.') igmp_snoop_multicast_static_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 2), ip_address()) if mibBuilder.loadTexts: igmpSnoopMulticastStaticIpAddress.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticIpAddress.setDescription('IP address of multicast group.') igmp_snoop_multicast_static_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 3), port_list()).setMaxAccess('readcreate') if mibBuilder.loadTexts: igmpSnoopMulticastStaticPorts.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticPorts.setDescription('The set of ports which are members.') igmp_snoop_multicast_static_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 9, 11, 1, 4), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: igmpSnoopMulticastStaticStatus.setStatus('current') if mibBuilder.loadTexts: igmpSnoopMulticastStaticStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') net_config_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1)) if mibBuilder.loadTexts: netConfigTable.setStatus('current') if mibBuilder.loadTexts: netConfigTable.setDescription('A table of netConfigEntries.') net_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'netConfigIfIndex'), (0, 'V2H124-24-MIB', 'netConfigIPAddress'), (0, 'V2H124-24-MIB', 'netConfigSubnetMask')) if mibBuilder.loadTexts: netConfigEntry.setStatus('current') if mibBuilder.loadTexts: netConfigEntry.setDescription('A set of configuration parameters for a particular network interface on this device. If the device has no network interface, this table is empty. The index is composed of the ifIndex assigned to the corresponding interface.') net_config_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 1), integer32()) if mibBuilder.loadTexts: netConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: netConfigIfIndex.setDescription('The VLAN interface being used by this table entry. Only the VLAN interfaces which have an IP configured will appear in the table.') net_config_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 2), ip_address()) if mibBuilder.loadTexts: netConfigIPAddress.setStatus('current') if mibBuilder.loadTexts: netConfigIPAddress.setDescription('The IP address of this Net interface. The default value for this object is 0.0.0.0. If either the netConfigIPAddress or netConfigSubnetMask are 0.0.0.0, then when the device boots, it may use BOOTP to try to figure out what these values should be. If BOOTP fails, before the device can talk on the network, this value must be configured (e.g., through a terminal attached to the device).') net_config_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 3), ip_address()) if mibBuilder.loadTexts: netConfigSubnetMask.setStatus('current') if mibBuilder.loadTexts: netConfigSubnetMask.setDescription('The subnet mask of this Net interface. The default value for this object is 0.0.0.0. If either the netConfigIPAddress or netConfigSubnetMask are 0.0.0.0, then when the device boots, it may use BOOTP to try to figure out what these values should be. If BOOTP fails, before the device can talk on the network, this value must be configured (e.g., through a terminal attached to the device).') net_config_primary_interface = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('primary', 1), ('secondary', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: netConfigPrimaryInterface.setStatus('current') if mibBuilder.loadTexts: netConfigPrimaryInterface.setDescription('Whether this is a primary interface.') net_config_unnumbered = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('unnumbered', 1), ('notUnnumbered', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: netConfigUnnumbered.setStatus('current') if mibBuilder.loadTexts: netConfigUnnumbered.setDescription('Whether this is an unnumbered interface.') net_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 1, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: netConfigStatus.setStatus('current') if mibBuilder.loadTexts: netConfigStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") net_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: netDefaultGateway.setStatus('current') if mibBuilder.loadTexts: netDefaultGateway.setDescription('The IP Address of the default gateway. If this value is undefined or unknown, it shall have the value 0.0.0.0.') ip_http_state = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 3), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipHttpState.setStatus('current') if mibBuilder.loadTexts: ipHttpState.setDescription('Whether HTTP is enabled.') ip_http_port = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipHttpPort.setStatus('current') if mibBuilder.loadTexts: ipHttpPort.setDescription('The port number for HTTP.') ip_dhcp_restart = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('restart', 1), ('noRestart', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipDhcpRestart.setStatus('current') if mibBuilder.loadTexts: ipDhcpRestart.setDescription('When set to restart(1) the DHCP server will restart. When read, this value always returns noRestart(2).') ip_https_state = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 6), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipHttpsState.setStatus('current') if mibBuilder.loadTexts: ipHttpsState.setDescription('Whether HTTPS is enabled.') ip_https_port = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 10, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipHttpsPort.setStatus('current') if mibBuilder.loadTexts: ipHttpsPort.setDescription('The port number for HTTPS.') bcast_storm_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1)) if mibBuilder.loadTexts: bcastStormTable.setStatus('current') if mibBuilder.loadTexts: bcastStormTable.setDescription('Table to manage the control of broadcast storms for ports.') bcast_storm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'bcastStormIfIndex')) if mibBuilder.loadTexts: bcastStormEntry.setStatus('current') if mibBuilder.loadTexts: bcastStormEntry.setDescription('The conceptual row of bcastStormTable.') bcast_storm_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 1), integer32()) if mibBuilder.loadTexts: bcastStormIfIndex.setStatus('current') if mibBuilder.loadTexts: bcastStormIfIndex.setDescription('The port and the trunk (including trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') bcast_storm_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 2), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bcastStormStatus.setStatus('current') if mibBuilder.loadTexts: bcastStormStatus.setDescription('Whether broadcast storm protection is enabled.') bcast_storm_sample_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pkt-rate', 1), ('octet-rate', 2), ('percent', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bcastStormSampleType.setStatus('current') if mibBuilder.loadTexts: bcastStormSampleType.setDescription('Sample type. If this is pkt-rate(1), then bcastStormPktRate is used to specify the broadcast storm threshold. If this is octet-rate(2), then bcastStormOctetRate determines the broadcast storm threshold. If this is percent(3), then bcastStormPercent determines the threshold.') bcast_storm_pkt_rate = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bcastStormPktRate.setStatus('current') if mibBuilder.loadTexts: bcastStormPktRate.setDescription('Broadcast storm threshold as packets per second. If this entry is for a trunk, this is the value for each member port.') bcast_storm_octet_rate = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bcastStormOctetRate.setStatus('current') if mibBuilder.loadTexts: bcastStormOctetRate.setDescription('Broadcast storm threshold as octets per second. If this entry is for a trunk, this is the value for each member port.') bcast_storm_percent = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 11, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bcastStormPercent.setStatus('current') if mibBuilder.loadTexts: bcastStormPercent.setDescription('Broadcast storm threshold as percentage of bandwidth.') vlan_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1)) if mibBuilder.loadTexts: vlanTable.setStatus('current') if mibBuilder.loadTexts: vlanTable.setDescription('Table for VLAN configuration.') vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'vlanIndex')) if mibBuilder.loadTexts: vlanEntry.setStatus('current') if mibBuilder.loadTexts: vlanEntry.setDescription('Entry for VLAN configuration.') vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: vlanIndex.setStatus('current') if mibBuilder.loadTexts: vlanIndex.setDescription('Based on dot1qVlanIndex in the Q-BRIDGE-MIB. This table has only one entry - the entry for the VLAN of the management interface.') vlan_address_method = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('user', 1), ('bootp', 2), ('dhcp', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vlanAddressMethod.setStatus('current') if mibBuilder.loadTexts: vlanAddressMethod.setDescription('Method to get the IP address.') vlan_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2)) if mibBuilder.loadTexts: vlanPortTable.setStatus('current') if mibBuilder.loadTexts: vlanPortTable.setDescription('Table for port configuration in VLAN.') vlan_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1)).setIndexNames((0, 'V2H124-24-MIB', 'vlanPortIndex')) if mibBuilder.loadTexts: vlanPortEntry.setStatus('current') if mibBuilder.loadTexts: vlanPortEntry.setDescription('Entry for port configuration in VLAN.') vlan_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1, 1), integer32()) if mibBuilder.loadTexts: vlanPortIndex.setStatus('current') if mibBuilder.loadTexts: vlanPortIndex.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of dot1qPvid in the Q-BRIDGE-MIB.') vlan_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 12, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('hybrid', 1), ('dot1qTrunk', 2), ('access', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vlanPortMode.setStatus('current') if mibBuilder.loadTexts: vlanPortMode.setDescription('This variable sets the 802.1Q VLAN mode. Setting it to hybrid(1) sets a hybrid link. Setting it to dot1qTrunk(2) sets a trunk link. Setting it to access(3) sets an access link.') prio_ip_prec_dscp_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('precedence', 2), ('dscp', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpPrecDscpStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPrecDscpStatus.setDescription('Selects whether no frame priority mapping, IP ToS precedence mapping or DSCP mapping is performed.') prio_ip_prec_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2)) if mibBuilder.loadTexts: prioIpPrecTable.setStatus('current') if mibBuilder.loadTexts: prioIpPrecTable.setDescription('Table for IP precedence priority mapping.') prio_ip_prec_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1)).setIndexNames((0, 'V2H124-24-MIB', 'prioIpPrecPort'), (0, 'V2H124-24-MIB', 'prioIpPrecValue')) if mibBuilder.loadTexts: prioIpPrecEntry.setStatus('current') if mibBuilder.loadTexts: prioIpPrecEntry.setDescription('Entry for IP precedence priority mapping.') prio_ip_prec_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 2), integer32()) if mibBuilder.loadTexts: prioIpPrecPort.setStatus('current') if mibBuilder.loadTexts: prioIpPrecPort.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prio_ip_prec_value = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: prioIpPrecValue.setStatus('current') if mibBuilder.loadTexts: prioIpPrecValue.setDescription('Value of IP ToS Precedence as specified in the packet header.') prio_ip_prec_cos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpPrecCos.setReference('P-BRIDGE-MIB.dot1dPriority.dot1dTrafficClassTable.') if mibBuilder.loadTexts: prioIpPrecCos.setStatus('current') if mibBuilder.loadTexts: prioIpPrecCos.setDescription('Class of Service (CoS) as defined by dot1dTrafficClassPriority in the P-BRIDGE-MIB. The IP ToS precedence value in the same table row will be mapped to this CoS. This CoS is then further mapped to the hardware queue according to dot1dTrafficClassTable.') prio_ip_prec_restore_default = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpPrecRestoreDefault.setStatus('current') if mibBuilder.loadTexts: prioIpPrecRestoreDefault.setDescription('Enables the IP Precedence settings of a port to be restored to their default values. To reset the settings of a port, assign prioIpPrecRestoreDefault to the value of ifIndex defined by the ifIndex in the IF-MIB. For example, If 1 is written to it, then the IP priorities of port 1 will be restored to default. When read, this object always returns 0.') prio_ip_dscp_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4)) if mibBuilder.loadTexts: prioIpDscpTable.setStatus('current') if mibBuilder.loadTexts: prioIpDscpTable.setDescription('Table for IP DSCP priority mapping.') prio_ip_dscp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1)).setIndexNames((0, 'V2H124-24-MIB', 'prioIpDscpPort'), (0, 'V2H124-24-MIB', 'prioIpDscpValue')) if mibBuilder.loadTexts: prioIpDscpEntry.setStatus('current') if mibBuilder.loadTexts: prioIpDscpEntry.setDescription('Entry for IP DSCP priority mapping.') prio_ip_dscp_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 1), integer32()) if mibBuilder.loadTexts: prioIpDscpPort.setStatus('current') if mibBuilder.loadTexts: prioIpDscpPort.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prio_ip_dscp_value = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))) if mibBuilder.loadTexts: prioIpDscpValue.setStatus('current') if mibBuilder.loadTexts: prioIpDscpValue.setDescription('Value of IP DSCP as specified in the packet header.') prio_ip_dscp_cos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpDscpCos.setReference('P-BRIDGE-MIB.dot1dPriority.dot1dTrafficClassTable.') if mibBuilder.loadTexts: prioIpDscpCos.setStatus('current') if mibBuilder.loadTexts: prioIpDscpCos.setDescription('Class of Service as defined by dot1dTrafficClassPriority in the P-BRIDGE-MIB. The prioIpDscpValue value in the same table row will be mapped to this Class of Service (COS). This CoS is then further mapped to the hardware queue according to dot1dTrafficClassTable.') prio_ip_dscp_restore_default = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpDscpRestoreDefault.setStatus('current') if mibBuilder.loadTexts: prioIpDscpRestoreDefault.setDescription('Enables the IP DSCP settings of a port to be reset to their defaults. To reset the IP DSCP settings of a port, assign the value of the relevant ifIndex defined by the ifIndex in the IF-MIB. For example, assigning the value 1 will result in the IP DSCP settings of port 1 being restored to their default. When read, this object always returns 0.') prio_ip_port_enable_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 6), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioIpPortEnableStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPortEnableStatus.setDescription('Whether IP Port priority look-up is enabled.') prio_ip_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7)) if mibBuilder.loadTexts: prioIpPortTable.setStatus('current') if mibBuilder.loadTexts: prioIpPortTable.setDescription('Table for IP port priority mapping.') prio_ip_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1)).setIndexNames((0, 'V2H124-24-MIB', 'prioIpPortPhysPort'), (0, 'V2H124-24-MIB', 'prioIpPortValue')) if mibBuilder.loadTexts: prioIpPortEntry.setStatus('current') if mibBuilder.loadTexts: prioIpPortEntry.setDescription('Entry for IP port priority mapping.') prio_ip_port_phys_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 1), integer32()) if mibBuilder.loadTexts: prioIpPortPhysPort.setStatus('current') if mibBuilder.loadTexts: prioIpPortPhysPort.setDescription('The port and the trunk (excluding trunk member) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prio_ip_port_value = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: prioIpPortValue.setStatus('current') if mibBuilder.loadTexts: prioIpPortValue.setDescription('IP port for this value.') prio_ip_port_cos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prioIpPortCos.setStatus('current') if mibBuilder.loadTexts: prioIpPortCos.setDescription('Class of service for this entry.') prio_ip_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 7, 1, 4), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: prioIpPortStatus.setStatus('current') if mibBuilder.loadTexts: prioIpPortStatus.setDescription('Writing this to valid(1) creates an entry. Writing this to invalid(2) destroys an entry.') prio_copy = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8)) prio_copy_ip_prec = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 1), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioCopyIpPrec.setStatus('current') if mibBuilder.loadTexts: prioCopyIpPrec.setDescription('Action to copy IP Precedence settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prio_copy_ip_dscp = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 2), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioCopyIpDscp.setStatus('current') if mibBuilder.loadTexts: prioCopyIpDscp.setDescription('Action to copy IP DSCP settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prio_copy_ip_port = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 8, 3), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioCopyIpPort.setStatus('current') if mibBuilder.loadTexts: prioCopyIpPort.setDescription('Action to copy IP Port settings from a source port to many destination ports. The first four octets represent an integer for the source port, in high-to-low (big-endian) order. Starting from the 5th octet is destination port list in a form described by PortList in the Q-BRIDGE-MIB. Writing this object will perform copy. Reading this object will always get a zero-length octet string.') prio_wrr_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9)) if mibBuilder.loadTexts: prioWrrTable.setStatus('current') if mibBuilder.loadTexts: prioWrrTable.setDescription('Table for weighted round robin (WRR).') prio_wrr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1)).setIndexNames((0, 'V2H124-24-MIB', 'prioWrrTrafficClass')) if mibBuilder.loadTexts: prioWrrEntry.setStatus('current') if mibBuilder.loadTexts: prioWrrEntry.setDescription('Entry for weighted round robin (WRR).') prio_wrr_traffic_class = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: prioWrrTrafficClass.setReference('MIB.IETF|Q-BRIDGE-MIB.dot1dTrafficClass.') if mibBuilder.loadTexts: prioWrrTrafficClass.setStatus('current') if mibBuilder.loadTexts: prioWrrTrafficClass.setDescription('Traffic class for this entry, as defined in dot1dTrafficClass in the P-BRIDGE-MIB. The actual maximum depends on the hardware, and is equal to dot1dPortNumTrafficClasses-1.') prio_wrr_weight = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 13, 9, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: prioWrrWeight.setStatus('current') if mibBuilder.loadTexts: prioWrrWeight.setDescription('Weight for this entry.') trap_dest_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1)) if mibBuilder.loadTexts: trapDestTable.setReference('RMON2-MIB, mib2(1).rmon(16).probeConfig(19).trapDestTable(13).') if mibBuilder.loadTexts: trapDestTable.setStatus('current') if mibBuilder.loadTexts: trapDestTable.setDescription('A list of trap destination entries.') trap_dest_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'trapDestAddress')) if mibBuilder.loadTexts: trapDestEntry.setStatus('current') if mibBuilder.loadTexts: trapDestEntry.setDescription('A destination entry describes the destination IP address, the community string and SNMP version to use when sending a trap.') trap_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 1), ip_address()) if mibBuilder.loadTexts: trapDestAddress.setStatus('current') if mibBuilder.loadTexts: trapDestAddress.setDescription('The address to send traps.') trap_dest_community = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readcreate') if mibBuilder.loadTexts: trapDestCommunity.setStatus('current') if mibBuilder.loadTexts: trapDestCommunity.setDescription('A community to which this destination address belongs.') trap_dest_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 3), valid_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: trapDestStatus.setStatus('current') if mibBuilder.loadTexts: trapDestStatus.setDescription('Setting this to valid(1) creates an entry. Setting this to invalid(2) destroys an entry.') trap_dest_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 14, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('version1', 1), ('version2', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: trapDestVersion.setStatus('current') if mibBuilder.loadTexts: trapDestVersion.setDescription('Determines the version of the Trap that is to be sent to the trap Receiver. If the value is 1, then a SNMP version 1 trap will be sent and if the value is 2, a SNMP version 2 trap is sent.') rate_limit_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1)) rate_limit_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 1), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rateLimitStatus.setStatus('current') if mibBuilder.loadTexts: rateLimitStatus.setDescription('Whether rate limit is enabled.') rate_limit_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2)) if mibBuilder.loadTexts: rateLimitPortTable.setStatus('current') if mibBuilder.loadTexts: rateLimitPortTable.setDescription('Table for rate limit of each port.') rate_limit_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1)).setIndexNames((0, 'V2H124-24-MIB', 'rlPortIndex')) if mibBuilder.loadTexts: rateLimitPortEntry.setStatus('current') if mibBuilder.loadTexts: rateLimitPortEntry.setDescription('Entry for rate limit of each port.') rl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 1), integer32()) if mibBuilder.loadTexts: rlPortIndex.setStatus('current') if mibBuilder.loadTexts: rlPortIndex.setDescription('The port and the trunk (including trunk member) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') rl_port_input_limit = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlPortInputLimit.setStatus('current') if mibBuilder.loadTexts: rlPortInputLimit.setDescription('Value of the input rate limit. Its unit is megabits per second. For a 100 Mb/s port, the range is 1 to 100. For a 1000 Mb/s port, the range is 1 to 1000.') rl_port_output_limit = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlPortOutputLimit.setStatus('current') if mibBuilder.loadTexts: rlPortOutputLimit.setDescription('Value of the output rate limit. Its unit is megabits per second. For a 100 Mb/s port, the range is 1 to 100. For a 1000 Mb/s port, the range is 1 to 1000.') rl_port_input_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 6), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlPortInputStatus.setStatus('current') if mibBuilder.loadTexts: rlPortInputStatus.setDescription('Whether input rate limit is enabled for this port.') rl_port_output_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 1, 2, 1, 7), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: rlPortOutputStatus.setStatus('current') if mibBuilder.loadTexts: rlPortOutputStatus.setDescription('Whether output rate limit is enabled for this port.') marker_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2)) marker_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1)) if mibBuilder.loadTexts: markerTable.setStatus('current') if mibBuilder.loadTexts: markerTable.setDescription('The marker table.') marker_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'markerIfIndex'), (0, 'V2H124-24-MIB', 'markerAclName')) if mibBuilder.loadTexts: markerEntry.setStatus('current') if mibBuilder.loadTexts: markerEntry.setDescription('Entry for marker table.') marker_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 1), integer32()) if mibBuilder.loadTexts: markerIfIndex.setStatus('current') if mibBuilder.loadTexts: markerIfIndex.setDescription('The interface index of the marker table. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') marker_acl_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))) if mibBuilder.loadTexts: markerAclName.setStatus('current') if mibBuilder.loadTexts: markerAclName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device.') marker_action_bit_list = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 3), bits().clone(namedValues=named_values(('dscp', 0), ('precedence', 1), ('priority', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: markerActionBitList.setStatus('current') if mibBuilder.loadTexts: markerActionBitList.setDescription('The marker action bit list, in right to left order. for example: 0x3(11 in binary) means dscp(0) and precedence(1) 0x4(100 in binary) means priority(2)') marker_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate') if mibBuilder.loadTexts: markerDscp.setStatus('current') if mibBuilder.loadTexts: markerDscp.setDescription('The Dscp value of the marker entry.') marker_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: markerPrecedence.setStatus('current') if mibBuilder.loadTexts: markerPrecedence.setDescription('The precedence value of the marker entry.') marker_priority = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: markerPriority.setStatus('current') if mibBuilder.loadTexts: markerPriority.setDescription('The priority value of the marker entry.') marker_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 2, 1, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: markerStatus.setStatus('current') if mibBuilder.loadTexts: markerStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") cos_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3)) prio_acl_to_cos_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1)) if mibBuilder.loadTexts: prioAclToCosMappingTable.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingTable.setDescription('Table for Acl to Cos Mapping.') prio_acl_to_cos_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'prioAclToCosMappingIfIndex'), (0, 'V2H124-24-MIB', 'prioAclToCosMappingAclName')) if mibBuilder.loadTexts: prioAclToCosMappingEntry.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingEntry.setDescription('Entry for Acl to Cos Mapping.') prio_acl_to_cos_mapping_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 1), integer32()) if mibBuilder.loadTexts: prioAclToCosMappingIfIndex.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingIfIndex.setDescription('The port interface of the prioAclToCosMappingEntry. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') prio_acl_to_cos_mapping_acl_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))) if mibBuilder.loadTexts: prioAclToCosMappingAclName.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingAclName.setDescription('The name of an IP ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device.') prio_acl_to_cos_mapping_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readcreate') if mibBuilder.loadTexts: prioAclToCosMappingCosValue.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingCosValue.setDescription('Cos value of the prioAclToCosMappingTable.') prio_acl_to_cos_mapping_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 16, 3, 1, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: prioAclToCosMappingStatus.setStatus('current') if mibBuilder.loadTexts: prioAclToCosMappingStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") port_security_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2)) radius_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4)) tacacs_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5)) ssh_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6)) acl_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7)) port_sec_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1)) if mibBuilder.loadTexts: portSecPortTable.setStatus('current') if mibBuilder.loadTexts: portSecPortTable.setDescription('The Port Security(MAC binding) Table') port_sec_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'portSecPortIndex')) if mibBuilder.loadTexts: portSecPortEntry.setStatus('current') if mibBuilder.loadTexts: portSecPortEntry.setDescription('The entry of portSecPortTable') port_sec_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 1), integer32()) if mibBuilder.loadTexts: portSecPortIndex.setStatus('current') if mibBuilder.loadTexts: portSecPortIndex.setDescription('The port and the trunk (excluding trunk members) interface of the portTable. The interface identified by a particular value of this index is the same interface as identified by the same value of ifIndex in the IF-MIB.') port_sec_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 2), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: portSecPortStatus.setStatus('current') if mibBuilder.loadTexts: portSecPortStatus.setDescription('Set enabled(1) to enable port security and set disabled(2) to disable port security.') port_sec_action = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('trap', 2), ('shutdown', 3), ('trapAndShutdown', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portSecAction.setStatus('current') if mibBuilder.loadTexts: portSecAction.setDescription('The corresponding actions that will take place when a port is under intruded, when this variable is set to none(1), no action will perform, when this variable is set to trap(2), a swPortSecurityTrap trap will send, when this variable is set to shutdown(3), the port will shutdown, when this variable is set to trapAndShutdown(4), a swPortSecurityTrap will send and the port will shutdown.') port_sec_max_mac_count = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 2, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: portSecMaxMacCount.setStatus('current') if mibBuilder.loadTexts: portSecMaxMacCount.setDescription('The maximun number of MAC addresses that will be learned and locked. When we change the value of this variable, if the portSecPortStatus is enabled, we will discard all secure MAC and begin to learn again, until the number of MAC has reached this value, and only the secure MAC addresses can enter this port. If the portSecPortStatus is disabled, we will begin to learn the MAC, and auto enabled the portSecPortStatus when the MAC has reached this value.') radius_server_address = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: radiusServerAddress.setStatus('current') if mibBuilder.loadTexts: radiusServerAddress.setDescription('IP address of RADIUS server.') radius_server_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: radiusServerPortNumber.setStatus('current') if mibBuilder.loadTexts: radiusServerPortNumber.setDescription('IP port number of RADIUS server.') radius_server_key = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite') if mibBuilder.loadTexts: radiusServerKey.setStatus('current') if mibBuilder.loadTexts: radiusServerKey.setDescription('Key for RADIUS. This variable can only be set. When this variable is read, it always returns a zero-length string.') radius_server_retransmit = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: radiusServerRetransmit.setStatus('current') if mibBuilder.loadTexts: radiusServerRetransmit.setDescription('Maximum number of retransmissions for RADIUS.') radius_server_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 4, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: radiusServerTimeout.setStatus('current') if mibBuilder.loadTexts: radiusServerTimeout.setDescription('Timeout for RADIUS.') tacacs_server_address = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tacacsServerAddress.setStatus('current') if mibBuilder.loadTexts: tacacsServerAddress.setDescription('IP address of TACACS server.') tacacs_server_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tacacsServerPortNumber.setStatus('current') if mibBuilder.loadTexts: tacacsServerPortNumber.setDescription('IP port number of TACACS server.') tacacs_server_key = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 5, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tacacsServerKey.setStatus('current') if mibBuilder.loadTexts: tacacsServerKey.setDescription('The encryption key used to authenticate logon access for the client using TACAS. Do not use blank spaces in the string. This variable can only be set. When this variable is read, it always returns a zero-length string.') ssh_server_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 1), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sshServerStatus.setStatus('current') if mibBuilder.loadTexts: sshServerStatus.setDescription('The status of Secure Shell Server, set this value to 1 to enable SSH server, set this value to 2 to disable the SSH server.') ssh_server_major_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sshServerMajorVersion.setStatus('current') if mibBuilder.loadTexts: sshServerMajorVersion.setDescription('The major version of the SSH Server.') ssh_server_minor_version = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sshServerMinorVersion.setStatus('current') if mibBuilder.loadTexts: sshServerMinorVersion.setDescription('The minor version of the SSH Server.') ssh_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sshTimeout.setStatus('current') if mibBuilder.loadTexts: sshTimeout.setDescription('The time interval that the router waits for the SSH client to respond. The range is 1-120.') ssh_auth_retries = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 5))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sshAuthRetries.setStatus('current') if mibBuilder.loadTexts: sshAuthRetries.setDescription('The number of attempts after which the interface is reset. The range is 1-5.') ssh_conn_info_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6)) if mibBuilder.loadTexts: sshConnInfoTable.setStatus('current') if mibBuilder.loadTexts: sshConnInfoTable.setDescription('The table for Secure Shell Connection.') ssh_conn_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1)).setIndexNames((0, 'V2H124-24-MIB', 'sshConnID')) if mibBuilder.loadTexts: sshConnInfoEntry.setStatus('current') if mibBuilder.loadTexts: sshConnInfoEntry.setDescription('The conceptual row for sshConnInfoTable.') ssh_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 1), integer32()) if mibBuilder.loadTexts: sshConnID.setStatus('current') if mibBuilder.loadTexts: sshConnID.setDescription('The connection ID of the Secure Shell Connection.') ssh_conn_major_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sshConnMajorVersion.setStatus('current') if mibBuilder.loadTexts: sshConnMajorVersion.setDescription('The SSH major version.') ssh_conn_minor_version = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sshConnMinorVersion.setStatus('current') if mibBuilder.loadTexts: sshConnMinorVersion.setDescription('The SSH minor version.') ssh_conn_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('negotiationStart', 1), ('authenticationStart', 2), ('sessionStart', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sshConnStatus.setStatus('current') if mibBuilder.loadTexts: sshConnStatus.setDescription('The SSH connection State. negotiationStart(1) mean the SSH is in its negotiation start state, authenticationStart(2) mean the SSH is in authentication start state, sessionStart(3) mean the SSH is in session start State.') ssh_conn_encryption_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('des', 2), ('tribeDes', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sshConnEncryptionType.setStatus('current') if mibBuilder.loadTexts: sshConnEncryptionType.setDescription('The encryption type of the SSH. none(1) mean no encryption , des(2) mean using DES encryption, tribeDes mean using 3DES encryption.') ssh_conn_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 6), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: sshConnUserName.setStatus('current') if mibBuilder.loadTexts: sshConnUserName.setDescription('The user name of the connection.') ssh_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 6, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noDisconnect', 1), ('disconnect', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sshDisconnect.setStatus('current') if mibBuilder.loadTexts: sshDisconnect.setDescription('Set the variable to disconnect to disconnect the connection, when read, this variable always return noDisconnect(1).') acl_ip_ace_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1)) if mibBuilder.loadTexts: aclIpAceTable.setStatus('current') if mibBuilder.loadTexts: aclIpAceTable.setDescription('The conceptual table of all of aclIpAceEntry ') acl_ip_ace_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclIpAceName'), (0, 'V2H124-24-MIB', 'aclIpAceIndex')) if mibBuilder.loadTexts: aclIpAceEntry.setStatus('current') if mibBuilder.loadTexts: aclIpAceEntry.setDescription('The conceptual row for aclIpAceTable.') acl_ip_ace_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))) if mibBuilder.loadTexts: aclIpAceName.setStatus('current') if mibBuilder.loadTexts: aclIpAceName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device') acl_ip_ace_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))) if mibBuilder.loadTexts: aclIpAceIndex.setStatus('current') if mibBuilder.loadTexts: aclIpAceIndex.setDescription('The unique index of an ACE within an ACL ') acl_ip_ace_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclIpAcePrecedence.setStatus('current') if mibBuilder.loadTexts: aclIpAcePrecedence.setDescription('Specifies the IP precedence value') acl_ip_ace_action = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('permit', 1), ('deny', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceAction.setStatus('current') if mibBuilder.loadTexts: aclIpAceAction.setDescription(' the aclIpAceAction of aces which have the same aclIpAceName must be the same') acl_ip_ace_source_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 5), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceSourceIpAddr.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourceIpAddr.setDescription("The specified source IP address. The packet's source address is AND-ed with the value of aclIpAceSourceIpAddrBitmask and then compared against the value of this object.") acl_ip_ace_source_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 6), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourceIpAddrBitmask.setDescription('The specified source IP address mask ') acl_ip_ace_dest_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 7), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceDestIpAddr.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestIpAddr.setDescription("The specified destination IP address. The packet's destination address is AND-ed with the value of aclIpAceDestIpAddrBitmask and then compared against the value of this object") acl_ip_ace_dest_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 8), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestIpAddrBitmask.setDescription('The specified destination IP address mask') acl_ip_ace_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceProtocol.setStatus('current') if mibBuilder.loadTexts: aclIpAceProtocol.setDescription("The protocol number field in the IP header used to indicate the higher layer protocol as specified in RFC 1700. A value value of 0 matches every IP packet. the object=256, means 'any' For example : 0 is IP, 1 is ICMP, 2 is IGMP, 4 is IP in IP encapsulation, 6 is TCP, 9 is IGRP, 17 is UDP, 47 is GRE, 50 is ESP, 51 is AH, 88 is IGRP, 89 is OSPF, 94 is KA9Q/NOS compatible IP over IP, 103 is PIMv2, 108 is PCP. ") acl_ip_ace_prec = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAcePrec.setStatus('current') if mibBuilder.loadTexts: aclIpAcePrec.setDescription('') acl_ip_ace_tos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 8))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceTos.setStatus('current') if mibBuilder.loadTexts: aclIpAceTos.setDescription('') acl_ip_ace_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceDscp.setStatus('current') if mibBuilder.loadTexts: aclIpAceDscp.setDescription('') acl_ip_ace_source_port_op = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOperator', 1), ('equal', 2), ('range', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceSourcePortOp.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourcePortOp.setDescription('') acl_ip_ace_min_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceMinSourcePort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMinSourcePort.setDescription('') acl_ip_ace_max_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceMaxSourcePort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMaxSourcePort.setDescription('') acl_ip_ace_source_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceSourcePortBitmask.setDescription('') acl_ip_ace_dest_port_op = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOperator', 1), ('equal', 2), ('range', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceDestPortOp.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestPortOp.setDescription('') acl_ip_ace_min_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceMinDestPort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMinDestPort.setDescription('') acl_ip_ace_max_dest_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceMaxDestPort.setStatus('current') if mibBuilder.loadTexts: aclIpAceMaxDestPort.setDescription('') acl_ip_ace_dest_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceDestPortBitmask.setDescription('') acl_ip_ace_control_code = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceControlCode.setStatus('current') if mibBuilder.loadTexts: aclIpAceControlCode.setDescription(" Indicates how a the control flags of TCP packet's to be compared to be compared. aceIpControlCode is AND-ed with aceIpControlCodeBitmask") acl_ip_ace_control_code_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIpAceControlCodeBitmask.setDescription("Indicates how a the control flags of TCP packet's to be compared to be compared. it can be used to check multiple flags of the FIN, SYN, RST, PSH, ACK, URG by sum of FIN=1, SYN=2, RST=4, PSH=8, ACK=16, URG=32 ") acl_ip_ace_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 1, 1, 23), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIpAceStatus.setStatus('current') if mibBuilder.loadTexts: aclIpAceStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") acl_mac_ace_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2)) if mibBuilder.loadTexts: aclMacAceTable.setStatus('current') if mibBuilder.loadTexts: aclMacAceTable.setDescription('The conceptual table of all of aclMacAceEntry ') acl_mac_ace_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclMacAceName'), (0, 'V2H124-24-MIB', 'aclMacAceIndex')) if mibBuilder.loadTexts: aclMacAceEntry.setStatus('current') if mibBuilder.loadTexts: aclMacAceEntry.setDescription('The conceptual row for aclMacAceTable. ') acl_mac_ace_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))) if mibBuilder.loadTexts: aclMacAceName.setStatus('current') if mibBuilder.loadTexts: aclMacAceName.setDescription('The name of an ACL. Within a feature the name is unique used to identifies the list to which the entry belongs in the device') acl_mac_ace_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))) if mibBuilder.loadTexts: aclMacAceIndex.setStatus('current') if mibBuilder.loadTexts: aclMacAceIndex.setDescription('The unique index of an ACE within an ACL') acl_mac_ace_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclMacAcePrecedence.setStatus('current') if mibBuilder.loadTexts: aclMacAcePrecedence.setDescription('Specifies the IP precedence value') acl_mac_ace_action = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('permit', 1), ('deny', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceAction.setStatus('current') if mibBuilder.loadTexts: aclMacAceAction.setDescription('the aclMacAceAction of aces which have the same aclMacAceName must be the same') acl_mac_ace_pktformat = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('any', 1), ('untagged-Eth2', 2), ('untagged802Dot3', 3), ('tagggedEth2', 4), ('tagged802Dot3', 5)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAcePktformat.setStatus('current') if mibBuilder.loadTexts: aclMacAcePktformat.setDescription('used to check the packet format of the packets') acl_mac_ace_source_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceSourceMacAddr.setStatus('current') if mibBuilder.loadTexts: aclMacAceSourceMacAddr.setDescription("Indicates the 48 bits destination MAC address. The specified source mac of the packet The packet's source mac address is AND-ed with the value of aceMacSourceMacAddrBitmask and then compared against the value of this object.") acl_mac_ace_source_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceSourceMacAddrBitmask.setDescription('The specified source mac address mask.') acl_mac_ace_dest_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceDestMacAddr.setStatus('current') if mibBuilder.loadTexts: aclMacAceDestMacAddr.setDescription("Indicates the 48 bits destination MAC address. The specified destination mac of the packet The packet's destination mac address is AND-ed with the value of aceMacDestMacAddrBitmask and then compared against the value of this object.") acl_mac_ace_dest_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceDestMacAddrBitmask.setDescription('The specified destination mac address mask.') acl_mac_ace_vid_op = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOperator', 1), ('equal', 2), ('range', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceVidOp.setStatus('current') if mibBuilder.loadTexts: aclMacAceVidOp.setDescription('') acl_mac_ace_min_vid = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceMinVid.setStatus('current') if mibBuilder.loadTexts: aclMacAceMinVid.setDescription('') acl_mac_ace_vid_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceVidBitmask.setDescription('') acl_mac_ace_max_vid = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceMaxVid.setStatus('current') if mibBuilder.loadTexts: aclMacAceMaxVid.setDescription('') acl_mac_ace_ether_type_op = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOperator', 1), ('equal', 2), ('range', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceEtherTypeOp.setStatus('current') if mibBuilder.loadTexts: aclMacAceEtherTypeOp.setDescription('') acl_mac_ace_ether_type_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclMacAceEtherTypeBitmask.setDescription('') acl_mac_ace_min_ether_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1536, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceMinEtherType.setStatus('current') if mibBuilder.loadTexts: aclMacAceMinEtherType.setDescription('') acl_mac_ace_max_ether_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1536, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceMaxEtherType.setStatus('current') if mibBuilder.loadTexts: aclMacAceMaxEtherType.setDescription('') acl_mac_ace_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 2, 1, 18), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclMacAceStatus.setStatus('current') if mibBuilder.loadTexts: aclMacAceStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") acl_acl_group_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3)) if mibBuilder.loadTexts: aclAclGroupTable.setStatus('current') if mibBuilder.loadTexts: aclAclGroupTable.setDescription(' the conceptual table of aclAclGroupEntry ') acl_acl_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclAclGroupIfIndex')) if mibBuilder.loadTexts: aclAclGroupEntry.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEntry.setDescription('The conceptual row for aclAclGroupTable.') acl_acl_group_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 1), integer32()) if mibBuilder.loadTexts: aclAclGroupIfIndex.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIfIndex.setDescription('the interface number specified the ACL bining to.') acl_acl_group_ingress_ip_acl = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aclAclGroupIngressIpAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIngressIpAcl.setDescription('specified the ingress ip acl(standard or extended) binding to the interface.') acl_acl_group_egress_ip_acl = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aclAclGroupEgressIpAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEgressIpAcl.setDescription('specified the egress ip acl(standard or extended) binding to the interface.') acl_acl_group_ingress_mac_acl = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aclAclGroupIngressMacAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupIngressMacAcl.setDescription('specified the ingress mac acl binding to the interface.') acl_acl_group_egress_mac_acl = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: aclAclGroupEgressMacAcl.setStatus('current') if mibBuilder.loadTexts: aclAclGroupEgressMacAcl.setDescription('specified the egress mac acl binding to the interface.') acl_ingress_ip_mask_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4)) if mibBuilder.loadTexts: aclIngressIpMaskTable.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskTable.setDescription(' the conceptual table of aclIngressIpMaskEntry ') acl_ingress_ip_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclIngressIpMaskIndex')) if mibBuilder.loadTexts: aclIngressIpMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskEntry.setDescription('The conceptual row for aclIngressIpMaskTable.') acl_ingress_ip_mask_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: aclIngressIpMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIndex.setDescription('') acl_ingress_ip_mask_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclIngressIpMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskPrecedence.setDescription('') acl_ingress_ip_mask_is_enable_tos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 3), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableTos.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableTos.setDescription('') acl_ingress_ip_mask_is_enable_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 4), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableDscp.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableDscp.setDescription('') acl_ingress_ip_mask_is_enable_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 5), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskIsEnablePrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnablePrecedence.setDescription('') acl_ingress_ip_mask_is_enable_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 6), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableProtocol.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskIsEnableProtocol.setDescription('') acl_ingress_ip_mask_source_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskSourceIpAddrBitmask.setDescription('') acl_ingress_ip_mask_dest_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskDestIpAddrBitmask.setDescription('') acl_ingress_ip_mask_source_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskSourcePortBitmask.setDescription('') acl_ingress_ip_mask_dest_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskDestPortBitmask.setDescription('') acl_ingress_ip_mask_control_code_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskControlCodeBitmask.setDescription('') acl_ingress_ip_mask_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 4, 1, 12), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressIpMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclIngressIpMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") acl_egress_ip_mask_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5)) if mibBuilder.loadTexts: aclEgressIpMaskTable.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskTable.setDescription(' the conceptual table of aclEgressIpMaskEntry ') acl_egress_ip_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclEgressIpMaskIndex')) if mibBuilder.loadTexts: aclEgressIpMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskEntry.setDescription('The conceptual row for aclEgressIpMaskTable.') acl_egress_ip_mask_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: aclEgressIpMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIndex.setDescription('') acl_egress_ip_mask_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclEgressIpMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskPrecedence.setDescription('') acl_egress_ip_mask_is_enable_tos = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 3), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableTos.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableTos.setDescription('') acl_egress_ip_mask_is_enable_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 4), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableDscp.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableDscp.setDescription('') acl_egress_ip_mask_is_enable_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 5), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskIsEnablePrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnablePrecedence.setDescription('') acl_egress_ip_mask_is_enable_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 6), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableProtocol.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskIsEnableProtocol.setDescription('') acl_egress_ip_mask_source_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskSourceIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskSourceIpAddrBitmask.setDescription('') acl_egress_ip_mask_dest_ip_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskDestIpAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskDestIpAddrBitmask.setDescription('') acl_egress_ip_mask_source_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskSourcePortBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskSourcePortBitmask.setDescription('') acl_egress_ip_mask_dest_port_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskDestPortBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskDestPortBitmask.setDescription('') acl_egress_ip_mask_control_code_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskControlCodeBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskControlCodeBitmask.setDescription('') acl_egress_ip_mask_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 5, 1, 12), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressIpMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclEgressIpMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") acl_ingress_mac_mask_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6)) if mibBuilder.loadTexts: aclIngressMacMaskTable.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskTable.setDescription(' the conceptual table of aclIngressMacMaskEntry ') acl_ingress_mac_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclIngressMacMaskIndex')) if mibBuilder.loadTexts: aclIngressMacMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskEntry.setDescription('The conceptual row for aclIngressMacMaskTable.') acl_ingress_mac_mask_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: aclIngressMacMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskIndex.setDescription('') acl_ingress_mac_mask_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclIngressMacMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskPrecedence.setDescription('') acl_ingress_mac_mask_source_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskSourceMacAddrBitmask.setDescription('') acl_ingress_mac_mask_dest_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskDestMacAddrBitmask.setDescription('') acl_ingress_mac_mask_vid_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskVidBitmask.setDescription('') acl_ingress_mac_mask_ether_type_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskEtherTypeBitmask.setDescription('') acl_ingress_mac_mask_is_enable_pktformat = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 7), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskIsEnablePktformat.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskIsEnablePktformat.setDescription('') acl_ingress_mac_mask_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 6, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclIngressMacMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclIngressMacMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") acl_egress_mac_mask_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7)) if mibBuilder.loadTexts: aclEgressMacMaskTable.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskTable.setDescription(' the conceptual table of aclEgressMacMaskEntry ') acl_egress_mac_mask_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1)).setIndexNames((0, 'V2H124-24-MIB', 'aclEgressMacMaskIndex')) if mibBuilder.loadTexts: aclEgressMacMaskEntry.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskEntry.setDescription('The conceptual row for aclEgressMacMaskTable.') acl_egress_mac_mask_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))) if mibBuilder.loadTexts: aclEgressMacMaskIndex.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskIndex.setDescription('') acl_egress_mac_mask_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: aclEgressMacMaskPrecedence.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskPrecedence.setDescription('') acl_egress_mac_mask_source_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskSourceMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskSourceMacAddrBitmask.setDescription('') acl_egress_mac_mask_dest_mac_addr_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskDestMacAddrBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskDestMacAddrBitmask.setDescription('') acl_egress_mac_mask_vid_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskVidBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskVidBitmask.setDescription('') acl_egress_mac_mask_ether_type_bitmask = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskEtherTypeBitmask.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskEtherTypeBitmask.setDescription('') acl_egress_mac_mask_is_enable_pktformat = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 7), enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskIsEnablePktformat.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskIsEnablePktformat.setDescription('') acl_egress_mac_mask_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 17, 7, 7, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: aclEgressMacMaskStatus.setStatus('current') if mibBuilder.loadTexts: aclEgressMacMaskStatus.setDescription("The status of this conceptual row entry. This object isused to manage the creation and deletion of conceptual rows. The status column has six defined values: - `active', which indicates that the conceptual row is available for use by the managed device; - `notInService', which indicates that the conceptual row exists in the agent, but is unavailable for use by the managed device (see NOTE below); - `notReady', which indicates that the conceptual row exists in the agent, but is missing information necessary in order to be available for use by the managed device; - `createAndGo', which is supplied by a management station wishing to create a new instance of a conceptual row and to have its status automatically set to active, making it available for use by the managed device; - `createAndWait', which is supplied by a management station wishing to create a new instance of a conceptual row (but not make it available for use by the managed device); and, - `destroy', which is supplied by a management station wishing to delete all of the instances associated with an existing conceptual row. Whereas five of the six values (all except `notReady') may be specified in a management protocol set operation, only three values will be returned in response to a management protocol retrieval operation: `notReady', `notInService' or `active'. That is, when queried, an existing conceptual row has only three states: it is either available for use by the managed device (the status column has value `active'); it is not available for use by the managed device, though the agent has sufficient information to make it so (the status column has value `notInService'); or, it is not available for use by the managed device, and an attempt to make it so would fail because the agent has insufficient information (the state column has value `notReady'). For detail description of this object, please ref to SNMPv2-TC MIB.") sys_log_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 1), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysLogStatus.setStatus('current') if mibBuilder.loadTexts: sysLogStatus.setDescription('Whether the system log is enabled.') sys_log_history_flash_level = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysLogHistoryFlashLevel.setStatus('current') if mibBuilder.loadTexts: sysLogHistoryFlashLevel.setDescription('Severity level for logging to flash.') sys_log_history_ram_level = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 19, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysLogHistoryRamLevel.setStatus('current') if mibBuilder.loadTexts: sysLogHistoryRamLevel.setDescription('Severity level for logging to RAM.') console_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1)) telnet_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2)) console_data_bits = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('databits7', 1), ('databits8', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleDataBits.setStatus('current') if mibBuilder.loadTexts: consoleDataBits.setDescription('Number of data bits.') console_parity = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('partyNone', 1), ('partyEven', 2), ('partyOdd', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleParity.setStatus('current') if mibBuilder.loadTexts: consoleParity.setDescription('Define the generation of a parity bit.') console_baud_rate = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('baudRate9600', 1), ('baudRate19200', 2), ('baudRate38400', 3), ('baudRate57600', 4), ('baudRate115200', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleBaudRate.setStatus('current') if mibBuilder.loadTexts: consoleBaudRate.setDescription('Baud rate. Valid values are 115200, 57600, 38400, 19200, and 9600.') console_stop_bits = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('stopbits1', 1), ('stopbits2', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleStopBits.setStatus('current') if mibBuilder.loadTexts: consoleStopBits.setDescription('The stop Bits of the console, valid value is stopbits1(1) or stopbits2(2)') console_exec_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleExecTimeout.setStatus('current') if mibBuilder.loadTexts: consoleExecTimeout.setDescription('In serial console, use the consoleExecTimeout variable to set the interval that the EXEC command interpreter waits until user input is detected, set the value to 0 to disable it.') console_password_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consolePasswordThreshold.setStatus('current') if mibBuilder.loadTexts: consolePasswordThreshold.setDescription('The number of failed console logon attempts that may be made before the system will not accept a further attempt for the time specified by consoleSilentTime. A value of 0 disables the functionality.') console_silent_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: consoleSilentTime.setStatus('current') if mibBuilder.loadTexts: consoleSilentTime.setDescription('The length of time that the management console is inaccessible for after the number of failed logon attempts has reached consolePasswordThreshold. A value of 0 disables the functionality.') telnet_exec_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: telnetExecTimeout.setStatus('current') if mibBuilder.loadTexts: telnetExecTimeout.setDescription('Specifies the interval that the system waits for user input before terminating the current telnet session.') telnet_password_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 20, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: telnetPasswordThreshold.setStatus('current') if mibBuilder.loadTexts: telnetPasswordThreshold.setDescription('The number of failed telnet logon attempts that may be made before the system will not accept a further attempt to logon with telnet.') sntp_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1)) sntp_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 1), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sntpStatus.setStatus('current') if mibBuilder.loadTexts: sntpStatus.setDescription('Set enabled(1) to enable the SNTP, set disabled(2) to disable the SNTP.') sntp_service_mode = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unicast', 1), ('broadcast', 2), ('anycast', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sntpServiceMode.setStatus('current') if mibBuilder.loadTexts: sntpServiceMode.setDescription('Service mode.') sntp_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(16, 16384))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sntpPollInterval.setStatus('current') if mibBuilder.loadTexts: sntpPollInterval.setDescription('Polling interval.') sntp_server_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4)) if mibBuilder.loadTexts: sntpServerTable.setStatus('current') if mibBuilder.loadTexts: sntpServerTable.setDescription('Table for SNTP servers') sntp_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1)).setIndexNames((0, 'V2H124-24-MIB', 'sntpServerIndex')) if mibBuilder.loadTexts: sntpServerEntry.setStatus('current') if mibBuilder.loadTexts: sntpServerEntry.setDescription('Entry for SNTP servers.') sntp_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 3))) if mibBuilder.loadTexts: sntpServerIndex.setStatus('current') if mibBuilder.loadTexts: sntpServerIndex.setDescription('The index of a server. This table has fixed size.') sntp_server_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 1, 4, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: sntpServerIpAddress.setStatus('current') if mibBuilder.loadTexts: sntpServerIpAddress.setDescription('The IP address of a server. Valid IP addresses must occupy contiguous indexes. All IP addresses after the last valid index is 0.') sys_current_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 2), display_string().subtype(subtypeSpec=value_size_constraint(20, 20)).setFixedLength(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysCurrentTime.setStatus('current') if mibBuilder.loadTexts: sysCurrentTime.setDescription("It is a text string in the following form, based on Unix: 'Mmm _d hh:mm:ss yyyy'. 'Mmm' is the first three letters of the English name of the month. '_d' is the day of month. A single-digit day is preceded by the space. 'hh:mm:ss' is a 24-hour representations of hours, minutes, and seconds. A single-digit hour is preceded by a zero. 'yyyy' is the four-digit year. An example is: 'Jan 1 02:03:04 2002'.") sys_time_zone = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 3), display_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysTimeZone.setStatus('current') if mibBuilder.loadTexts: sysTimeZone.setDescription("It is a text string in the following form: '[s]hh:mm'. '[s]' is a plus-or-minus sign. For UTC, this is omitted. For a positive offset, this is '+'. For a negative offset, this is '-'. 'hh:mm' in the hour and minute offset from UTC. A single-digit hour is preceded by a zero.") sys_time_zone_name = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 23, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sysTimeZoneName.setStatus('current') if mibBuilder.loadTexts: sysTimeZoneName.setDescription('The name of the time zone.') file_copy_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1)) file_copy_src_oper_type = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('file', 1), ('runningCfg', 2), ('startUpCfg', 3), ('tftp', 4), ('unit', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopySrcOperType.setStatus('current') if mibBuilder.loadTexts: fileCopySrcOperType.setDescription("The Copy Operation in which we want to perform to the fileCopyDestOperType, this operation is similar to the CLI command 'copy fileCopySrcOperType fileCopyDestOperType'. file(1) means we want to perform the 'copy file fileCopyDestType' operation, runningCfg(2) means we want to perform the 'copy running-config fileCopyDestOperType' operation, startUpCfg(3) means we want to perform the 'copy startup-config fileCopyDestOperType' operation, tftp(4) means we want to perform the 'copy tftp fileCopyDestOperType' operation, unit(5) is only available in stacking system, in which we can copy files from one unit to another unit and it means we want to perform the 'copy unit fileCopyDestOperType' operation. The possible permutations is as follow: (1)copy file file (2)copy file runningCfg (3) copy file startUpCfg (4)copy file tftp (5) copy file unit(for stacking system only) (6)copy runningCfg file (7)copy runningCfg startUpCfg (8)copy runningCfg tftp (9)copy startupCfg file (10)copy startupCfg runningCfg (11)copy startupCfg tftp (12)copy tftp file (13)copy tftp runningCfg (14)copy tftp startUpCfg (15)copy unit file.") file_copy_src_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopySrcFileName.setStatus('current') if mibBuilder.loadTexts: fileCopySrcFileName.setDescription('The source file name for fileCopyMgt when a copy operation is next requested via this MIB. This value is set to the zero length string when no file name has been specified. Note: if the fileCopySrcOperType is runningCfg(2) or startUpCfg(3), this variable can be ignored.') file_copy_dest_oper_type = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('file', 1), ('runningCfg', 2), ('startUpCfg', 3), ('tftp', 4), ('unit', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyDestOperType.setStatus('current') if mibBuilder.loadTexts: fileCopyDestOperType.setDescription("The Copy Operation in which we want to perform from the fileCopySrcOperType, this operation is similar to the CLI command 'copy fileCopySrcOperType fileCopyDestOperType'. file(1) means we want to perform the 'copy fileCopySrcType file ' operation, runningCfg(2) means we want to perform the 'copy fileCopySrcOperType running-config ' operation, startUpCfg(3) means we want to perform the 'copy fileCopySrcOperType startup-config ' operation, tftp(4) means we want to perform the 'copy fileCopySrcOperType tftp' operation, unit(5) is only available in stacking system, in which we can copy files from one unit to another unit and it means we want to perform the 'copy fileCopySrcOperType unit' operation. The possible permutations is as follow: (1)copy file file (2)copy file runningCfg (3) copy file startUpCfg (4)copy file tftp (5) copy file unit(for stacking system only) (6)copy runningCfg file (7)copy runningCfg startUpCfg (8)copy runningCfg tftp (9)copy startupCfg file (10)copy startupCfg runningCfg (11)copy startupCfg tftp (12)copy tftp file (13)copy tftp runningCfg (14)copy tftp startUpCfg (15)copy unit file.") file_copy_dest_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 127))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyDestFileName.setStatus('current') if mibBuilder.loadTexts: fileCopyDestFileName.setDescription('The destination file name for fileCopyMgt when a copy operation is next requested via this MIB. This value is set to the zero length string when no file name has been specified. Note: if the fileCopyDestOperType is runningCfg(2) or startupCfg(3), this variable can be ignored.') file_copy_file_type = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('opcode', 1), ('config', 2), ('bootRom', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyFileType.setStatus('current') if mibBuilder.loadTexts: fileCopyFileType.setDescription('Type of file to copy in fileCopyMgt. If the fileCopySrcOperType or fileCopyDestOperType is either runningCfg(2) or startupCfg(3), this variable can be ignored. If the fileCopySrcOperType or fileCopyDestOperType is unit(5), this variable cannot be set to bootRom(3).') file_copy_tftp_server = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyTftpServer.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpServer.setDescription("The IP address of the TFTP server for transfer when a download is next requested via this MIB. This value is set to '0.0.0.0' when no IP address has been specified. If neither fileCopySrcOperType nor fileCopyDestOperType is tftp(4), this variable can be ignored.") file_copy_unit_id = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyUnitId.setStatus('current') if mibBuilder.loadTexts: fileCopyUnitId.setDescription("Specify the unit of the switch for stackable device when performing the 'copy unit file' or 'copy file unit' action, If neither fileCopySrcOperType nor fileCopyDestOperType is unit(5), this variable can be ignored.") file_copy_action = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notCopying', 1), ('copy', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyAction.setStatus('current') if mibBuilder.loadTexts: fileCopyAction.setDescription('Setting this object to copy(2) to begin the copy Operation.') file_copy_status = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=named_values(('fileCopyTftpUndefError', 1), ('fileCopyTftpFileNotFound', 2), ('fileCopyTftpAccessViolation', 3), ('fileCopyTftpDiskFull', 4), ('fileCopyTftpIllegalOperation', 5), ('fileCopyTftpUnkownTransferId', 6), ('fileCopyTftpFileExisted', 7), ('fileCopyTftpNoSuchUser', 8), ('fileCopyTftpTimeout', 9), ('fileCopyTftpSendError', 10), ('fileCopyTftpReceiverError', 11), ('fileCopyTftpSocketOpenError', 12), ('fileCopyTftpSocketBindError', 13), ('fileCopyTftpUserCancel', 14), ('fileCopyTftpCompleted', 15), ('fileCopyParaError', 16), ('fileCopyBusy', 17), ('fileCopyUnknown', 18), ('fileCopyReadFileError', 19), ('fileCopySetStartupError', 20), ('fileCopyFileSizeExceed', 21), ('fileCopyMagicWordError', 22), ('fileCopyImageTypeError', 23), ('fileCopyHeaderChecksumError', 24), ('fileCopyImageChecksumError', 25), ('fileCopyWriteFlashFinish', 26), ('fileCopyWriteFlashError', 27), ('fileCopyWriteFlashProgramming', 28), ('fileCopyError', 29), ('fileCopySuccess', 30), ('fileCopyCompleted', 31)))).setMaxAccess('readonly') if mibBuilder.loadTexts: fileCopyStatus.setStatus('current') if mibBuilder.loadTexts: fileCopyStatus.setDescription('The status of the last copy procedure, if any. This object will have a value of downloadStatusUnknown(2) if no copy operation has been performed.') file_copy_tftp_err_msg = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: fileCopyTftpErrMsg.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpErrMsg.setDescription('The tftp error message, this value is meaningful only when the fileCopyStatus is fileCopyTftpUndefError(1).') file_copy_tftp_server_host_name = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileCopyTftpServerHostName.setStatus('current') if mibBuilder.loadTexts: fileCopyTftpServerHostName.setDescription("The IP address or DNS of the TFTP server for transfer when a download is next requested via this MIB. This value is set to '0.0.0.0' when no IP address has been specified. If neither fileCopySrcOperType nor fileCopyDestOperType is tftp(4), this variable can be ignored.") file_info_mgt = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2)) file_info_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1)) if mibBuilder.loadTexts: fileInfoTable.setStatus('current') if mibBuilder.loadTexts: fileInfoTable.setDescription('This table contain the information of the file system, we can also perform the delete, set startup file operation.') file_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1)).setIndexNames((0, 'V2H124-24-MIB', 'fileInfoUnitID'), (1, 'V2H124-24-MIB', 'fileInfoFileName')) if mibBuilder.loadTexts: fileInfoEntry.setStatus('current') if mibBuilder.loadTexts: fileInfoEntry.setDescription('A conceptually row for fileInfoTable.') file_info_unit_id = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 1), integer32()) if mibBuilder.loadTexts: fileInfoUnitID.setStatus('current') if mibBuilder.loadTexts: fileInfoUnitID.setDescription('The unit of the switch in a stacking system, in a non-stacking system, it value is always 1.') file_info_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))) if mibBuilder.loadTexts: fileInfoFileName.setStatus('current') if mibBuilder.loadTexts: fileInfoFileName.setDescription('The file Name of the file System in the device.') file_info_file_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('diag', 1), ('runtime', 2), ('syslog', 3), ('cmdlog', 4), ('config', 5), ('postlog', 6), ('private', 7), ('certificate', 8), ('webarchive', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: fileInfoFileType.setStatus('current') if mibBuilder.loadTexts: fileInfoFileType.setDescription('The file type of the file System in the device.') file_info_is_start_up = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileInfoIsStartUp.setStatus('current') if mibBuilder.loadTexts: fileInfoIsStartUp.setDescription('This flag indicate whether this file is a startup file, Setting this object to truth(1) to indicate this is a startup file, setting this object to false(2) is a invalid operation.') file_info_file_size = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: fileInfoFileSize.setStatus('current') if mibBuilder.loadTexts: fileInfoFileSize.setDescription('The sizes( in bytes) of the file.') file_info_creation_time = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(20, 20)).setFixedLength(20)).setMaxAccess('readonly') if mibBuilder.loadTexts: fileInfoCreationTime.setStatus('current') if mibBuilder.loadTexts: fileInfoCreationTime.setDescription('The creation time of the file.') file_info_delete = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 1, 24, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noDelete', 1), ('delete', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: fileInfoDelete.setStatus('current') if mibBuilder.loadTexts: fileInfoDelete.setDescription('Writing this object to delete(2) to delete a file, when read, this always return noDelete(1).') v2h124_24_traps = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1)).setLabel('v2h124-24Traps') v2h124_24_traps_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1, 0)).setLabel('v2h124-24TrapsPrefix') sw_power_status_change_trap = notification_type((1, 3, 6, 1, 4, 1, 52, 4, 12, 30, 2, 1, 0, 1)).setObjects(('V2H124-24-MIB', 'swIndivPowerUnitIndex'), ('V2H124-24-MIB', 'swIndivPowerIndex'), ('V2H124-24-MIB', 'swIndivPowerStatus')) if mibBuilder.loadTexts: swPowerStatusChangeTrap.setStatus('current') if mibBuilder.loadTexts: swPowerStatusChangeTrap.setDescription('This trap is sent when the power state changes.') mibBuilder.exportSymbols('V2H124-24-MIB', ipHttpState=ipHttpState, staTxHoldCount=staTxHoldCount, portSpeedDpxCfg=portSpeedDpxCfg, igmpSnoopRouterCurrentVlanIndex=igmpSnoopRouterCurrentVlanIndex, markerStatus=markerStatus, staPortEntry=staPortEntry, ipHttpPort=ipHttpPort, xstInstanceCfgPriority=xstInstanceCfgPriority, xstInstanceCfgIndex=xstInstanceCfgIndex, ipHttpsState=ipHttpsState, bcastStormStatus=bcastStormStatus, xstInstancePortEntry=xstInstancePortEntry, mirrorSourcePort=mirrorSourcePort, igmpSnoopMulticastCurrentIpAddress=igmpSnoopMulticastCurrentIpAddress, prioIpPrecCos=prioIpPrecCos, swIndivPowerStatus=swIndivPowerStatus, swIndivPowerUnitIndex=swIndivPowerUnitIndex, netConfigSubnetMask=netConfigSubnetMask, aclIpAceTable=aclIpAceTable, v2h124swPowerStatus=v2h124swPowerStatus, aclIpAceSourcePortOp=aclIpAceSourcePortOp, prioCopyIpDscp=prioCopyIpDscp, ipDhcpRestart=ipDhcpRestart, sntpPollInterval=sntpPollInterval, sshServerMajorVersion=sshServerMajorVersion, xstInstanceCfgPathCostMethod=xstInstanceCfgPathCostMethod, trapDestCommunity=trapDestCommunity, aclEgressIpMaskEntry=aclEgressIpMaskEntry, aclMacAceName=aclMacAceName, sshConnMinorVersion=sshConnMinorVersion, prioCopyIpPrec=prioCopyIpPrec, aclAclGroupTable=aclAclGroupTable, sysCurrentTime=sysCurrentTime, sntpMgt=sntpMgt, prioIpPortStatus=prioIpPortStatus, sntpServiceMode=sntpServiceMode, staSystemStatus=staSystemStatus, igmpSnoopMulticastCurrentStatus=igmpSnoopMulticastCurrentStatus, aclEgressIpMaskIsEnablePrecedence=aclEgressIpMaskIsEnablePrecedence, fileInfoCreationTime=fileInfoCreationTime, swProdDescription=swProdDescription, aclIngressMacMaskEtherTypeBitmask=aclIngressMacMaskEtherTypeBitmask, rlPortIndex=rlPortIndex, mirrorTable=mirrorTable, staProtocolType=staProtocolType, prioIpPortValue=prioIpPortValue, xstInstanceCfgDesignatedRoot=xstInstanceCfgDesignatedRoot, fileCopyDestOperType=fileCopyDestOperType, xstInstanceCfgTxHoldCount=xstInstanceCfgTxHoldCount, bcastStormEntry=bcastStormEntry, trapDestMgt=trapDestMgt, aclIngressMacMaskVidBitmask=aclIngressMacMaskVidBitmask, portTrunkIndex=portTrunkIndex, trapDestEntry=trapDestEntry, aclIngressIpMaskSourcePortBitmask=aclIngressIpMaskSourcePortBitmask, fileCopyUnitId=fileCopyUnitId, aclMacAcePrecedence=aclMacAcePrecedence, vlanPortTable=vlanPortTable, portSecurityMgt=portSecurityMgt, rlPortOutputLimit=rlPortOutputLimit, telnetPasswordThreshold=telnetPasswordThreshold, prioIpPrecEntry=prioIpPrecEntry, xstInstanceCfgMaxAge=xstInstanceCfgMaxAge, prioWrrTrafficClass=prioWrrTrafficClass, fileCopyAction=fileCopyAction, lacpPortTable=lacpPortTable, igmpSnoopRouterCurrentTable=igmpSnoopRouterCurrentTable, rlPortInputLimit=rlPortInputLimit, prioIpDscpRestoreDefault=prioIpDscpRestoreDefault, prioAclToCosMappingCosValue=prioAclToCosMappingCosValue, prioIpDscpTable=prioIpDscpTable, xstInstanceCfgHoldTime=xstInstanceCfgHoldTime, fileCopyTftpServerHostName=fileCopyTftpServerHostName, v2h124swPortNumber=v2h124swPortNumber, igmpSnoopRouterCurrentEntry=igmpSnoopRouterCurrentEntry, xstInstancePortPortRole=xstInstancePortPortRole, v2h124swUnitIndex=v2h124swUnitIndex, portSpeedDpxStatus=portSpeedDpxStatus, aclEgressMacMaskPrecedence=aclEgressMacMaskPrecedence, staPortFastForward=staPortFastForward, prioAclToCosMappingEntry=prioAclToCosMappingEntry, portEntry=portEntry, prioIpPrecValue=prioIpPrecValue, xstInstancePortEnable=xstInstancePortEnable, xstMgt=xstMgt, aclEgressMacMaskDestMacAddrBitmask=aclEgressMacMaskDestMacAddrBitmask, xstInstanceCfgRootCost=xstInstanceCfgRootCost, aclMacAceStatus=aclMacAceStatus, trunkValidNumber=trunkValidNumber, sysLogHistoryFlashLevel=sysLogHistoryFlashLevel, fileCopyMgt=fileCopyMgt, aclEgressMacMaskSourceMacAddrBitmask=aclEgressMacMaskSourceMacAddrBitmask, prioIpPrecDscpStatus=prioIpPrecDscpStatus, xstInstanceCfgHelloTime=xstInstanceCfgHelloTime, aclMacAceMinVid=aclMacAceMinVid, markerTable=markerTable, sshServerMinorVersion=sshServerMinorVersion, radiusServerRetransmit=radiusServerRetransmit, aclEgressIpMaskIsEnableProtocol=aclEgressIpMaskIsEnableProtocol, sntpServerTable=sntpServerTable, staPortOperEdgePort=staPortOperEdgePort, consoleBaudRate=consoleBaudRate, aclMacAceDestMacAddrBitmask=aclMacAceDestMacAddrBitmask, igmpSnoopRouterCurrentStatus=igmpSnoopRouterCurrentStatus, rateLimitMgt=rateLimitMgt, sysTimeZoneName=sysTimeZoneName, trunkStatus=trunkStatus, fileInfoMgt=fileInfoMgt, v2h124_24TrapsPrefix=v2h124_24TrapsPrefix, mirrorStatus=mirrorStatus, aclMacAceDestMacAddr=aclMacAceDestMacAddr, prioIpDscpValue=prioIpDscpValue, aclIpAceName=aclIpAceName, prioAclToCosMappingStatus=prioAclToCosMappingStatus, v2h124swBootRomVer=v2h124swBootRomVer, fileInfoFileType=fileInfoFileType, consoleStopBits=consoleStopBits, sshConnInfoTable=sshConnInfoTable, rateLimitPortTable=rateLimitPortTable, xstInstancePortPriority=xstInstancePortPriority, v2h124swRoleInSystem=v2h124swRoleInSystem, portSecPortStatus=portSecPortStatus, qosMgt=qosMgt, PYSNMP_MODULE_ID=v2h124_24MIB, igmpSnoopMulticastStaticIpAddress=igmpSnoopMulticastStaticIpAddress, igmpSnoopRouterPortExpireTime=igmpSnoopRouterPortExpireTime, fileInfoTable=fileInfoTable, aclIngressIpMaskDestPortBitmask=aclIngressIpMaskDestPortBitmask, igmpSnoopRouterStaticTable=igmpSnoopRouterStaticTable, xstInstancePortDesignatedBridge=xstInstancePortDesignatedBridge, aclEgressMacMaskVidBitmask=aclEgressMacMaskVidBitmask, aclEgressIpMaskDestIpAddrBitmask=aclEgressIpMaskDestIpAddrBitmask, markerIfIndex=markerIfIndex, markerPrecedence=markerPrecedence, prioWrrEntry=prioWrrEntry, igmpSnoopMulticastCurrentPorts=igmpSnoopMulticastCurrentPorts, fileCopyFileType=fileCopyFileType, radiusServerTimeout=radiusServerTimeout, prioCopy=prioCopy, aclIpAceIndex=aclIpAceIndex, fileCopySrcFileName=fileCopySrcFileName, aclEgressMacMaskIndex=aclEgressMacMaskIndex, switchIndivPowerTable=switchIndivPowerTable, igmpSnoopMulticastStaticStatus=igmpSnoopMulticastStaticStatus, vlanPortMode=vlanPortMode, vlanIndex=vlanIndex, sshConnID=sshConnID, prioIpDscpPort=prioIpDscpPort, aclAclGroupEntry=aclAclGroupEntry, markerAclName=markerAclName, aclIngressIpMaskIsEnableDscp=aclIngressIpMaskIsEnableDscp, mirrorMgt=mirrorMgt, sntpStatus=sntpStatus, sshConnInfoEntry=sshConnInfoEntry, switchIndivPowerEntry=switchIndivPowerEntry, xstInstanceCfgTopChanges=xstInstanceCfgTopChanges, xstInstancePortPathCost=xstInstancePortPathCost, xstInstancePortDesignatedRoot=xstInstancePortDesignatedRoot, v2h124swExpansionSlot1=v2h124swExpansionSlot1, aclIngressMacMaskSourceMacAddrBitmask=aclIngressMacMaskSourceMacAddrBitmask, xstInstanceCfgBridgeHelloTime=xstInstanceCfgBridgeHelloTime, aclMacAceMinEtherType=aclMacAceMinEtherType, xstInstanceCfgBridgeMaxAge=xstInstanceCfgBridgeMaxAge, fileInfoDelete=fileInfoDelete, aclIpAcePrecedence=aclIpAcePrecedence, sntpServerIpAddress=sntpServerIpAddress, v2h124_24MIBObjects=v2h124_24MIBObjects, aclIngressIpMaskIsEnablePrecedence=aclIngressIpMaskIsEnablePrecedence, aclEgressMacMaskIsEnablePktformat=aclEgressMacMaskIsEnablePktformat, lacpMgt=lacpMgt, aclMacAceTable=aclMacAceTable, igmpSnoopQueryInterval=igmpSnoopQueryInterval, aclIpAceMaxDestPort=aclIpAceMaxDestPort, staMgt=staMgt, aclEgressIpMaskIndex=aclEgressIpMaskIndex, aclIpAceProtocol=aclIpAceProtocol, aclEgressIpMaskIsEnableDscp=aclEgressIpMaskIsEnableDscp, sysLogMgt=sysLogMgt, radiusServerAddress=radiusServerAddress, staPathCostMethod=staPathCostMethod, trapDestAddress=trapDestAddress, radiusServerPortNumber=radiusServerPortNumber, v2h124switchInfoEntry=v2h124switchInfoEntry, swPowerStatusChangeTrap=swPowerStatusChangeTrap, xstInstanceCfgForwardDelay=xstInstanceCfgForwardDelay, fileInfoIsStartUp=fileInfoIsStartUp, sshAuthRetries=sshAuthRetries, markerMgt=markerMgt, tacacsServerKey=tacacsServerKey, v2h124swServiceTag=v2h124swServiceTag, trunkMgt=trunkMgt, netConfigTable=netConfigTable, aclIpAceDestIpAddr=aclIpAceDestIpAddr, igmpSnoopRouterStaticVlanIndex=igmpSnoopRouterStaticVlanIndex, aclAclGroupIngressMacAcl=aclAclGroupIngressMacAcl, aclMacAceEtherTypeOp=aclMacAceEtherTypeOp, telnetMgt=telnetMgt, prioIpPrecTable=prioIpPrecTable, prioWrrWeight=prioWrrWeight, priorityMgt=priorityMgt, aclIngressMacMaskIsEnablePktformat=aclIngressMacMaskIsEnablePktformat, aclIngressIpMaskControlCodeBitmask=aclIngressIpMaskControlCodeBitmask, aclIngressIpMaskStatus=aclIngressIpMaskStatus, aclIngressIpMaskDestIpAddrBitmask=aclIngressIpMaskDestIpAddrBitmask, vlanAddressMethod=vlanAddressMethod, staPortAdminPointToPoint=staPortAdminPointToPoint, prioIpPortTable=prioIpPortTable, prioIpPortPhysPort=prioIpPortPhysPort, aclMgt=aclMgt, netConfigIfIndex=netConfigIfIndex, v2h124swLoaderVer=v2h124swLoaderVer, prioAclToCosMappingIfIndex=prioAclToCosMappingIfIndex, sysTimeMgt=sysTimeMgt, sshTimeout=sshTimeout, aclIngressMacMaskTable=aclIngressMacMaskTable, bcastStormPercent=bcastStormPercent, lacpPortEntry=lacpPortEntry, sntpServerIndex=sntpServerIndex, consolePasswordThreshold=consolePasswordThreshold, aclAclGroupIfIndex=aclAclGroupIfIndex, igmpSnoopMulticastStaticEntry=igmpSnoopMulticastStaticEntry, igmpSnoopMulticastStaticVlanIndex=igmpSnoopMulticastStaticVlanIndex, prioIpPrecRestoreDefault=prioIpPrecRestoreDefault, sysTimeZone=sysTimeZone, trapDestVersion=trapDestVersion, netConfigEntry=netConfigEntry, aclEgressIpMaskSourceIpAddrBitmask=aclEgressIpMaskSourceIpAddrBitmask, netConfigPrimaryInterface=netConfigPrimaryInterface, v2h124swMicrocodeVer=v2h124swMicrocodeVer, vlanMgt=vlanMgt, bcastStormMgt=bcastStormMgt, aclAclGroupIngressIpAcl=aclAclGroupIngressIpAcl, xstInstanceCfgRootPort=xstInstanceCfgRootPort, aclEgressMacMaskTable=aclEgressMacMaskTable, aclIngressMacMaskStatus=aclIngressMacMaskStatus, portName=portName, aclIpAceControlCodeBitmask=aclIpAceControlCodeBitmask, aclEgressIpMaskDestPortBitmask=aclEgressIpMaskDestPortBitmask, tacacsMgt=tacacsMgt, sshDisconnect=sshDisconnect, aclEgressMacMaskEntry=aclEgressMacMaskEntry, ipHttpsPort=ipHttpsPort, aclIngressIpMaskEntry=aclIngressIpMaskEntry, markerPriority=markerPriority, lineMgt=lineMgt, rlPortOutputStatus=rlPortOutputStatus, portSecPortIndex=portSecPortIndex, aclMacAceVidOp=aclMacAceVidOp, igmpSnoopRouterStaticEntry=igmpSnoopRouterStaticEntry, prioIpPortEnableStatus=prioIpPortEnableStatus, xstInstanceCfgTable=xstInstanceCfgTable, sshConnUserName=sshConnUserName, cosMgt=cosMgt, aclAclGroupEgressIpAcl=aclAclGroupEgressIpAcl) mibBuilder.exportSymbols('V2H124-24-MIB', sshServerStatus=sshServerStatus, aclIngressMacMaskIndex=aclIngressMacMaskIndex, aclIngressIpMaskIsEnableProtocol=aclIngressIpMaskIsEnableProtocol, trapDestStatus=trapDestStatus, lacpPortIndex=lacpPortIndex, aclMacAceVidBitmask=aclMacAceVidBitmask, igmpSnoopMulticastCurrentTable=igmpSnoopMulticastCurrentTable, consoleSilentTime=consoleSilentTime, consoleDataBits=consoleDataBits, portFlowCtrlCfg=portFlowCtrlCfg, aclIngressMacMaskPrecedence=aclIngressMacMaskPrecedence, igmpSnoopRouterStaticStatus=igmpSnoopRouterStaticStatus, xstInstancePortState=xstInstancePortState, markerEntry=markerEntry, prioIpDscpEntry=prioIpDscpEntry, aclMacAcePktformat=aclMacAcePktformat, prioIpDscpCos=prioIpDscpCos, restartOpCodeFile=restartOpCodeFile, prioCopyIpPort=prioCopyIpPort, aclIpAceStatus=aclIpAceStatus, fileCopyTftpErrMsg=fileCopyTftpErrMsg, portCapabilities=portCapabilities, aclIpAceTos=aclIpAceTos, aclIpAceDscp=aclIpAceDscp, aclIpAceDestIpAddrBitmask=aclIpAceDestIpAddrBitmask, v2h124_24Notifications=v2h124_24Notifications, portSecPortEntry=portSecPortEntry, trunkCreation=trunkCreation, prioIpPrecPort=prioIpPrecPort, markerDscp=markerDscp, aclMacAceMaxEtherType=aclMacAceMaxEtherType, sntpServerEntry=sntpServerEntry, staPortOperPointToPoint=staPortOperPointToPoint, tacacsServerAddress=tacacsServerAddress, aclIpAcePrec=aclIpAcePrec, fileInfoFileName=fileInfoFileName, rlPortInputStatus=rlPortInputStatus, restartMgt=restartMgt, xstInstancePortTable=xstInstancePortTable, telnetExecTimeout=telnetExecTimeout, consoleExecTimeout=consoleExecTimeout, aclMacAceSourceMacAddrBitmask=aclMacAceSourceMacAddrBitmask, ValidStatus=ValidStatus, fileInfoEntry=fileInfoEntry, aclEgressIpMaskTable=aclEgressIpMaskTable, vlanPortEntry=vlanPortEntry, netDefaultGateway=netDefaultGateway, aclIpAceSourcePortBitmask=aclIpAceSourcePortBitmask, aclMacAceMaxVid=aclMacAceMaxVid, swChassisServiceTag=swChassisServiceTag, prioIpPortEntry=prioIpPortEntry, sshConnEncryptionType=sshConnEncryptionType, aclIngressMacMaskEntry=aclIngressMacMaskEntry, aclIpAceMaxSourcePort=aclIpAceMaxSourcePort, fileCopyDestFileName=fileCopyDestFileName, aclIpAceDestPortOp=aclIpAceDestPortOp, aclIpAceSourceIpAddr=aclIpAceSourceIpAddr, igmpSnoopMulticastStaticPorts=igmpSnoopMulticastStaticPorts, swProdName=swProdName, aclIpAceEntry=aclIpAceEntry, v2h124switchNumber=v2h124switchNumber, fileInfoUnitID=fileInfoUnitID, swProdManufacturer=swProdManufacturer, aclIpAceSourceIpAddrBitmask=aclIpAceSourceIpAddrBitmask, swIdentifier=swIdentifier, fileCopyStatus=fileCopyStatus, portSecMaxMacCount=portSecMaxMacCount, igmpSnoopRouterCurrentPorts=igmpSnoopRouterCurrentPorts, prioAclToCosMappingTable=prioAclToCosMappingTable, switchProductId=switchProductId, netConfigStatus=netConfigStatus, portType=portType, igmpSnoopQuerier=igmpSnoopQuerier, sshMgt=sshMgt, v2h124_24Conformance=v2h124_24Conformance, fileMgt=fileMgt, xstInstancePortDesignatedCost=xstInstancePortDesignatedCost, xstInstanceCfgEntry=xstInstanceCfgEntry, vlanPortIndex=vlanPortIndex, portMgt=portMgt, aclIngressMacMaskDestMacAddrBitmask=aclIngressMacMaskDestMacAddrBitmask, aclIngressIpMaskPrecedence=aclIngressIpMaskPrecedence, v2h124swExpansionSlot2=v2h124swExpansionSlot2, trunkPorts=trunkPorts, aclIpAceDestPortBitmask=aclIpAceDestPortBitmask, igmpSnoopMulticastCurrentEntry=igmpSnoopMulticastCurrentEntry, trunkEntry=trunkEntry, rateLimitPortEntry=rateLimitPortEntry, igmpSnoopMulticastStaticTable=igmpSnoopMulticastStaticTable, fileCopySrcOperType=fileCopySrcOperType, radiusMgt=radiusMgt, swProdVersion=swProdVersion, rateLimitStatus=rateLimitStatus, consoleParity=consoleParity, switchMgt=switchMgt, radiusServerKey=radiusServerKey, staPortTable=staPortTable, netConfigUnnumbered=netConfigUnnumbered, sshConnMajorVersion=sshConnMajorVersion, aclIngressIpMaskIsEnableTos=aclIngressIpMaskIsEnableTos, aclEgressIpMaskPrecedence=aclEgressIpMaskPrecedence, swProdUrl=swProdUrl, aclEgressMacMaskEtherTypeBitmask=aclEgressMacMaskEtherTypeBitmask, prioWrrTable=prioWrrTable, v2h124_24MIB=v2h124_24MIB, aclIngressIpMaskSourceIpAddrBitmask=aclIngressIpMaskSourceIpAddrBitmask, v2h124switchInfoTable=v2h124switchInfoTable, xstInstancePortForwardTransitions=xstInstancePortForwardTransitions, v2h124swHardwareVer=v2h124swHardwareVer, aclIpAceMinSourcePort=aclIpAceMinSourcePort, restartConfigFile=restartConfigFile, aclEgressIpMaskStatus=aclEgressIpMaskStatus, aclIpAceMinDestPort=aclIpAceMinDestPort, switchOperState=switchOperState, markerActionBitList=markerActionBitList, igmpSnoopQueryMaxResponseTime=igmpSnoopQueryMaxResponseTime, igmpSnoopQueryCount=igmpSnoopQueryCount, bcastStormSampleType=bcastStormSampleType, v2h124swOpCodeVer=v2h124swOpCodeVer, aclMacAceEntry=aclMacAceEntry, lacpPortStatus=lacpPortStatus, bcastStormPktRate=bcastStormPktRate, prioIpPortCos=prioIpPortCos, aclIngressIpMaskIndex=aclIngressIpMaskIndex, aclEgressIpMaskSourcePortBitmask=aclEgressIpMaskSourcePortBitmask, xstInstanceCfgBridgeForwardDelay=xstInstanceCfgBridgeForwardDelay, sshConnStatus=sshConnStatus, portSecPortTable=portSecPortTable, aclMacAceIndex=aclMacAceIndex, portFlowCtrlStatus=portFlowCtrlStatus, mirrorDestinationPort=mirrorDestinationPort, staPortProtocolMigration=staPortProtocolMigration, igmpSnoopVersion=igmpSnoopVersion, igmpSnoopStatus=igmpSnoopStatus, aclMacAceSourceMacAddr=aclMacAceSourceMacAddr, bcastStormIfIndex=bcastStormIfIndex, aclIpAceControlCode=aclIpAceControlCode, restartControl=restartControl, portIndex=portIndex, switchManagementVlan=switchManagementVlan, aclIpAceAction=aclIpAceAction, xstInstancePortDesignatedPort=xstInstancePortDesignatedPort, netConfigIPAddress=netConfigIPAddress, prioAclToCosMappingAclName=prioAclToCosMappingAclName, aclEgressIpMaskControlCodeBitmask=aclEgressIpMaskControlCodeBitmask, aclEgressMacMaskStatus=aclEgressMacMaskStatus, ipMgt=ipMgt, aclMacAceEtherTypeBitmask=aclMacAceEtherTypeBitmask, sysLogStatus=sysLogStatus, vlanEntry=vlanEntry, aclMacAceAction=aclMacAceAction, igmpSnoopMgt=igmpSnoopMgt, portAutonegotiation=portAutonegotiation, consoleMgt=consoleMgt, bcastStormTable=bcastStormTable, securityMgt=securityMgt, portTable=portTable, sysLogHistoryRamLevel=sysLogHistoryRamLevel, igmpSnoopRouterStaticPorts=igmpSnoopRouterStaticPorts, portSecAction=portSecAction, fileCopyTftpServer=fileCopyTftpServer, staPortAdminEdgePort=staPortAdminEdgePort, aclIngressIpMaskTable=aclIngressIpMaskTable, fileInfoFileSize=fileInfoFileSize, v2h124_24Traps=v2h124_24Traps, v2h124swSerialNumber=v2h124swSerialNumber, mirrorEntry=mirrorEntry, aclAclGroupEgressMacAcl=aclAclGroupEgressMacAcl, trapDestTable=trapDestTable, staPortLongPathCost=staPortLongPathCost, mirrorType=mirrorType, aclEgressIpMaskIsEnableTos=aclEgressIpMaskIsEnableTos, trunkIndex=trunkIndex, igmpSnoopMulticastCurrentVlanIndex=igmpSnoopMulticastCurrentVlanIndex, bcastStormOctetRate=bcastStormOctetRate, xstInstanceCfgTimeSinceTopologyChange=xstInstanceCfgTimeSinceTopologyChange, swIndivPowerIndex=swIndivPowerIndex, vlanTable=vlanTable, trunkMaxId=trunkMaxId, trunkTable=trunkTable, tacacsServerPortNumber=tacacsServerPortNumber)
def func(): a = (input("enter a letter : ")) if a.isalpha(): print("alphabet") else: print("NO") func()
def func(): a = input('enter a letter : ') if a.isalpha(): print('alphabet') else: print('NO') func()
class Solution: def getWinner(self, arr: List[int], k: int) -> int: nums = deque(arr) win_count = 0 winner = nums[0] while True: a = nums.popleft() b = nums.popleft() if a > b: if winner == a: win_count += 1 nums.append(b) nums.appendleft(a) else: winner = a win_count = 1 nums.append(b) nums.appendleft(a) else: if winner == b: win_count += 1 nums.append(a) nums.appendleft(b) else: winner = b win_count = 1 nums.append(a) nums.appendleft(b) if win_count == k: return winner if win_count == len(arr)-1: return winner
class Solution: def get_winner(self, arr: List[int], k: int) -> int: nums = deque(arr) win_count = 0 winner = nums[0] while True: a = nums.popleft() b = nums.popleft() if a > b: if winner == a: win_count += 1 nums.append(b) nums.appendleft(a) else: winner = a win_count = 1 nums.append(b) nums.appendleft(a) elif winner == b: win_count += 1 nums.append(a) nums.appendleft(b) else: winner = b win_count = 1 nums.append(a) nums.appendleft(b) if win_count == k: return winner if win_count == len(arr) - 1: return winner
class Solution: def fb(self, A): d3 = A % 3 == 0 d5 = A % 5 == 0 if d3 and d5: return "FizzBuzz" elif d3: return "Fizz" elif d5: return "Buzz" else: return str(A) # @param A : integer # @return a list of strings def fizzBuzz(self, A): return [self.fb(i) for i in range(1, A+1)]
class Solution: def fb(self, A): d3 = A % 3 == 0 d5 = A % 5 == 0 if d3 and d5: return 'FizzBuzz' elif d3: return 'Fizz' elif d5: return 'Buzz' else: return str(A) def fizz_buzz(self, A): return [self.fb(i) for i in range(1, A + 1)]
l=[0]*10 for i in range(len(l)): l[i]=i*2 print(0 in l) print(1 in l) print(2 in l) print(3 in l) print(4 in l)
l = [0] * 10 for i in range(len(l)): l[i] = i * 2 print(0 in l) print(1 in l) print(2 in l) print(3 in l) print(4 in l)
#import os #import glob #modules = glob.glob(os.path.dirname(__file__)+"/*.py") #__all__ = [ os.path.basename(f)[:-3] for f in modules] __user_users_tablename__ = 'users' __user_users_head__ = 'admin' __user_online_tablename__ = 'online' __user_online_head__ = 'online' __user_admingroup_tablename__ = 'admingroup' __user_admingroup_head__ = 'admingroup'
__user_users_tablename__ = 'users' __user_users_head__ = 'admin' __user_online_tablename__ = 'online' __user_online_head__ = 'online' __user_admingroup_tablename__ = 'admingroup' __user_admingroup_head__ = 'admingroup'
# https://adventofcode.com/2020/day/13 infile = open('input.txt', 'r') earliest_time_to_depart = int(infile.readline()) buses = [] for bus in infile.readline().rstrip().split(','): if bus != 'x': buses.append(int(bus)) buses.sort() infile.close() earliest_bus = -1 minimum_wait_time = max(buses) for bus in buses: latest_bus_departure = int(earliest_time_to_depart / bus) * bus next_bus_departure = latest_bus_departure + bus wait_time = next_bus_departure - earliest_time_to_depart if wait_time < minimum_wait_time: minimum_wait_time = wait_time earliest_bus = bus print(earliest_bus * minimum_wait_time)
infile = open('input.txt', 'r') earliest_time_to_depart = int(infile.readline()) buses = [] for bus in infile.readline().rstrip().split(','): if bus != 'x': buses.append(int(bus)) buses.sort() infile.close() earliest_bus = -1 minimum_wait_time = max(buses) for bus in buses: latest_bus_departure = int(earliest_time_to_depart / bus) * bus next_bus_departure = latest_bus_departure + bus wait_time = next_bus_departure - earliest_time_to_depart if wait_time < minimum_wait_time: minimum_wait_time = wait_time earliest_bus = bus print(earliest_bus * minimum_wait_time)
# pcinput # input functions that check for type # Pieter Spronck # These functions are rather ugly as they print error messages if something is wrong. # However, they are meant for a course, which means they are used by students who # are unaware (until the end of the course) of exceptions and things like that. # This function asks for a floating-point number. You may use it for the exercises. # The parameter is a prompt that is displayed when the number is asked. # The function uses an exception to check whether the input is actually # a floating-point number. We will discuss exceptions in the future, just use the # function as is for now. # To use the function, write something like: # myNumber = rsdpu.getFloat( "Give me a number> " ) # This will then ask the user of the program for a floating-point number, and will store # whatever the user entered in myNumber. It will also make sure that actually # a floating-point number or an integer is entered; if the user enters anything else, # an error message is displayed and the user has to enter something else. def getFloat( prompt ): while True: try: num = float( input( prompt ) ) except ValueError: print( "That is not a number -- please try again" ) continue return num # Similar for getting integers. def getInteger( prompt ): while True: try: num = int( input( prompt ) ) except ValueError: print( "That is not an integer -- please try again" ) continue return num # And for strings (leading and trailing spaces are removed) def getString( prompt ): line = input( prompt ) return line.strip() # And for getting one upper-case letter def getLetter( prompt ): while True: line = input( prompt ) line = line.strip() line = line.upper() if len( line ) != 1: print( "Please enter exactly one character" ) continue if line < 'A' or line > 'Z': print( "Please enter a letter from the alphabet" ) continue return line
def get_float(prompt): while True: try: num = float(input(prompt)) except ValueError: print('That is not a number -- please try again') continue return num def get_integer(prompt): while True: try: num = int(input(prompt)) except ValueError: print('That is not an integer -- please try again') continue return num def get_string(prompt): line = input(prompt) return line.strip() def get_letter(prompt): while True: line = input(prompt) line = line.strip() line = line.upper() if len(line) != 1: print('Please enter exactly one character') continue if line < 'A' or line > 'Z': print('Please enter a letter from the alphabet') continue return line
class Chord(object): def __init__(self): self.tones = [] def add_tone(self, tone): self.tones.append(tone)
class Chord(object): def __init__(self): self.tones = [] def add_tone(self, tone): self.tones.append(tone)
n = int(input()) print('+', end='') for i in range(n-2): print(' -', end='') print(' +') for k in range(n-2): print('|', end='') for row in range(n-2): print(' -', end='') print(' |') print('+', end='') for j in range(n-2): print(' -', end='') print(' +')
n = int(input()) print('+', end='') for i in range(n - 2): print(' -', end='') print(' +') for k in range(n - 2): print('|', end='') for row in range(n - 2): print(' -', end='') print(' |') print('+', end='') for j in range(n - 2): print(' -', end='') print(' +')
d = int(input("Enter the decimal number:")) m = d r,t = 0,[] while(d>0): r = d % 8 t.append(chr(r+48)) d = d//8 t = t[::-1] print("The octal of the decimal number",m,"is",end = " ") for i in range(0,len(t)): print(t[i],end='')
d = int(input('Enter the decimal number:')) m = d (r, t) = (0, []) while d > 0: r = d % 8 t.append(chr(r + 48)) d = d // 8 t = t[::-1] print('The octal of the decimal number', m, 'is', end=' ') for i in range(0, len(t)): print(t[i], end='')
class Ship(): def __init__(self, name, ship_head, ship_size): self.ship_head = ship_head self.name = name self.size = ship_size self.generate_position() #pensar numa nova nomenclatura def generate_position(self): self.position = [] ship_column = self.ship_head[1] ship_row = self.ship_head[0] for pera in range(self.size): ship_next_row = int(self.ship_head[0]) + pera ship_body = str(ship_next_row) + ship_column self.position.append(ship_body)
class Ship: def __init__(self, name, ship_head, ship_size): self.ship_head = ship_head self.name = name self.size = ship_size self.generate_position() def generate_position(self): self.position = [] ship_column = self.ship_head[1] ship_row = self.ship_head[0] for pera in range(self.size): ship_next_row = int(self.ship_head[0]) + pera ship_body = str(ship_next_row) + ship_column self.position.append(ship_body)
def lambda_handler(event, context): message = 'Hello {} {}! Keep being awesome!'.format(event['first_name'], event['last_name']) #print to CloudWatch logs print(message) return { 'message' : message }
def lambda_handler(event, context): message = 'Hello {} {}! Keep being awesome!'.format(event['first_name'], event['last_name']) print(message) return {'message': message}
#imported from https://bitbucket.org/pypy/benchmarks/src/846fa56a282b0e8716309f891553e0af542d8800/own/fannkuch.py?at=default # the export line is in fannkuch.pythran #runas fannkuch(9);fannkuch2(9) #bench fannkuch(9) def fannkuch(n): count = range(1, n+1) max_flips = 0 m = n-1 r = n check = 0 perm1 = range(n) perm = range(n) while 1: if check < 30: #print "".join(str(i+1) for i in perm1) check += 1 while r != 1: count[r-1] = r r -= 1 if perm1[0] != 0 and perm1[m] != m: perm = perm1[:] flips_count = 0 k = perm[0] while k: perm[:k+1] = perm[k::-1] flips_count += 1 k = perm[0] if flips_count > max_flips: max_flips = flips_count while r != n: perm1.insert(r, perm1.pop(0)) count[r] -= 1 if count[r] > 0: break r += 1 else: return max_flips def fannkuch2(n): fannkuch(n)
def fannkuch(n): count = range(1, n + 1) max_flips = 0 m = n - 1 r = n check = 0 perm1 = range(n) perm = range(n) while 1: if check < 30: check += 1 while r != 1: count[r - 1] = r r -= 1 if perm1[0] != 0 and perm1[m] != m: perm = perm1[:] flips_count = 0 k = perm[0] while k: perm[:k + 1] = perm[k::-1] flips_count += 1 k = perm[0] if flips_count > max_flips: max_flips = flips_count while r != n: perm1.insert(r, perm1.pop(0)) count[r] -= 1 if count[r] > 0: break r += 1 else: return max_flips def fannkuch2(n): fannkuch(n)
# Copyright 2020-2021 The MathWorks, Inc. # Configure MATLAB_DESKTOP_PROXY to extend for Jupyter config = { # Link the documentation url here. This will show up on the website UI # where users can create issue's or make enhancement requests "doc_url": "https://github.com/mathworks/jupyter-matlab-proxy", # Use a single word for extension_name # It will be used as a flag when launching the integration using the matlab_desktop_proxy's executable # Example: matlab-desktop-proxy-app --config Jupyter "extension_name": "Jupyter", # This value can be used in various places on the website UI. "extension_name_short_description": "Jupyter", }
config = {'doc_url': 'https://github.com/mathworks/jupyter-matlab-proxy', 'extension_name': 'Jupyter', 'extension_name_short_description': 'Jupyter'}
# Ex1 def naturalSum(min, max): __min = min __max = max __value = 0 for x in range(__min, __max + 1): if x%7 == 0 or x%9 == 0: __value += x return __value print("natural sum to 20: " + str(naturalSum(0,20))) print("natural sum to 10000: " + str(naturalSum(0,10000)))
def natural_sum(min, max): __min = min __max = max __value = 0 for x in range(__min, __max + 1): if x % 7 == 0 or x % 9 == 0: __value += x return __value print('natural sum to 20: ' + str(natural_sum(0, 20))) print('natural sum to 10000: ' + str(natural_sum(0, 10000)))
print(2) for i in range(3, 101): found = False for j in range(2, i // 2 + 1): if i % j == 0: found = True break if not found: print(i)
print(2) for i in range(3, 101): found = False for j in range(2, i // 2 + 1): if i % j == 0: found = True break if not found: print(i)
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 def transform(logdata): if 'errorCode' in logdata or 'errorMessage' in logdata: logdata['event']['outcome'] = 'failure' else: logdata['event']['outcome'] = 'success' try: name = logdata['user']['name'] if ':' in name: logdata['user']['name'] = name.split(':')[-1].split('/')[-1] except KeyError: pass return logdata
def transform(logdata): if 'errorCode' in logdata or 'errorMessage' in logdata: logdata['event']['outcome'] = 'failure' else: logdata['event']['outcome'] = 'success' try: name = logdata['user']['name'] if ':' in name: logdata['user']['name'] = name.split(':')[-1].split('/')[-1] except KeyError: pass return logdata
def singleton(class_): instances = {} def getinstance(*args, **kwargs): if class_ not in instances: instances[class_] = class_(*args, **kwargs) return instances[class_] return getinstance @singleton class BotWrapper: def __init__(self): self.bot = None def set_bot(self, bot): self.bot = bot
def singleton(class_): instances = {} def getinstance(*args, **kwargs): if class_ not in instances: instances[class_] = class_(*args, **kwargs) return instances[class_] return getinstance @singleton class Botwrapper: def __init__(self): self.bot = None def set_bot(self, bot): self.bot = bot
#! /usr/bin/python # -*- coding: iso-8859-15 -*- for n in (1, 6): c = n ** 2 print(n,c)
for n in (1, 6): c = n ** 2 print(n, c)
# dp class Solution: def numSquares(self, n: int) -> int: dp = [float("inf")] * (n + 1) dp[0] = 0 for i in range(1, n + 1): j = 1 while j * j <= i: dp[i] = min(dp[i], dp[i - j * j] + 1) j += 1 return dp[n]
class Solution: def num_squares(self, n: int) -> int: dp = [float('inf')] * (n + 1) dp[0] = 0 for i in range(1, n + 1): j = 1 while j * j <= i: dp[i] = min(dp[i], dp[i - j * j] + 1) j += 1 return dp[n]
# --- # jupyter: # jupytext: # cell_markers: region,endregion # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- 1+2+3 # region active="" # This is a raw cell # endregion # This is a markdown cell
1 + 2 + 3
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def tree2str(self, t: TreeNode) -> str: if not t: return '' left = '({})'.format(self.tree2str(t.left)) if t.left or t.right else '' right = '({})'.format(self.tree2str(t.right)) if t.right else '' return '{}{}{}'.format(t.val, left, right)
class Solution: def tree2str(self, t: TreeNode) -> str: if not t: return '' left = '({})'.format(self.tree2str(t.left)) if t.left or t.right else '' right = '({})'.format(self.tree2str(t.right)) if t.right else '' return '{}{}{}'.format(t.val, left, right)
_constant_id = 0 def _create_constant_id(): global _constant_id _constant_id += 1 return f'<Game Constant (id={_constant_id})' text_relative_margin_size = _create_constant_id() margin_relative_text_spawn = _create_constant_id() mutable_text_size = _create_constant_id() default_font_path = 'nsr.ttf'
_constant_id = 0 def _create_constant_id(): global _constant_id _constant_id += 1 return f'<Game Constant (id={_constant_id})' text_relative_margin_size = _create_constant_id() margin_relative_text_spawn = _create_constant_id() mutable_text_size = _create_constant_id() default_font_path = 'nsr.ttf'
#!/usr/bin/env python # coding: utf-8 # In[1]: def contnum(n): # initializing starting number num = 1 # outer loop to handle number of rows for i in range(0, n): # inner loop to handle number of columns # values changing acc. to outer loop for j in range(0, i+1): # printing number print(num, end=" ") # incrementing number at each column num = num + 1 # ending line after each row print("\r") n = 5 # sending 5 as argument # calling Function contnum(n) # In[ ]:
def contnum(n): num = 1 for i in range(0, n): for j in range(0, i + 1): print(num, end=' ') num = num + 1 print('\r') n = 5 contnum(n)
class PlayerInfo: def __init__(self, manager): self.window = manager.window self.game = manager.game self.manager = manager self._bottom_index = 0 self._top_index = 0 self.bottom_num_pages = 3 self.top_num_pages = 2 def __call__(self): self.setup_ui() self.refresh_page() @property def bottom_index(self): return self._bottom_index @bottom_index.setter def bottom_index(self, value): if value < 0: self._bottom_index = self.bottom_num_pages - 1 elif value > self.bottom_num_pages - 1: self._bottom_index = 0 else: self._bottom_index = value @property def top_index(self): return self._top_index @top_index.setter def top_index(self, value): if value < 0: self._top_index = self.top_num_pages - 1 elif value > self.top_num_pages - 1: self._top_index = 0 else: self._top_index = value def setup_ui(self): self.window.print(self.game.player.name, (50, 1)) self.window.print(self.game.player.job.name.capitalize(), (49, 2)) self.window.print(f"Level - {self.game.player.level}", (67, 2)) self.window.print(f'XP {self.game.player.experience}/{self.game.player.xp_to_next_level}', (49, 3)) self.window.print(f'Health {self.game.player.health}/{self.game.player.max_health}', (49, 4)) self.window.print(f'Mana {self.game.player.mana}/{self.game.player.max_mana}', (49, 5)) def setup_equipmnt(self): self.window.print(' EQUIPMNT ', (57, 7)) i = 0 for slot_name, slot_item in self.game.player.inventory.equipped.as_dict.items(): if not isinstance(slot_item, list): self.window.print(f'{slot_name.upper()} : {slot_item.capitalize()}', (49, 8 + i)) else: self.window.print(f'{slot_name.upper()} : ' f'{", ".join([s.capitalize() for s in slot_item])}', (49, 8 + i)) i += 1 def setup_commands(self): self.window.print(' COMMANDS ', (57, 7)) pass def clear_page(self): self.window.print(' ' * 10, (57, 14)) self.window.print(' ' * 10, (57, 7)) for i in range(8): self.window.print(' ' * 29, (48, 15 + i)) for i in range(6): self.window.print(' ' * 29, (48, 8 + i)) def setup_stats(self): self.window.print('STATS', (59, 14)) i = 0 for key, value in self.game.player.stats.as_dict.items(): self.window.print(f'{key.upper()} - {value}', (49, 15 + i)) i += 1 def setup_saving_throws(self): self.window.print('SAV.THROWS', (57, 14)) i = 0 for key, value in self.game.player.job.saving_throws.as_dict.items(): self.window.print(f'{key.upper()} - {value}', (49, 15 + i)) i += 1 def setup_money(self): self.window.print(' MONEY ', (57, 14)) i = 0 for key, value in self.game.player.inventory.money.coins.items(): self.window.print(f'{key.upper()} : {value}', (49, 15 + i)) i += 1 self.window.print(f'GEMS : {self.game.player.inventory.money.gems_value} GC', (49, 15 + i)) self.window.print(f'JEWELS : {self.game.player.inventory.money.jewels_value} GC', (49, 16 + i)) self.window.print(f'TOTAL : {self.game.player.inventory.money.value:02} GC', (49, 17 + i)) def on_bottom_page_left(self, event): self.bottom_index -= 1 self.refresh_page() def on_bottom_page_right(self, event): self.bottom_index += 1 self.refresh_page() def on_top_page_left(self, event): self.top_index -= 1 self.refresh_page() def on_top_page_right(self, event): self.top_index += 1 self.refresh_page() def refresh_page(self): self.clear_page() [self.setup_stats, self.setup_saving_throws, self.setup_money][self.bottom_index]() [self.setup_equipmnt, self.setup_commands][self.top_index]() self.window.button('<', (56, 14), self.on_bottom_page_left) self.window.button('<', (56, 7), self.on_top_page_left) self.window.button('>', (67, 14), self.on_bottom_page_right) self.window.button('>', (67, 7), self.on_top_page_right)
class Playerinfo: def __init__(self, manager): self.window = manager.window self.game = manager.game self.manager = manager self._bottom_index = 0 self._top_index = 0 self.bottom_num_pages = 3 self.top_num_pages = 2 def __call__(self): self.setup_ui() self.refresh_page() @property def bottom_index(self): return self._bottom_index @bottom_index.setter def bottom_index(self, value): if value < 0: self._bottom_index = self.bottom_num_pages - 1 elif value > self.bottom_num_pages - 1: self._bottom_index = 0 else: self._bottom_index = value @property def top_index(self): return self._top_index @top_index.setter def top_index(self, value): if value < 0: self._top_index = self.top_num_pages - 1 elif value > self.top_num_pages - 1: self._top_index = 0 else: self._top_index = value def setup_ui(self): self.window.print(self.game.player.name, (50, 1)) self.window.print(self.game.player.job.name.capitalize(), (49, 2)) self.window.print(f'Level - {self.game.player.level}', (67, 2)) self.window.print(f'XP {self.game.player.experience}/{self.game.player.xp_to_next_level}', (49, 3)) self.window.print(f'Health {self.game.player.health}/{self.game.player.max_health}', (49, 4)) self.window.print(f'Mana {self.game.player.mana}/{self.game.player.max_mana}', (49, 5)) def setup_equipmnt(self): self.window.print(' EQUIPMNT ', (57, 7)) i = 0 for (slot_name, slot_item) in self.game.player.inventory.equipped.as_dict.items(): if not isinstance(slot_item, list): self.window.print(f'{slot_name.upper()} : {slot_item.capitalize()}', (49, 8 + i)) else: self.window.print(f"{slot_name.upper()} : {', '.join([s.capitalize() for s in slot_item])}", (49, 8 + i)) i += 1 def setup_commands(self): self.window.print(' COMMANDS ', (57, 7)) pass def clear_page(self): self.window.print(' ' * 10, (57, 14)) self.window.print(' ' * 10, (57, 7)) for i in range(8): self.window.print(' ' * 29, (48, 15 + i)) for i in range(6): self.window.print(' ' * 29, (48, 8 + i)) def setup_stats(self): self.window.print('STATS', (59, 14)) i = 0 for (key, value) in self.game.player.stats.as_dict.items(): self.window.print(f'{key.upper()} - {value}', (49, 15 + i)) i += 1 def setup_saving_throws(self): self.window.print('SAV.THROWS', (57, 14)) i = 0 for (key, value) in self.game.player.job.saving_throws.as_dict.items(): self.window.print(f'{key.upper()} - {value}', (49, 15 + i)) i += 1 def setup_money(self): self.window.print(' MONEY ', (57, 14)) i = 0 for (key, value) in self.game.player.inventory.money.coins.items(): self.window.print(f'{key.upper()} : {value}', (49, 15 + i)) i += 1 self.window.print(f'GEMS : {self.game.player.inventory.money.gems_value} GC', (49, 15 + i)) self.window.print(f'JEWELS : {self.game.player.inventory.money.jewels_value} GC', (49, 16 + i)) self.window.print(f'TOTAL : {self.game.player.inventory.money.value:02} GC', (49, 17 + i)) def on_bottom_page_left(self, event): self.bottom_index -= 1 self.refresh_page() def on_bottom_page_right(self, event): self.bottom_index += 1 self.refresh_page() def on_top_page_left(self, event): self.top_index -= 1 self.refresh_page() def on_top_page_right(self, event): self.top_index += 1 self.refresh_page() def refresh_page(self): self.clear_page() [self.setup_stats, self.setup_saving_throws, self.setup_money][self.bottom_index]() [self.setup_equipmnt, self.setup_commands][self.top_index]() self.window.button('<', (56, 14), self.on_bottom_page_left) self.window.button('<', (56, 7), self.on_top_page_left) self.window.button('>', (67, 14), self.on_bottom_page_right) self.window.button('>', (67, 7), self.on_top_page_right)
class Solution: def nearestPalindromic(self, n: str) -> str: def getPalindromes(s: str) -> tuple: num = int(s) k = len(s) palindromes = [] half = s[0:(k + 1) // 2] reversedHalf = half[:k // 2][::-1] candidate = int(half + reversedHalf) if candidate < num: palindromes.append(candidate) else: prevHalf = str(int(half) - 1) reversedPrevHalf = prevHalf[:k // 2][::-1] if k % 2 == 0 and int(prevHalf) == 0: palindromes.append(9) elif k % 2 == 0 and (int(prevHalf) + 1) % 10 == 0: palindromes.append(int(prevHalf + '9' + reversedPrevHalf)) else: palindromes.append(int(prevHalf + reversedPrevHalf)) if candidate > num: palindromes.append(candidate) else: nextHalf = str(int(half) + 1) reversedNextHalf = nextHalf[:k // 2][::-1] palindromes.append(int(nextHalf + reversedNextHalf)) return palindromes prevPalindrome, nextPalindrome = getPalindromes(n) return str(prevPalindrome) if abs(prevPalindrome - int(n)) <= abs(nextPalindrome - int(n)) else str(nextPalindrome)
class Solution: def nearest_palindromic(self, n: str) -> str: def get_palindromes(s: str) -> tuple: num = int(s) k = len(s) palindromes = [] half = s[0:(k + 1) // 2] reversed_half = half[:k // 2][::-1] candidate = int(half + reversedHalf) if candidate < num: palindromes.append(candidate) else: prev_half = str(int(half) - 1) reversed_prev_half = prevHalf[:k // 2][::-1] if k % 2 == 0 and int(prevHalf) == 0: palindromes.append(9) elif k % 2 == 0 and (int(prevHalf) + 1) % 10 == 0: palindromes.append(int(prevHalf + '9' + reversedPrevHalf)) else: palindromes.append(int(prevHalf + reversedPrevHalf)) if candidate > num: palindromes.append(candidate) else: next_half = str(int(half) + 1) reversed_next_half = nextHalf[:k // 2][::-1] palindromes.append(int(nextHalf + reversedNextHalf)) return palindromes (prev_palindrome, next_palindrome) = get_palindromes(n) return str(prevPalindrome) if abs(prevPalindrome - int(n)) <= abs(nextPalindrome - int(n)) else str(nextPalindrome)
def is_prime(num: int) -> bool: prime_nums_list: list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] if num in prime_nums_list: return True elif list(str(num))[-1] in ['2', '5']: return False else: for n in range(2, num): if (num % n) == 0: return False return True print(is_prime(int(input())))
def is_prime(num: int) -> bool: prime_nums_list: list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] if num in prime_nums_list: return True elif list(str(num))[-1] in ['2', '5']: return False else: for n in range(2, num): if num % n == 0: return False return True print(is_prime(int(input())))
# create a simple tree data structure with python # First of all: a class implemented to present tree node class TreeNode: def __init__(self, val): self.val = val self.left = None self.right = None class Tree: def __init__(self): self.root = None self.size = 0 def addnode(self, new): if self.root == None: self.root = new self.size += 1 else: self.helper(self.root, new) def helper(self, innode, new): if innode == None: innode = new self.size += 1 elif new.val < innode.val: if innode.left == None: innode.left = new self.size += 1 else: self.helper(innode.left, new) elif new.val > innode.val: if innode.right == None: innode.right = new self.size += 1 else: self.helper(innode.right, new) else: print("can't have duplicate node!") def Inorder(root): if root != None: Inorder(root.left) print(root.val, end=" ") Inorder(root.right) elderwood = Tree() n1 = TreeNode(3) n2 = TreeNode(5) n3 = TreeNode(22) n4 = TreeNode(1) n5 = TreeNode(0) n6 = TreeNode(-7) n7 = TreeNode(8) n8 = TreeNode(100) n9 = TreeNode(-50) elderwood.addnode(n1) elderwood.addnode(n2) elderwood.addnode(n3) elderwood.addnode(n4) elderwood.addnode(n5) elderwood.addnode(n6) elderwood.addnode(n7) elderwood.addnode(n8) elderwood.addnode(n9) Inorder(elderwood.root) print("\nTotal tree nodes: %d" % elderwood.size)
class Treenode: def __init__(self, val): self.val = val self.left = None self.right = None class Tree: def __init__(self): self.root = None self.size = 0 def addnode(self, new): if self.root == None: self.root = new self.size += 1 else: self.helper(self.root, new) def helper(self, innode, new): if innode == None: innode = new self.size += 1 elif new.val < innode.val: if innode.left == None: innode.left = new self.size += 1 else: self.helper(innode.left, new) elif new.val > innode.val: if innode.right == None: innode.right = new self.size += 1 else: self.helper(innode.right, new) else: print("can't have duplicate node!") def inorder(root): if root != None: inorder(root.left) print(root.val, end=' ') inorder(root.right) elderwood = tree() n1 = tree_node(3) n2 = tree_node(5) n3 = tree_node(22) n4 = tree_node(1) n5 = tree_node(0) n6 = tree_node(-7) n7 = tree_node(8) n8 = tree_node(100) n9 = tree_node(-50) elderwood.addnode(n1) elderwood.addnode(n2) elderwood.addnode(n3) elderwood.addnode(n4) elderwood.addnode(n5) elderwood.addnode(n6) elderwood.addnode(n7) elderwood.addnode(n8) elderwood.addnode(n9) inorder(elderwood.root) print('\nTotal tree nodes: %d' % elderwood.size)
class Solution: def lengthOfLongestSubstringKDistinct(self, s: str, k: int) -> int: if k == 0: return 0 maxLen = 0 d = {} i, j = 0, 0 while j < len(s): d[s[j]] = d.get(s[j], 0) + 1 if len(d) <= k: tempMax = 0 for key, val in d.items(): tempMax += val maxLen = max(maxLen, tempMax) j += 1 else: d[s[i]] -= 1 d[s[j]] -= 1 if d[s[i]] == 0: d.pop(s[i]) i += 1 return maxLen
class Solution: def length_of_longest_substring_k_distinct(self, s: str, k: int) -> int: if k == 0: return 0 max_len = 0 d = {} (i, j) = (0, 0) while j < len(s): d[s[j]] = d.get(s[j], 0) + 1 if len(d) <= k: temp_max = 0 for (key, val) in d.items(): temp_max += val max_len = max(maxLen, tempMax) j += 1 else: d[s[i]] -= 1 d[s[j]] -= 1 if d[s[i]] == 0: d.pop(s[i]) i += 1 return maxLen
leap = Runtime.start("leap","LeapMotion") leap.addLeapDataListener(python) def onLeapData(data): print (data.rightHand.index) leap.startTracking()
leap = Runtime.start('leap', 'LeapMotion') leap.addLeapDataListener(python) def on_leap_data(data): print(data.rightHand.index) leap.startTracking()
language="java" print("Checking if else conditions") if language=='Python': print(Python) elif language=="java": print("java") else: print("no match") print("\nChecking Boolean Conditions") user='Admin' logged_in=False if user=='Admin' and logged_in: print("ADMIN PAGE") else: print("Bad Creds") if not logged_in: print("Please Log In") else: print("Welcome") print("\nWorking with Object Identity") a=[1,2,3] b=[1,2,3] print(id(a)) print(id(b)) print(a==b) print(a is b) b=a print(a is b) # or print("same as") print(id(a)==id(b)) print("\nChecking False Conditions") condition= '34234' if(condition): print("Evaluated to true") else: print("Evaluated to false")
language = 'java' print('Checking if else conditions') if language == 'Python': print(Python) elif language == 'java': print('java') else: print('no match') print('\nChecking Boolean Conditions') user = 'Admin' logged_in = False if user == 'Admin' and logged_in: print('ADMIN PAGE') else: print('Bad Creds') if not logged_in: print('Please Log In') else: print('Welcome') print('\nWorking with Object Identity') a = [1, 2, 3] b = [1, 2, 3] print(id(a)) print(id(b)) print(a == b) print(a is b) b = a print(a is b) print('same as') print(id(a) == id(b)) print('\nChecking False Conditions') condition = '34234' if condition: print('Evaluated to true') else: print('Evaluated to false')
class Adder: a = 0 b = 0 def add(self): return self.a + self.b def __init__(self,a,b): self.a = a; self.b = b; a = int(input('Enter first number: ')) b = int(input('Enter second number: ')) x = Adder(a,b) print(x.add())
class Adder: a = 0 b = 0 def add(self): return self.a + self.b def __init__(self, a, b): self.a = a self.b = b a = int(input('Enter first number: ')) b = int(input('Enter second number: ')) x = adder(a, b) print(x.add())
def char_sum(s: str): sum = 0 for char in s: sum += ord(char) return sum # Time complexity: O(M+N) # Space complexity: O(1) def check_permutation(s1: str, s2: str): sum1 = char_sum(s1) sum2 = char_sum(s2) return sum1 == sum2 print(check_permutation("same", "same")) print(check_permutation("same", "smae")) print(check_permutation("same", "not same"))
def char_sum(s: str): sum = 0 for char in s: sum += ord(char) return sum def check_permutation(s1: str, s2: str): sum1 = char_sum(s1) sum2 = char_sum(s2) return sum1 == sum2 print(check_permutation('same', 'same')) print(check_permutation('same', 'smae')) print(check_permutation('same', 'not same'))
class APIError(RuntimeError): def __init__(self, message): self.message = message def __str__(self): return "%s" % (self.message) def __repr__(self): return self.__str__()
class Apierror(RuntimeError): def __init__(self, message): self.message = message def __str__(self): return '%s' % self.message def __repr__(self): return self.__str__()
kumas, inus, ookamis = 10, 4, 16 if (kumas > inus) and (kumas > ookamis): print(ookamis) elif (inus > kumas) and (inus > ookamis): print(kumas) elif (ookamis > kumas) and (ookamis > inus): print(inus)
(kumas, inus, ookamis) = (10, 4, 16) if kumas > inus and kumas > ookamis: print(ookamis) elif inus > kumas and inus > ookamis: print(kumas) elif ookamis > kumas and ookamis > inus: print(inus)
L = [92,456,34,7234,24,7,623,5,35] maxSoFar = L[0] for i in range(len(L)): if L[i] > maxSoFar: maxSoFar = L[i] print(maxSoFar)
l = [92, 456, 34, 7234, 24, 7, 623, 5, 35] max_so_far = L[0] for i in range(len(L)): if L[i] > maxSoFar: max_so_far = L[i] print(maxSoFar)
class Empleado: cantidad_empleados = 0 tasa_incremento = 1.03 def __init__(self, nombre, apellido, email, sueldo): self.nombre = nombre self.apellido = apellido self.email = email self.sueldo = sueldo def get_full_name(self): return '{} {}'.format(self.nombre, self.apellido) def get_new_salary(self): self.sueldo = int(self.sueldo * self.tasa_incremento) emp1 = Empleado('Jane', 'Willis', '[email protected]', 2500) emp2 = Empleado('Jack', 'Ryan', '[email protected]', 5500) print(emp1.get_full_name()) print(emp2.get_full_name()) print(Empleado.get_full_name(emp1)) print(emp1.__dict__) print(emp1.sueldo) emp1.get_new_salary() print(emp1.sueldo) print(Empleado.tasa_incremento) print(emp1.tasa_incremento) print(emp2.tasa_incremento) emp2.tasa_incremento = 2.1 print(emp2.__dict__) print(Empleado.__dict__) Empleado.tasa_incremento = 1.5 print(Empleado.tasa_incremento) print(emp1.tasa_incremento) print(emp2.tasa_incremento) emp1.tasa_incremento = 1.5 print(emp1.__dict__) emp2.foo = 3 print(emp2.__dict__)
class Empleado: cantidad_empleados = 0 tasa_incremento = 1.03 def __init__(self, nombre, apellido, email, sueldo): self.nombre = nombre self.apellido = apellido self.email = email self.sueldo = sueldo def get_full_name(self): return '{} {}'.format(self.nombre, self.apellido) def get_new_salary(self): self.sueldo = int(self.sueldo * self.tasa_incremento) emp1 = empleado('Jane', 'Willis', '[email protected]', 2500) emp2 = empleado('Jack', 'Ryan', '[email protected]', 5500) print(emp1.get_full_name()) print(emp2.get_full_name()) print(Empleado.get_full_name(emp1)) print(emp1.__dict__) print(emp1.sueldo) emp1.get_new_salary() print(emp1.sueldo) print(Empleado.tasa_incremento) print(emp1.tasa_incremento) print(emp2.tasa_incremento) emp2.tasa_incremento = 2.1 print(emp2.__dict__) print(Empleado.__dict__) Empleado.tasa_incremento = 1.5 print(Empleado.tasa_incremento) print(emp1.tasa_incremento) print(emp2.tasa_incremento) emp1.tasa_incremento = 1.5 print(emp1.__dict__) emp2.foo = 3 print(emp2.__dict__)
class A: def long_unique_identifier(self): pass def foo(x): x.long_unique_identifier() # <ref>
class A: def long_unique_identifier(self): pass def foo(x): x.long_unique_identifier()
# -*- coding: utf-8 -*- def parametrized(dec): def layer(*args, **kwargs): def repl(f): return dec(f, *args, **kwargs) return repl return layer @parametrized def dependency(module, *_deps): module.deps = _deps return module @parametrized def source(module, _source): module.source = _source return module @parametrized def version(module, _ver): module.version = _ver return module @dependency() @source('unknown') @version('latest') class Module(object): def __init__(self, composer): self.composer = composer def __repr__(self): return '%-13s %-6s (%s)' % ( self.name(), self.version, self.source) def build(self): pass def expose(self): return [] def name(self): return self.__class__.__name__.lower()
def parametrized(dec): def layer(*args, **kwargs): def repl(f): return dec(f, *args, **kwargs) return repl return layer @parametrized def dependency(module, *_deps): module.deps = _deps return module @parametrized def source(module, _source): module.source = _source return module @parametrized def version(module, _ver): module.version = _ver return module @dependency() @source('unknown') @version('latest') class Module(object): def __init__(self, composer): self.composer = composer def __repr__(self): return '%-13s %-6s (%s)' % (self.name(), self.version, self.source) def build(self): pass def expose(self): return [] def name(self): return self.__class__.__name__.lower()
print("Enter The Number n") n = int(input()) if (n%2)!=0: print("Weird") elif (n%2)==0: if n in range(2,5): print("Not Weird") elif n in range(6,21): print("Weird") elif n > 20: print("Not Weird")
print('Enter The Number n') n = int(input()) if n % 2 != 0: print('Weird') elif n % 2 == 0: if n in range(2, 5): print('Not Weird') elif n in range(6, 21): print('Weird') elif n > 20: print('Not Weird')
model = dict( type='TSN2D', backbone=dict( type='ResNet', pretrained='modelzoo://resnet50', nsegments=8, depth=50, out_indices=(3,), tsm=True, bn_eval=False, partial_bn=False), spatial_temporal_module=dict( type='SimpleSpatialModule', spatial_type='avg', spatial_size=7), segmental_consensus=dict( type='SimpleConsensus', consensus_type='avg'), cls_head=dict( type='ClsHead', with_avg_pool=False, temporal_feature_size=1, spatial_feature_size=1, dropout_ratio=0.5, in_channels=2048, num_classes=174)) train_cfg = None test_cfg = None # dataset settings dataset_type = 'RawFramesDataset' data_root = '' data_root_val = '' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) data = dict( videos_per_gpu=8, workers_per_gpu=8, train=dict( type=dataset_type, ann_file='data/sthv1/train_videofolder.txt', img_prefix=data_root, img_norm_cfg=img_norm_cfg, num_segments=8, new_length=1, new_step=1, random_shift=True, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=224, flip_ratio=0.5, resize_keep_ratio=True, resize_crop=True, color_jitter=True, color_space_aug=True, oversample=None, max_distort=1, test_mode=False), val=dict( type=dataset_type, ann_file='data/sthv1/val_videofolder.txt', img_prefix=data_root_val, img_norm_cfg=img_norm_cfg, num_segments=8, new_length=1, new_step=1, random_shift=False, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=224, flip_ratio=0, resize_keep_ratio=True, oversample=None, test_mode=False), test=dict( type=dataset_type, ann_file='data/sthv1/val_videofolder.txt', img_prefix=data_root_val, img_norm_cfg=img_norm_cfg, num_segments=16, new_length=1, new_step=1, random_shift=False, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=256, flip_ratio=0, resize_keep_ratio=True, oversample="three_crop", test_mode=True)) # optimizer optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005, nesterov=True) optimizer_config = dict(grad_clip=dict(max_norm=20, norm_type=2)) # learning policy lr_config = dict( policy='step', step=[75, 125]) checkpoint_config = dict(interval=1) workflow = [('train', 1)] # yapf:disable log_config = dict( interval=20, hooks=[ dict(type='TextLoggerHook'), # dict(type='TensorboardLoggerHook') ]) # yapf:enable # runtime settings total_epochs = 150 dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None
model = dict(type='TSN2D', backbone=dict(type='ResNet', pretrained='modelzoo://resnet50', nsegments=8, depth=50, out_indices=(3,), tsm=True, bn_eval=False, partial_bn=False), spatial_temporal_module=dict(type='SimpleSpatialModule', spatial_type='avg', spatial_size=7), segmental_consensus=dict(type='SimpleConsensus', consensus_type='avg'), cls_head=dict(type='ClsHead', with_avg_pool=False, temporal_feature_size=1, spatial_feature_size=1, dropout_ratio=0.5, in_channels=2048, num_classes=174)) train_cfg = None test_cfg = None dataset_type = 'RawFramesDataset' data_root = '' data_root_val = '' img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) data = dict(videos_per_gpu=8, workers_per_gpu=8, train=dict(type=dataset_type, ann_file='data/sthv1/train_videofolder.txt', img_prefix=data_root, img_norm_cfg=img_norm_cfg, num_segments=8, new_length=1, new_step=1, random_shift=True, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=224, flip_ratio=0.5, resize_keep_ratio=True, resize_crop=True, color_jitter=True, color_space_aug=True, oversample=None, max_distort=1, test_mode=False), val=dict(type=dataset_type, ann_file='data/sthv1/val_videofolder.txt', img_prefix=data_root_val, img_norm_cfg=img_norm_cfg, num_segments=8, new_length=1, new_step=1, random_shift=False, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=224, flip_ratio=0, resize_keep_ratio=True, oversample=None, test_mode=False), test=dict(type=dataset_type, ann_file='data/sthv1/val_videofolder.txt', img_prefix=data_root_val, img_norm_cfg=img_norm_cfg, num_segments=16, new_length=1, new_step=1, random_shift=False, modality='RGB', image_tmpl='{:05d}.jpg', img_scale=256, input_size=256, flip_ratio=0, resize_keep_ratio=True, oversample='three_crop', test_mode=True)) optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005, nesterov=True) optimizer_config = dict(grad_clip=dict(max_norm=20, norm_type=2)) lr_config = dict(policy='step', step=[75, 125]) checkpoint_config = dict(interval=1) workflow = [('train', 1)] log_config = dict(interval=20, hooks=[dict(type='TextLoggerHook')]) total_epochs = 150 dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None
#AUTHOR: Pornpimol Kaewphing #Python3 Concept: Twosum in Python #GITHUB: https://github.com/gympohnpimol def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)): for j in range(i + 1, len(nums)): if nums[i] + nums[j] == target: return [i,j] else: pass
def two_sum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)): for j in range(i + 1, len(nums)): if nums[i] + nums[j] == target: return [i, j] else: pass
list1 = [1, 2, 3] list2 = ["One", "Two"] print("list1: ", list1) print("list2: ", list2) print("\n") list12 = list1 + list2 print("list1 + list2: ", list12) list2x3 = list2 * 3 print("list2 * 3: ", list2x3) hasThree = "Three" in list2 print("'Three' in list2? ", hasThree)
list1 = [1, 2, 3] list2 = ['One', 'Two'] print('list1: ', list1) print('list2: ', list2) print('\n') list12 = list1 + list2 print('list1 + list2: ', list12) list2x3 = list2 * 3 print('list2 * 3: ', list2x3) has_three = 'Three' in list2 print("'Three' in list2? ", hasThree)
def print_in_blocks(li, bp): dli = [] temp_list = [] for i in range(len(li)): temp_list.append(li[i]) if i != 0 and (i+1)%bp == 0: dli.append(temp_list) temp_list = [] cols = bp max_col_len = [] for _ in range(cols): max_col_len.append(0) for i in range(len(max_col_len)): for r in dli: if max_col_len[i] < len(r[i]): max_col_len[i] = len(r[i]) print(end='+-') for i in range(cols): print('-' * max_col_len[i], end='-+-') print(end='\b \n') for i in dli: print(end='| ') for j in range(cols): print(i[j].ljust(max_col_len[j]), end=' | ') print() print(end='+-') for i in range(cols): print('-' * max_col_len[i], end='-+-') print(end='\b \n')
def print_in_blocks(li, bp): dli = [] temp_list = [] for i in range(len(li)): temp_list.append(li[i]) if i != 0 and (i + 1) % bp == 0: dli.append(temp_list) temp_list = [] cols = bp max_col_len = [] for _ in range(cols): max_col_len.append(0) for i in range(len(max_col_len)): for r in dli: if max_col_len[i] < len(r[i]): max_col_len[i] = len(r[i]) print(end='+-') for i in range(cols): print('-' * max_col_len[i], end='-+-') print(end='\x08 \n') for i in dli: print(end='| ') for j in range(cols): print(i[j].ljust(max_col_len[j]), end=' | ') print() print(end='+-') for i in range(cols): print('-' * max_col_len[i], end='-+-') print(end='\x08 \n')
# These should reflect //ci/prebuilt/BUILD declared targets. This a map from # target in //ci/prebuilt/BUILD to the underlying build recipe in # ci/build_container/build_recipes. TARGET_RECIPES = { "ares": "cares", "backward": "backward", "event": "libevent", "event_pthreads": "libevent", # TODO(htuch): This shouldn't be a build recipe, it's a tooling dependency # that is external to Bazel. "gcovr": "gcovr", "googletest": "googletest", "tcmalloc_and_profiler": "gperftools", "http_parser": "http-parser", "lightstep": "lightstep", "nghttp2": "nghttp2", "protobuf": "protobuf", "protoc": "protobuf", "rapidjson": "rapidjson", "spdlog": "spdlog", "ssl": "boringssl", "tclap": "tclap", }
target_recipes = {'ares': 'cares', 'backward': 'backward', 'event': 'libevent', 'event_pthreads': 'libevent', 'gcovr': 'gcovr', 'googletest': 'googletest', 'tcmalloc_and_profiler': 'gperftools', 'http_parser': 'http-parser', 'lightstep': 'lightstep', 'nghttp2': 'nghttp2', 'protobuf': 'protobuf', 'protoc': 'protobuf', 'rapidjson': 'rapidjson', 'spdlog': 'spdlog', 'ssl': 'boringssl', 'tclap': 'tclap'}
# Python3 program to solve Rat in a Maze # problem using backracking # Maze size N = 4 # A utility function to print solution matrix sol def printSolution( sol ): for i in sol: for j in i: print(str(j) + " ", end ="") print("") # A utility function to check if x, y is valid # index for N * N Maze def isSafe( maze, x, y ): if x >= 0 and x < N and y >= 0 and y < N and maze[x][y] == 1: return True return False def solveMaze( maze ): # Creating a 4 * 4 2-D list sol = [ [ 0 for j in range(4) ] for i in range(4) ] if solveMazeUtil(maze, 0, 0, sol) == False: print("Solution doesn't exist"); return False printSolution(sol) return True # A recursive utility function to solve Maze problem def solveMazeUtil(maze, x, y, sol): # if (x, y is goal) return True if x == N - 1 and y == N - 1 and maze[x][y]== 1: sol[x][y] = 1 return True # Check if maze[x][y] is valid if isSafe(maze, x, y) == True: # Check if the current block is already part of solution path. if sol[x][y] == 1: return False # mark x, y as part of solution path sol[x][y] = 1 #force rat to go to the right way if solveMazeUtil(maze, x + 1, y, sol): return True if solveMazeUtil(maze, x, y + 1, sol): return True if solveMazeUtil(maze, x - 1, y, sol): return True if solveMazeUtil(maze, x, y - 1, sol): return True sol[x][y] = 0 return False # Driver program to test above function if __name__ == "__main__": # Initialising the maze maze = [ [1, 0, 0, 0], [1, 1, 0, 1], [0, 1, 0, 0], [1, 1, 1, 1] ] solveMaze(maze) # This code is contributed by Shiv Shankar # Also explain more by Sahachan Tippimwong to Submit the work on time
n = 4 def print_solution(sol): for i in sol: for j in i: print(str(j) + ' ', end='') print('') def is_safe(maze, x, y): if x >= 0 and x < N and (y >= 0) and (y < N) and (maze[x][y] == 1): return True return False def solve_maze(maze): sol = [[0 for j in range(4)] for i in range(4)] if solve_maze_util(maze, 0, 0, sol) == False: print("Solution doesn't exist") return False print_solution(sol) return True def solve_maze_util(maze, x, y, sol): if x == N - 1 and y == N - 1 and (maze[x][y] == 1): sol[x][y] = 1 return True if is_safe(maze, x, y) == True: if sol[x][y] == 1: return False sol[x][y] = 1 if solve_maze_util(maze, x + 1, y, sol): return True if solve_maze_util(maze, x, y + 1, sol): return True if solve_maze_util(maze, x - 1, y, sol): return True if solve_maze_util(maze, x, y - 1, sol): return True sol[x][y] = 0 return False if __name__ == '__main__': maze = [[1, 0, 0, 0], [1, 1, 0, 1], [0, 1, 0, 0], [1, 1, 1, 1]] solve_maze(maze)
# We use this to create easily readable errors for when debugging elastic beanstalk deployment configurations class DynamicParameter(Exception): pass #NOTE: integer values need to be strings def get_base_eb_configuration(): return [ # Instance launch configuration details { 'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'InstanceType', 'Value': DynamicParameter("InstanceType") },{ 'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'IamInstanceProfile', 'Value': DynamicParameter("IamInstanceProfile") },{ 'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'EC2KeyName', 'Value': DynamicParameter("EC2KeyName") }, # open up the ssh port for debugging - adds to the security group { 'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'SSHSourceRestriction', 'Value': 'tcp,22,22,0.0.0.0/0' }, # cloudwatch alarms { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'BreachDuration', 'Value': '1' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'EvaluationPeriods', 'Value': '1' }, # environment variables { 'Namespace': 'aws:cloudformation:template:parameter', 'OptionName': 'EnvironmentVariables', 'Value': DynamicParameter("EnvironmentVariables"), }, # },{ # could not get this to play well, so we modify it after the environment creates it. # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'SecurityGroups', # 'Value': AutogeneratedParameter("SecurityGroups") # }, { 'Namespace': 'aws:cloudformation:template:parameter', 'OptionName': 'InstancePort', 'Value': '80' }, # deployment network details # { # 'Namespace': 'aws:ec2:vpc', # 'OptionName': 'VPCId', # 'Value': 'vpc-c6e16da2' # }, # { # 'Namespace': 'aws:ec2:vpc', # 'OptionName': 'ELBSubnets', # 'Value': 'subnet-10718a66,subnet-ea9599c1,subnet-8018a9bd,subnet-bf1f02e6' # }, # { # 'Namespace': 'aws:ec2:vpc', # 'OptionName': 'Subnets', # 'Value': 'subnet-10718a66,subnet-ea9599c1,subnet-8018a9bd,subnet-bf1f02e6' # }, # static network details # { # todo: not in a vpc? # 'Namespace': 'aws:ec2:vpc', # 'OptionName': 'AssociatePublicIpAddress', # 'Value': 'true' # }, { 'Namespace': 'aws:ec2:vpc', 'OptionName': 'ELBScheme', 'Value': 'public' }, { 'Namespace': 'aws:elasticbeanstalk:application', 'OptionName': 'Application Healthcheck URL', 'Value': '' }, # autoscaling settings { 'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Availability Zones', 'Value': 'Any' }, { 'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Cooldown', 'Value': '360' }, { 'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Custom Availability Zones', 'Value': '' }, { 'Namespace': 'aws:autoscaling:asg', 'OptionName': 'MaxSize', 'Value': '2' }, { 'Namespace': 'aws:autoscaling:asg', 'OptionName': 'MinSize', 'Value': '1' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'LowerBreachScaleIncrement', 'Value': '-1' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'LowerThreshold', 'Value': '20' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'MeasureName', 'Value': 'CPUUtilization' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Period', 'Value': '1' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Statistic', 'Value': 'Maximum' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Unit', 'Value': 'Percent' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'UpperBreachScaleIncrement', 'Value': '1' }, { 'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'UpperThreshold', 'Value': '85' }, { 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'MaxBatchSize', 'Value': '1' }, { 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'MinInstancesInService', 'Value': '1' }, # { # 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', # 'OptionName': 'PauseTime', # }, { 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'RollingUpdateEnabled', 'Value': 'true' }, { 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'RollingUpdateType', 'Value': 'Health' }, { 'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'Timeout', 'Value': 'PT30M' }, # Logging settings { 'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'DeleteOnTerminate', 'Value': 'false' }, { 'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'RetentionInDays', 'Value': '7' }, { 'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'StreamLogs', 'Value': 'false' }, # miscellaneous EB configuration { 'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'BatchSize', 'Value': '30' }, { 'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'BatchSizeType', 'Value': 'Percentage' }, { 'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'DeploymentPolicy', 'Value': 'Rolling' }, { 'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'IgnoreHealthCheck', 'Value': 'true' }, { # Time at which a timeout occurs after deploying the environment - I think. 'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'Timeout', 'Value': '300' }, { 'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'DefaultSSHPort', 'Value': '22' }, {'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'LaunchTimeout', 'Value': '0' }, { 'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'LaunchType', 'Value': 'Migration' }, { 'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'RollbackLaunchOnFailure', 'Value': 'false' }, # Python environment configuration { 'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'NumProcesses', 'Value': '2' }, { 'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'NumThreads', 'Value': '20' }, { 'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'StaticFiles', 'Value': '/static/=frontend/static/' }, { 'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'WSGIPath', 'Value': 'wsgi.py' }, { 'Namespace': 'aws:elasticbeanstalk:container:python:staticfiles', 'OptionName': '/static/', 'Value': 'frontend/static/' }, # Elastic Beanstalk system Notifications { # These settings generate the SNS instance for sending these emails. 'Namespace': 'aws:elasticbeanstalk:sns:topics', 'OptionName': 'Notification Endpoint', 'Value': DynamicParameter('Notification Endpoint') }, { 'Namespace': 'aws:elasticbeanstalk:sns:topics', 'OptionName': 'Notification Protocol', 'Value': 'email' }, # Health check/Reporting details { 'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'ConfigDocument', 'Value': '{"Version":1,"CloudWatchMetrics":{"Instance":{"CPUIrq":null,"LoadAverage5min":null,"ApplicationRequests5xx":null,"ApplicationRequests4xx":null,"CPUUser":null,"LoadAverage1min":null,"ApplicationLatencyP50":null,"CPUIdle":null,"InstanceHealth":null,"ApplicationLatencyP95":null,"ApplicationLatencyP85":null,"RootFilesystemUtil":null,"ApplicationLatencyP90":null,"CPUSystem":null,"ApplicationLatencyP75":null,"CPUSoftirq":null,"ApplicationLatencyP10":null,"ApplicationLatencyP99":null,"ApplicationRequestsTotal":null,"ApplicationLatencyP99.9":null,"ApplicationRequests3xx":null,"ApplicationRequests2xx":null,"CPUIowait":null,"CPUNice":null},"Environment":{"InstancesSevere":null,"InstancesDegraded":null,"ApplicationRequests5xx":null,"ApplicationRequests4xx":null,"ApplicationLatencyP50":null,"ApplicationLatencyP95":null,"ApplicationLatencyP85":null,"InstancesUnknown":null,"ApplicationLatencyP90":null,"InstancesInfo":null,"InstancesPending":null,"ApplicationLatencyP75":null,"ApplicationLatencyP10":null,"ApplicationLatencyP99":null,"ApplicationRequestsTotal":null,"InstancesNoData":null,"ApplicationLatencyP99.9":null,"ApplicationRequests3xx":null,"ApplicationRequests2xx":null,"InstancesOk":null,"InstancesWarning":null}}}' }, { 'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'HealthCheckSuccessThreshold', 'Value': 'Ok' }, { 'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'SystemType', 'Value': 'enhanced' }, { 'Namespace': 'aws:elasticbeanstalk:hostmanager', 'OptionName': 'LogPublicationControl', 'Value': 'false' }, { 'Namespace': 'aws:elasticbeanstalk:managedactions', 'OptionName': 'ManagedActionsEnabled', 'Value': 'false' }, # { # 'Namespace': 'aws:elasticbeanstalk:managedactions', # 'OptionName': 'PreferredStartTime' # }, { 'Namespace': 'aws:elasticbeanstalk:managedactions:platformupdate', 'OptionName': 'InstanceRefreshEnabled', 'Value': 'false' }, # { # 'Namespace': 'aws:elasticbeanstalk:managedactions:platformupdate', # 'OptionName': 'UpdateLevel' # }, { 'Namespace': 'aws:elasticbeanstalk:monitoring', 'OptionName': 'Automatically Terminate Unhealthy Instances', 'Value': 'true' }, { 'Namespace': 'aws:elb:healthcheck', 'OptionName': 'HealthyThreshold', 'Value': '3' }, { 'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Interval', 'Value': '10' }, { 'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Target', 'Value': 'TCP:80' }, { 'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Timeout', 'Value': '5' }, { 'Namespace': 'aws:elb:healthcheck', 'OptionName': 'UnhealthyThreshold', 'Value': '5' }, # Storage configuration. We use the default, which is 8gb gp2. # { # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'BlockDeviceMappings', # }, { # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'MonitoringInterval', # }, { # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'RootVolumeIOPS', # }, { # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'RootVolumeSize', # },{ # 'Namespace': 'aws:autoscaling:launchconfiguration', # 'OptionName': 'RootVolumeType', # }, ## ## Elastic Load Balancer configuration ## { 'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'EnvironmentType', 'Value': 'LoadBalanced' }, { # there are 2 ELBs, ELB classic and ELBv2. We use classic. 'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'LoadBalancerType', 'Value': 'classic' }, { 'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'ServiceRole', 'Value': DynamicParameter("ServiceRole") },# { # 'Namespace': 'aws:elasticbeanstalk:environment', # 'OptionName': 'ExternalExtensionsS3Bucket' # }, { # 'Namespace': 'aws:elasticbeanstalk:environment', # 'OptionName': 'ExternalExtensionsS3Key' # },{ # probably don't override this one, use the one it autogenerates and then modify # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'SecurityGroups', # 'Value': 'sg-********' # },{ # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'InstancePort', # 'Value': '80' # }, { # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'InstanceProtocol', # 'Value': 'HTTP' # }, { # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'ListenerEnabled', # 'Value': 'true' # }, { # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'ListenerProtocol', # 'Value': 'HTTP' # }, { # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'PolicyNames', # }, { # 'Namespace': 'aws:elb:listener:80', # 'OptionName': 'SSLCertificateId', # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'CrossZone', # 'Value': 'true' # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'LoadBalancerHTTPPort', # 'Value': '80' # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'LoadBalancerHTTPSPort', # 'Value': 'OFF' # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'LoadBalancerPortProtocol', # 'Value': 'HTTP' # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'LoadBalancerSSLPortProtocol', # 'Value': 'HTTPS' # }, { # 'Namespace': 'aws:elb:loadbalancer', # 'OptionName': 'SSLCertificateId', # }, { # 'Namespace': 'aws:elb:policies', # 'OptionName': 'ConnectionDrainingEnabled', # 'Value': 'true' # }, { # 'Namespace': 'aws:elb:policies', # 'OptionName': 'ConnectionDrainingTimeout', # 'Value': '20' # }, { # 'Namespace': 'aws:elb:policies', # 'OptionName': 'ConnectionSettingIdleTimeout', # 'Value': '60' # }, ]
class Dynamicparameter(Exception): pass def get_base_eb_configuration(): return [{'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'InstanceType', 'Value': dynamic_parameter('InstanceType')}, {'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'IamInstanceProfile', 'Value': dynamic_parameter('IamInstanceProfile')}, {'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'EC2KeyName', 'Value': dynamic_parameter('EC2KeyName')}, {'Namespace': 'aws:autoscaling:launchconfiguration', 'OptionName': 'SSHSourceRestriction', 'Value': 'tcp,22,22,0.0.0.0/0'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'BreachDuration', 'Value': '1'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'EvaluationPeriods', 'Value': '1'}, {'Namespace': 'aws:cloudformation:template:parameter', 'OptionName': 'EnvironmentVariables', 'Value': dynamic_parameter('EnvironmentVariables')}, {'Namespace': 'aws:cloudformation:template:parameter', 'OptionName': 'InstancePort', 'Value': '80'}, {'Namespace': 'aws:ec2:vpc', 'OptionName': 'ELBScheme', 'Value': 'public'}, {'Namespace': 'aws:elasticbeanstalk:application', 'OptionName': 'Application Healthcheck URL', 'Value': ''}, {'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Availability Zones', 'Value': 'Any'}, {'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Cooldown', 'Value': '360'}, {'Namespace': 'aws:autoscaling:asg', 'OptionName': 'Custom Availability Zones', 'Value': ''}, {'Namespace': 'aws:autoscaling:asg', 'OptionName': 'MaxSize', 'Value': '2'}, {'Namespace': 'aws:autoscaling:asg', 'OptionName': 'MinSize', 'Value': '1'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'LowerBreachScaleIncrement', 'Value': '-1'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'LowerThreshold', 'Value': '20'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'MeasureName', 'Value': 'CPUUtilization'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Period', 'Value': '1'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Statistic', 'Value': 'Maximum'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'Unit', 'Value': 'Percent'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'UpperBreachScaleIncrement', 'Value': '1'}, {'Namespace': 'aws:autoscaling:trigger', 'OptionName': 'UpperThreshold', 'Value': '85'}, {'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'MaxBatchSize', 'Value': '1'}, {'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'MinInstancesInService', 'Value': '1'}, {'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'RollingUpdateEnabled', 'Value': 'true'}, {'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'RollingUpdateType', 'Value': 'Health'}, {'Namespace': 'aws:autoscaling:updatepolicy:rollingupdate', 'OptionName': 'Timeout', 'Value': 'PT30M'}, {'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'DeleteOnTerminate', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'RetentionInDays', 'Value': '7'}, {'Namespace': 'aws:elasticbeanstalk:cloudwatch:logs', 'OptionName': 'StreamLogs', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'BatchSize', 'Value': '30'}, {'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'BatchSizeType', 'Value': 'Percentage'}, {'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'DeploymentPolicy', 'Value': 'Rolling'}, {'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'IgnoreHealthCheck', 'Value': 'true'}, {'Namespace': 'aws:elasticbeanstalk:command', 'OptionName': 'Timeout', 'Value': '300'}, {'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'DefaultSSHPort', 'Value': '22'}, {'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'LaunchTimeout', 'Value': '0'}, {'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'LaunchType', 'Value': 'Migration'}, {'Namespace': 'aws:elasticbeanstalk:control', 'OptionName': 'RollbackLaunchOnFailure', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'NumProcesses', 'Value': '2'}, {'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'NumThreads', 'Value': '20'}, {'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'StaticFiles', 'Value': '/static/=frontend/static/'}, {'Namespace': 'aws:elasticbeanstalk:container:python', 'OptionName': 'WSGIPath', 'Value': 'wsgi.py'}, {'Namespace': 'aws:elasticbeanstalk:container:python:staticfiles', 'OptionName': '/static/', 'Value': 'frontend/static/'}, {'Namespace': 'aws:elasticbeanstalk:sns:topics', 'OptionName': 'Notification Endpoint', 'Value': dynamic_parameter('Notification Endpoint')}, {'Namespace': 'aws:elasticbeanstalk:sns:topics', 'OptionName': 'Notification Protocol', 'Value': 'email'}, {'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'ConfigDocument', 'Value': '{"Version":1,"CloudWatchMetrics":{"Instance":{"CPUIrq":null,"LoadAverage5min":null,"ApplicationRequests5xx":null,"ApplicationRequests4xx":null,"CPUUser":null,"LoadAverage1min":null,"ApplicationLatencyP50":null,"CPUIdle":null,"InstanceHealth":null,"ApplicationLatencyP95":null,"ApplicationLatencyP85":null,"RootFilesystemUtil":null,"ApplicationLatencyP90":null,"CPUSystem":null,"ApplicationLatencyP75":null,"CPUSoftirq":null,"ApplicationLatencyP10":null,"ApplicationLatencyP99":null,"ApplicationRequestsTotal":null,"ApplicationLatencyP99.9":null,"ApplicationRequests3xx":null,"ApplicationRequests2xx":null,"CPUIowait":null,"CPUNice":null},"Environment":{"InstancesSevere":null,"InstancesDegraded":null,"ApplicationRequests5xx":null,"ApplicationRequests4xx":null,"ApplicationLatencyP50":null,"ApplicationLatencyP95":null,"ApplicationLatencyP85":null,"InstancesUnknown":null,"ApplicationLatencyP90":null,"InstancesInfo":null,"InstancesPending":null,"ApplicationLatencyP75":null,"ApplicationLatencyP10":null,"ApplicationLatencyP99":null,"ApplicationRequestsTotal":null,"InstancesNoData":null,"ApplicationLatencyP99.9":null,"ApplicationRequests3xx":null,"ApplicationRequests2xx":null,"InstancesOk":null,"InstancesWarning":null}}}'}, {'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'HealthCheckSuccessThreshold', 'Value': 'Ok'}, {'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'SystemType', 'Value': 'enhanced'}, {'Namespace': 'aws:elasticbeanstalk:hostmanager', 'OptionName': 'LogPublicationControl', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:managedactions', 'OptionName': 'ManagedActionsEnabled', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:managedactions:platformupdate', 'OptionName': 'InstanceRefreshEnabled', 'Value': 'false'}, {'Namespace': 'aws:elasticbeanstalk:monitoring', 'OptionName': 'Automatically Terminate Unhealthy Instances', 'Value': 'true'}, {'Namespace': 'aws:elb:healthcheck', 'OptionName': 'HealthyThreshold', 'Value': '3'}, {'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Interval', 'Value': '10'}, {'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Target', 'Value': 'TCP:80'}, {'Namespace': 'aws:elb:healthcheck', 'OptionName': 'Timeout', 'Value': '5'}, {'Namespace': 'aws:elb:healthcheck', 'OptionName': 'UnhealthyThreshold', 'Value': '5'}, {'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'EnvironmentType', 'Value': 'LoadBalanced'}, {'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'LoadBalancerType', 'Value': 'classic'}, {'Namespace': 'aws:elasticbeanstalk:environment', 'OptionName': 'ServiceRole', 'Value': dynamic_parameter('ServiceRole')}]
''' Context: String compression using counts of repeated characters Definitions: Objective: Assumptions: Only lower and upper case letters present Constraints: Inputs: string value Algorithm flow: Compress the string if string empty: return emotty if length of compressed string >= original string return original string else return compressed string Example(s): aabcccccaaa => a2b1c5a3 Possible Solutions character_count = 1 current_character = set to first character in string compressed_string = '' for the length of string pick a character at current index compare character with current_character if same increment character_count by 1 if not append current_character and character_count to character_count set character_count to 1 set current_character = character Walk through string length = 10 current_character = a character_count = 3 compressed_string = a2b1c5a3 ''' def compress(string_input): string_length = len(string_input) compressed_string = '' count_consecutive = 0 for i in range(string_length): count_consecutive = count_consecutive + 1 if i + 1 >= string_length or string_input[i] != string_input[i + 1]: compressed_string = compressed_string + string_input[i] + str(count_consecutive) count_consecutive = 0 if len(compressed_string) >= string_length: return string_input else: return compressed_string print(compress('') == '') #true print(compress('aabcccccaaa') == 'a2b1c5a3') #true print(compress('abcdef') == 'abcdef') #true compressed same as original ''' Performance P = length of original string K = number of consecutive character sequences Time = O(P + K^2) K^2 because string concatenation is O(N^2) For each character sequence we copy the compressed version and the current character sequence compression into a new compressed string Why is concatenation O(N^2)? X = length of current string N = number of strings 1st iteration = 1X copy 2nd iteration = 2X copy 3rd iteration = 3X copy Nth iteration = NX copy O(1X + 2X + 3X ... NX) => O(N^2) 1 + 2 + ... N = N(N + 1)/2 = O(N^2 + N) => O(N^2) Space = O(2P) => O(P) Compressed string might be twice as long '''
""" Context: String compression using counts of repeated characters Definitions: Objective: Assumptions: Only lower and upper case letters present Constraints: Inputs: string value Algorithm flow: Compress the string if string empty: return emotty if length of compressed string >= original string return original string else return compressed string Example(s): aabcccccaaa => a2b1c5a3 Possible Solutions character_count = 1 current_character = set to first character in string compressed_string = '' for the length of string pick a character at current index compare character with current_character if same increment character_count by 1 if not append current_character and character_count to character_count set character_count to 1 set current_character = character Walk through string length = 10 current_character = a character_count = 3 compressed_string = a2b1c5a3 """ def compress(string_input): string_length = len(string_input) compressed_string = '' count_consecutive = 0 for i in range(string_length): count_consecutive = count_consecutive + 1 if i + 1 >= string_length or string_input[i] != string_input[i + 1]: compressed_string = compressed_string + string_input[i] + str(count_consecutive) count_consecutive = 0 if len(compressed_string) >= string_length: return string_input else: return compressed_string print(compress('') == '') print(compress('aabcccccaaa') == 'a2b1c5a3') print(compress('abcdef') == 'abcdef') '\n Performance\n P = length of original string\n K = number of consecutive character sequences\n\n Time = O(P + K^2)\n K^2 because string concatenation is O(N^2)\n For each character sequence\n we copy the compressed version and the current character sequence compression\n into a new compressed string\n\n Why is concatenation O(N^2)?\n X = length of current string\n N = number of strings\n\n 1st iteration = 1X copy\n 2nd iteration = 2X copy\n 3rd iteration = 3X copy\n Nth iteration = NX copy\n\n O(1X + 2X + 3X ... NX) => O(N^2)\n 1 + 2 + ... N = N(N + 1)/2 = O(N^2 + N) => O(N^2)\n\n Space = O(2P) => O(P)\n Compressed string might be twice as long \n'
def slow_fib(n: int) -> int: if n < 1: return 0 if n == 1: return 1 return slow_fib(n-1) + slow_fib(n-2)
def slow_fib(n: int) -> int: if n < 1: return 0 if n == 1: return 1 return slow_fib(n - 1) + slow_fib(n - 2)
def word_frequency(list): words = {} for word in list: if word in words: words[word] += 1 else: words[word] = 1 return words frequency_counter = word_frequency(['hey', 'hi', 'more', 'hey', 'hi']) print(frequency_counter)
def word_frequency(list): words = {} for word in list: if word in words: words[word] += 1 else: words[word] = 1 return words frequency_counter = word_frequency(['hey', 'hi', 'more', 'hey', 'hi']) print(frequency_counter)
''' Task Given an integer, , and space-separated integers as input, create a tuple, , of those integers. Then compute and print the result of . Note: hash() is one of the functions in the __builtins__ module, so it need not be imported. Input Format The first line contains an integer, , denoting the number of elements in the tuple. The second line contains space-separated integers describing the elements in tuple . Output Format Print the result of . Sample Input 0 2 1 2 Sample Output 0 3713081631934410656 ''' if __name__ == '__main__': n = int(input()) integer_list = map(int, input().split()) print(hash(tuple(integer_list)))
""" Task Given an integer, , and space-separated integers as input, create a tuple, , of those integers. Then compute and print the result of . Note: hash() is one of the functions in the __builtins__ module, so it need not be imported. Input Format The first line contains an integer, , denoting the number of elements in the tuple. The second line contains space-separated integers describing the elements in tuple . Output Format Print the result of . Sample Input 0 2 1 2 Sample Output 0 3713081631934410656 """ if __name__ == '__main__': n = int(input()) integer_list = map(int, input().split()) print(hash(tuple(integer_list)))
# GENERATED VERSION FILE # TIME: Fri Mar 20 02:18:57 2020 __version__ = '1.1.0+58a3f02' short_version = '1.1.0'
__version__ = '1.1.0+58a3f02' short_version = '1.1.0'
bruin = set(["Boxtel","Best","Beukenlaan","Helmond 't Hout","Helmond","Helmond Brouwhuis","Deurne"]) groen = set(["Boxtel","Best","Beukenlaan","Geldrop","Heeze","Weert"]) print(bruin.intersection(groen)) print(bruin.difference(groen)) print(bruin.union(groen))
bruin = set(['Boxtel', 'Best', 'Beukenlaan', "Helmond 't Hout", 'Helmond', 'Helmond Brouwhuis', 'Deurne']) groen = set(['Boxtel', 'Best', 'Beukenlaan', 'Geldrop', 'Heeze', 'Weert']) print(bruin.intersection(groen)) print(bruin.difference(groen)) print(bruin.union(groen))
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: ListNode) -> ListNode: if not head: return head prevHead = head while prevHead.next: curr = prevHead.next # move curr to the head prevHead.next = curr.next curr.next = head head = curr return head # Recursion class Solution: def reverseList(self, head: ListNode) -> ListNode: if not head or not head.next: return head left = self.reverseList(head.next) # Place head node at the end head.next.next = head head.next = None return left
class Solution: def reverse_list(self, head: ListNode) -> ListNode: if not head: return head prev_head = head while prevHead.next: curr = prevHead.next prevHead.next = curr.next curr.next = head head = curr return head class Solution: def reverse_list(self, head: ListNode) -> ListNode: if not head or not head.next: return head left = self.reverseList(head.next) head.next.next = head head.next = None return left
# -*- coding: utf-8 -*- X = int(input()) Y = int(input()) start, end = min(X, Y), max(X, Y) firstDivisible = start if (start % 13 == 0) else start + (13 - (start % 13)) answer = sum(range(start, end + 1)) - sum(range(firstDivisible, end + 1, 13)) print(answer)
x = int(input()) y = int(input()) (start, end) = (min(X, Y), max(X, Y)) first_divisible = start if start % 13 == 0 else start + (13 - start % 13) answer = sum(range(start, end + 1)) - sum(range(firstDivisible, end + 1, 13)) print(answer)
# variables notasV = 0 soma = 0 # while there are not 2 grades between [0,10], so the loop continue while notasV < 2: # receive float nota = float(input()) # if nota is >= 0 and nota <= 10 if (nota >= 0) and (nota <= 10): notasV = notasV + 1 soma = soma + nota # if it is not true else: print('nota invalida') # media if notasV == 2: soma = soma / 2 print('media = {:.2f}'.format(soma))
notas_v = 0 soma = 0 while notasV < 2: nota = float(input()) if nota >= 0 and nota <= 10: notas_v = notasV + 1 soma = soma + nota else: print('nota invalida') if notasV == 2: soma = soma / 2 print('media = {:.2f}'.format(soma))
# Error codes due to an invalid request INVALID_REQUEST = 400 INVALID_ALGORITHM = 401 DOCUMENT_NOT_FOUND = 404
invalid_request = 400 invalid_algorithm = 401 document_not_found = 404
# https://en.wikipedia.org/wiki/Trifid_cipher def __encryptPart(messagePart, character2Number): one, two, three = "", "", "" tmp = [] for character in messagePart: tmp.append(character2Number[character]) for each in tmp: one += each[0] two += each[1] three += each[2] return one + two + three def __decryptPart(messagePart, character2Number): tmp, thisPart = "", "" result = [] for character in messagePart: thisPart += character2Number[character] for digit in thisPart: tmp += digit if len(tmp) == len(messagePart): result.append(tmp) tmp = "" return result[0], result[1], result[2] def __prepare(message, alphabet): # Validate message and alphabet, set to upper and remove spaces alphabet = alphabet.replace(" ", "").upper() message = message.replace(" ", "").upper() # Check length and characters if len(alphabet) != 27: raise KeyError("Length of alphabet has to be 27.") for each in message: if each not in alphabet: raise ValueError("Each message character has to be included in alphabet!") # Generate dictionares numbers = ( "111", "112", "113", "121", "122", "123", "131", "132", "133", "211", "212", "213", "221", "222", "223", "231", "232", "233", "311", "312", "313", "321", "322", "323", "331", "332", "333", ) character2Number = {} number2Character = {} for letter, number in zip(alphabet, numbers): character2Number[letter] = number number2Character[number] = letter return message, alphabet, character2Number, number2Character def encryptMessage(message, alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ.", period=5): message, alphabet, character2Number, number2Character = __prepare(message, alphabet) encrypted, encrypted_numeric = "", "" for i in range(0, len(message) + 1, period): encrypted_numeric += __encryptPart(message[i : i + period], character2Number) for i in range(0, len(encrypted_numeric), 3): encrypted += number2Character[encrypted_numeric[i : i + 3]] return encrypted def decryptMessage(message, alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ.", period=5): message, alphabet, character2Number, number2Character = __prepare(message, alphabet) decrypted_numeric = [] decrypted = "" for i in range(0, len(message) + 1, period): a, b, c = __decryptPart(message[i : i + period], character2Number) for j in range(0, len(a)): decrypted_numeric.append(a[j] + b[j] + c[j]) for each in decrypted_numeric: decrypted += number2Character[each] return decrypted if __name__ == "__main__": msg = "DEFEND THE EAST WALL OF THE CASTLE." encrypted = encryptMessage(msg, "EPSDUCVWYM.ZLKXNBTFGORIJHAQ") decrypted = decryptMessage(encrypted, "EPSDUCVWYM.ZLKXNBTFGORIJHAQ") print("Encrypted: {}\nDecrypted: {}".format(encrypted, decrypted))
def __encrypt_part(messagePart, character2Number): (one, two, three) = ('', '', '') tmp = [] for character in messagePart: tmp.append(character2Number[character]) for each in tmp: one += each[0] two += each[1] three += each[2] return one + two + three def __decrypt_part(messagePart, character2Number): (tmp, this_part) = ('', '') result = [] for character in messagePart: this_part += character2Number[character] for digit in thisPart: tmp += digit if len(tmp) == len(messagePart): result.append(tmp) tmp = '' return (result[0], result[1], result[2]) def __prepare(message, alphabet): alphabet = alphabet.replace(' ', '').upper() message = message.replace(' ', '').upper() if len(alphabet) != 27: raise key_error('Length of alphabet has to be 27.') for each in message: if each not in alphabet: raise value_error('Each message character has to be included in alphabet!') numbers = ('111', '112', '113', '121', '122', '123', '131', '132', '133', '211', '212', '213', '221', '222', '223', '231', '232', '233', '311', '312', '313', '321', '322', '323', '331', '332', '333') character2_number = {} number2_character = {} for (letter, number) in zip(alphabet, numbers): character2Number[letter] = number number2Character[number] = letter return (message, alphabet, character2Number, number2Character) def encrypt_message(message, alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZ.', period=5): (message, alphabet, character2_number, number2_character) = __prepare(message, alphabet) (encrypted, encrypted_numeric) = ('', '') for i in range(0, len(message) + 1, period): encrypted_numeric += __encrypt_part(message[i:i + period], character2Number) for i in range(0, len(encrypted_numeric), 3): encrypted += number2Character[encrypted_numeric[i:i + 3]] return encrypted def decrypt_message(message, alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZ.', period=5): (message, alphabet, character2_number, number2_character) = __prepare(message, alphabet) decrypted_numeric = [] decrypted = '' for i in range(0, len(message) + 1, period): (a, b, c) = __decrypt_part(message[i:i + period], character2Number) for j in range(0, len(a)): decrypted_numeric.append(a[j] + b[j] + c[j]) for each in decrypted_numeric: decrypted += number2Character[each] return decrypted if __name__ == '__main__': msg = 'DEFEND THE EAST WALL OF THE CASTLE.' encrypted = encrypt_message(msg, 'EPSDUCVWYM.ZLKXNBTFGORIJHAQ') decrypted = decrypt_message(encrypted, 'EPSDUCVWYM.ZLKXNBTFGORIJHAQ') print('Encrypted: {}\nDecrypted: {}'.format(encrypted, decrypted))
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # 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. __all__ = [ 'model_alias', ] # Records of model name to import class model_alias = { # --------------------------------- # -------------- ASR -------------- # --------------------------------- "deepspeech2offline": ["paddlespeech.s2t.models.ds2:DeepSpeech2Model"], "deepspeech2online": ["paddlespeech.s2t.models.ds2:DeepSpeech2Model"], "conformer": ["paddlespeech.s2t.models.u2:U2Model"], "conformer_online": ["paddlespeech.s2t.models.u2:U2Model"], "transformer": ["paddlespeech.s2t.models.u2:U2Model"], "wenetspeech": ["paddlespeech.s2t.models.u2:U2Model"], # --------------------------------- # -------------- CLS -------------- # --------------------------------- "panns_cnn6": ["paddlespeech.cls.models.panns:CNN6"], "panns_cnn10": ["paddlespeech.cls.models.panns:CNN10"], "panns_cnn14": ["paddlespeech.cls.models.panns:CNN14"], # --------------------------------- # -------------- ST --------------- # --------------------------------- "fat_st": ["paddlespeech.s2t.models.u2_st:U2STModel"], # --------------------------------- # -------------- TEXT ------------- # --------------------------------- "ernie_linear_p7": [ "paddlespeech.text.models:ErnieLinear", "paddlenlp.transformers:ErnieTokenizer" ], "ernie_linear_p3": [ "paddlespeech.text.models:ErnieLinear", "paddlenlp.transformers:ErnieTokenizer" ], # --------------------------------- # -------------- TTS -------------- # --------------------------------- # acoustic model "speedyspeech": ["paddlespeech.t2s.models.speedyspeech:SpeedySpeech"], "speedyspeech_inference": ["paddlespeech.t2s.models.speedyspeech:SpeedySpeechInference"], "fastspeech2": ["paddlespeech.t2s.models.fastspeech2:FastSpeech2"], "fastspeech2_inference": ["paddlespeech.t2s.models.fastspeech2:FastSpeech2Inference"], "tacotron2": ["paddlespeech.t2s.models.tacotron2:Tacotron2"], "tacotron2_inference": ["paddlespeech.t2s.models.tacotron2:Tacotron2Inference"], # voc "pwgan": ["paddlespeech.t2s.models.parallel_wavegan:PWGGenerator"], "pwgan_inference": ["paddlespeech.t2s.models.parallel_wavegan:PWGInference"], "mb_melgan": ["paddlespeech.t2s.models.melgan:MelGANGenerator"], "mb_melgan_inference": ["paddlespeech.t2s.models.melgan:MelGANInference"], "style_melgan": ["paddlespeech.t2s.models.melgan:StyleMelGANGenerator"], "style_melgan_inference": ["paddlespeech.t2s.models.melgan:StyleMelGANInference"], "hifigan": ["paddlespeech.t2s.models.hifigan:HiFiGANGenerator"], "hifigan_inference": ["paddlespeech.t2s.models.hifigan:HiFiGANInference"], "wavernn": ["paddlespeech.t2s.models.wavernn:WaveRNN"], "wavernn_inference": ["paddlespeech.t2s.models.wavernn:WaveRNNInference"], # --------------------------------- # ------------ Vector ------------- # --------------------------------- "ecapatdnn": ["paddlespeech.vector.models.ecapa_tdnn:EcapaTdnn"], }
__all__ = ['model_alias'] model_alias = {'deepspeech2offline': ['paddlespeech.s2t.models.ds2:DeepSpeech2Model'], 'deepspeech2online': ['paddlespeech.s2t.models.ds2:DeepSpeech2Model'], 'conformer': ['paddlespeech.s2t.models.u2:U2Model'], 'conformer_online': ['paddlespeech.s2t.models.u2:U2Model'], 'transformer': ['paddlespeech.s2t.models.u2:U2Model'], 'wenetspeech': ['paddlespeech.s2t.models.u2:U2Model'], 'panns_cnn6': ['paddlespeech.cls.models.panns:CNN6'], 'panns_cnn10': ['paddlespeech.cls.models.panns:CNN10'], 'panns_cnn14': ['paddlespeech.cls.models.panns:CNN14'], 'fat_st': ['paddlespeech.s2t.models.u2_st:U2STModel'], 'ernie_linear_p7': ['paddlespeech.text.models:ErnieLinear', 'paddlenlp.transformers:ErnieTokenizer'], 'ernie_linear_p3': ['paddlespeech.text.models:ErnieLinear', 'paddlenlp.transformers:ErnieTokenizer'], 'speedyspeech': ['paddlespeech.t2s.models.speedyspeech:SpeedySpeech'], 'speedyspeech_inference': ['paddlespeech.t2s.models.speedyspeech:SpeedySpeechInference'], 'fastspeech2': ['paddlespeech.t2s.models.fastspeech2:FastSpeech2'], 'fastspeech2_inference': ['paddlespeech.t2s.models.fastspeech2:FastSpeech2Inference'], 'tacotron2': ['paddlespeech.t2s.models.tacotron2:Tacotron2'], 'tacotron2_inference': ['paddlespeech.t2s.models.tacotron2:Tacotron2Inference'], 'pwgan': ['paddlespeech.t2s.models.parallel_wavegan:PWGGenerator'], 'pwgan_inference': ['paddlespeech.t2s.models.parallel_wavegan:PWGInference'], 'mb_melgan': ['paddlespeech.t2s.models.melgan:MelGANGenerator'], 'mb_melgan_inference': ['paddlespeech.t2s.models.melgan:MelGANInference'], 'style_melgan': ['paddlespeech.t2s.models.melgan:StyleMelGANGenerator'], 'style_melgan_inference': ['paddlespeech.t2s.models.melgan:StyleMelGANInference'], 'hifigan': ['paddlespeech.t2s.models.hifigan:HiFiGANGenerator'], 'hifigan_inference': ['paddlespeech.t2s.models.hifigan:HiFiGANInference'], 'wavernn': ['paddlespeech.t2s.models.wavernn:WaveRNN'], 'wavernn_inference': ['paddlespeech.t2s.models.wavernn:WaveRNNInference'], 'ecapatdnn': ['paddlespeech.vector.models.ecapa_tdnn:EcapaTdnn']}
# Find minimum number without using conditional statement or ternary operator def main(): a = 4 b = 3 print((a > b) * a + (a < b) * b) if __name__ == '__main__': main()
def main(): a = 4 b = 3 print((a > b) * a + (a < b) * b) if __name__ == '__main__': main()
class Author: def __init__(self, name, familyname=None): self.name = name self.familyname = familyname def __repr__(self): return u'{0}'.format(self.name) authors = {'1': Author('Test Author'), '2': Author('Testy McTesterson')} print(list(authors.values())) print(u'Found {0} unique authors: {1}'.format(len(authors), list(authors.values()))) author2 = Author('Test Author 2') name = author2.familyname or author2.name print('Name: {0}'.format(name)) print(author2.familyname)
class Author: def __init__(self, name, familyname=None): self.name = name self.familyname = familyname def __repr__(self): return u'{0}'.format(self.name) authors = {'1': author('Test Author'), '2': author('Testy McTesterson')} print(list(authors.values())) print(u'Found {0} unique authors: {1}'.format(len(authors), list(authors.values()))) author2 = author('Test Author 2') name = author2.familyname or author2.name print('Name: {0}'.format(name)) print(author2.familyname)
''' ''' def main(): info('Fill Pipette 1') close(description='Outer Pipette 1') sleep(1) if analysis_type=='blank': info('not filling cocktail pipette') else: info('filling cocktail pipette') open(description='Inner Pipette 1') sleep(15) close(description='Inner Pipette 1') sleep(1)
""" """ def main(): info('Fill Pipette 1') close(description='Outer Pipette 1') sleep(1) if analysis_type == 'blank': info('not filling cocktail pipette') else: info('filling cocktail pipette') open(description='Inner Pipette 1') sleep(15) close(description='Inner Pipette 1') sleep(1)
_base_ = [ '../_base_/models/regproxy/regproxy-l16.py', '../_base_/datasets/cityscapes.py', '../_base_/default_runtime.py', '../_base_/schedules/adamw+cr+lr_6e-5+wd_0.01+iter_80k.py' ] model = dict( backbone=dict( img_size=(768, 768), out_indices=[5, 23]), test_cfg=dict( mode='slide', crop_size=(768, 768), stride=(512, 512)))
_base_ = ['../_base_/models/regproxy/regproxy-l16.py', '../_base_/datasets/cityscapes.py', '../_base_/default_runtime.py', '../_base_/schedules/adamw+cr+lr_6e-5+wd_0.01+iter_80k.py'] model = dict(backbone=dict(img_size=(768, 768), out_indices=[5, 23]), test_cfg=dict(mode='slide', crop_size=(768, 768), stride=(512, 512)))
# Copy this file to config.py and fill the blanks QCLOUD_APP_ID = '' QCLOUD_SECRET_ID = '' QCLOUD_SECRET_KEY = '' QCLOUD_BUCKET = '' QCLOUD_REGION = 'sh'
qcloud_app_id = '' qcloud_secret_id = '' qcloud_secret_key = '' qcloud_bucket = '' qcloud_region = 'sh'
class SubSystemTypes: aperture = 'Aperture' client = 'Client' config = 'Config' rights = 'Rights' secret_store_config = 'SecretStoreconfig' websdk = 'WebSDK'
class Subsystemtypes: aperture = 'Aperture' client = 'Client' config = 'Config' rights = 'Rights' secret_store_config = 'SecretStoreconfig' websdk = 'WebSDK'
user_0 = {'username': 'efermi', 'first': 'enrico', 'last': 'fermi', } for key, value in user_0.items(): print("\nKey: " + key) print("Value: " + value) print(user_0.items())
user_0 = {'username': 'efermi', 'first': 'enrico', 'last': 'fermi'} for (key, value) in user_0.items(): print('\nKey: ' + key) print('Value: ' + value) print(user_0.items())
# Solution def part1(data): frequency = sum(int(x) for x in data) return frequency def part2(data): known_frequency = { 0: True } frequency = 0 while True: for x in data: frequency += int(x) if frequency in known_frequency: return frequency known_frequency[frequency] = True # Tests def test(expected, actual): assert expected == actual, 'Expected: %r, Actual: %r' % (expected, actual) test(3, part1(['+1', '-2', '+3', '+1'])) test(3, part1(['+1', '+1', '+1'])) test(0, part1(['+1', '+1', '-2'])) test(-6, part1(['-1', '-2', '-3'])) test(2, part2(['+1', '-2', '+3', '+1'])) test(0, part2(['+1', '-1'])) test(10, part2(['+3', '+3', '+4', '-2', '-4'])) test(5, part2(['-6', '+3', '+8', '+5', '-6'])) test(14, part2(['+7', '+7', '-2', '-7', '-4'])) # Solve real puzzle filename = 'data/day01.txt' data = [line.rstrip('\n') for line in open(filename, 'r')] print('Day 01, part 1: %r' % (part1(data))) print('Day 01, part 2: %r' % (part2(data)))
def part1(data): frequency = sum((int(x) for x in data)) return frequency def part2(data): known_frequency = {0: True} frequency = 0 while True: for x in data: frequency += int(x) if frequency in known_frequency: return frequency known_frequency[frequency] = True def test(expected, actual): assert expected == actual, 'Expected: %r, Actual: %r' % (expected, actual) test(3, part1(['+1', '-2', '+3', '+1'])) test(3, part1(['+1', '+1', '+1'])) test(0, part1(['+1', '+1', '-2'])) test(-6, part1(['-1', '-2', '-3'])) test(2, part2(['+1', '-2', '+3', '+1'])) test(0, part2(['+1', '-1'])) test(10, part2(['+3', '+3', '+4', '-2', '-4'])) test(5, part2(['-6', '+3', '+8', '+5', '-6'])) test(14, part2(['+7', '+7', '-2', '-7', '-4'])) filename = 'data/day01.txt' data = [line.rstrip('\n') for line in open(filename, 'r')] print('Day 01, part 1: %r' % part1(data)) print('Day 01, part 2: %r' % part2(data))
data_file = open('us_cities.txt', 'r') for line in data_file: city, population = line.split(':') # Tuple unpacking city = city.title() # Capitalize city names population = '{0:,}'.format(int(population)) # Add commas to numbers print(city.ljust(15) + population) data_file.close()
data_file = open('us_cities.txt', 'r') for line in data_file: (city, population) = line.split(':') city = city.title() population = '{0:,}'.format(int(population)) print(city.ljust(15) + population) data_file.close()
class Veiculo: def __init__(self, tipo) -> None: self.tipo = tipo self.propriedades = {} def get_propriedades(self): return self.propriedades def set_propriedades(self, cor: str, cambio: str, capacidade: int) -> None: self.propriedades = { 'cor': cor, 'cambio': cambio, 'capacidade': capacidade } def __str__(self) -> str: prop_str = ", ".join([str(valor) for valor in self.get_propriedades() .values()]) return f'{self.tipo}: {prop_str}' class Carro(Veiculo): def __init__(self, tipo) -> None: super().__init__(tipo) caminhao = Veiculo('caminhao') caminhao.set_propriedades('azul', 'manual', 6) carro = Carro('Sedan') carro.set_propriedades('azul', 'automatico', 5) kombi = Veiculo('kombi') kombi.set_propriedades('azul', 'manual', 12) veiculos = [caminhao, carro, kombi] def buscar_por_cor(cor: str) -> None: for veiculo in veiculos: if veiculo.get_propriedades()['cor'] == cor: print(veiculo) buscar_por_cor('azul')
class Veiculo: def __init__(self, tipo) -> None: self.tipo = tipo self.propriedades = {} def get_propriedades(self): return self.propriedades def set_propriedades(self, cor: str, cambio: str, capacidade: int) -> None: self.propriedades = {'cor': cor, 'cambio': cambio, 'capacidade': capacidade} def __str__(self) -> str: prop_str = ', '.join([str(valor) for valor in self.get_propriedades().values()]) return f'{self.tipo}: {prop_str}' class Carro(Veiculo): def __init__(self, tipo) -> None: super().__init__(tipo) caminhao = veiculo('caminhao') caminhao.set_propriedades('azul', 'manual', 6) carro = carro('Sedan') carro.set_propriedades('azul', 'automatico', 5) kombi = veiculo('kombi') kombi.set_propriedades('azul', 'manual', 12) veiculos = [caminhao, carro, kombi] def buscar_por_cor(cor: str) -> None: for veiculo in veiculos: if veiculo.get_propriedades()['cor'] == cor: print(veiculo) buscar_por_cor('azul')
turno = input("Qual perido voce estuda? V para vespertino, D para diurno ou N para noturno: ").upper() if turno == "V": print("Boa Tarde") elif turno == "D": print("Bom dia") elif turno == "N": print("Boav Noite") else: print("Entrada invalida")
turno = input('Qual perido voce estuda? V para vespertino, D para diurno ou N para noturno: ').upper() if turno == 'V': print('Boa Tarde') elif turno == 'D': print('Bom dia') elif turno == 'N': print('Boav Noite') else: print('Entrada invalida')
# # This file is part of snmpresponder software. # # Copyright (c) 2019, Ilya Etingof <[email protected]> # License: http://snmplabs.com/snmpresponder/license.html # def expandMacro(option, context): for k in context: pat = '${%s}' % k if option and '${' in option: option = option.replace(pat, str(context[k])) return option def expandMacros(options, context): options = list(options) for idx, option in enumerate(options): options[idx] = expandMacro(option, context) return options
def expand_macro(option, context): for k in context: pat = '${%s}' % k if option and '${' in option: option = option.replace(pat, str(context[k])) return option def expand_macros(options, context): options = list(options) for (idx, option) in enumerate(options): options[idx] = expand_macro(option, context) return options
#Cristian Chitiva #[email protected] #16/Sept/2018 class Cat: def __init__(self, name): self.name = name
class Cat: def __init__(self, name): self.name = name
class RestWriter(object): def __init__(self, file, report): self.file = file self.report = report def write(self, restsection): assert len(restsection) >= 3 for separator, collection1 in self.report: self.write_header(separator, restsection[0], 80) for distribution, collection2 in collection1: self.write_header(distribution, restsection[1], 50) for parameters, table in collection2: self.write_header(parameters, restsection[2], 40) self.file.write('\n') self.file.write(str(table)) def write_header(self, title, char, width = 80): f = self.file f.write('\n') f.write('\n') f.write("%s\n" % title) f.write(char * max(len(title), width)) f.write('\n')
class Restwriter(object): def __init__(self, file, report): self.file = file self.report = report def write(self, restsection): assert len(restsection) >= 3 for (separator, collection1) in self.report: self.write_header(separator, restsection[0], 80) for (distribution, collection2) in collection1: self.write_header(distribution, restsection[1], 50) for (parameters, table) in collection2: self.write_header(parameters, restsection[2], 40) self.file.write('\n') self.file.write(str(table)) def write_header(self, title, char, width=80): f = self.file f.write('\n') f.write('\n') f.write('%s\n' % title) f.write(char * max(len(title), width)) f.write('\n')
d = DiGraph(loops=True, multiedges=True, sparse=True) d.add_edges([(0, 0, 'a'), (0, 0, 'b'), (0, 1, 'c'), (0, 1, 'd'), (0, 1, 'e'), (0, 1, 'f'), (0, 1, 'f'), (2, 1, 'g'), (2, 2, 'h')]) GP = d.graphplot(vertex_size=100, edge_labels=True, color_by_label=True, edge_style='dashed') GP.set_edges(edge_style='solid') GP.set_edges(edge_color='black') sphinx_plot(GP)
d = di_graph(loops=True, multiedges=True, sparse=True) d.add_edges([(0, 0, 'a'), (0, 0, 'b'), (0, 1, 'c'), (0, 1, 'd'), (0, 1, 'e'), (0, 1, 'f'), (0, 1, 'f'), (2, 1, 'g'), (2, 2, 'h')]) gp = d.graphplot(vertex_size=100, edge_labels=True, color_by_label=True, edge_style='dashed') GP.set_edges(edge_style='solid') GP.set_edges(edge_color='black') sphinx_plot(GP)
class Pessoa: def __init__(self, nome): self.nome = nome @classmethod def outro_contrutor(cls, nome, sobrenome): cls.sobrenome = sobrenome return cls(nome) p = Pessoa('samuel') print(p.nome) p = Pessoa.outro_contrutor('saulo', 'nunes') print(p.sobrenome)
class Pessoa: def __init__(self, nome): self.nome = nome @classmethod def outro_contrutor(cls, nome, sobrenome): cls.sobrenome = sobrenome return cls(nome) p = pessoa('samuel') print(p.nome) p = Pessoa.outro_contrutor('saulo', 'nunes') print(p.sobrenome)
while True: print('-=-' * 6) n=float(input('Digite um valor (negativo para sair do programa): ')) if n<0: break print('-=-'*6) for c in range(1,11): print('\033[35m{:.0f} x {} = {:.0f}\033[m'.format(n,c,n*c)) print('\033[33mPrograma encerrado. Volte sempre!')
while True: print('-=-' * 6) n = float(input('Digite um valor (negativo para sair do programa): ')) if n < 0: break print('-=-' * 6) for c in range(1, 11): print('\x1b[35m{:.0f} x {} = {:.0f}\x1b[m'.format(n, c, n * c)) print('\x1b[33mPrograma encerrado. Volte sempre!')
n = int(input()) teams = [int(x) for x in input().split()] carrying = 0 for i in range(n): if teams[i] == 0 and carrying == 1: print("NO") exit() if teams[i] % 2 == 1: if carrying == 0: carrying = 1 else: carrying = 0 if carrying == 0: print("YES") else: print("NO")
n = int(input()) teams = [int(x) for x in input().split()] carrying = 0 for i in range(n): if teams[i] == 0 and carrying == 1: print('NO') exit() if teams[i] % 2 == 1: if carrying == 0: carrying = 1 else: carrying = 0 if carrying == 0: print('YES') else: print('NO')
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Midokura PTE LTD. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. 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. APPLICATION_OCTET_STREAM = "application/octet-stream" APPLICATION_JSON_V5 = "application/vnd.org.midonet.Application-v5+json" APPLICATION_ERROR_JSON = "application/vnd.org.midonet.Error-v1+json" APPLICATION_TENANT_JSON = "application/vnd.org.midonet.Tenant-v1+json" APPLICATION_TENANT_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Tenant-v1+json" APPLICATION_ROUTER_JSON = "application/vnd.org.midonet.Router-v3+json" APPLICATION_ROUTER_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Router-v3+json" APPLICATION_BRIDGE_JSON = "application/vnd.org.midonet.Bridge-v3+json" APPLICATION_BRIDGE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Bridge-v3+json" APPLICATION_HOST_JSON = "application/vnd.org.midonet.Host-v2+json" APPLICATION_HOST_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Host-v2+json" APPLICATION_INTERFACE_JSON = "application/vnd.org.midonet.Interface-v1+json" APPLICATION_INTERFACE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Interface-v1+json" APPLICATION_HOST_COMMAND_JSON = \ "application/vnd.org.midonet.HostCommand-v1+json" APPLICATION_HOST_COMMAND_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.HostCommand-v1+json" APPLICATION_PORT_LINK_JSON = "application/vnd.org.midonet.PortLink-v1+json" APPLICATION_ROUTE_JSON = "application/vnd.org.midonet.Route-v1+json" APPLICATION_ROUTE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Route-v1+json" APPLICATION_PORTGROUP_JSON = "application/vnd.org.midonet.PortGroup-v1+json" APPLICATION_PORTGROUP_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.PortGroup-v1+json" APPLICATION_PORTGROUP_PORT_JSON = \ "application/vnd.org.midonet.PortGroupPort-v1+json" APPLICATION_PORTGROUP_PORT_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.PortGroupPort-v1+json" APPLICATION_CHAIN_JSON = "application/vnd.org.midonet.Chain-v1+json" APPLICATION_CHAIN_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Chain-v1+json" APPLICATION_RULE_JSON = "application/vnd.org.midonet.Rule-v2+json" APPLICATION_RULE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Rule-v2+json" APPLICATION_BGP_JSON = "application/vnd.org.midonet.Bgp-v1+json" APPLICATION_BGP_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Bgp-v1+json" APPLICATION_AD_ROUTE_JSON = "application/vnd.org.midonet.AdRoute-v1+json" APPLICATION_AD_ROUTE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.AdRoute-v1+json" APPLICATION_BGP_NETWORK_JSON = "application/vnd.org.midonet.BgpNetwork-v1+json" APPLICATION_BGP_NETWORK_COLLECTION_JSON =\ "application/vnd.org.midonet.collection.BgpNetwork-v1+json" APPLICATION_BGP_PEER_JSON = "application/vnd.org.midonet.BgpPeer-v1+json" APPLICATION_BGP_PEER_COLLECTION_JSON =\ "application/vnd.org.midonet.collection.BgpPeer-v1+json" APPLICATION_VPN_JSON = "application/vnd.org.midonet.Vpn-v1+json" APPLICATION_VPN_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Vpn-v1+json" APPLICATION_DHCP_SUBNET_JSON = "application/vnd.org.midonet.DhcpSubnet-v2+json" APPLICATION_DHCP_SUBNET_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.DhcpSubnet-v2+json" APPLICATION_DHCP_HOST_JSON = "application/vnd.org.midonet.DhcpHost-v1+json" APPLICATION_DHCP_HOST_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.DhcpHost-v1+json" APPLICATION_DHCPV6_SUBNET_JSON = \ "application/vnd.org.midonet.DhcpV6Subnet-v1+json" APPLICATION_DHCPV6_SUBNET_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.DhcpV6Subnet-v1+json" APPLICATION_DHCPV6_HOST_JSON = "application/vnd.org.midonet.DhcpV6Host-v1+json" APPLICATION_DHCPV6_HOST_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.DhcpV6Host-v1+json" APPLICATION_MONITORING_QUERY_RESPONSE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.mgmt.MetricQueryResponse-v1+json" APPLICATION_MONITORING_QUERY_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.MetricQuery-v1+json" APPLICATION_METRICS_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Metric-v1+json" APPLICATION_METRIC_TARGET_JSON = \ "application/vnd.org.midonet.MetricTarget-v1+json" APPLICATION_TUNNEL_ZONE_JSON = "application/vnd.org.midonet.TunnelZone-v1+json" APPLICATION_TUNNEL_ZONE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.TunnelZone-v1+json" APPLICATION_TUNNEL_ZONE_HOST_JSON = \ "application/vnd.org.midonet.TunnelZoneHost-v1+json" APPLICATION_TUNNEL_ZONE_HOST_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.TunnelZoneHost-v1+json" APPLICATION_GRE_TUNNEL_ZONE_HOST_JSON = \ "application/vnd.org.midonet.GreTunnelZoneHost-v1+json" APPLICATION_GRE_TUNNEL_ZONE_HOST_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.GreTunnelZoneHost-v1+json" APPLICATION_HOST_INTERFACE_PORT_JSON = \ "application/vnd.org.midonet.HostInterfacePort-v1+json" APPLICATION_HOST_INTERFACE_PORT_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.HostInterfacePort-v1+json" APPLICATION_CONDITION_JSON = "application/vnd.org.midonet.Condition-v1+json" APPLICATION_CONDITION_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Condition-v1+json" APPLICATION_TRACE_JSON = "application/vnd.org.midonet.Trace-v1+json" APPLICATION_TRACE_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Trace-v1+json" APPLICATION_WRITE_VERSION_JSON = \ "application/vnd.org.midonet.WriteVersion-v1+json" APPLICATION_SYSTEM_STATE_JSON = \ "application/vnd.org.midonet.SystemState-v2+json" APPLICATION_HOST_VERSION_JSON = \ "application/vnd.org.midonet.HostVersion-v1+json" # Port media types APPLICATION_PORT_JSON = "application/vnd.org.midonet.Port-v2+json" APPLICATION_PORT_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Port-v2+json" APPLICATION_IP_ADDR_GROUP_JSON = \ "application/vnd.org.midonet.IpAddrGroup-v1+json" APPLICATION_IP_ADDR_GROUP_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.IpAddrGroup-v1+json" APPLICATION_IP_ADDR_GROUP_ADDR_JSON = \ "application/vnd.org.midonet.IpAddrGroupAddr-v1+json" APPLICATION_IP_ADDR_GROUP_ADDR_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.IpAddrGroupAddr-v1+json" # L4LB media types APPLICATION_LOAD_BALANCER_JSON = \ "application/vnd.org.midonet.LoadBalancer-v1+json" APPLICATION_LOAD_BALANCER_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.LoadBalancer-v1+json" APPLICATION_VIP_JSON = "application/vnd.org.midonet.VIP-v1+json" APPLICATION_VIP_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.VIP-v1+json" APPLICATION_POOL_JSON = "application/vnd.org.midonet.Pool-v1+json" APPLICATION_POOL_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.Pool-v1+json" APPLICATION_POOL_MEMBER_JSON = "application/vnd.org.midonet.PoolMember-v1+json" APPLICATION_POOL_MEMBER_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.PoolMember-v1+json" APPLICATION_HEALTH_MONITOR_JSON = \ "application/vnd.org.midonet.HealthMonitor-v1+json" APPLICATION_HEALTH_MONITOR_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.HealthMonitor-v1+json" APPLICATION_POOL_STATISTIC_JSON = \ "application/vnd.org.midonet.PoolStatistic-v1+json" APPLICATION_POOL_STATISTIC_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.PoolStatistic-v1+json" # VxGW APPLICATION_VTEP_JSON = "application/vnd.org.midonet.VTEP-v1+json" APPLICATION_VTEP_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.VTEP-v1+json" APPLICATION_VTEP_BINDING_JSON = \ "application/vnd.org.midonet.VTEPBinding-v1+json" APPLICATION_VTEP_BINDING_COLLECTION_JSON = \ "application/vnd.org.midonet.collection.VTEPBinding-v1+json"
application_octet_stream = 'application/octet-stream' application_json_v5 = 'application/vnd.org.midonet.Application-v5+json' application_error_json = 'application/vnd.org.midonet.Error-v1+json' application_tenant_json = 'application/vnd.org.midonet.Tenant-v1+json' application_tenant_collection_json = 'application/vnd.org.midonet.collection.Tenant-v1+json' application_router_json = 'application/vnd.org.midonet.Router-v3+json' application_router_collection_json = 'application/vnd.org.midonet.collection.Router-v3+json' application_bridge_json = 'application/vnd.org.midonet.Bridge-v3+json' application_bridge_collection_json = 'application/vnd.org.midonet.collection.Bridge-v3+json' application_host_json = 'application/vnd.org.midonet.Host-v2+json' application_host_collection_json = 'application/vnd.org.midonet.collection.Host-v2+json' application_interface_json = 'application/vnd.org.midonet.Interface-v1+json' application_interface_collection_json = 'application/vnd.org.midonet.collection.Interface-v1+json' application_host_command_json = 'application/vnd.org.midonet.HostCommand-v1+json' application_host_command_collection_json = 'application/vnd.org.midonet.collection.HostCommand-v1+json' application_port_link_json = 'application/vnd.org.midonet.PortLink-v1+json' application_route_json = 'application/vnd.org.midonet.Route-v1+json' application_route_collection_json = 'application/vnd.org.midonet.collection.Route-v1+json' application_portgroup_json = 'application/vnd.org.midonet.PortGroup-v1+json' application_portgroup_collection_json = 'application/vnd.org.midonet.collection.PortGroup-v1+json' application_portgroup_port_json = 'application/vnd.org.midonet.PortGroupPort-v1+json' application_portgroup_port_collection_json = 'application/vnd.org.midonet.collection.PortGroupPort-v1+json' application_chain_json = 'application/vnd.org.midonet.Chain-v1+json' application_chain_collection_json = 'application/vnd.org.midonet.collection.Chain-v1+json' application_rule_json = 'application/vnd.org.midonet.Rule-v2+json' application_rule_collection_json = 'application/vnd.org.midonet.collection.Rule-v2+json' application_bgp_json = 'application/vnd.org.midonet.Bgp-v1+json' application_bgp_collection_json = 'application/vnd.org.midonet.collection.Bgp-v1+json' application_ad_route_json = 'application/vnd.org.midonet.AdRoute-v1+json' application_ad_route_collection_json = 'application/vnd.org.midonet.collection.AdRoute-v1+json' application_bgp_network_json = 'application/vnd.org.midonet.BgpNetwork-v1+json' application_bgp_network_collection_json = 'application/vnd.org.midonet.collection.BgpNetwork-v1+json' application_bgp_peer_json = 'application/vnd.org.midonet.BgpPeer-v1+json' application_bgp_peer_collection_json = 'application/vnd.org.midonet.collection.BgpPeer-v1+json' application_vpn_json = 'application/vnd.org.midonet.Vpn-v1+json' application_vpn_collection_json = 'application/vnd.org.midonet.collection.Vpn-v1+json' application_dhcp_subnet_json = 'application/vnd.org.midonet.DhcpSubnet-v2+json' application_dhcp_subnet_collection_json = 'application/vnd.org.midonet.collection.DhcpSubnet-v2+json' application_dhcp_host_json = 'application/vnd.org.midonet.DhcpHost-v1+json' application_dhcp_host_collection_json = 'application/vnd.org.midonet.collection.DhcpHost-v1+json' application_dhcpv6_subnet_json = 'application/vnd.org.midonet.DhcpV6Subnet-v1+json' application_dhcpv6_subnet_collection_json = 'application/vnd.org.midonet.collection.DhcpV6Subnet-v1+json' application_dhcpv6_host_json = 'application/vnd.org.midonet.DhcpV6Host-v1+json' application_dhcpv6_host_collection_json = 'application/vnd.org.midonet.collection.DhcpV6Host-v1+json' application_monitoring_query_response_collection_json = 'application/vnd.org.midonet.collection.mgmt.MetricQueryResponse-v1+json' application_monitoring_query_collection_json = 'application/vnd.org.midonet.collection.MetricQuery-v1+json' application_metrics_collection_json = 'application/vnd.org.midonet.collection.Metric-v1+json' application_metric_target_json = 'application/vnd.org.midonet.MetricTarget-v1+json' application_tunnel_zone_json = 'application/vnd.org.midonet.TunnelZone-v1+json' application_tunnel_zone_collection_json = 'application/vnd.org.midonet.collection.TunnelZone-v1+json' application_tunnel_zone_host_json = 'application/vnd.org.midonet.TunnelZoneHost-v1+json' application_tunnel_zone_host_collection_json = 'application/vnd.org.midonet.collection.TunnelZoneHost-v1+json' application_gre_tunnel_zone_host_json = 'application/vnd.org.midonet.GreTunnelZoneHost-v1+json' application_gre_tunnel_zone_host_collection_json = 'application/vnd.org.midonet.collection.GreTunnelZoneHost-v1+json' application_host_interface_port_json = 'application/vnd.org.midonet.HostInterfacePort-v1+json' application_host_interface_port_collection_json = 'application/vnd.org.midonet.collection.HostInterfacePort-v1+json' application_condition_json = 'application/vnd.org.midonet.Condition-v1+json' application_condition_collection_json = 'application/vnd.org.midonet.collection.Condition-v1+json' application_trace_json = 'application/vnd.org.midonet.Trace-v1+json' application_trace_collection_json = 'application/vnd.org.midonet.collection.Trace-v1+json' application_write_version_json = 'application/vnd.org.midonet.WriteVersion-v1+json' application_system_state_json = 'application/vnd.org.midonet.SystemState-v2+json' application_host_version_json = 'application/vnd.org.midonet.HostVersion-v1+json' application_port_json = 'application/vnd.org.midonet.Port-v2+json' application_port_collection_json = 'application/vnd.org.midonet.collection.Port-v2+json' application_ip_addr_group_json = 'application/vnd.org.midonet.IpAddrGroup-v1+json' application_ip_addr_group_collection_json = 'application/vnd.org.midonet.collection.IpAddrGroup-v1+json' application_ip_addr_group_addr_json = 'application/vnd.org.midonet.IpAddrGroupAddr-v1+json' application_ip_addr_group_addr_collection_json = 'application/vnd.org.midonet.collection.IpAddrGroupAddr-v1+json' application_load_balancer_json = 'application/vnd.org.midonet.LoadBalancer-v1+json' application_load_balancer_collection_json = 'application/vnd.org.midonet.collection.LoadBalancer-v1+json' application_vip_json = 'application/vnd.org.midonet.VIP-v1+json' application_vip_collection_json = 'application/vnd.org.midonet.collection.VIP-v1+json' application_pool_json = 'application/vnd.org.midonet.Pool-v1+json' application_pool_collection_json = 'application/vnd.org.midonet.collection.Pool-v1+json' application_pool_member_json = 'application/vnd.org.midonet.PoolMember-v1+json' application_pool_member_collection_json = 'application/vnd.org.midonet.collection.PoolMember-v1+json' application_health_monitor_json = 'application/vnd.org.midonet.HealthMonitor-v1+json' application_health_monitor_collection_json = 'application/vnd.org.midonet.collection.HealthMonitor-v1+json' application_pool_statistic_json = 'application/vnd.org.midonet.PoolStatistic-v1+json' application_pool_statistic_collection_json = 'application/vnd.org.midonet.collection.PoolStatistic-v1+json' application_vtep_json = 'application/vnd.org.midonet.VTEP-v1+json' application_vtep_collection_json = 'application/vnd.org.midonet.collection.VTEP-v1+json' application_vtep_binding_json = 'application/vnd.org.midonet.VTEPBinding-v1+json' application_vtep_binding_collection_json = 'application/vnd.org.midonet.collection.VTEPBinding-v1+json'
def clean_gdp(gdp): # get needed columns from gdplev excel file columns_to_keep = ['Unnamed: 4', 'Unnamed: 5', 'Unnamed: 6'] gdp = gdp[columns_to_keep] gdp.columns = ['Quarter', 'GDP Current', 'GDP Chained'] gdp = gdp[~gdp['Quarter'].isnull()] # only keep data from 2000 onwards gdp = gdp[gdp['Quarter'].str.startswith('2')] gdp.reset_index(drop = True, inplace = True) # create column to compare GDP change from quarter to quarter gdp['GDP Change'] = gdp['GDP Current'] - gdp['GDP Current'].shift(1) return gdp def get_recession_start(gdp): '''Returns the year and quarter of the recession start time as a string value in a format such as 2005q3 ''' # look for two successive quarters with negative change in GDP start_qtr = '' for j in range(1,len(gdp)-1): if gdp.iloc[j]['GDP Change']<0 and gdp.iloc[j-1]['GDP Change']<0: start_qtr = gdp.iloc[j-2]['Quarter'] break return start_qtr def get_recession_end(gdp, rec_start): '''Returns the year and quarter of the recession end time as a string value in a format such as 2005q3 ''' # start at the beginning of the recession rec_start_ix = gdp.Quarter[gdp.Quarter == rec_start].index.tolist()[0] end_qtr = '' # look for 2 successive quarters of increasing GDP for j in range(rec_start_ix,len(gdp)-1): if gdp.iloc[j]['GDP Change']>0 and gdp.iloc[j+1]['GDP Change']>0: end_qtr = gdp.iloc[j+1]['Quarter'] break return end_qtr def get_recession_bottom(gdp, rec_start, rec_end): '''Returns the year and quarter of the recession bottom time as a string value in a format such as 2005q3 ''' # get index locations of recession start and end rec_start_ix = gdp.Quarter[gdp.Quarter == rec_start].index.tolist()[0] rec_end_ix = gdp.Quarter[gdp.Quarter == rec_end].index.tolist()[0] gdp['GDP Current'] = gdp['GDP Current'].astype(float).fillna(0.0) bottom_qtr = '' lowest_gdp = gdp.iloc[rec_start_ix]['GDP Current'] # look for 2 successive quarters of increasing GDP for j in range(rec_start_ix, rec_end_ix): if gdp.iloc[j]['GDP Current'] < lowest_gdp: bottom_qtr = gdp.iloc[j]['Quarter'] lowest_gdp = gdp.iloc[j]['GDP Current'] return bottom_qtr
def clean_gdp(gdp): columns_to_keep = ['Unnamed: 4', 'Unnamed: 5', 'Unnamed: 6'] gdp = gdp[columns_to_keep] gdp.columns = ['Quarter', 'GDP Current', 'GDP Chained'] gdp = gdp[~gdp['Quarter'].isnull()] gdp = gdp[gdp['Quarter'].str.startswith('2')] gdp.reset_index(drop=True, inplace=True) gdp['GDP Change'] = gdp['GDP Current'] - gdp['GDP Current'].shift(1) return gdp def get_recession_start(gdp): """Returns the year and quarter of the recession start time as a string value in a format such as 2005q3 """ start_qtr = '' for j in range(1, len(gdp) - 1): if gdp.iloc[j]['GDP Change'] < 0 and gdp.iloc[j - 1]['GDP Change'] < 0: start_qtr = gdp.iloc[j - 2]['Quarter'] break return start_qtr def get_recession_end(gdp, rec_start): """Returns the year and quarter of the recession end time as a string value in a format such as 2005q3 """ rec_start_ix = gdp.Quarter[gdp.Quarter == rec_start].index.tolist()[0] end_qtr = '' for j in range(rec_start_ix, len(gdp) - 1): if gdp.iloc[j]['GDP Change'] > 0 and gdp.iloc[j + 1]['GDP Change'] > 0: end_qtr = gdp.iloc[j + 1]['Quarter'] break return end_qtr def get_recession_bottom(gdp, rec_start, rec_end): """Returns the year and quarter of the recession bottom time as a string value in a format such as 2005q3 """ rec_start_ix = gdp.Quarter[gdp.Quarter == rec_start].index.tolist()[0] rec_end_ix = gdp.Quarter[gdp.Quarter == rec_end].index.tolist()[0] gdp['GDP Current'] = gdp['GDP Current'].astype(float).fillna(0.0) bottom_qtr = '' lowest_gdp = gdp.iloc[rec_start_ix]['GDP Current'] for j in range(rec_start_ix, rec_end_ix): if gdp.iloc[j]['GDP Current'] < lowest_gdp: bottom_qtr = gdp.iloc[j]['Quarter'] lowest_gdp = gdp.iloc[j]['GDP Current'] return bottom_qtr
# Can be used in the test data like ${MyObject()} or ${MyObject(1)} class MyObject: def __init__(self, index=''): self.index = index def __str__(self): return '<MyObject%s>' % self.index UNICODE = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. ' u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!') LIST_WITH_OBJECTS = [MyObject(1), MyObject(2)] NESTED_LIST = [ [True, False], [[1, None, MyObject(), {}]] ] NESTED_TUPLE = ( (True, False), [(1, None, MyObject(), {})] ) DICT_WITH_OBJECTS = {'As value': MyObject(1), MyObject(2): 'As key'} NESTED_DICT = { 1: {None: False}, 2: {'A': {'n': None}, 'B': {'o': MyObject(), 'e': {}}} }
class Myobject: def __init__(self, index=''): self.index = index def __str__(self): return '<MyObject%s>' % self.index unicode = u'Hyvää yötä. Спасибо!' list_with_objects = [my_object(1), my_object(2)] nested_list = [[True, False], [[1, None, my_object(), {}]]] nested_tuple = ((True, False), [(1, None, my_object(), {})]) dict_with_objects = {'As value': my_object(1), my_object(2): 'As key'} nested_dict = {1: {None: False}, 2: {'A': {'n': None}, 'B': {'o': my_object(), 'e': {}}}}
def Fibonacci(n): # Check if input is 0 then it will # print incorrect input if n < 0: print("Incorrect input") # Check if n is 0 # then it will return 0 elif n == 0: return 0 # Check if n is 1,2 # it will return 1 elif n == 1 or n == 2: return 1 else: return Fibonacci(n-1) + Fibonacci(n-2) # Driver Program print(Fibonacci(40))
def fibonacci(n): if n < 0: print('Incorrect input') elif n == 0: return 0 elif n == 1 or n == 2: return 1 else: return fibonacci(n - 1) + fibonacci(n - 2) print(fibonacci(40))
for t in range(int(input())): a,b = input().split() cnt1,cnt2 = 0,0 for i in range(len(a)): if a[i] != b[i]: if b[i] == '0': cnt1+=1 else: cnt2+=1 print(max(cnt1,cnt2))
for t in range(int(input())): (a, b) = input().split() (cnt1, cnt2) = (0, 0) for i in range(len(a)): if a[i] != b[i]: if b[i] == '0': cnt1 += 1 else: cnt2 += 1 print(max(cnt1, cnt2))