content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
"""Parsing Destinations from phone numbers. Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ def parse_destination(phone_number, destinations): """Find the matching destination for a phone number. Args: phone_number: a string number with no leading '+' destinations: a list of Destination instances Returns: a Destination instance or None if the prefix wasn't found. """ # Get all the prefixes. prefixes = [d.prefix for d in destinations] # The longest possible prefix is four digits, so we'll start with that as a # guess. possible_prefix = phone_number[0:4] while possible_prefix: if possible_prefix in prefixes: index = prefixes.index(possible_prefix) return destinations[index] else: # Pop off the last number and try again. possible_prefix = possible_prefix[0:-1] # Prefix not found. return None
"""Parsing Destinations from phone numbers. Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ def parse_destination(phone_number, destinations): """Find the matching destination for a phone number. Args: phone_number: a string number with no leading '+' destinations: a list of Destination instances Returns: a Destination instance or None if the prefix wasn't found. """ prefixes = [d.prefix for d in destinations] possible_prefix = phone_number[0:4] while possible_prefix: if possible_prefix in prefixes: index = prefixes.index(possible_prefix) return destinations[index] else: possible_prefix = possible_prefix[0:-1] return None
# 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]
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Migrations Utility Module. Place here your migration helpers that is shared among number of migrations. """
""" Migrations Utility Module. Place here your migration helpers that is shared among number of migrations. """
# 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
# Implement the function interval_intersection below. # You can define other functions if it helps you decompose and solve # the problem. # Do not import any module that you do not use! # Remember that if this were an exam problem, in order to be marked # this file must meet certain requirements: # - it must contain ONLY syntactically valid python code (any syntax # or indentation error that stops the file from running would result # in a mark of zero); # - you MAY NOT use global variables; the function must use only the # input provided to it in its arguments. def interval_intersection(lA, uA, lB, uB): if (lB >= lA and lB <= uA): if uB < uA: return uB - lB else: return uA - lB elif (lA >= lB and lA <= uB): if uA < uB: return uA - lA else: return uB - lA return 0 def test_interval_intersection(): """ This function runs a number of tests of the interval_intersection function. If it works ok, you will just see the output ("all tests passed") at the end when you call this function; if some test fails, there will be an error message. """ assert interval_intersection(0, 2, 4, 7.5) == 0.0, "no intersection (uA < lB)" assert interval_intersection(1, 3, 2.5, 6) == 0.5, "intersection is [2.5, 3]" assert interval_intersection(1, 3, 1.5, 5) == 1.5, "intersection is [1.5, 3]" assert interval_intersection(0, 2, -2, 1.5) == 1.5, "intersection is [0, 1.5]" assert interval_intersection(1, 3, 0, 3.5) == 2.0, "A is contained in B" assert interval_intersection(1.5, 3.5, 0, 3.5) == 2.0, "A is contained in B" print("all tests passed")
def interval_intersection(lA, uA, lB, uB): if lB >= lA and lB <= uA: if uB < uA: return uB - lB else: return uA - lB elif lA >= lB and lA <= uB: if uA < uB: return uA - lA else: return uB - lA return 0 def test_interval_intersection(): """ This function runs a number of tests of the interval_intersection function. If it works ok, you will just see the output ("all tests passed") at the end when you call this function; if some test fails, there will be an error message. """ assert interval_intersection(0, 2, 4, 7.5) == 0.0, 'no intersection (uA < lB)' assert interval_intersection(1, 3, 2.5, 6) == 0.5, 'intersection is [2.5, 3]' assert interval_intersection(1, 3, 1.5, 5) == 1.5, 'intersection is [1.5, 3]' assert interval_intersection(0, 2, -2, 1.5) == 1.5, 'intersection is [0, 1.5]' assert interval_intersection(1, 3, 0, 3.5) == 2.0, 'A is contained in B' assert interval_intersection(1.5, 3.5, 0, 3.5) == 2.0, 'A is contained in B' print('all tests passed')
# Copyright 2019 Google Inc. 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. """Define metadata constants.""" LABEL_COLUMN = 'labelArray' KEY_COLUMN = 'fullVisitorId' # columns to omit from model features NON_FEATURE_COLUMNS = [LABEL_COLUMN, KEY_COLUMN] NUM_INTERVALS = 4 # number of bounded churn duration intervals SEED = 123
"""Define metadata constants.""" label_column = 'labelArray' key_column = 'fullVisitorId' non_feature_columns = [LABEL_COLUMN, KEY_COLUMN] num_intervals = 4 seed = 123
def distance(str1: str, str2: str) -> float: """ The Levenshtein distance is a string metric for measuring the difference between two sequences. It is calculated as the minimum number of single-character edits necessary to transform one string into another """ n, m = len(str1), len(str2) if n > m: str1, str2 = str2, str1 n, m = m, n current_row = range(n + 1) for i in range(1, m + 1): previous_row, current_row = current_row, [i] + [0] * n for j in range(1, n + 1): add, delete, change = previous_row[j] + 1, current_row[j - 1] + 1, previous_row[j - 1] if str1[j - 1] != str2[i - 1]: change += 1 current_row[j] = min(add, delete, change) return current_row[n]
def distance(str1: str, str2: str) -> float: """ The Levenshtein distance is a string metric for measuring the difference between two sequences. It is calculated as the minimum number of single-character edits necessary to transform one string into another """ (n, m) = (len(str1), len(str2)) if n > m: (str1, str2) = (str2, str1) (n, m) = (m, n) current_row = range(n + 1) for i in range(1, m + 1): (previous_row, current_row) = (current_row, [i] + [0] * n) for j in range(1, n + 1): (add, delete, change) = (previous_row[j] + 1, current_row[j - 1] + 1, previous_row[j - 1]) if str1[j - 1] != str2[i - 1]: change += 1 current_row[j] = min(add, delete, change) return current_row[n]
#!/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}')
# ~/dev/py/fieldz/littleBigTest.py """ This has been hacked down from bigTest.py by eliminating field types that we can't handle yet. """ LITTLE_BIG_PROTO_SPEC = """ protocol org.xlattice.fieldz.test.littleBigProto message bigTestMsg: # required fields, unnumbered vBoolReqField vbool vEnumReqField venum vuInt32ReqField vuint32 vuInt64ReqField vuint64 vsInt32ReqField vsint32 vsInt64ReqField vsint64 #vuInt32ReqField vuint32 # MAYBE NEVER #vuInt64ReqField vuint64 # --ditto-- fsInt32ReqField fsint32 fuInt32ReqField fuint32 fFloatReqField ffloat fsInt64ReqField fsint64 fuInt64ReqField fuint64 fDoubleReqField fdouble lStringReqField lstring lBytesReqField lbytes #lMsgReqField lmsg # NOT YET fBytes16ReqField fbytes16 fBytes20ReqField fbytes20 fBytes32ReqField fbytes32 # Can't handle ANY optional (?), star (*), and plus (+) types. """
""" This has been hacked down from bigTest.py by eliminating field types that we can't handle yet. """ little_big_proto_spec = "\nprotocol org.xlattice.fieldz.test.littleBigProto\n\nmessage bigTestMsg:\n # required fields, unnumbered\n vBoolReqField vbool\n vEnumReqField venum\n vuInt32ReqField vuint32\n vuInt64ReqField vuint64\n vsInt32ReqField vsint32\n vsInt64ReqField vsint64\n #vuInt32ReqField vuint32 # MAYBE NEVER\n #vuInt64ReqField vuint64 # --ditto--\n fsInt32ReqField fsint32\n fuInt32ReqField fuint32\n fFloatReqField ffloat\n fsInt64ReqField fsint64\n fuInt64ReqField fuint64\n fDoubleReqField fdouble\n lStringReqField lstring\n lBytesReqField lbytes\n #lMsgReqField lmsg # NOT YET\n fBytes16ReqField fbytes16\n fBytes20ReqField fbytes20\n fBytes32ReqField fbytes32\n\n# Can't handle ANY optional (?), star (*), and plus (+) types.\n"
"""p2 server constants""" # Matches full Request Path, starting with leading slash TAG_SERVE_MATCH_PATH = 'serve.p2.io/match/path' # Matches relative Request Path, without leading slash TAG_SERVE_MATCH_PATH_RELATIVE = 'serve.p2.io/match/path/relative' # Matches request Hostname TAG_SERVE_MATCH_HOST = 'serve.p2.io/match/host' # Match any Header mentioned here # https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest.META # e.g. serve.p2.io/match/meta/HTTP_USER_AGENT TAG_SERVE_MATCH_META = 'serve.p2.io/match/meta/'
"""p2 server constants""" tag_serve_match_path = 'serve.p2.io/match/path' tag_serve_match_path_relative = 'serve.p2.io/match/path/relative' tag_serve_match_host = 'serve.p2.io/match/host' tag_serve_match_meta = 'serve.p2.io/match/meta/'
#!/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 """
# -*- coding: utf-8 -*- """Classes for AWS accounts.""" # import boto3 # from botocore.exceptions import ClientError class OrgAccount: """Manage AWS Accounts from AWS Organizations.""" def __init__(self, SESSION): """Create an OrgAccount object.""" self.session = SESSION self.org = self.session.client('organizations') def get_accounts(self): """Get child accounts for current profile.""" accounts = [] response = self.org.list_accounts() for account in response['Accounts']: accounts = accounts + [{'AccountId': account['Id'], 'AccountName': account['Name']}] while not (response.get('NextToken',None) is None): response = self.org.list_accounts(NextToken=response['NextToken']) for account in response['Accounts']: accounts = accounts + [{'AccountId': account['Id'], 'AccountName': account['Name']}] return accounts
"""Classes for AWS accounts.""" class Orgaccount: """Manage AWS Accounts from AWS Organizations.""" def __init__(self, SESSION): """Create an OrgAccount object.""" self.session = SESSION self.org = self.session.client('organizations') def get_accounts(self): """Get child accounts for current profile.""" accounts = [] response = self.org.list_accounts() for account in response['Accounts']: accounts = accounts + [{'AccountId': account['Id'], 'AccountName': account['Name']}] while not response.get('NextToken', None) is None: response = self.org.list_accounts(NextToken=response['NextToken']) for account in response['Accounts']: accounts = accounts + [{'AccountId': account['Id'], 'AccountName': account['Name']}] return accounts
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: support@enterasys.com 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: support@enterasys.com 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(object): def maxProduct(self, words): """ :type words: List[str] :rtype: int """ bitmap = [0] * len(words) mask = 0x01 ans = 0 for i in xrange(0, len(words)): word = words[i] for c in word: bitmap[i] |= (mask << (ord(c) - ord('a'))) for i in xrange(0, len(words)): for j in xrange(0, i): if bitmap[i] & bitmap[j] == 0: ans = max(ans, len(words[i]) * len(words[j])) return ans
class Solution(object): def max_product(self, words): """ :type words: List[str] :rtype: int """ bitmap = [0] * len(words) mask = 1 ans = 0 for i in xrange(0, len(words)): word = words[i] for c in word: bitmap[i] |= mask << ord(c) - ord('a') for i in xrange(0, len(words)): for j in xrange(0, i): if bitmap[i] & bitmap[j] == 0: ans = max(ans, len(words[i]) * len(words[j])) return ans
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='')
# Authors: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # License: BSD (3-clause) class Bunch(dict): """ Container object for datasets: dictionnary-like object that exposes its keys as attributes. """ def __init__(self, **kwargs): dict.__init__(self, kwargs) self.__dict__ = self FIFF = Bunch() # # Blocks # FIFF.FIFFB_MEAS = 100 FIFF.FIFFB_MEAS_INFO = 101 FIFF.FIFFB_RAW_DATA = 102 FIFF.FIFFB_PROCESSED_DATA = 103 FIFF.FIFFB_CONTINUOUS_DATA = 112 FIFF.FIFFB_EVOKED = 104 FIFF.FIFFB_ASPECT = 105 FIFF.FIFFB_SUBJECT = 106 FIFF.FIFFB_ISOTRAK = 107 FIFF.FIFFB_HPI_MEAS = 108 FIFF.FIFFB_HPI_RESULT = 109 FIFF.FIFFB_DACQ_PARS = 117 FIFF.FIFFB_REF = 118 FIFF.FIFFB_SMSH_RAW_DATA = 119 FIFF.FIFFB_SMSH_ASPECT = 120 FIFF.FIFFB_PROJ = 313 FIFF.FIFFB_PROJ_ITEM = 314 FIFF.FIFFB_MRI = 200 FIFF.FIFFB_MRI_SET = 201 FIFF.FIFFB_MRI_SLICE = 202 FIFF.FIFFB_PROCESSING_HISTORY = 900 FIFF.FIFFB_SSS_INFO = 502 FIFF.FIFFB_SSS_CAL_ADJUST = 503 FIFF.FIFFB_SSS_ST_INFO = 504 FIFF.FIFFB_SSS_BASES = 505 # # Of general interest # FIFF.FIFF_FILE_ID = 100 FIFF.FIFF_DIR_POINTER = 101 FIFF.FIFF_BLOCK_ID = 103 FIFF.FIFF_BLOCK_START = 104 FIFF.FIFF_BLOCK_END = 105 FIFF.FIFF_FREE_LIST = 106 FIFF.FIFF_FREE_BLOCK = 107 FIFF.FIFF_NOP = 108 FIFF.FIFF_PARENT_FILE_ID = 109 FIFF.FIFF_PARENT_BLOCK_ID = 110 # # Megacq saves the parameters in these tags # FIFF.FIFF_DACQ_PARS = 150 FIFF.FIFF_DACQ_STIM = 151 FIFF.FIFF_SFREQ = 201 FIFF.FIFF_NCHAN = 200 FIFF.FIFF_DATA_PACK = 202 FIFF.FIFF_CH_INFO = 203 FIFF.FIFF_MEAS_DATE = 204 FIFF.FIFF_SUBJECT = 205 FIFF.FIFF_COMMENT = 206 FIFF.FIFF_NAVE = 207 FIFF.FIFF_DIG_POINT = 213 FIFF.FIFF_LOWPASS = 219 FIFF.FIFF_COORD_TRANS = 222 FIFF.FIFF_HIGHPASS = 223 FIFF.FIFF_NAME = 233 FIFF.FIFF_DESCRIPTION = FIFF.FIFF_COMMENT # # Pointers # FIFF.FIFFV_NEXT_SEQ = 0 FIFF.FIFFV_NEXT_NONE = -1 # # Channel types # FIFF.FIFFV_MEG_CH = 1 FIFF.FIFFV_REF_MEG_CH = 301 FIFF.FIFFV_EEG_CH = 2 FIFF.FIFFV_MCG_CH = 201 FIFF.FIFFV_STIM_CH = 3 FIFF.FIFFV_EOG_CH = 202 FIFF.FIFFV_EMG_CH = 302 FIFF.FIFFV_ECG_CH = 402 FIFF.FIFFV_MISC_CH = 502 FIFF.FIFFV_RESP_CH = 602 # Respiration monitoring # # Quaternion channels for head position monitoring # FIFF.FIFFV_QUAT_0 = 700 # Quaternion param q0 obsolete for unit quaternion FIFF.FIFFV_QUAT_1 = 701 # Quaternion param q1 rotation FIFF.FIFFV_QUAT_2 = 702 # Quaternion param q2 rotation FIFF.FIFFV_QUAT_3 = 703 # Quaternion param q3 rotation FIFF.FIFFV_QUAT_4 = 704 # Quaternion param q4 translation FIFF.FIFFV_QUAT_5 = 705 # Quaternion param q5 translation FIFF.FIFFV_QUAT_6 = 706 # Quaternion param q6 translation FIFF.FIFFV_HPI_G = 707 # Goodness-of-fit in continuous hpi FIFF.FIFFV_HPI_ERR = 708 # Estimation error in continuous hpi FIFF.FIFFV_HPI_MOV = 709 # Estimated head movement speed in continuous hpi # # Coordinate frames # FIFF.FIFFV_COORD_UNKNOWN = 0 FIFF.FIFFV_COORD_DEVICE = 1 FIFF.FIFFV_COORD_ISOTRAK = 2 FIFF.FIFFV_COORD_HPI = 3 FIFF.FIFFV_COORD_HEAD = 4 FIFF.FIFFV_COORD_MRI = 5 FIFF.FIFFV_COORD_MRI_SLICE = 6 FIFF.FIFFV_COORD_MRI_DISPLAY = 7 FIFF.FIFFV_COORD_DICOM_DEVICE = 8 FIFF.FIFFV_COORD_IMAGING_DEVICE = 9 # # Needed for raw and evoked-response data # FIFF.FIFF_FIRST_SAMPLE = 208 FIFF.FIFF_LAST_SAMPLE = 209 FIFF.FIFF_ASPECT_KIND = 210 FIFF.FIFF_DATA_BUFFER = 300 # Buffer containing measurement data FIFF.FIFF_DATA_SKIP = 301 # Data skip in buffers FIFF.FIFF_EPOCH = 302 # Buffer containing one epoch and channel FIFF.FIFF_DATA_SKIP_SAMP = 303 # Data skip in samples # # Different aspects of data # FIFF.FIFFV_ASPECT_AVERAGE = 100 # Normal average of epochs FIFF.FIFFV_ASPECT_STD_ERR = 101 # Std. error of mean FIFF.FIFFV_ASPECT_SINGLE = 102 # Single epoch cut out from the continuous data FIFF.FIFFV_ASPECT_SUBAVERAGE = 103 FIFF.FIFFV_ASPECT_ALTAVERAGE = 104 # Alternating subaverage FIFF.FIFFV_ASPECT_SAMPLE = 105 # A sample cut out by graph FIFF.FIFFV_ASPECT_POWER_DENSITY = 106 # Power density spectrum FIFF.FIFFV_ASPECT_DIPOLE_WAVE = 200 # Dipole amplitude curve # # BEM surface IDs # FIFF.FIFFV_BEM_SURF_ID_UNKNOWN = -1 FIFF.FIFFV_BEM_SURF_ID_BRAIN = 1 FIFF.FIFFV_BEM_SURF_ID_SKULL = 3 FIFF.FIFFV_BEM_SURF_ID_HEAD = 4 # # More of those defined in MNE # FIFF.FIFFV_MNE_SURF_UNKNOWN = -1 FIFF.FIFFV_MNE_SURF_LEFT_HEMI = 101 FIFF.FIFFV_MNE_SURF_RIGHT_HEMI = 102 # # These relate to the Isotrak data # FIFF.FIFFV_POINT_CARDINAL = 1 FIFF.FIFFV_POINT_HPI = 2 FIFF.FIFFV_POINT_EEG = 3 FIFF.FIFFV_POINT_ECG = FIFF.FIFFV_POINT_EEG FIFF.FIFFV_POINT_EXTRA = 4 FIFF.FIFFV_POINT_LPA = 1 FIFF.FIFFV_POINT_NASION = 2 FIFF.FIFFV_POINT_RPA = 3 # # SSP # FIFF.FIFF_PROJ_ITEM_KIND = 3411 FIFF.FIFF_PROJ_ITEM_TIME = 3412 FIFF.FIFF_PROJ_ITEM_NVEC = 3414 FIFF.FIFF_PROJ_ITEM_VECTORS = 3415 FIFF.FIFF_PROJ_ITEM_CH_NAME_LIST = 3417 # # MRIs # FIFF.FIFF_MRI_SOURCE_PATH = 1101 FIFF.FIFF_MRI_SOURCE_FORMAT = 2002 FIFF.FIFF_MRI_PIXEL_ENCODING = 2003 FIFF.FIFF_MRI_PIXEL_DATA_OFFSET = 2004 FIFF.FIFF_MRI_PIXEL_SCALE = 2005 FIFF.FIFF_MRI_PIXEL_DATA = 2006 FIFF.FIFF_MRI_WIDTH = 2010 FIFF.FIFF_MRI_WIDTH_M = 2011 FIFF.FIFF_MRI_HEIGHT = 2012 FIFF.FIFF_MRI_HEIGHT_M = 2013 # FIFF.FIFFV_MRI_PIXEL_BYTE = 1 FIFF.FIFFV_MRI_PIXEL_WORD = 2 FIFF.FIFFV_MRI_PIXEL_SWAP_WORD = 3 FIFF.FIFFV_MRI_PIXEL_FLOAT = 4 # # These are the MNE fiff definitions # FIFF.FIFFB_MNE = 350 FIFF.FIFFB_MNE_SOURCE_SPACE = 351 FIFF.FIFFB_MNE_FORWARD_SOLUTION = 352 FIFF.FIFFB_MNE_PARENT_MRI_FILE = 353 FIFF.FIFFB_MNE_PARENT_MEAS_FILE = 354 FIFF.FIFFB_MNE_COV = 355 FIFF.FIFFB_MNE_INVERSE_SOLUTION = 356 FIFF.FIFFB_MNE_NAMED_MATRIX = 357 FIFF.FIFFB_MNE_ENV = 358 FIFF.FIFFB_MNE_BAD_CHANNELS = 359 FIFF.FIFFB_MNE_VERTEX_MAP = 360 FIFF.FIFFB_MNE_EVENTS = 361 FIFF.FIFFB_MNE_MORPH_MAP = 362 # # CTF compensation data # FIFF.FIFFB_MNE_CTF_COMP = 370 FIFF.FIFFB_MNE_CTF_COMP_DATA = 371 # # Fiff tags associated with MNE computations (3500...) # # # 3500... Bookkeeping # FIFF.FIFF_MNE_ROW_NAMES = 3502 FIFF.FIFF_MNE_COL_NAMES = 3503 FIFF.FIFF_MNE_NROW = 3504 FIFF.FIFF_MNE_NCOL = 3505 FIFF.FIFF_MNE_COORD_FRAME = 3506 # Coordinate frame employed. Defaults: # FIFFB_MNE_SOURCE_SPACE FIFFV_COORD_MRI # FIFFB_MNE_FORWARD_SOLUTION FIFFV_COORD_HEAD # FIFFB_MNE_INVERSE_SOLUTION FIFFV_COORD_HEAD FIFF.FIFF_MNE_CH_NAME_LIST = 3507 FIFF.FIFF_MNE_FILE_NAME = 3508 # This removes the collision with fiff_file.h (used to be 3501) # # 3510... 3590... Source space or surface # FIFF.FIFF_MNE_SOURCE_SPACE_POINTS = 3510 # The vertices FIFF.FIFF_MNE_SOURCE_SPACE_NORMALS = 3511 # The vertex normals FIFF.FIFF_MNE_SOURCE_SPACE_NPOINTS = 3512 # How many vertices FIFF.FIFF_MNE_SOURCE_SPACE_SELECTION = 3513 # Which are selected to the source space FIFF.FIFF_MNE_SOURCE_SPACE_NUSE = 3514 # How many are in use FIFF.FIFF_MNE_SOURCE_SPACE_NEAREST = 3515 # Nearest source space vertex for all vertices FIFF.FIFF_MNE_SOURCE_SPACE_NEAREST_DIST = 3516 # Distance to the Nearest source space vertex for all vertices FIFF.FIFF_MNE_SOURCE_SPACE_ID = 3517 # Identifier FIFF.FIFF_MNE_SOURCE_SPACE_TYPE = 3518 # Surface or volume FIFF.FIFF_MNE_SOURCE_SPACE_NTRI = 3590 # Number of triangles FIFF.FIFF_MNE_SOURCE_SPACE_TRIANGLES = 3591 # The triangulation FIFF.FIFF_MNE_SOURCE_SPACE_NUSE_TRI = 3592 # Number of triangles corresponding to the number of vertices in use FIFF.FIFF_MNE_SOURCE_SPACE_USE_TRIANGLES = 3593 # The triangulation of the used vertices in the source space # # 3520... Forward solution # FIFF.FIFF_MNE_FORWARD_SOLUTION = 3520 FIFF.FIFF_MNE_SOURCE_ORIENTATION = 3521 # Fixed or free FIFF.FIFF_MNE_INCLUDED_METHODS = 3522 FIFF.FIFF_MNE_FORWARD_SOLUTION_GRAD = 3523 # # 3530... Covariance matrix # FIFF.FIFF_MNE_COV_KIND = 3530 # What kind of a covariance matrix FIFF.FIFF_MNE_COV_DIM = 3531 # Matrix dimension FIFF.FIFF_MNE_COV = 3532 # Full matrix in packed representation (lower triangle) FIFF.FIFF_MNE_COV_DIAG = 3533 # Diagonal matrix FIFF.FIFF_MNE_COV_EIGENVALUES = 3534 # Eigenvalues and eigenvectors of the above FIFF.FIFF_MNE_COV_EIGENVECTORS = 3535 FIFF.FIFF_MNE_COV_NFREE = 3536 # Number of degrees of freedom # # 3540... Inverse operator # # We store the inverse operator as the eigenleads, eigenfields, # and weights # FIFF.FIFF_MNE_INVERSE_LEADS = 3540 # The eigenleads FIFF.FIFF_MNE_INVERSE_LEADS_WEIGHTED = 3546 # The eigenleads (already weighted with R^0.5) FIFF.FIFF_MNE_INVERSE_FIELDS = 3541 # The eigenfields FIFF.FIFF_MNE_INVERSE_SING = 3542 # The singular values FIFF.FIFF_MNE_PRIORS_USED = 3543 # Which kind of priors have been used for the source covariance matrix FIFF.FIFF_MNE_INVERSE_FULL = 3544 # Inverse operator as one matrix # This matrix includes the whitening operator as well # The regularization is applied FIFF.FIFF_MNE_INVERSE_SOURCE_ORIENTATIONS = 3545 # Contains the orientation of one source per row # The source orientations must be expressed in the coordinate system # given by FIFF_MNE_COORD_FRAME # # 3550... Saved environment info # FIFF.FIFF_MNE_ENV_WORKING_DIR = 3550 # Working directory where the file was created FIFF.FIFF_MNE_ENV_COMMAND_LINE = 3551 # The command used to create the file # # 3560... Miscellaneous # FIFF.FIFF_MNE_PROJ_ITEM_ACTIVE = 3560 # Is this projection item active? FIFF.FIFF_MNE_EVENT_LIST = 3561 # An event list (for STI 014) FIFF.FIFF_MNE_HEMI = 3562 # Hemisphere association for general purposes # # 3570... Morphing maps # FIFF.FIFF_MNE_MORPH_MAP = 3570 # Mapping of closest vertices on the sphere FIFF.FIFF_MNE_MORPH_MAP_FROM = 3571 # Which subject is this map from FIFF.FIFF_MNE_MORPH_MAP_TO = 3572 # Which subject is this map to # # 3580... CTF compensation data # FIFF.FIFF_MNE_CTF_COMP_KIND = 3580 # What kind of compensation FIFF.FIFF_MNE_CTF_COMP_DATA = 3581 # The compensation data itself FIFF.FIFF_MNE_CTF_COMP_CALIBRATED = 3582 # Are the coefficients calibrated? # # Fiff values associated with MNE computations # FIFF.FIFFV_MNE_FIXED_ORI = 1 FIFF.FIFFV_MNE_FREE_ORI = 2 FIFF.FIFFV_MNE_MEG = 1 FIFF.FIFFV_MNE_EEG = 2 FIFF.FIFFV_MNE_MEG_EEG = 3 FIFF.FIFFV_MNE_UNKNOWN_COV = 0 FIFF.FIFFV_MNE_SENSOR_COV = 1 FIFF.FIFFV_MNE_NOISE_COV = 1 # This is what it should have been called FIFF.FIFFV_MNE_SOURCE_COV = 2 FIFF.FIFFV_MNE_FMRI_PRIOR_COV = 3 FIFF.FIFFV_MNE_SIGNAL_COV = 4 # This will be potentially employed in beamformers FIFF.FIFFV_MNE_DEPTH_PRIOR_COV = 5 # The depth weighting prior FIFF.FIFFV_MNE_ORIENT_PRIOR_COV = 6 # The orientation prior # # Source space types (values of FIFF_MNE_SOURCE_SPACE_TYPE) # FIFF.FIFFV_MNE_SPACE_UNKNOWN = -1 FIFF.FIFFV_MNE_SPACE_SURFACE = 1 FIFF.FIFFV_MNE_SPACE_VOLUME = 2 FIFF.FIFFV_MNE_SPACE_DISCRETE = 3 # # Covariance matrix channel classification # FIFF.FIFFV_MNE_COV_CH_UNKNOWN = -1 # No idea FIFF.FIFFV_MNE_COV_CH_MEG_MAG = 0 # Axial gradiometer or magnetometer [T] FIFF.FIFFV_MNE_COV_CH_MEG_GRAD = 1 # Planar gradiometer [T/m] FIFF.FIFFV_MNE_COV_CH_EEG = 2 # EEG [V] # # Projection item kinds # FIFF.FIFFV_PROJ_ITEM_NONE = 0 FIFF.FIFFV_PROJ_ITEM_FIELD = 1 FIFF.FIFFV_PROJ_ITEM_DIP_FIX = 2 FIFF.FIFFV_PROJ_ITEM_DIP_ROT = 3 FIFF.FIFFV_PROJ_ITEM_HOMOG_GRAD = 4 FIFF.FIFFV_PROJ_ITEM_HOMOG_FIELD = 5 FIFF.FIFFV_MNE_PROJ_ITEM_EEG_AVREF = 10 # # Additional coordinate frames # FIFF.FIFFV_MNE_COORD_TUFTS_EEG = 300 # For Tufts EEG data FIFF.FIFFV_MNE_COORD_CTF_DEVICE = 1001 # CTF device coordinates FIFF.FIFFV_MNE_COORD_CTF_HEAD = 1004 # CTF head coordinates FIFF.FIFFV_MNE_COORD_MRI_VOXEL = 2001 # The MRI voxel coordinates FIFF.FIFFV_MNE_COORD_RAS = 2002 # Surface RAS coordinates with non-zero origin FIFF.FIFFV_MNE_COORD_MNI_TAL = 2003 # MNI Talairach coordinates FIFF.FIFFV_MNE_COORD_FS_TAL_GTZ = 2004 # FreeSurfer Talairach coordinates (MNI z > 0) FIFF.FIFFV_MNE_COORD_FS_TAL_LTZ = 2005 # FreeSurfer Talairach coordinates (MNI z < 0) FIFF.FIFFV_MNE_COORD_FS_TAL = 2006 # FreeSurfer Talairach coordinates # # CTF coil and channel types # FIFF.FIFFV_REF_MEG_CH = 301 # # Data types # FIFF.FIFFT_VOID = 0 FIFF.FIFFT_BYTE = 1 FIFF.FIFFT_SHORT = 2 FIFF.FIFFT_INT = 3 FIFF.FIFFT_FLOAT = 4 FIFF.FIFFT_DOUBLE = 5 FIFF.FIFFT_JULIAN = 6 FIFF.FIFFT_USHORT = 7 FIFF.FIFFT_UINT = 8 FIFF.FIFFT_ULONG = 9 FIFF.FIFFT_STRING = 10 FIFF.FIFFT_LONG = 11 FIFF.FIFFT_DAU_PACK13 = 13 FIFF.FIFFT_DAU_PACK14 = 14 FIFF.FIFFT_DAU_PACK16 = 16 FIFF.FIFFT_COMPLEX_FLOAT = 20 FIFF.FIFFT_COMPLEX_DOUBLE = 21 FIFF.FIFFT_OLD_PACK = 23 FIFF.FIFFT_CH_INFO_STRUCT = 30 FIFF.FIFFT_ID_STRUCT = 31 FIFF.FIFFT_DIR_ENTRY_STRUCT = 32 FIFF.FIFFT_DIG_POINT_STRUCT = 33 FIFF.FIFFT_CH_POS_STRUCT = 34 FIFF.FIFFT_COORD_TRANS_STRUCT = 35 FIFF.FIFFT_DIG_STRING_STRUCT = 36 FIFF.FIFFT_STREAM_SEGMENT_STRUCT = 37 # # Units of measurement # FIFF.FIFF_UNIT_NONE = -1 # # SI base units # FIFF.FIFF_UNIT_M = 1 FIFF.FIFF_UNIT_KG = 2 FIFF.FIFF_UNIT_SEC = 3 FIFF.FIFF_UNIT_A = 4 FIFF.FIFF_UNIT_K = 5 FIFF.FIFF_UNIT_MOL = 6 # # SI Supplementary units # FIFF.FIFF_UNIT_RAD = 7 FIFF.FIFF_UNIT_SR = 8 # # SI base candela # FIFF.FIFF_UNIT_CD = 9 # # SI derived units # FIFF.FIFF_UNIT_HZ = 101 FIFF.FIFF_UNIT_N = 102 FIFF.FIFF_UNIT_PA = 103 FIFF.FIFF_UNIT_J = 104 FIFF.FIFF_UNIT_W = 105 FIFF.FIFF_UNIT_C = 106 FIFF.FIFF_UNIT_V = 107 FIFF.FIFF_UNIT_F = 108 FIFF.FIFF_UNIT_OHM = 109 FIFF.FIFF_UNIT_MHO = 110 FIFF.FIFF_UNIT_WB = 111 FIFF.FIFF_UNIT_T = 112 FIFF.FIFF_UNIT_H = 113 FIFF.FIFF_UNIT_CEL = 114 FIFF.FIFF_UNIT_LM = 115 FIFF.FIFF_UNIT_LX = 116 # # Others we need # FIFF.FIFF_UNIT_T_M = 201 # T/m FIFF.FIFF_UNIT_AM = 202 # Am FIFF.FIFF_UNIT_AM_M2 = 203 # Am/m^2 FIFF.FIFF_UNIT_AM_M3 = 204 # Am/m^3 # # Multipliers # FIFF.FIFF_UNITM_E = 18 FIFF.FIFF_UNITM_PET = 15 FIFF.FIFF_UNITM_T = 12 FIFF.FIFF_UNITM_MEG = 6 FIFF.FIFF_UNITM_K = 3 FIFF.FIFF_UNITM_H = 2 FIFF.FIFF_UNITM_DA = 1 FIFF.FIFF_UNITM_NONE = 0 FIFF.FIFF_UNITM_D = -1 FIFF.FIFF_UNITM_C = -2 FIFF.FIFF_UNITM_M = -3 FIFF.FIFF_UNITM_MU = -6 FIFF.FIFF_UNITM_N = -9 FIFF.FIFF_UNITM_P = -12 FIFF.FIFF_UNITM_F = -15 FIFF.FIFF_UNITM_A = -18
class Bunch(dict): """ Container object for datasets: dictionnary-like object that exposes its keys as attributes. """ def __init__(self, **kwargs): dict.__init__(self, kwargs) self.__dict__ = self fiff = bunch() FIFF.FIFFB_MEAS = 100 FIFF.FIFFB_MEAS_INFO = 101 FIFF.FIFFB_RAW_DATA = 102 FIFF.FIFFB_PROCESSED_DATA = 103 FIFF.FIFFB_CONTINUOUS_DATA = 112 FIFF.FIFFB_EVOKED = 104 FIFF.FIFFB_ASPECT = 105 FIFF.FIFFB_SUBJECT = 106 FIFF.FIFFB_ISOTRAK = 107 FIFF.FIFFB_HPI_MEAS = 108 FIFF.FIFFB_HPI_RESULT = 109 FIFF.FIFFB_DACQ_PARS = 117 FIFF.FIFFB_REF = 118 FIFF.FIFFB_SMSH_RAW_DATA = 119 FIFF.FIFFB_SMSH_ASPECT = 120 FIFF.FIFFB_PROJ = 313 FIFF.FIFFB_PROJ_ITEM = 314 FIFF.FIFFB_MRI = 200 FIFF.FIFFB_MRI_SET = 201 FIFF.FIFFB_MRI_SLICE = 202 FIFF.FIFFB_PROCESSING_HISTORY = 900 FIFF.FIFFB_SSS_INFO = 502 FIFF.FIFFB_SSS_CAL_ADJUST = 503 FIFF.FIFFB_SSS_ST_INFO = 504 FIFF.FIFFB_SSS_BASES = 505 FIFF.FIFF_FILE_ID = 100 FIFF.FIFF_DIR_POINTER = 101 FIFF.FIFF_BLOCK_ID = 103 FIFF.FIFF_BLOCK_START = 104 FIFF.FIFF_BLOCK_END = 105 FIFF.FIFF_FREE_LIST = 106 FIFF.FIFF_FREE_BLOCK = 107 FIFF.FIFF_NOP = 108 FIFF.FIFF_PARENT_FILE_ID = 109 FIFF.FIFF_PARENT_BLOCK_ID = 110 FIFF.FIFF_DACQ_PARS = 150 FIFF.FIFF_DACQ_STIM = 151 FIFF.FIFF_SFREQ = 201 FIFF.FIFF_NCHAN = 200 FIFF.FIFF_DATA_PACK = 202 FIFF.FIFF_CH_INFO = 203 FIFF.FIFF_MEAS_DATE = 204 FIFF.FIFF_SUBJECT = 205 FIFF.FIFF_COMMENT = 206 FIFF.FIFF_NAVE = 207 FIFF.FIFF_DIG_POINT = 213 FIFF.FIFF_LOWPASS = 219 FIFF.FIFF_COORD_TRANS = 222 FIFF.FIFF_HIGHPASS = 223 FIFF.FIFF_NAME = 233 FIFF.FIFF_DESCRIPTION = FIFF.FIFF_COMMENT FIFF.FIFFV_NEXT_SEQ = 0 FIFF.FIFFV_NEXT_NONE = -1 FIFF.FIFFV_MEG_CH = 1 FIFF.FIFFV_REF_MEG_CH = 301 FIFF.FIFFV_EEG_CH = 2 FIFF.FIFFV_MCG_CH = 201 FIFF.FIFFV_STIM_CH = 3 FIFF.FIFFV_EOG_CH = 202 FIFF.FIFFV_EMG_CH = 302 FIFF.FIFFV_ECG_CH = 402 FIFF.FIFFV_MISC_CH = 502 FIFF.FIFFV_RESP_CH = 602 FIFF.FIFFV_QUAT_0 = 700 FIFF.FIFFV_QUAT_1 = 701 FIFF.FIFFV_QUAT_2 = 702 FIFF.FIFFV_QUAT_3 = 703 FIFF.FIFFV_QUAT_4 = 704 FIFF.FIFFV_QUAT_5 = 705 FIFF.FIFFV_QUAT_6 = 706 FIFF.FIFFV_HPI_G = 707 FIFF.FIFFV_HPI_ERR = 708 FIFF.FIFFV_HPI_MOV = 709 FIFF.FIFFV_COORD_UNKNOWN = 0 FIFF.FIFFV_COORD_DEVICE = 1 FIFF.FIFFV_COORD_ISOTRAK = 2 FIFF.FIFFV_COORD_HPI = 3 FIFF.FIFFV_COORD_HEAD = 4 FIFF.FIFFV_COORD_MRI = 5 FIFF.FIFFV_COORD_MRI_SLICE = 6 FIFF.FIFFV_COORD_MRI_DISPLAY = 7 FIFF.FIFFV_COORD_DICOM_DEVICE = 8 FIFF.FIFFV_COORD_IMAGING_DEVICE = 9 FIFF.FIFF_FIRST_SAMPLE = 208 FIFF.FIFF_LAST_SAMPLE = 209 FIFF.FIFF_ASPECT_KIND = 210 FIFF.FIFF_DATA_BUFFER = 300 FIFF.FIFF_DATA_SKIP = 301 FIFF.FIFF_EPOCH = 302 FIFF.FIFF_DATA_SKIP_SAMP = 303 FIFF.FIFFV_ASPECT_AVERAGE = 100 FIFF.FIFFV_ASPECT_STD_ERR = 101 FIFF.FIFFV_ASPECT_SINGLE = 102 FIFF.FIFFV_ASPECT_SUBAVERAGE = 103 FIFF.FIFFV_ASPECT_ALTAVERAGE = 104 FIFF.FIFFV_ASPECT_SAMPLE = 105 FIFF.FIFFV_ASPECT_POWER_DENSITY = 106 FIFF.FIFFV_ASPECT_DIPOLE_WAVE = 200 FIFF.FIFFV_BEM_SURF_ID_UNKNOWN = -1 FIFF.FIFFV_BEM_SURF_ID_BRAIN = 1 FIFF.FIFFV_BEM_SURF_ID_SKULL = 3 FIFF.FIFFV_BEM_SURF_ID_HEAD = 4 FIFF.FIFFV_MNE_SURF_UNKNOWN = -1 FIFF.FIFFV_MNE_SURF_LEFT_HEMI = 101 FIFF.FIFFV_MNE_SURF_RIGHT_HEMI = 102 FIFF.FIFFV_POINT_CARDINAL = 1 FIFF.FIFFV_POINT_HPI = 2 FIFF.FIFFV_POINT_EEG = 3 FIFF.FIFFV_POINT_ECG = FIFF.FIFFV_POINT_EEG FIFF.FIFFV_POINT_EXTRA = 4 FIFF.FIFFV_POINT_LPA = 1 FIFF.FIFFV_POINT_NASION = 2 FIFF.FIFFV_POINT_RPA = 3 FIFF.FIFF_PROJ_ITEM_KIND = 3411 FIFF.FIFF_PROJ_ITEM_TIME = 3412 FIFF.FIFF_PROJ_ITEM_NVEC = 3414 FIFF.FIFF_PROJ_ITEM_VECTORS = 3415 FIFF.FIFF_PROJ_ITEM_CH_NAME_LIST = 3417 FIFF.FIFF_MRI_SOURCE_PATH = 1101 FIFF.FIFF_MRI_SOURCE_FORMAT = 2002 FIFF.FIFF_MRI_PIXEL_ENCODING = 2003 FIFF.FIFF_MRI_PIXEL_DATA_OFFSET = 2004 FIFF.FIFF_MRI_PIXEL_SCALE = 2005 FIFF.FIFF_MRI_PIXEL_DATA = 2006 FIFF.FIFF_MRI_WIDTH = 2010 FIFF.FIFF_MRI_WIDTH_M = 2011 FIFF.FIFF_MRI_HEIGHT = 2012 FIFF.FIFF_MRI_HEIGHT_M = 2013 FIFF.FIFFV_MRI_PIXEL_BYTE = 1 FIFF.FIFFV_MRI_PIXEL_WORD = 2 FIFF.FIFFV_MRI_PIXEL_SWAP_WORD = 3 FIFF.FIFFV_MRI_PIXEL_FLOAT = 4 FIFF.FIFFB_MNE = 350 FIFF.FIFFB_MNE_SOURCE_SPACE = 351 FIFF.FIFFB_MNE_FORWARD_SOLUTION = 352 FIFF.FIFFB_MNE_PARENT_MRI_FILE = 353 FIFF.FIFFB_MNE_PARENT_MEAS_FILE = 354 FIFF.FIFFB_MNE_COV = 355 FIFF.FIFFB_MNE_INVERSE_SOLUTION = 356 FIFF.FIFFB_MNE_NAMED_MATRIX = 357 FIFF.FIFFB_MNE_ENV = 358 FIFF.FIFFB_MNE_BAD_CHANNELS = 359 FIFF.FIFFB_MNE_VERTEX_MAP = 360 FIFF.FIFFB_MNE_EVENTS = 361 FIFF.FIFFB_MNE_MORPH_MAP = 362 FIFF.FIFFB_MNE_CTF_COMP = 370 FIFF.FIFFB_MNE_CTF_COMP_DATA = 371 FIFF.FIFF_MNE_ROW_NAMES = 3502 FIFF.FIFF_MNE_COL_NAMES = 3503 FIFF.FIFF_MNE_NROW = 3504 FIFF.FIFF_MNE_NCOL = 3505 FIFF.FIFF_MNE_COORD_FRAME = 3506 FIFF.FIFF_MNE_CH_NAME_LIST = 3507 FIFF.FIFF_MNE_FILE_NAME = 3508 FIFF.FIFF_MNE_SOURCE_SPACE_POINTS = 3510 FIFF.FIFF_MNE_SOURCE_SPACE_NORMALS = 3511 FIFF.FIFF_MNE_SOURCE_SPACE_NPOINTS = 3512 FIFF.FIFF_MNE_SOURCE_SPACE_SELECTION = 3513 FIFF.FIFF_MNE_SOURCE_SPACE_NUSE = 3514 FIFF.FIFF_MNE_SOURCE_SPACE_NEAREST = 3515 FIFF.FIFF_MNE_SOURCE_SPACE_NEAREST_DIST = 3516 FIFF.FIFF_MNE_SOURCE_SPACE_ID = 3517 FIFF.FIFF_MNE_SOURCE_SPACE_TYPE = 3518 FIFF.FIFF_MNE_SOURCE_SPACE_NTRI = 3590 FIFF.FIFF_MNE_SOURCE_SPACE_TRIANGLES = 3591 FIFF.FIFF_MNE_SOURCE_SPACE_NUSE_TRI = 3592 FIFF.FIFF_MNE_SOURCE_SPACE_USE_TRIANGLES = 3593 FIFF.FIFF_MNE_FORWARD_SOLUTION = 3520 FIFF.FIFF_MNE_SOURCE_ORIENTATION = 3521 FIFF.FIFF_MNE_INCLUDED_METHODS = 3522 FIFF.FIFF_MNE_FORWARD_SOLUTION_GRAD = 3523 FIFF.FIFF_MNE_COV_KIND = 3530 FIFF.FIFF_MNE_COV_DIM = 3531 FIFF.FIFF_MNE_COV = 3532 FIFF.FIFF_MNE_COV_DIAG = 3533 FIFF.FIFF_MNE_COV_EIGENVALUES = 3534 FIFF.FIFF_MNE_COV_EIGENVECTORS = 3535 FIFF.FIFF_MNE_COV_NFREE = 3536 FIFF.FIFF_MNE_INVERSE_LEADS = 3540 FIFF.FIFF_MNE_INVERSE_LEADS_WEIGHTED = 3546 FIFF.FIFF_MNE_INVERSE_FIELDS = 3541 FIFF.FIFF_MNE_INVERSE_SING = 3542 FIFF.FIFF_MNE_PRIORS_USED = 3543 FIFF.FIFF_MNE_INVERSE_FULL = 3544 FIFF.FIFF_MNE_INVERSE_SOURCE_ORIENTATIONS = 3545 FIFF.FIFF_MNE_ENV_WORKING_DIR = 3550 FIFF.FIFF_MNE_ENV_COMMAND_LINE = 3551 FIFF.FIFF_MNE_PROJ_ITEM_ACTIVE = 3560 FIFF.FIFF_MNE_EVENT_LIST = 3561 FIFF.FIFF_MNE_HEMI = 3562 FIFF.FIFF_MNE_MORPH_MAP = 3570 FIFF.FIFF_MNE_MORPH_MAP_FROM = 3571 FIFF.FIFF_MNE_MORPH_MAP_TO = 3572 FIFF.FIFF_MNE_CTF_COMP_KIND = 3580 FIFF.FIFF_MNE_CTF_COMP_DATA = 3581 FIFF.FIFF_MNE_CTF_COMP_CALIBRATED = 3582 FIFF.FIFFV_MNE_FIXED_ORI = 1 FIFF.FIFFV_MNE_FREE_ORI = 2 FIFF.FIFFV_MNE_MEG = 1 FIFF.FIFFV_MNE_EEG = 2 FIFF.FIFFV_MNE_MEG_EEG = 3 FIFF.FIFFV_MNE_UNKNOWN_COV = 0 FIFF.FIFFV_MNE_SENSOR_COV = 1 FIFF.FIFFV_MNE_NOISE_COV = 1 FIFF.FIFFV_MNE_SOURCE_COV = 2 FIFF.FIFFV_MNE_FMRI_PRIOR_COV = 3 FIFF.FIFFV_MNE_SIGNAL_COV = 4 FIFF.FIFFV_MNE_DEPTH_PRIOR_COV = 5 FIFF.FIFFV_MNE_ORIENT_PRIOR_COV = 6 FIFF.FIFFV_MNE_SPACE_UNKNOWN = -1 FIFF.FIFFV_MNE_SPACE_SURFACE = 1 FIFF.FIFFV_MNE_SPACE_VOLUME = 2 FIFF.FIFFV_MNE_SPACE_DISCRETE = 3 FIFF.FIFFV_MNE_COV_CH_UNKNOWN = -1 FIFF.FIFFV_MNE_COV_CH_MEG_MAG = 0 FIFF.FIFFV_MNE_COV_CH_MEG_GRAD = 1 FIFF.FIFFV_MNE_COV_CH_EEG = 2 FIFF.FIFFV_PROJ_ITEM_NONE = 0 FIFF.FIFFV_PROJ_ITEM_FIELD = 1 FIFF.FIFFV_PROJ_ITEM_DIP_FIX = 2 FIFF.FIFFV_PROJ_ITEM_DIP_ROT = 3 FIFF.FIFFV_PROJ_ITEM_HOMOG_GRAD = 4 FIFF.FIFFV_PROJ_ITEM_HOMOG_FIELD = 5 FIFF.FIFFV_MNE_PROJ_ITEM_EEG_AVREF = 10 FIFF.FIFFV_MNE_COORD_TUFTS_EEG = 300 FIFF.FIFFV_MNE_COORD_CTF_DEVICE = 1001 FIFF.FIFFV_MNE_COORD_CTF_HEAD = 1004 FIFF.FIFFV_MNE_COORD_MRI_VOXEL = 2001 FIFF.FIFFV_MNE_COORD_RAS = 2002 FIFF.FIFFV_MNE_COORD_MNI_TAL = 2003 FIFF.FIFFV_MNE_COORD_FS_TAL_GTZ = 2004 FIFF.FIFFV_MNE_COORD_FS_TAL_LTZ = 2005 FIFF.FIFFV_MNE_COORD_FS_TAL = 2006 FIFF.FIFFV_REF_MEG_CH = 301 FIFF.FIFFT_VOID = 0 FIFF.FIFFT_BYTE = 1 FIFF.FIFFT_SHORT = 2 FIFF.FIFFT_INT = 3 FIFF.FIFFT_FLOAT = 4 FIFF.FIFFT_DOUBLE = 5 FIFF.FIFFT_JULIAN = 6 FIFF.FIFFT_USHORT = 7 FIFF.FIFFT_UINT = 8 FIFF.FIFFT_ULONG = 9 FIFF.FIFFT_STRING = 10 FIFF.FIFFT_LONG = 11 FIFF.FIFFT_DAU_PACK13 = 13 FIFF.FIFFT_DAU_PACK14 = 14 FIFF.FIFFT_DAU_PACK16 = 16 FIFF.FIFFT_COMPLEX_FLOAT = 20 FIFF.FIFFT_COMPLEX_DOUBLE = 21 FIFF.FIFFT_OLD_PACK = 23 FIFF.FIFFT_CH_INFO_STRUCT = 30 FIFF.FIFFT_ID_STRUCT = 31 FIFF.FIFFT_DIR_ENTRY_STRUCT = 32 FIFF.FIFFT_DIG_POINT_STRUCT = 33 FIFF.FIFFT_CH_POS_STRUCT = 34 FIFF.FIFFT_COORD_TRANS_STRUCT = 35 FIFF.FIFFT_DIG_STRING_STRUCT = 36 FIFF.FIFFT_STREAM_SEGMENT_STRUCT = 37 FIFF.FIFF_UNIT_NONE = -1 FIFF.FIFF_UNIT_M = 1 FIFF.FIFF_UNIT_KG = 2 FIFF.FIFF_UNIT_SEC = 3 FIFF.FIFF_UNIT_A = 4 FIFF.FIFF_UNIT_K = 5 FIFF.FIFF_UNIT_MOL = 6 FIFF.FIFF_UNIT_RAD = 7 FIFF.FIFF_UNIT_SR = 8 FIFF.FIFF_UNIT_CD = 9 FIFF.FIFF_UNIT_HZ = 101 FIFF.FIFF_UNIT_N = 102 FIFF.FIFF_UNIT_PA = 103 FIFF.FIFF_UNIT_J = 104 FIFF.FIFF_UNIT_W = 105 FIFF.FIFF_UNIT_C = 106 FIFF.FIFF_UNIT_V = 107 FIFF.FIFF_UNIT_F = 108 FIFF.FIFF_UNIT_OHM = 109 FIFF.FIFF_UNIT_MHO = 110 FIFF.FIFF_UNIT_WB = 111 FIFF.FIFF_UNIT_T = 112 FIFF.FIFF_UNIT_H = 113 FIFF.FIFF_UNIT_CEL = 114 FIFF.FIFF_UNIT_LM = 115 FIFF.FIFF_UNIT_LX = 116 FIFF.FIFF_UNIT_T_M = 201 FIFF.FIFF_UNIT_AM = 202 FIFF.FIFF_UNIT_AM_M2 = 203 FIFF.FIFF_UNIT_AM_M3 = 204 FIFF.FIFF_UNITM_E = 18 FIFF.FIFF_UNITM_PET = 15 FIFF.FIFF_UNITM_T = 12 FIFF.FIFF_UNITM_MEG = 6 FIFF.FIFF_UNITM_K = 3 FIFF.FIFF_UNITM_H = 2 FIFF.FIFF_UNITM_DA = 1 FIFF.FIFF_UNITM_NONE = 0 FIFF.FIFF_UNITM_D = -1 FIFF.FIFF_UNITM_C = -2 FIFF.FIFF_UNITM_M = -3 FIFF.FIFF_UNITM_MU = -6 FIFF.FIFF_UNITM_N = -9 FIFF.FIFF_UNITM_P = -12 FIFF.FIFF_UNITM_F = -15 FIFF.FIFF_UNITM_A = -18
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}
# Copyright 2019 The Bazel 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. """Tests for `swift_library.private_deps`.""" load( "@build_bazel_rules_swift//test/rules:provider_test.bzl", "make_provider_test_rule", ) # Force private deps support to be enabled at analysis time, regardless of # whether the active toolchain actually supports it. private_deps_provider_test = make_provider_test_rule( config_settings = { "//command_line_option:features": ["swift.supports_private_deps"], }, ) def private_deps_test_suite(): """Test suite for propagation behavior of `swift_library.private_deps`.""" name = "private_deps" # Each of the two leaf libraries should propagate their own modules. private_deps_provider_test( name = "{}_private_swift_swiftmodules".format(name), expected_files = [ "test_fixtures_private_deps_private_swift.swiftmodule", ], field = "transitive_swiftmodules", provider = "SwiftInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:private_swift", ) private_deps_provider_test( name = "{}_public_swift_swiftmodules".format(name), expected_files = [ "test_fixtures_private_deps_public_swift.swiftmodule", ], field = "transitive_swiftmodules", provider = "SwiftInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:public_swift", ) # The client module should propagate its own module and the one from `deps`, # but not the one from `private_deps`. private_deps_provider_test( name = "{}_client_swift_deps_swiftmodules".format(name), expected_files = [ "test_fixtures_private_deps_client_swift_deps.swiftmodule", "test_fixtures_private_deps_public_swift.swiftmodule", "-test_fixtures_private_deps_private_swift.swiftmodule", ], field = "transitive_swiftmodules", provider = "SwiftInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:client_swift_deps", ) # With private deps that are C++ libraries, we shouldn't propagate the # compilation context of the private deps. That means the public deps' # headers will be repropagated by Swift library, but not the private ones. private_deps_provider_test( name = "{}_client_cc_deps_headers".format(name), expected_files = [ "/test/fixtures/private_deps/public.h", "-/test/fixtures/private_deps/private.h", # Some C++ toolchains implicitly propagate standard library headers, # so we can't look for an exact match here. "*", ], field = "compilation_context.headers", provider = "CcInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps", ) # Likewise, we shouldn't repropagate the C++ private deps' module maps. private_deps_provider_test( name = "{}_client_cc_deps_modulemaps".format(name), expected_files = [ "/test/fixtures/private_deps/public_cc.modulemaps/module.modulemap", "-/test/fixtures/private_deps/private_cc.modulemaps/module.modulemap", ], field = "transitive_modulemaps", provider = "SwiftInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps", ) # Make sure we don't also lose linking information when handling C++ private # deps. All libraries should be propagated, even if their compilation # contexts aren't. private_deps_provider_test( name = "{}_client_cc_deps_libraries".format(name), expected_files = [ "/test/fixtures/private_deps/libprivate_cc.a", "/test/fixtures/private_deps/libpublic_cc.a", # There may be other libraries here, like implicit toolchain # dependencies, which we need to ignore. "*", ], field = "linking_context.libraries_to_link.static_library!", provider = "CcInfo", tags = [name], target_under_test = "@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps", ) native.test_suite( name = name, tags = [name], )
"""Tests for `swift_library.private_deps`.""" load('@build_bazel_rules_swift//test/rules:provider_test.bzl', 'make_provider_test_rule') private_deps_provider_test = make_provider_test_rule(config_settings={'//command_line_option:features': ['swift.supports_private_deps']}) def private_deps_test_suite(): """Test suite for propagation behavior of `swift_library.private_deps`.""" name = 'private_deps' private_deps_provider_test(name='{}_private_swift_swiftmodules'.format(name), expected_files=['test_fixtures_private_deps_private_swift.swiftmodule'], field='transitive_swiftmodules', provider='SwiftInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:private_swift') private_deps_provider_test(name='{}_public_swift_swiftmodules'.format(name), expected_files=['test_fixtures_private_deps_public_swift.swiftmodule'], field='transitive_swiftmodules', provider='SwiftInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:public_swift') private_deps_provider_test(name='{}_client_swift_deps_swiftmodules'.format(name), expected_files=['test_fixtures_private_deps_client_swift_deps.swiftmodule', 'test_fixtures_private_deps_public_swift.swiftmodule', '-test_fixtures_private_deps_private_swift.swiftmodule'], field='transitive_swiftmodules', provider='SwiftInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:client_swift_deps') private_deps_provider_test(name='{}_client_cc_deps_headers'.format(name), expected_files=['/test/fixtures/private_deps/public.h', '-/test/fixtures/private_deps/private.h', '*'], field='compilation_context.headers', provider='CcInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps') private_deps_provider_test(name='{}_client_cc_deps_modulemaps'.format(name), expected_files=['/test/fixtures/private_deps/public_cc.modulemaps/module.modulemap', '-/test/fixtures/private_deps/private_cc.modulemaps/module.modulemap'], field='transitive_modulemaps', provider='SwiftInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps') private_deps_provider_test(name='{}_client_cc_deps_libraries'.format(name), expected_files=['/test/fixtures/private_deps/libprivate_cc.a', '/test/fixtures/private_deps/libpublic_cc.a', '*'], field='linking_context.libraries_to_link.static_library!', provider='CcInfo', tags=[name], target_under_test='@build_bazel_rules_swift//test/fixtures/private_deps:client_cc_deps') native.test_suite(name=name, tags=[name])
"""Example of creating new training data from a larger data set""" # Data (Daily stock prices in $) price = [[9.9, 9.8, 9.8, 9.4, 9.5, 9.7], [9.5, 9.4, 9.4, 9.3, 9.2, 9.1], [8.4, 7.9, 7.9, 8.1, 8.0, 8.0], [7.1, 5.9, 4.8, 4.8, 4.7, 3.9]] # One-liner sample = [line[::2] for line in price] # Result print(sample)
"""Example of creating new training data from a larger data set""" price = [[9.9, 9.8, 9.8, 9.4, 9.5, 9.7], [9.5, 9.4, 9.4, 9.3, 9.2, 9.1], [8.4, 7.9, 7.9, 8.1, 8.0, 8.0], [7.1, 5.9, 4.8, 4.8, 4.7, 3.9]] sample = [line[::2] for line in price] print(sample)
# python 3.7.4 """ I used an iterative approach. List comprehension would create a very long lists. This approach tend to have less iteration when you hit a prime factor because the initial number will be divided at every hit. In the worst case we have n iteration in prime_factors function because we have inserted a prime number. In a medium case we have a m/2 <= n <= m iteration where m is the max prime factor. """ def prime_factors(n: int) -> []: factors = [1] d = 2 # first number count = 0 # to save how many iterations are necessary while d <= n: count += 1 if n % d == 0: factors.append(d) # found a new prime, save it n = n / d else: if d % 2 == 0: d += 1 # if even add 1 to become odd else: d += 2 # if odd continue add 2 to skip the even numbers print(f"Count = {count}") return factors def main(): n = 0 try: n = int(input("Insert an integer number:")) except ValueError as error: print(f"{n} is not an integer number!") exit(1) # get the list primes = prime_factors(n) print(f"You have inserted {n}") print(f"Prime factors of {n}:{primes}") # print(f"Max prime factor of {n} : {max(primes)}") # we have primes in ascending order so we can optimize print(f"Max prime factor of {n} : {primes[-1]}") pass main()
""" I used an iterative approach. List comprehension would create a very long lists. This approach tend to have less iteration when you hit a prime factor because the initial number will be divided at every hit. In the worst case we have n iteration in prime_factors function because we have inserted a prime number. In a medium case we have a m/2 <= n <= m iteration where m is the max prime factor. """ def prime_factors(n: int) -> []: factors = [1] d = 2 count = 0 while d <= n: count += 1 if n % d == 0: factors.append(d) n = n / d elif d % 2 == 0: d += 1 else: d += 2 print(f'Count = {count}') return factors def main(): n = 0 try: n = int(input('Insert an integer number:')) except ValueError as error: print(f'{n} is not an integer number!') exit(1) primes = prime_factors(n) print(f'You have inserted {n}') print(f'Prime factors of {n}:{primes}') print(f'Max prime factor of {n} : {primes[-1]}') pass main()
#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)
# -*- coding: utf-8 -*- """ lantz.errors ~~~~~~~~~~~~ Implements base classes for instrumentation related exceptions. They are useful to mix with specific exceptions from libraries or modules and therefore allowing code to catch them via lantz excepts without breaking specific ones. :copyright: 2012 by The Lantz Authors :license: BSD, see LICENSE for more details. """ class InvalidCommand(Exception): pass class LantzTimeoutError(Exception): pass class InstrumentError(Exception): pass
""" lantz.errors ~~~~~~~~~~~~ Implements base classes for instrumentation related exceptions. They are useful to mix with specific exceptions from libraries or modules and therefore allowing code to catch them via lantz excepts without breaking specific ones. :copyright: 2012 by The Lantz Authors :license: BSD, see LICENSE for more details. """ class Invalidcommand(Exception): pass class Lantztimeouterror(Exception): pass class Instrumenterror(Exception): pass
# 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)
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header print('Importing example package')
""" """ print('Importing example package')
# 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
"""This file defines the unified tensor framework interface required by DGL. The principles of this interface: * There should be as few interfaces as possible. * The interface is used by DGL system so it is more important to have clean definition rather than convenient usage. * Default arguments should be avoided. * Keyword or positional arguments should be avoided. * Argument type should be easier to understand. It is recommended the frameworks implement all the interfaces. However, it is also OK to skip some. The generated backend module has an ``is_enabled`` function that returns whether the interface is supported by the framework or not. """ ############################################################################### # Tensor, data type and context interfaces def data_type_dict(): """Returns a dictionary from data type string to the data type. The dictionary should include at least: float16 float32 float64 uint8 int8 int16 int32 int64 bool This function will be called only *once* during the initialization fo the backend module. The returned dictionary will become the attributes of the backend module. Examples -------- >>> import torch as th >>> def data_type_dict(): >>> return { 'float16' : th.float16, 'float32' : th.float32, ... } After the module is initialized. >>> import backend as F >>> F.float16 # this will point to torch.float16 Returns ------- dict of str to data type The data type dict. """ pass def cpu(): """Return a context object for CPU device.""" pass def tensor(data, dtype=None): """Create a tensor given the data and data type. If the input is already a tensor and has the same dtype, directly return. Scalar input is converted to a array of one element instead of a 0-dim tensor to avoid certain issues with some backends. Parameters ---------- data : int, iterable, Tensor The interface should at least support list and numpy array. The data is copied to a newly-allocated tensor. dtype : data type, optional It should be one of the values in the data type dict. If is none, the type should be inferred from data. Returns ------- Tensor A framework-specific tensor. """ pass def as_scalar(data): """Returns a scalar whose value is copied from this array. Parameters ---------- data : Tensor The input data Returns ------- scalar The scalar value in the tensor. """ pass def get_preferred_sparse_format(): """Get the preferred sparse matrix format supported by the backend. Different backends have their preferred backend. This info is useful when constructing a sparse matrix. Returns ------- string the name of the preferred sparse matrix format. """ pass def sparse_matrix(data, index, shape, force_format=False): """Create a sparse matrix. NOTE: Please make sure that the data and index tensors are not copied. This is critical to the performance. Parameters ---------- data : Tensor Data tensor. It should be of shape (nnz,). index : tuple This is used to support different sparse formats. For COO format: index=('coo', coord), where coord is of shape (2, nnz). coord[0,:] should be the row index and coord[1,:] should be the column index. For CSR format: index=('csr', indices, indptr), where indices is of shape (nnz,) and indptr is of shape (nrows+1,). See ``scipy.sparse.csr_matrix`` for more documents on what each array means. shape : tuple of int The shape. force_format : bool If true, the returned sparse matrix must be stored in the same format as the given index. Returns ------- SparseMatrix The framework-specific sparse matrix. It can be stored in any format unless force_format is True. Tensor The data convert index due to sparse format change. None if no conversion is needed. """ pass def sparse_matrix_indices(spmat): """Return the indices of the given sparse matrix. Parameters ---------- spmat : SparseMatrix The framework-specific sparse matrix. Returns ------- index : tuple This is used to support different sparse formats. For COO format: index=('coo', coord), where coord is of shape (2, nnz). coord[0,:] should be the row index and coord[1,:] should be the column index. For CSR format: index=('csr', indices, indptr), where indices is of shape (nnz,) and indptr is of shape (nrows+1,). See ``scipy.sparse.csr_matrix`` for more documents on what each array means. """ pass def is_tensor(obj): """Returns true if the given object is a framework-specific tensor.""" pass def shape(input): """Return the shape of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- tuple of int The tensor shape. """ pass def dtype(input): """Return the data type of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- data type It should be one of the values in the data type dict. """ pass def ndim(input): """Return the number of dimensions of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- int The number of dimensions """ pass def context(input): """Return the context/device of the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Context object A framework-specific context object. """ pass def device_type(ctx): """Return a str representing device type. Parameters ---------- ctx : Device context object. Device context. Returns ------- str """ pass def device_id(ctx): """Return device index. For CPU, the index does not matter. For GPU, the index means which GPU device on the machine. Parameters ---------- ctx : Device context object. Device context. Returns ------- int The device index. """ pass def to_backend_ctx(dglctx): """Convert a DGL context object to a backend context. Parameters ---------- dglctx : dgl.ndarray.DGLContext DGL context object. See _ffi.runtime_types for definition. Returns ------- ctx : framework-specific context object. """ pass def astype(input, ty): """Convert the input tensor to the given data type. Parameters ---------- input : Tensor The input tensor. ty : data type It should be one of the values in the data type dict. Returns ------- Tensor A framework-specific tensor. """ pass def asnumpy(input): """Convert the input tensor to numpy array. The data is copied. Parameters ---------- input : Tensor The input tensor. Returns ------- numpy.ndarray Numpy array. """ pass def copy_to(input, ctx, **kwargs): """Copy the given tensor to the context. Parameters ---------- input : Tensor The input tensor ctx : A framework-specific context object. Returns ------- Tensor The tensor on the given context. """ pass ############################################################################### # Tensor functions on feature data # -------------------------------- # These functions are performance critical, so it's better to have efficient # implementation in each framework. def sum(input, dim, keepdims=False): """Reduce sum the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. keepdims : bool Whether to keep the summed dimension. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_sum(input): """Returns the sum of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def mean(input, dim): """Reduce average the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_mean(input): """Returns the average of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def max(input, dim): """Reduce max the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_max(input): """Returns the max of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def min(input, dim): """Reduce min the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_min(input): """Returns the min of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def argsort(input, dim, descending): """Return the indices that would sort the input along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The dim to sort along. descending : bool Controls the sorting order (False: ascending, True: descending) Returns ------- Tensor A framework-specific tensor. """ def topk(input, k, dim, descending=True): """Return the k largest elements of the given input tensor along the given dimension. If descending is False then the k smallest elements are returned. Parameters ---------- input : Tensor The input tensor. k : int The number of elements. dim : int The dim to sort along. descending : bool Controls whether to return largest/smallest elements. """ pass def argtopk(input, k, dim, descending=True): """Return the indices of the k largest elements of the given input tensor along the given dimension. If descending is False then the k smallest elements are returned. Parameters ---------- input : Tensor The input tensor. k : int The number of elements. dim : int The dimension to sort along. descending : bool Controls whether to return largest/smallest elements. """ pass def exp(input): """Returns a new tensor with the exponential of the elements of the input tensor `input`. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor The output tensor. """ pass def sqrt(input): """Returns a new tensor with the square root of the elements of the input tensor `input`. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor The output tensor. """ pass def softmax(input, dim=-1): """Apply the softmax function on given dimension. Parameters ---------- input : Tensor The input tensor. dim : int The dimension along which to compute softmax. Returns ------- Tensor The output tensor. """ pass def cat(seq, dim): """Concat the sequence of tensors in the given dimension. Parameters ---------- seq : list of Tensor The tensor sequence. dim : int The concat dim. Returns ------- Tensor A framework-specific tensor. """ pass def stack(seq, dim): """Stack the sequence of tensors along the given dimension. Parameters ---------- seq : list of Tensor The tensor sequence. dim : int The concat dim. Returns ------- Tensor A framework-specific tensor. """ pass def split(input, sizes_or_sections, dim): """Split the input tensor into chunks. If ``sizes_or_sections`` is an integer, then the tensor will be splitted into equal pieces. If ``sizes_or_sections`` is a list, then the tensor will be splitted into segments. Parameters ---------- input : Tensor Tensor to split. sizes_or_sections : int, list[int] Split sizes or sections. dim : int The dimension to split on. Returns ------- list of Tensor The splitted tensors. """ pass def repeat(input, repeats, dim): """Repeats elements of an array. Parameters ---------- input : Tensor Input data array repeats : int, Tensor The number of repetitions for each element dim : int The dim along which to repeat values. Returns ------- Tensor The obtained tensor. """ pass def gather_row(data, row_index): """Slice out the data given the row index. Parameters ---------- data : Tensor The data tensor row_index : Tensor A 1-D integer tensor containing which rows to be sliced out. Returns ------- Tensor The sliced data. The first dimension should equal to ``len(row_index)``. """ pass def slice_axis(data, axis, begin, end): """Slice along a given axis. Returns an array slice along a given axis starting from :attr:`begin` index to :attr:`end` index. Parameters ---------- data : Tensor The data tensor. axis : int The axis along to slice the tensor. begin : int Indicates the begin index. end : int Indicates the end index. Returns: -------- Tensor The sliced tensor. """ pass def take(data, indices, dim): """Takes elements from an input array along the given dim. Parameters ---------- data : Tensor The data tensor. indices : Tensor The indices tensor. dim : Tensor The dimension to gather along. """ pass def narrow_row(x, start, stop): """Narrow down the tensor along the first dimension. Parameters ---------- x : Tensor The input tensor. start : int The start index (inclusive). stop : int The stop index (exclusive). Returns ------- Tensor The narrowed tensor Notes ----- The returned tensor could be a view of the original tensor. """ pass def scatter_row(data, row_index, value): """Write the value into the data tensor using the row index. This is an out-place write so it can work with autograd. Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. Returns ------- Tensor The new data. """ pass def index_add_inplace(data, row_idx, value): """Add the values into the data tensor using the row index inplace. If two row indices are the same, the corresponding values are sum up before adding to the data tensor. Examples -------- >>> import torch as th >>> arr = th.zeros((10)) >>> F. index_add_inplace(arr, th.tensor([0, 1, 1]), th.tensor([1.0, 1.0, 1.0])) >>> arr tensor([1., 2., 0., 0., 0., 0., 0., 0., 0., 0.]) Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. """ pass def scatter_row_inplace(data, row_index, value): """Write the value into the data tensor using the row index inplace. This is an inplace write so it will break the autograd. Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. """ pass def squeeze(input, dim): """Remove the given dimension of size 1. Parameters ---------- input : Tensor The input tensor. dim : int The dimension to be squeezed. Returns ------- Tensor The result tensor. """ pass def unsqueeze(input, dim): """Add the given dimension of size 1. Parameters ---------- input : Tensor The input tensor. dim : int The dimension to be unsqueezed. Returns ------- Tensor The result tensor. """ pass def reshape(input, shape): """Reshape the tensor. Parameters ---------- input : Tensor The input tensor. shape : tuple of int The new shape. Returns ------- Tensor The reshaped tensor. """ pass def swapaxes(input, axis1, axis2): """Interchange the two given axes of a tensor. Parameters ---------- input : Tensor The input tensor. axis1, axis2 : int The two axes. Returns ------- Tensor The transposed tensor. """ pass def zeros(shape, dtype, ctx): """Create a zero tensor. Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The zero tensor. """ pass def zeros_like(input): """Create a zero tensor with the same shape, dtype and context of the given tensor. Parameters ---------- input : Tensor The input Returns ------- Tensor The result """ pass def ones(shape, dtype, ctx): """Create a one tensor. Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The one tensor. """ pass def uniform(shape, dtype, ctx, low, high): """Crear a tensor with random value in an uniform distribution between low (inclusive) and high (exclusive). Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The random tensor. """ pass def pad_packed_tensor(input, lengths, value, l_min=None): r"""Pads a packed batch of variable length tensors with given value. Parameters ---------- input : Tensor The input tensor with shape :math:`(N, *)` lengths : list or tensor The array of tensor lengths (of the first dimension) :math:`L`. It should satisfy :math:`\sum_{i=1}^{B}L_i = N`, where :math:`B` is the length of :math:`L`. value : float The value to fill in the tensor. l_min : int or None, defaults to None. The minimum length each tensor need to be padded to, if set to None, then there is no minimum length requirement. Returns ------- Tensor The obtained tensor with shape :math:`(B, \max(\max_i(L_i), l_{min}), *)` """ pass def pack_padded_tensor(input, lengths): r"""Packs a tensor containing padded sequence of variable length. Parameters ---------- input : Tensor The input tensor with shape :math:`(B, L, *)`, where :math:`B` is the batch size and :math:`L` is the maximum length of the batch. lengths : list or tensor The array of tensor lengths (of the first dimension) :math:`L`. :math:`\max_i(L_i)` should equal :math:`L`. Returns ------- Tensor The obtained tensor with shape :math:`(N, *)` where :math:`N = \sum_{i=1}^{B}L_i` """ pass def boolean_mask(input, mask): """Selects elements in x according to the given mask from the first dimension. Parameters ---------- input : Tensor The input tensor mask : Boolean Tensor The mask Returns ------- Tensor The result """ pass def equal(x, y): """Compares whether the elements are equal. Parameters ---------- x, y : Tensor The two tensors Returns ------- Boolean or integer tensor The result, with the same shape as input. """ pass def logical_not(input): """Perform a logical not operation. Equivalent to np.logical_not Parameters ---------- input : Tensor The input Returns ------- Tensor The result """ pass def logical_and(input1, input2): pass def clone(input): """Return a clone of the input tensor. Parameters ---------- input : Tensor Input tensor. Returns ------- Tensor A clone tensor. """ pass def clamp(data, min_val, max_val): """Clamp all elements in :attr:`input` into the range [min_val, max_val] and return a resulting tensor. Parameters ---------- data : Tensor Input tensor min_val : Scalar Min value. max_val : Scalar Max value. Returns ------- Tensor The result. """ pass ############################################################################### # Tensor functions used *only* on index tensor # ---------------- # These operators are light-weighted, so it is acceptable to fallback to # numpy operators if currently missing in the framework. Ideally in the future, # DGL should contain all the operations on index, so this set of operators # should be gradually removed. def unique(input): """Returns the unique scalar elements in a tensor. Parameters ---------- input : Tensor Must be a 1-D tensor. Returns ------- Tensor A 1-D tensor containing unique elements. """ pass def full_1d(length, fill_value, dtype, ctx): """Create a 1D tensor full of the fill_value. Parameters ---------- shape : int The length of the vector. fill_value : int The filled value. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor A result 1D tensor """ pass def nonzero_1d(input): """Return the nonzero index of the given 1D input. Parameters ---------- input : Tensor Must be a 1D tensor. Returns ------- Tensor A 1D integer tensor containing the nonzero indices. """ pass def sort_1d(input): """Sort a 1D tensor (in ascending order) and also return the original index. Parameters ---------- input : Tensor The tensor to be sorted. Returns ------- Tensor Sorted tensor. Tensor Index tensor of the elements in the original input. """ pass def arange(start, stop, dtype): """Create a 1D range int64 tensor. Parameters ---------- start : int The range start. stop : int The range stop. dtype: str The dtype of result tensor Returns ------- Tensor The result tensor. """ pass def rand_shuffle(arr): """Random shuffle the data in the first dimension of the array. The shuffled data is stored in a new array. Parameters ---------- arr : Tensor The data tensor Returns ------- Tensor The result tensor """ pass def zerocopy_to_dlpack(input): """Create a dlpack tensor that shares the input memory. Parameters ---------- input : Tensor The input tensor Returns ------- dlpack capsule A dlpack capsule that can be used by other framework. """ pass def zerocopy_from_dlpack(dlpack_tensor): """Create a tensor that shares the dlpack_tensor. Parameters ---------- dlpack_tensor : dlpack capsule The dlpack tensor. Returns ------- Tensor A framework-specific tensor. """ pass def zerocopy_to_numpy(input): """Create a numpy ndarray that shares the input memory. Parameters ---------- input : Tensor The input tensor Returns ------- numpy.ndarray A numpy ndarray. """ pass def zerocopy_from_numpy(np_array): """Create a tensor that shares the numpy array. Parameters ---------- np_array : numpy.ndarray The numpy ndarray. Returns ------- Tensor A framework-specific tensor. """ pass def zerocopy_to_dgl_ndarray(input): """Zerocopy a framework-specific Tensor to dgl.ndarray.NDArray Parameters ---------- input : Tensor Returns ------- dgl.ndarray.NDArray """ pass def zerocopy_to_dgl_ndarray_for_write(input): """Zerocopy a framework-specific Tensor to dgl.ndarray.NDArray that is ready for write (required in MXNet). Parameters ---------- input : Tensor Returns ------- dgl.ndarray.NDArray """ pass def zerocopy_from_dgl_ndarray(input): """Zerocopy a dgl.ndarray.NDArray to framework-specific Tensor Parameters ---------- input : dgl.ndarray.NDArray Returns ------- Tensor """ pass ############################################################################### # Custom Operators for graph level computations. # Note: These operators are supposed to be implemented using DGL-provided # kernels (see kernel.py), and plug into tensor framework using custom op # extensions. def binary_reduce(reducer, binary_op, graph, lhs, rhs, lhs_data, rhs_data, out_size, lhs_map, rhs_map, out_map): """Perform binary operation between given data and reduce based on graph structure. Parameters ---------- reducer : str Type of reduction: 'sum', 'max', 'min', 'mean', 'prod', 'none' (no reduction) binary_op : str Binary operation to perform, can be 'add', 'mul', 'sub', 'div' graph : GraphIndex The graph lhs : int The lhs target (src, dst, edge) rhs : int The rhs target (src, dst, edge) lhs_data : Tensor The lhs data rhs_data : Tensor The rhs data out_size : int Size of first dimension of output data lhs_map : tuple Two lhs id mapping arrays, one for forward pass, the other for backward rhs_map : tuple Two rhs id mapping arrays, one for forward pass, the other for backward out_map : tuple Two out id mapping arrays, one for forward pass, the other for backward Returns ------- Tensor The result. """ pass def copy_reduce(reducer, graph, target, in_data, out_size, in_map, out_map): """Copy target data and perform reduce based on graph structure. Parameters ---------- reducer : str Type of reduction: be 'sum', 'max', 'min', 'mean', 'prod', 'none' (no reduction) graph : GraphIndex The graph target : int The input target (src, dst, edge) in_data : Tensor The input data out_size : int Size of first dimension of output data in_map : tuple Two input id mapping arrays, one for forward, the other for backward out_map : tuple Two output id mapping arrays, one for forward, the other for backward Returns ------- Tensor The result. """ pass def gspmm(gidx, op, reduce_op, lhs_data, rhs_data): r""" Generalized Sparse Matrix Multiplication interface. It fuses two steps into one kernel. (1) Computes messages by :attr:`op` source node and edge features. (2) Aggregate the messages by :attr:`reduce_op` as the features on destination nodes. .. math:: x_v = \psi_{(u, v, e)\in \mathcal{G}}(\rho(x_u, x_e)) where :math:`x_v` is the returned feature on destination nodes, and :math`x_u`, :math:`x_e` refers to :attr:`u`, :attr:`e` respectively. :math:`\rho` means binary operator :attr:`op` and :math:`\psi` means reduce operator :attr:`reduce_op`, :math:`\mathcal{G}` is the graph we apply gspmm on: :attr:`g`. Note that this function does not handle gradients. Parameters ---------- gidx : HeteroGraphIndex The input graph. op : str The binary op's name, could be ``add``, ``sub``, ``mul``, ``div``, ``copy_lhs``, ``copy_rhs``. reduce_op : str Reduce operator, could be ``sum``, ``max``, ``min``. lhs_data : tensor or None The left operand, could be None if it's not required by the op. rhs_data : tensor or None The right operand, could be None if it's not required by the op. Returns ------- tensor The result tensor. """ pass def gsddmm(gidx, op, lhs_data, rhs_data, lhs_target='u', rhs_target='v'): r""" Generalized Sampled-Dense-Dense Matrix Multiplication interface. It computes edge features by :attr:`op` lhs features and rhs features. .. math:: x_{e} = \phi(x_{lhs}, x_{rhs}), \forall (u,e,v)\in \mathcal{G} where :math:`x_{e}` is the returned feature on edges and :math:`x_u`, :math:`x_v` refers to :attr:`u`, :attr:`v` respectively. :math:`\phi` is the binary operator :attr:`op`, and :math:`\mathcal{G}` is the graph we apply gsddmm on: :attr:`g`. $lhs$ and $rhs$ are one of $u,v,e$'s. Parameters ---------- gidx : HeteroGraphIndex The input graph. op : str Binary operator, could be ``add``, ``sub``, ``mul``, ``div``, ``dot``, ``copy_lhs``, ``copy_rhs``. lhs_data : tensor or None The left operand, could be None if it's not required by op. rhs_data : tensor or None The right operand, could be None if it's not required by op. lhs_target: str Choice of `u`(source), `e`(edge) or `v`(destination) for left operand. rhs_target: str Choice of `u`(source), `e`(edge) or `v`(destination) for right operand. Returns ------- tensor The result tensor. """ pass def edge_softmax(gidx, logits, eids, norm_by): r"""Compute edge softmax. For a node :math:`i`, edge softmax is an operation of computing .. math:: a_{ij} = \frac{\exp(z_{ij})}{\sum_{j\in\mathcal{N}(i)}\exp(z_{ij})} where :math:`z_{ij}` is a signal of edge :math:`j\rightarrow i`, also called logits in the context of softmax. :math:`\mathcal{N}(i)` is the set of nodes that have an edge to :math:`i`. By default edge softmax is normalized by destination nodes(i.e. :math:`ij` are incoming edges of `i` in the formula above). We also support edge softmax normalized by source nodes(i.e. :math:`ij` are outgoing edges of `i` in the formula). The previous case correspond to softmax in GAT and Transformer, and the later case correspond to softmax in Capsule network. Parameters ---------- gidx : HeteroGraphIndex The graph to perfor edge softmax on. logits : torch.Tensor The input edge feature eids : torch.Tensor or ALL, optional Edges on which to apply edge softmax. If ALL, apply edge softmax on all edges in the graph. Default: ALL. norm_by : str, could be `src` or `dst` Normalized by source nodes or destination nodes. Default: `dst`. Returns ------- Tensor Softmax value """ ############################################################################### # Other interfaces # ---------------- # These are not related to tensors. Some of them are temporary workarounds that # should be included in DGL in the future. def sync(): """Synchronize computation. In DL frameworks such as MXNet and TensorFlow, the computation in operators are done asynchronously. This is to synchronize computation and makes sure that all computation is complete after this function call. """ pass def attach_grad(tensor): """ Attach gradients to the input tensor """ pass def backward(x, head_gradient=None): """Invoke backward computation with an optional head gradient. """ pass def grad(x): """Fetches the gradient from the tensor after backward computation. """ pass def is_no_grad(x): """ Test if the input tensor has gradient """ pass def is_recording(): """ Test if the execution is recording gradients. """ pass class record_grad(object): """Context manager that records the gradients""" def __init__(self): pass def __enter__(self): pass def __exit__(self, exc_type, exc_value, exc_traceback): pass class no_grad(object): """Context manager that explicitly disables gradient computation""" def __init__(self): pass def __enter__(self): pass def __exit__(self, exc_type, exc_value, exc_traceback): pass
"""This file defines the unified tensor framework interface required by DGL. The principles of this interface: * There should be as few interfaces as possible. * The interface is used by DGL system so it is more important to have clean definition rather than convenient usage. * Default arguments should be avoided. * Keyword or positional arguments should be avoided. * Argument type should be easier to understand. It is recommended the frameworks implement all the interfaces. However, it is also OK to skip some. The generated backend module has an ``is_enabled`` function that returns whether the interface is supported by the framework or not. """ def data_type_dict(): """Returns a dictionary from data type string to the data type. The dictionary should include at least: float16 float32 float64 uint8 int8 int16 int32 int64 bool This function will be called only *once* during the initialization fo the backend module. The returned dictionary will become the attributes of the backend module. Examples -------- >>> import torch as th >>> def data_type_dict(): >>> return { 'float16' : th.float16, 'float32' : th.float32, ... } After the module is initialized. >>> import backend as F >>> F.float16 # this will point to torch.float16 Returns ------- dict of str to data type The data type dict. """ pass def cpu(): """Return a context object for CPU device.""" pass def tensor(data, dtype=None): """Create a tensor given the data and data type. If the input is already a tensor and has the same dtype, directly return. Scalar input is converted to a array of one element instead of a 0-dim tensor to avoid certain issues with some backends. Parameters ---------- data : int, iterable, Tensor The interface should at least support list and numpy array. The data is copied to a newly-allocated tensor. dtype : data type, optional It should be one of the values in the data type dict. If is none, the type should be inferred from data. Returns ------- Tensor A framework-specific tensor. """ pass def as_scalar(data): """Returns a scalar whose value is copied from this array. Parameters ---------- data : Tensor The input data Returns ------- scalar The scalar value in the tensor. """ pass def get_preferred_sparse_format(): """Get the preferred sparse matrix format supported by the backend. Different backends have their preferred backend. This info is useful when constructing a sparse matrix. Returns ------- string the name of the preferred sparse matrix format. """ pass def sparse_matrix(data, index, shape, force_format=False): """Create a sparse matrix. NOTE: Please make sure that the data and index tensors are not copied. This is critical to the performance. Parameters ---------- data : Tensor Data tensor. It should be of shape (nnz,). index : tuple This is used to support different sparse formats. For COO format: index=('coo', coord), where coord is of shape (2, nnz). coord[0,:] should be the row index and coord[1,:] should be the column index. For CSR format: index=('csr', indices, indptr), where indices is of shape (nnz,) and indptr is of shape (nrows+1,). See ``scipy.sparse.csr_matrix`` for more documents on what each array means. shape : tuple of int The shape. force_format : bool If true, the returned sparse matrix must be stored in the same format as the given index. Returns ------- SparseMatrix The framework-specific sparse matrix. It can be stored in any format unless force_format is True. Tensor The data convert index due to sparse format change. None if no conversion is needed. """ pass def sparse_matrix_indices(spmat): """Return the indices of the given sparse matrix. Parameters ---------- spmat : SparseMatrix The framework-specific sparse matrix. Returns ------- index : tuple This is used to support different sparse formats. For COO format: index=('coo', coord), where coord is of shape (2, nnz). coord[0,:] should be the row index and coord[1,:] should be the column index. For CSR format: index=('csr', indices, indptr), where indices is of shape (nnz,) and indptr is of shape (nrows+1,). See ``scipy.sparse.csr_matrix`` for more documents on what each array means. """ pass def is_tensor(obj): """Returns true if the given object is a framework-specific tensor.""" pass def shape(input): """Return the shape of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- tuple of int The tensor shape. """ pass def dtype(input): """Return the data type of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- data type It should be one of the values in the data type dict. """ pass def ndim(input): """Return the number of dimensions of the tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- int The number of dimensions """ pass def context(input): """Return the context/device of the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Context object A framework-specific context object. """ pass def device_type(ctx): """Return a str representing device type. Parameters ---------- ctx : Device context object. Device context. Returns ------- str """ pass def device_id(ctx): """Return device index. For CPU, the index does not matter. For GPU, the index means which GPU device on the machine. Parameters ---------- ctx : Device context object. Device context. Returns ------- int The device index. """ pass def to_backend_ctx(dglctx): """Convert a DGL context object to a backend context. Parameters ---------- dglctx : dgl.ndarray.DGLContext DGL context object. See _ffi.runtime_types for definition. Returns ------- ctx : framework-specific context object. """ pass def astype(input, ty): """Convert the input tensor to the given data type. Parameters ---------- input : Tensor The input tensor. ty : data type It should be one of the values in the data type dict. Returns ------- Tensor A framework-specific tensor. """ pass def asnumpy(input): """Convert the input tensor to numpy array. The data is copied. Parameters ---------- input : Tensor The input tensor. Returns ------- numpy.ndarray Numpy array. """ pass def copy_to(input, ctx, **kwargs): """Copy the given tensor to the context. Parameters ---------- input : Tensor The input tensor ctx : A framework-specific context object. Returns ------- Tensor The tensor on the given context. """ pass def sum(input, dim, keepdims=False): """Reduce sum the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. keepdims : bool Whether to keep the summed dimension. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_sum(input): """Returns the sum of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def mean(input, dim): """Reduce average the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_mean(input): """Returns the average of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def max(input, dim): """Reduce max the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_max(input): """Returns the max of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def min(input, dim): """Reduce min the input tensor along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The reduce dim. Returns ------- Tensor A framework-specific tensor. """ pass def reduce_min(input): """Returns the min of all elements in the input tensor. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor A framework-specific tensor with shape (1,) """ pass def argsort(input, dim, descending): """Return the indices that would sort the input along the given dim. Parameters ---------- input : Tensor The input tensor. dim : int The dim to sort along. descending : bool Controls the sorting order (False: ascending, True: descending) Returns ------- Tensor A framework-specific tensor. """ def topk(input, k, dim, descending=True): """Return the k largest elements of the given input tensor along the given dimension. If descending is False then the k smallest elements are returned. Parameters ---------- input : Tensor The input tensor. k : int The number of elements. dim : int The dim to sort along. descending : bool Controls whether to return largest/smallest elements. """ pass def argtopk(input, k, dim, descending=True): """Return the indices of the k largest elements of the given input tensor along the given dimension. If descending is False then the k smallest elements are returned. Parameters ---------- input : Tensor The input tensor. k : int The number of elements. dim : int The dimension to sort along. descending : bool Controls whether to return largest/smallest elements. """ pass def exp(input): """Returns a new tensor with the exponential of the elements of the input tensor `input`. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor The output tensor. """ pass def sqrt(input): """Returns a new tensor with the square root of the elements of the input tensor `input`. Parameters ---------- input : Tensor The input tensor. Returns ------- Tensor The output tensor. """ pass def softmax(input, dim=-1): """Apply the softmax function on given dimension. Parameters ---------- input : Tensor The input tensor. dim : int The dimension along which to compute softmax. Returns ------- Tensor The output tensor. """ pass def cat(seq, dim): """Concat the sequence of tensors in the given dimension. Parameters ---------- seq : list of Tensor The tensor sequence. dim : int The concat dim. Returns ------- Tensor A framework-specific tensor. """ pass def stack(seq, dim): """Stack the sequence of tensors along the given dimension. Parameters ---------- seq : list of Tensor The tensor sequence. dim : int The concat dim. Returns ------- Tensor A framework-specific tensor. """ pass def split(input, sizes_or_sections, dim): """Split the input tensor into chunks. If ``sizes_or_sections`` is an integer, then the tensor will be splitted into equal pieces. If ``sizes_or_sections`` is a list, then the tensor will be splitted into segments. Parameters ---------- input : Tensor Tensor to split. sizes_or_sections : int, list[int] Split sizes or sections. dim : int The dimension to split on. Returns ------- list of Tensor The splitted tensors. """ pass def repeat(input, repeats, dim): """Repeats elements of an array. Parameters ---------- input : Tensor Input data array repeats : int, Tensor The number of repetitions for each element dim : int The dim along which to repeat values. Returns ------- Tensor The obtained tensor. """ pass def gather_row(data, row_index): """Slice out the data given the row index. Parameters ---------- data : Tensor The data tensor row_index : Tensor A 1-D integer tensor containing which rows to be sliced out. Returns ------- Tensor The sliced data. The first dimension should equal to ``len(row_index)``. """ pass def slice_axis(data, axis, begin, end): """Slice along a given axis. Returns an array slice along a given axis starting from :attr:`begin` index to :attr:`end` index. Parameters ---------- data : Tensor The data tensor. axis : int The axis along to slice the tensor. begin : int Indicates the begin index. end : int Indicates the end index. Returns: -------- Tensor The sliced tensor. """ pass def take(data, indices, dim): """Takes elements from an input array along the given dim. Parameters ---------- data : Tensor The data tensor. indices : Tensor The indices tensor. dim : Tensor The dimension to gather along. """ pass def narrow_row(x, start, stop): """Narrow down the tensor along the first dimension. Parameters ---------- x : Tensor The input tensor. start : int The start index (inclusive). stop : int The stop index (exclusive). Returns ------- Tensor The narrowed tensor Notes ----- The returned tensor could be a view of the original tensor. """ pass def scatter_row(data, row_index, value): """Write the value into the data tensor using the row index. This is an out-place write so it can work with autograd. Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. Returns ------- Tensor The new data. """ pass def index_add_inplace(data, row_idx, value): """Add the values into the data tensor using the row index inplace. If two row indices are the same, the corresponding values are sum up before adding to the data tensor. Examples -------- >>> import torch as th >>> arr = th.zeros((10)) >>> F. index_add_inplace(arr, th.tensor([0, 1, 1]), th.tensor([1.0, 1.0, 1.0])) >>> arr tensor([1., 2., 0., 0., 0., 0., 0., 0., 0., 0.]) Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. """ pass def scatter_row_inplace(data, row_index, value): """Write the value into the data tensor using the row index inplace. This is an inplace write so it will break the autograd. Parameters ---------- data : Tensor The data tensor to be updated. row_index : Tensor A 1-D integer tensor containing which rows to be updated. value : Tensor The new value. """ pass def squeeze(input, dim): """Remove the given dimension of size 1. Parameters ---------- input : Tensor The input tensor. dim : int The dimension to be squeezed. Returns ------- Tensor The result tensor. """ pass def unsqueeze(input, dim): """Add the given dimension of size 1. Parameters ---------- input : Tensor The input tensor. dim : int The dimension to be unsqueezed. Returns ------- Tensor The result tensor. """ pass def reshape(input, shape): """Reshape the tensor. Parameters ---------- input : Tensor The input tensor. shape : tuple of int The new shape. Returns ------- Tensor The reshaped tensor. """ pass def swapaxes(input, axis1, axis2): """Interchange the two given axes of a tensor. Parameters ---------- input : Tensor The input tensor. axis1, axis2 : int The two axes. Returns ------- Tensor The transposed tensor. """ pass def zeros(shape, dtype, ctx): """Create a zero tensor. Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The zero tensor. """ pass def zeros_like(input): """Create a zero tensor with the same shape, dtype and context of the given tensor. Parameters ---------- input : Tensor The input Returns ------- Tensor The result """ pass def ones(shape, dtype, ctx): """Create a one tensor. Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The one tensor. """ pass def uniform(shape, dtype, ctx, low, high): """Crear a tensor with random value in an uniform distribution between low (inclusive) and high (exclusive). Parameters ---------- shape : tuple of int The tensor shape. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor The random tensor. """ pass def pad_packed_tensor(input, lengths, value, l_min=None): """Pads a packed batch of variable length tensors with given value. Parameters ---------- input : Tensor The input tensor with shape :math:`(N, *)` lengths : list or tensor The array of tensor lengths (of the first dimension) :math:`L`. It should satisfy :math:`\\sum_{i=1}^{B}L_i = N`, where :math:`B` is the length of :math:`L`. value : float The value to fill in the tensor. l_min : int or None, defaults to None. The minimum length each tensor need to be padded to, if set to None, then there is no minimum length requirement. Returns ------- Tensor The obtained tensor with shape :math:`(B, \\max(\\max_i(L_i), l_{min}), *)` """ pass def pack_padded_tensor(input, lengths): """Packs a tensor containing padded sequence of variable length. Parameters ---------- input : Tensor The input tensor with shape :math:`(B, L, *)`, where :math:`B` is the batch size and :math:`L` is the maximum length of the batch. lengths : list or tensor The array of tensor lengths (of the first dimension) :math:`L`. :math:`\\max_i(L_i)` should equal :math:`L`. Returns ------- Tensor The obtained tensor with shape :math:`(N, *)` where :math:`N = \\sum_{i=1}^{B}L_i` """ pass def boolean_mask(input, mask): """Selects elements in x according to the given mask from the first dimension. Parameters ---------- input : Tensor The input tensor mask : Boolean Tensor The mask Returns ------- Tensor The result """ pass def equal(x, y): """Compares whether the elements are equal. Parameters ---------- x, y : Tensor The two tensors Returns ------- Boolean or integer tensor The result, with the same shape as input. """ pass def logical_not(input): """Perform a logical not operation. Equivalent to np.logical_not Parameters ---------- input : Tensor The input Returns ------- Tensor The result """ pass def logical_and(input1, input2): pass def clone(input): """Return a clone of the input tensor. Parameters ---------- input : Tensor Input tensor. Returns ------- Tensor A clone tensor. """ pass def clamp(data, min_val, max_val): """Clamp all elements in :attr:`input` into the range [min_val, max_val] and return a resulting tensor. Parameters ---------- data : Tensor Input tensor min_val : Scalar Min value. max_val : Scalar Max value. Returns ------- Tensor The result. """ pass def unique(input): """Returns the unique scalar elements in a tensor. Parameters ---------- input : Tensor Must be a 1-D tensor. Returns ------- Tensor A 1-D tensor containing unique elements. """ pass def full_1d(length, fill_value, dtype, ctx): """Create a 1D tensor full of the fill_value. Parameters ---------- shape : int The length of the vector. fill_value : int The filled value. dtype : data type It should be one of the values in the data type dict. ctx : context The device of the result tensor. Returns ------- Tensor A result 1D tensor """ pass def nonzero_1d(input): """Return the nonzero index of the given 1D input. Parameters ---------- input : Tensor Must be a 1D tensor. Returns ------- Tensor A 1D integer tensor containing the nonzero indices. """ pass def sort_1d(input): """Sort a 1D tensor (in ascending order) and also return the original index. Parameters ---------- input : Tensor The tensor to be sorted. Returns ------- Tensor Sorted tensor. Tensor Index tensor of the elements in the original input. """ pass def arange(start, stop, dtype): """Create a 1D range int64 tensor. Parameters ---------- start : int The range start. stop : int The range stop. dtype: str The dtype of result tensor Returns ------- Tensor The result tensor. """ pass def rand_shuffle(arr): """Random shuffle the data in the first dimension of the array. The shuffled data is stored in a new array. Parameters ---------- arr : Tensor The data tensor Returns ------- Tensor The result tensor """ pass def zerocopy_to_dlpack(input): """Create a dlpack tensor that shares the input memory. Parameters ---------- input : Tensor The input tensor Returns ------- dlpack capsule A dlpack capsule that can be used by other framework. """ pass def zerocopy_from_dlpack(dlpack_tensor): """Create a tensor that shares the dlpack_tensor. Parameters ---------- dlpack_tensor : dlpack capsule The dlpack tensor. Returns ------- Tensor A framework-specific tensor. """ pass def zerocopy_to_numpy(input): """Create a numpy ndarray that shares the input memory. Parameters ---------- input : Tensor The input tensor Returns ------- numpy.ndarray A numpy ndarray. """ pass def zerocopy_from_numpy(np_array): """Create a tensor that shares the numpy array. Parameters ---------- np_array : numpy.ndarray The numpy ndarray. Returns ------- Tensor A framework-specific tensor. """ pass def zerocopy_to_dgl_ndarray(input): """Zerocopy a framework-specific Tensor to dgl.ndarray.NDArray Parameters ---------- input : Tensor Returns ------- dgl.ndarray.NDArray """ pass def zerocopy_to_dgl_ndarray_for_write(input): """Zerocopy a framework-specific Tensor to dgl.ndarray.NDArray that is ready for write (required in MXNet). Parameters ---------- input : Tensor Returns ------- dgl.ndarray.NDArray """ pass def zerocopy_from_dgl_ndarray(input): """Zerocopy a dgl.ndarray.NDArray to framework-specific Tensor Parameters ---------- input : dgl.ndarray.NDArray Returns ------- Tensor """ pass def binary_reduce(reducer, binary_op, graph, lhs, rhs, lhs_data, rhs_data, out_size, lhs_map, rhs_map, out_map): """Perform binary operation between given data and reduce based on graph structure. Parameters ---------- reducer : str Type of reduction: 'sum', 'max', 'min', 'mean', 'prod', 'none' (no reduction) binary_op : str Binary operation to perform, can be 'add', 'mul', 'sub', 'div' graph : GraphIndex The graph lhs : int The lhs target (src, dst, edge) rhs : int The rhs target (src, dst, edge) lhs_data : Tensor The lhs data rhs_data : Tensor The rhs data out_size : int Size of first dimension of output data lhs_map : tuple Two lhs id mapping arrays, one for forward pass, the other for backward rhs_map : tuple Two rhs id mapping arrays, one for forward pass, the other for backward out_map : tuple Two out id mapping arrays, one for forward pass, the other for backward Returns ------- Tensor The result. """ pass def copy_reduce(reducer, graph, target, in_data, out_size, in_map, out_map): """Copy target data and perform reduce based on graph structure. Parameters ---------- reducer : str Type of reduction: be 'sum', 'max', 'min', 'mean', 'prod', 'none' (no reduction) graph : GraphIndex The graph target : int The input target (src, dst, edge) in_data : Tensor The input data out_size : int Size of first dimension of output data in_map : tuple Two input id mapping arrays, one for forward, the other for backward out_map : tuple Two output id mapping arrays, one for forward, the other for backward Returns ------- Tensor The result. """ pass def gspmm(gidx, op, reduce_op, lhs_data, rhs_data): """ Generalized Sparse Matrix Multiplication interface. It fuses two steps into one kernel. (1) Computes messages by :attr:`op` source node and edge features. (2) Aggregate the messages by :attr:`reduce_op` as the features on destination nodes. .. math:: x_v = \\psi_{(u, v, e)\\in \\mathcal{G}}(\\rho(x_u, x_e)) where :math:`x_v` is the returned feature on destination nodes, and :math`x_u`, :math:`x_e` refers to :attr:`u`, :attr:`e` respectively. :math:`\\rho` means binary operator :attr:`op` and :math:`\\psi` means reduce operator :attr:`reduce_op`, :math:`\\mathcal{G}` is the graph we apply gspmm on: :attr:`g`. Note that this function does not handle gradients. Parameters ---------- gidx : HeteroGraphIndex The input graph. op : str The binary op's name, could be ``add``, ``sub``, ``mul``, ``div``, ``copy_lhs``, ``copy_rhs``. reduce_op : str Reduce operator, could be ``sum``, ``max``, ``min``. lhs_data : tensor or None The left operand, could be None if it's not required by the op. rhs_data : tensor or None The right operand, could be None if it's not required by the op. Returns ------- tensor The result tensor. """ pass def gsddmm(gidx, op, lhs_data, rhs_data, lhs_target='u', rhs_target='v'): """ Generalized Sampled-Dense-Dense Matrix Multiplication interface. It computes edge features by :attr:`op` lhs features and rhs features. .. math:: x_{e} = \\phi(x_{lhs}, x_{rhs}), \\forall (u,e,v)\\in \\mathcal{G} where :math:`x_{e}` is the returned feature on edges and :math:`x_u`, :math:`x_v` refers to :attr:`u`, :attr:`v` respectively. :math:`\\phi` is the binary operator :attr:`op`, and :math:`\\mathcal{G}` is the graph we apply gsddmm on: :attr:`g`. $lhs$ and $rhs$ are one of $u,v,e$'s. Parameters ---------- gidx : HeteroGraphIndex The input graph. op : str Binary operator, could be ``add``, ``sub``, ``mul``, ``div``, ``dot``, ``copy_lhs``, ``copy_rhs``. lhs_data : tensor or None The left operand, could be None if it's not required by op. rhs_data : tensor or None The right operand, could be None if it's not required by op. lhs_target: str Choice of `u`(source), `e`(edge) or `v`(destination) for left operand. rhs_target: str Choice of `u`(source), `e`(edge) or `v`(destination) for right operand. Returns ------- tensor The result tensor. """ pass def edge_softmax(gidx, logits, eids, norm_by): """Compute edge softmax. For a node :math:`i`, edge softmax is an operation of computing .. math:: a_{ij} = \\frac{\\exp(z_{ij})}{\\sum_{j\\in\\mathcal{N}(i)}\\exp(z_{ij})} where :math:`z_{ij}` is a signal of edge :math:`j\\rightarrow i`, also called logits in the context of softmax. :math:`\\mathcal{N}(i)` is the set of nodes that have an edge to :math:`i`. By default edge softmax is normalized by destination nodes(i.e. :math:`ij` are incoming edges of `i` in the formula above). We also support edge softmax normalized by source nodes(i.e. :math:`ij` are outgoing edges of `i` in the formula). The previous case correspond to softmax in GAT and Transformer, and the later case correspond to softmax in Capsule network. Parameters ---------- gidx : HeteroGraphIndex The graph to perfor edge softmax on. logits : torch.Tensor The input edge feature eids : torch.Tensor or ALL, optional Edges on which to apply edge softmax. If ALL, apply edge softmax on all edges in the graph. Default: ALL. norm_by : str, could be `src` or `dst` Normalized by source nodes or destination nodes. Default: `dst`. Returns ------- Tensor Softmax value """ def sync(): """Synchronize computation. In DL frameworks such as MXNet and TensorFlow, the computation in operators are done asynchronously. This is to synchronize computation and makes sure that all computation is complete after this function call. """ pass def attach_grad(tensor): """ Attach gradients to the input tensor """ pass def backward(x, head_gradient=None): """Invoke backward computation with an optional head gradient. """ pass def grad(x): """Fetches the gradient from the tensor after backward computation. """ pass def is_no_grad(x): """ Test if the input tensor has gradient """ pass def is_recording(): """ Test if the execution is recording gradients. """ pass class Record_Grad(object): """Context manager that records the gradients""" def __init__(self): pass def __enter__(self): pass def __exit__(self, exc_type, exc_value, exc_traceback): pass class No_Grad(object): """Context manager that explicitly disables gradient computation""" def __init__(self): pass def __enter__(self): pass def __exit__(self, exc_type, exc_value, exc_traceback): pass
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)
class RandomMock: """Callable object returning given sequence of "random" numbers. Can be substituted instead of random.random() function to test the behavior of algorithm in case random generator returns some specific sequence of values. I.e. to make these tests deterministic. See randfunc= parameter in methods that use random(). """ def __init__(self, values): self.values = values self.iter = iter(values) def __call__(self, *args, **kwargs): return next(self.iter) class SampleMock: """Callable object returning a sequence of "random" objects from a list, defined by a given RandomMock object or by given sequence of numbers. Can be substituted instead of random.sample() function to test the behavior of algorithm in case random generator returns some specific sequence of values. I.e. to make these tests deterministic. See samplefunc= parameter in methods that use sample(). """ def __init__(self, *args): if len(args) == 1 and isinstance(args[0], RandomMock): self.random_stream = args[0] else: self.random_stream = RandomMock(args[0]) def __call__(self, *args, **kwargs): assert args is not None and len(args) == 2 lst = list(args[0]) sample_size = int(args[1]) population_size = len(lst) result = [] already_used = set() for i in range(sample_size): rnd = self.random_stream() elem_id = rnd % population_size while elem_id in already_used: rnd = self.random_stream() elem_id = rnd % population_size result.append(lst[elem_id]) already_used.add(elem_id) return result
class Randommock: """Callable object returning given sequence of "random" numbers. Can be substituted instead of random.random() function to test the behavior of algorithm in case random generator returns some specific sequence of values. I.e. to make these tests deterministic. See randfunc= parameter in methods that use random(). """ def __init__(self, values): self.values = values self.iter = iter(values) def __call__(self, *args, **kwargs): return next(self.iter) class Samplemock: """Callable object returning a sequence of "random" objects from a list, defined by a given RandomMock object or by given sequence of numbers. Can be substituted instead of random.sample() function to test the behavior of algorithm in case random generator returns some specific sequence of values. I.e. to make these tests deterministic. See samplefunc= parameter in methods that use sample(). """ def __init__(self, *args): if len(args) == 1 and isinstance(args[0], RandomMock): self.random_stream = args[0] else: self.random_stream = random_mock(args[0]) def __call__(self, *args, **kwargs): assert args is not None and len(args) == 2 lst = list(args[0]) sample_size = int(args[1]) population_size = len(lst) result = [] already_used = set() for i in range(sample_size): rnd = self.random_stream() elem_id = rnd % population_size while elem_id in already_used: rnd = self.random_stream() elem_id = rnd % population_size result.append(lst[elem_id]) already_used.add(elem_id) return result
""" Definition of ListNode class ListNode(object): def __init__(self, val, next=None): self.val = val self.next = next """ class Solution: """ @param head: The head of linked list. @return: You should return the head of the sorted linked list, using constant space complexity. """ def sortList(self, head): # write your code here pass
""" Definition of ListNode class ListNode(object): def __init__(self, val, next=None): self.val = val self.next = next """ class Solution: """ @param head: The head of linked list. @return: You should return the head of the sorted linked list, using constant space complexity. """ def sort_list(self, head): pass
# 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
""" :Author(s) Ryan Forster: This file contains constants from Tables 2 and 4 from "Understanding M-values" By Erik C. Baker, P.E. Used for the calculation of gradient factors """ # m naught values for haldane are all 2.0 HALDANE_M_NAUGHT = 2.0 ''' Haldane M value constant ''' ZHL16A_N_DELTA = [1.9082, 1.7928, 1.5352, 1.3847, 1.2780, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] ''' ZH-L16A nitrogen delta slope values in order [1, 1b, 2, ... 16] ''' ZHL16A_N_M_NAUGHT = [32.4, 29.6, 25.4, 22.5, 20.3, 19.0, 17.8, 16.8, 15.9, 15.2, 14.6, 14.2, 13.9, 13.5, 13.2, 12.9, 12.7] ''' ZH-L16A nitogen surfacing m-value in order [1, 1b, 2, ... 16] ''' ZHL16B_N_DELTA = [1.9082, 1.7928, 1.5352, 1.3847, 1.2780, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] ''' ZH-L16B nitrogen delta slope values in order [1, 1b, 2, ... 16] ''' ZHL16B_HE_DELTA = [2.3557, 2.0964, 1.7400, 1.5321, 1.3845, 1.3189, 1.2568, 1.2079, 1.1692, 1.1419, 1.1232, 1.1115, 1.1022, 1.0963, 1.0904, 1.0850, 1.0791] ''' ZH-L16B helium delta slope values in order [1, 1b, 2, ... 16] ''' ZHL16B_N_M_NAUGHT = [32.4, 29.6, 25.4, 22.5, 20.3, 19.0, 17.5, 16.5, 15.7, 15.2, 14.6, 14.2, 13.9, 13.4, 13.2, 12.9, 12.7] ''' ZH-L16B nitogen surfacing m-value in order [1, 1b, 2, ... 16] ''' ZHL16B_HE_M_NAUGHT = [41.0, 37.2, 31.2, 27.2, 24.3, 22.4, 20.8, 19.4, 18.2, 17.4, 16.8, 16.4, 16.2, 16.1, 16.1, 16.0, 15.9] ''' ZH-L16B helium surfacing m-value in order [1, 1b, 2, ... 16] ''' ZHL16C_N_DELTA = [1.9082, 1.7928, 1.5352, 1.3847, 1.2780, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] ''' ZH-L16C nitrogen delta slope values in order [1, 1b, 2, ... 16] ''' ZHL16C_N_M_NAUGHT = [32.4, 29.6, 25.4, 22.5, 20.3, 18.5, 16.9, 15.9, 15.2, 14.7, 14.3, 14.0, 13.7, 13.4, 13.1, 12.9, 12.7] ''' ZH-L16C nitogen surfacing m-value in order [1, 1b, 2, ... 16] ''' WORKMAN_N_DELTA = [1.8, 1.6, 1.5, 1.4, 1.3, 1.2, 1.15, 1.1, 1.1] ''' Workman nitrogen delta slope values in order [1, 2, ...] ''' WORKMAN_N_M_NAUGHT = [31.7, 26.8, 21.9, 17.0, 16.4, 15.8, 15.5, 15.5, 15.2] ''' Workman nitrogen surfacing m-value in order [1, 2, ...] ''' DSAT_N_M_NAUGHT = [30.42, 25.37, 20.54, 18.34, 17.11, 15.79, 15.11, 14.69] ''' DSAT nitrogen surfacing m-value in order [1, 2, ...] '''
""" :Author(s) Ryan Forster: This file contains constants from Tables 2 and 4 from "Understanding M-values" By Erik C. Baker, P.E. Used for the calculation of gradient factors """ haldane_m_naught = 2.0 '\nHaldane M value constant\n' zhl16_a_n_delta = [1.9082, 1.7928, 1.5352, 1.3847, 1.278, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] '\nZH-L16A nitrogen delta slope values in order [1, 1b, 2, ... 16]\n' zhl16_a_n_m_naught = [32.4, 29.6, 25.4, 22.5, 20.3, 19.0, 17.8, 16.8, 15.9, 15.2, 14.6, 14.2, 13.9, 13.5, 13.2, 12.9, 12.7] '\nZH-L16A nitogen surfacing m-value in order [1, 1b, 2, ... 16]\n' zhl16_b_n_delta = [1.9082, 1.7928, 1.5352, 1.3847, 1.278, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] '\nZH-L16B nitrogen delta slope values in order [1, 1b, 2, ... 16]\n' zhl16_b_he_delta = [2.3557, 2.0964, 1.74, 1.5321, 1.3845, 1.3189, 1.2568, 1.2079, 1.1692, 1.1419, 1.1232, 1.1115, 1.1022, 1.0963, 1.0904, 1.085, 1.0791] '\nZH-L16B helium delta slope values in order [1, 1b, 2, ... 16]\n' zhl16_b_n_m_naught = [32.4, 29.6, 25.4, 22.5, 20.3, 19.0, 17.5, 16.5, 15.7, 15.2, 14.6, 14.2, 13.9, 13.4, 13.2, 12.9, 12.7] '\nZH-L16B nitogen surfacing m-value in order [1, 1b, 2, ... 16]\n' zhl16_b_he_m_naught = [41.0, 37.2, 31.2, 27.2, 24.3, 22.4, 20.8, 19.4, 18.2, 17.4, 16.8, 16.4, 16.2, 16.1, 16.1, 16.0, 15.9] '\nZH-L16B helium surfacing m-value in order [1, 1b, 2, ... 16]\n' zhl16_c_n_delta = [1.9082, 1.7928, 1.5352, 1.3847, 1.278, 1.2306, 1.1857, 1.1504, 1.1223, 1.0999, 1.0844, 1.0731, 1.0635, 1.0552, 1.0478, 1.0414, 1.0359] '\nZH-L16C nitrogen delta slope values in order [1, 1b, 2, ... 16]\n' zhl16_c_n_m_naught = [32.4, 29.6, 25.4, 22.5, 20.3, 18.5, 16.9, 15.9, 15.2, 14.7, 14.3, 14.0, 13.7, 13.4, 13.1, 12.9, 12.7] '\nZH-L16C nitogen surfacing m-value in order [1, 1b, 2, ... 16]\n' workman_n_delta = [1.8, 1.6, 1.5, 1.4, 1.3, 1.2, 1.15, 1.1, 1.1] '\nWorkman nitrogen delta slope values in order [1, 2, ...]\n' workman_n_m_naught = [31.7, 26.8, 21.9, 17.0, 16.4, 15.8, 15.5, 15.5, 15.2] '\nWorkman nitrogen surfacing m-value in order [1, 2, ...]\n' dsat_n_m_naught = [30.42, 25.37, 20.54, 18.34, 17.11, 15.79, 15.11, 14.69] '\nDSAT nitrogen surfacing m-value in order [1, 2, ...]\n'
# 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)
""" Doc string """ def asdf(): pass
""" Doc string """ def asdf(): pass
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
# -*- coding: utf-8 -*- """Module for flask views. Only the home page view is defined in this scope. All other views are defined in nested modules for partitioning. """
"""Module for flask views. Only the home page view is defined in this scope. All other views are defined in nested modules for partitioning. """
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')
"""Implement an algorithm that takes a BST and transform it into a circular double linked list. The transformation must be done in place. BST: 4 2 6 1 5 10 CDLL: ______________________ / \ 1 <> 2 <> 4 <> 5 <> 6 <> 10 \______________________/ (1 is connected to 10) """ class TreeNode(object): def __init__(self, value): self.value = value self.left = None self.right = None def make_double_linked_list(tree): """Return a circle double linked list from a binary search tree. The space complexity of this algorithm is O(N) in the worst case, and O(log(N)) in the case of a balanced tree. The time complexity is O(N). :param tree: TreeNode :return: TreeNode """ tail = None previous = None def _traverse_inorder(node): if node is None: return _traverse_inorder(node.left) nonlocal previous if previous: node.left = previous previous.right = node previous = node nonlocal tail if tail is None: tail = node _traverse_inorder(node.right) _traverse_inorder(tree) print("At the end of the process, tail points to:", tail.value) print("At the end of the process, previous points to:", previous.value) tail.left = previous previous.right = tail return previous if __name__ == "__main__": """ Constructed binary tree is 10 / \ 6 15 / \ \ 4 7 20 \ 5 """ root = TreeNode(10) root.left = TreeNode(6) root.right = TreeNode(15) root.right.right = TreeNode(20) root.left.left = TreeNode(4) root.left.left.right = TreeNode(5) root.left.right = TreeNode(7) head = make_double_linked_list(root) ptr = head.right c = 10 while c > 0: print(ptr.value) ptr = ptr.right c -= 1 ll = make_double_linked_list(TreeNode(10)) assert ll.left == ll and ll.right == ll
"""Implement an algorithm that takes a BST and transform it into a circular double linked list. The transformation must be done in place. BST: 4 2 6 1 5 10 CDLL: ______________________ / 1 <> 2 <> 4 <> 5 <> 6 <> 10 \\______________________/ (1 is connected to 10) """ class Treenode(object): def __init__(self, value): self.value = value self.left = None self.right = None def make_double_linked_list(tree): """Return a circle double linked list from a binary search tree. The space complexity of this algorithm is O(N) in the worst case, and O(log(N)) in the case of a balanced tree. The time complexity is O(N). :param tree: TreeNode :return: TreeNode """ tail = None previous = None def _traverse_inorder(node): if node is None: return _traverse_inorder(node.left) nonlocal previous if previous: node.left = previous previous.right = node previous = node nonlocal tail if tail is None: tail = node _traverse_inorder(node.right) _traverse_inorder(tree) print('At the end of the process, tail points to:', tail.value) print('At the end of the process, previous points to:', previous.value) tail.left = previous previous.right = tail return previous if __name__ == '__main__': ' \n Constructed binary tree is\n 10\n / 6 15\n / \\ 4 7 20\n 5\n ' root = tree_node(10) root.left = tree_node(6) root.right = tree_node(15) root.right.right = tree_node(20) root.left.left = tree_node(4) root.left.left.right = tree_node(5) root.left.right = tree_node(7) head = make_double_linked_list(root) ptr = head.right c = 10 while c > 0: print(ptr.value) ptr = ptr.right c -= 1 ll = make_double_linked_list(tree_node(10)) assert ll.left == ll and ll.right == ll
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'))
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-App-RDM is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Test that all export formats are working.""" def test_export_formats(client, running_app, record): """Test that all expected export formats are working.""" # Expected export formats: formats = [ "json", "csl", "datacite-json", "datacite-xml", "dublincore", ] for f in formats: res = client.get(f"/records/{record.id}/export/{f}") assert res.status_code == 200
"""Test that all export formats are working.""" def test_export_formats(client, running_app, record): """Test that all expected export formats are working.""" formats = ['json', 'csl', 'datacite-json', 'datacite-xml', 'dublincore'] for f in formats: res = client.get(f'/records/{record.id}/export/{f}') assert res.status_code == 200
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', 'jwillis@test.com', 2500) emp2 = Empleado('Jack', 'Ryan', 'jryan@test.com', 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', 'jwillis@test.com', 2500) emp2 = empleado('Jack', 'Ryan', 'jryan@test.com', 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')
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Unit test cases for cellular environment and algorithms """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)'
""" Unit test cases for cellular environment and algorithms """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)'
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
""" Xilinx primitive tokens """ ASYNC_PORTS = "async_ports" CLK_PORTS = "clk_ports" CLOCK_BUFFERS = "clock_buffers" COMBINATIONAL_CELLS = "combinational_cells" COMPLEX_SEQUENTIAL_CELLS = "complex_sequential_cells" DESCRIPTION = "description" FF_CELLS = "ff_cells" MISC_CELLS = "misc_cells" NAME = "name" POWER_GROUND_CELLS = "power_ground_cells" PRIMITIVE_LIBRARY_NAME = "primitive_library_name" SYNC_PORTS = "sync_ports" VENDOR = "vendor"
""" Xilinx primitive tokens """ async_ports = 'async_ports' clk_ports = 'clk_ports' clock_buffers = 'clock_buffers' combinational_cells = 'combinational_cells' complex_sequential_cells = 'complex_sequential_cells' description = 'description' ff_cells = 'ff_cells' misc_cells = 'misc_cells' name = 'name' power_ground_cells = 'power_ground_cells' primitive_library_name = 'primitive_library_name' sync_ports = 'sync_ports' vendor = 'vendor'
#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
def combine_toxic_classes(df): """"""""" Reconfigures the Jigsaw Toxic Comment dataset from a multi-label classification problem to a binary classification problem predicting if a text is toxic (class=1) or non-toxic (class=0). Input: - df: A pandas DataFrame with columns: - 'id' - 'comment_text' - 'toxic' - 'severe_toxic' - 'obscene' - 'threat' - 'insult' - 'identity_hate' Output: - df: A modified pandas DataFrame with columns: - 'comment_text' containing strings of text. - 'isToxic' binary target variable containing 0's and 1's. """"""""" # Create a binary classification label for 'isToxic' # and drop miscellaneous labels. df['isToxic'] = (df['toxic'] == 1) drop_cols = ['id', 'toxic', 'severe_toxic', 'obscene', 'threat', 'insult', 'identity_hate'] df.drop(columns=drop_cols, inplace=True) df.replace(to_replace={'isToxic': {True: 1, False: 0}}, inplace=True) # Cast column values to save memory df['isToxic'] = df['isToxic'].astype('int8') return df def undersample_majority(df, percent_conserve): """"""""" Undersamples the majority class of the Jigsaw Toxic Comment dataset ('isToxic'==0) by conserving a given percent of the majority class. Inputs: - df: A pandas DataFrame with columns: - 'comment_text' containing strings of text. - 'isToxic' binary target variable containing 0's and 1's. - percent_conserve: Float representing fraction of majority class (clean_texts) to conserve Outputs: - downsampled_df: A new pandas DataFrame that has been shuffled and has had its majority class downsampled. """"""""" # Get rows of clean and toxic texts clean_texts = df[df['isToxic'] == 0] toxic_texts = df[df['isToxic'] == 1] # Randomly sample from the majority class and construct a new DataFrame # consisting of the majority class (clean_texts) + the minority classes (toxic_texts) to_conserve = clean_texts.sample(frac=percent_conserve, random_state=42) downsampled_df = to_conserve.append(toxic_texts, ignore_index=True) return downsampled_df.sample(frac=1, random_state=42).reset_index(drop=True) def analyze_dist(df): """"""""" Analyzes the class distribution of a pandas DataFrame. Input: - df: a pandas DataFrame containing text whose toxicity is denoted by the 'isToxic' binary indicator column. Output: - Prints class distribution (toxic or non-toxic) statistics of df. """"""""" print('Total rows: ', df.shape[0]) print('Clean texts: ', df.shape[0] - df['isToxic'].sum()) print('Toxic texts: ', df['isToxic'].sum()) print('Toxic texts make up ', ((df['isToxic'].sum() / df.shape[0]) * 100).round(2), 'percent of our total data') return def get_relevant_words(text, to_conserve): """"""""" Takes a string of text and returns the first N words in that text. Input: - text: String of text - to_conserve: Integer representing number of text's words to conserve Output: - String containing first (to_conserve) words of text. """"""""" # Select the first N words in the text word_list = text.split()[:to_conserve] # Build up a string containing words in word_list new_string = ' '.join(word for word in word_list) return new_string def augment_sentence(sentence, aug, num_threads): """"""""" Constructs a new sentence via text augmentation. Input: - sentence: A string of text - aug: An augmentation object defined by the nlpaug library - num_threads: Integer controlling the number of threads to use if augmenting text via CPU Output: - A string of text that been augmented """"""""" return aug.augment(sentence, num_thread=num_threads) def augment_text(df, aug, num_threads, num_times): """"""""" Takes a pandas DataFrame and augments its text data. Input: - df: A pandas DataFrame containing the columns: - 'comment_text' containing strings of text to augment. - 'isToxic' binary target variable containing 0's and 1's. - aug: Augmentation object defined by the nlpaug library. - num_threads: Integer controlling number of threads to use if augmenting text via CPU - num_times: Integer representing the number of times to augment text. Output: - df: Copy of the same pandas DataFrame with augmented data appended to it and with rows randomly shuffled. """"""""" # Get rows of data to augment to_augment = df[df['isToxic'] == 1] to_augmentX = to_augment['comment_text'] to_augmentY = np.ones(len(to_augmentX.index) * num_times, dtype=np.int8) # Build up dictionary containing augmented data aug_dict = {'comment_text': [], 'isToxic': to_augmentY} for i in tqdm(range(num_times)): augX = [augment_sentence(x, aug, num_threads) for x in to_augmentX] aug_dict['comment_text'].extend(augX) # Build DataFrame containing augmented data aug_df = pd.DataFrame.from_dict(aug_dict) return df.append(aug_df, ignore_index=True).sample(frac=1, random_state=42)
def combine_toxic_classes(df): """ Reconfigures the Jigsaw Toxic Comment dataset from a multi-label classification problem to a binary classification problem predicting if a text is toxic (class=1) or non-toxic (class=0). Input: - df: A pandas DataFrame with columns: - 'id' - 'comment_text' - 'toxic' - 'severe_toxic' - 'obscene' - 'threat' - 'insult' - 'identity_hate' Output: - df: A modified pandas DataFrame with columns: - 'comment_text' containing strings of text. - 'isToxic' binary target variable containing 0's and 1's. """ df['isToxic'] = df['toxic'] == 1 drop_cols = ['id', 'toxic', 'severe_toxic', 'obscene', 'threat', 'insult', 'identity_hate'] df.drop(columns=drop_cols, inplace=True) df.replace(to_replace={'isToxic': {True: 1, False: 0}}, inplace=True) df['isToxic'] = df['isToxic'].astype('int8') return df def undersample_majority(df, percent_conserve): """ Undersamples the majority class of the Jigsaw Toxic Comment dataset ('isToxic'==0) by conserving a given percent of the majority class. Inputs: - df: A pandas DataFrame with columns: - 'comment_text' containing strings of text. - 'isToxic' binary target variable containing 0's and 1's. - percent_conserve: Float representing fraction of majority class (clean_texts) to conserve Outputs: - downsampled_df: A new pandas DataFrame that has been shuffled and has had its majority class downsampled. """ clean_texts = df[df['isToxic'] == 0] toxic_texts = df[df['isToxic'] == 1] to_conserve = clean_texts.sample(frac=percent_conserve, random_state=42) downsampled_df = to_conserve.append(toxic_texts, ignore_index=True) return downsampled_df.sample(frac=1, random_state=42).reset_index(drop=True) def analyze_dist(df): """ Analyzes the class distribution of a pandas DataFrame. Input: - df: a pandas DataFrame containing text whose toxicity is denoted by the 'isToxic' binary indicator column. Output: - Prints class distribution (toxic or non-toxic) statistics of df. """ print('Total rows: ', df.shape[0]) print('Clean texts: ', df.shape[0] - df['isToxic'].sum()) print('Toxic texts: ', df['isToxic'].sum()) print('Toxic texts make up ', (df['isToxic'].sum() / df.shape[0] * 100).round(2), 'percent of our total data') return def get_relevant_words(text, to_conserve): """ Takes a string of text and returns the first N words in that text. Input: - text: String of text - to_conserve: Integer representing number of text's words to conserve Output: - String containing first (to_conserve) words of text. """ word_list = text.split()[:to_conserve] new_string = ' '.join((word for word in word_list)) return new_string def augment_sentence(sentence, aug, num_threads): """ Constructs a new sentence via text augmentation. Input: - sentence: A string of text - aug: An augmentation object defined by the nlpaug library - num_threads: Integer controlling the number of threads to use if augmenting text via CPU Output: - A string of text that been augmented """ return aug.augment(sentence, num_thread=num_threads) def augment_text(df, aug, num_threads, num_times): """ Takes a pandas DataFrame and augments its text data. Input: - df: A pandas DataFrame containing the columns: - 'comment_text' containing strings of text to augment. - 'isToxic' binary target variable containing 0's and 1's. - aug: Augmentation object defined by the nlpaug library. - num_threads: Integer controlling number of threads to use if augmenting text via CPU - num_times: Integer representing the number of times to augment text. Output: - df: Copy of the same pandas DataFrame with augmented data appended to it and with rows randomly shuffled. """ to_augment = df[df['isToxic'] == 1] to_augment_x = to_augment['comment_text'] to_augment_y = np.ones(len(to_augmentX.index) * num_times, dtype=np.int8) aug_dict = {'comment_text': [], 'isToxic': to_augmentY} for i in tqdm(range(num_times)): aug_x = [augment_sentence(x, aug, num_threads) for x in to_augmentX] aug_dict['comment_text'].extend(augX) aug_df = pd.DataFrame.from_dict(aug_dict) return df.append(aug_df, ignore_index=True).sample(frac=1, random_state=42)
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)
# -*- coding: utf-8 -*- """ @Time : 2020/11/26 15:38 @Author : PyDee @File : __init__.py.py @description : """
""" @Time : 2020/11/26 15:38 @Author : PyDee @File : __init__.py.py @description : """
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'
class Solution(object): def multiply(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ num1 = num1[: : -1] num2 = num2[: : -1] multi = [0 for i in range(len(num1) + len(num2))] for i in range(len(num1)): for j in range(len(num2)): multi[i + j] += int(num1[i]) * int(num2[j]) carry = 0 for i in range(len(multi)): carry += multi[i] multi[i] = str(carry % 10) carry /= 10 while carry: multi.append(carry % 10) carry /= 10 while len(multi) > 1 and '0' == multi[-1]: del multi[-1] return "".join(multi)[: : -1]
class Solution(object): def multiply(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ num1 = num1[::-1] num2 = num2[::-1] multi = [0 for i in range(len(num1) + len(num2))] for i in range(len(num1)): for j in range(len(num2)): multi[i + j] += int(num1[i]) * int(num2[j]) carry = 0 for i in range(len(multi)): carry += multi[i] multi[i] = str(carry % 10) carry /= 10 while carry: multi.append(carry % 10) carry /= 10 while len(multi) > 1 and '0' == multi[-1]: del multi[-1] return ''.join(multi)[::-1]
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2015,2017 """ SPL primitive operators that call a Python function or callable class are created by decorators provided :py:mod:`streamsx.spl.spl` Once created the operators become part of a toolkit and may be used like any other SPL operator. """
""" SPL primitive operators that call a Python function or callable class are created by decorators provided :py:mod:`streamsx.spl.spl` Once created the operators become part of a toolkit and may be used like any other SPL operator. """
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)))
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # https://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. def inject_create_tags(event_name, class_attributes, **kwargs): """This injects a custom create_tags method onto the ec2 service resource This is needed because the resource model is not able to express creating multiple tag resources based on the fact you can apply a set of tags to multiple ec2 resources. """ class_attributes['create_tags'] = create_tags def create_tags(self, **kwargs): # Call the client method self.meta.client.create_tags(**kwargs) resources = kwargs.get('Resources', []) tags = kwargs.get('Tags', []) tag_resources = [] # Generate all of the tag resources that just were created with the # preceding client call. for resource in resources: for tag in tags: # Add each tag from the tag set for each resource to the list # that is returned by the method. tag_resource = self.Tag(resource, tag['Key'], tag['Value']) tag_resources.append(tag_resource) return tag_resources
def inject_create_tags(event_name, class_attributes, **kwargs): """This injects a custom create_tags method onto the ec2 service resource This is needed because the resource model is not able to express creating multiple tag resources based on the fact you can apply a set of tags to multiple ec2 resources. """ class_attributes['create_tags'] = create_tags def create_tags(self, **kwargs): self.meta.client.create_tags(**kwargs) resources = kwargs.get('Resources', []) tags = kwargs.get('Tags', []) tag_resources = [] for resource in resources: for tag in tags: tag_resource = self.Tag(resource, tag['Key'], tag['Value']) tag_resources.append(tag_resource) return tag_resources
# 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