content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution(object): def convertToTitle(self, n): """ :type n: int :rtype: str """ res = [] while(n>0): res.append(chr(ord('A')+(n-1)%26)) n-=1 n /= 26 return ''.join(res[::-1])
class Solution(object): def convert_to_title(self, n): """ :type n: int :rtype: str """ res = [] while n > 0: res.append(chr(ord('A') + (n - 1) % 26)) n -= 1 n /= 26 return ''.join(res[::-1])
def display(p): L=[] s="" for i in range (0,9): if(i>=(9-p)): L.append("|---------|") #print" ".join(map(str,L[i])) else: L.append('| |') #s+=" ".join(map(str,L[i])) L.append("-----------") #s+=" ".join(map(str,L[9])) return L def bucket(n): print(">>>>Enter 1 to fill the bucket A \nEnter 2 to fill the bucket B \nEnter 3 to fill the bucket C <<<<") tap=int(input()) #C=raw_input() #p,q,r=8,0,0 if(tap==1): p,q,r=8,0,0 elif(tap==2): p,q,r=0,5,0 elif(tap==3): p,q,r=0,0,3 else: print("First fill the Bucket to play!!!!") print("A = ",p,"B = ",q,"C = ",r) while(n>0 and (tap==1 or tap==2 or tap==3)): a,b=(input().split()) if(a=='A' and b=='B' and p!=0 and q!=5): e=5-q p,q=p-e,q+e sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) elif(a=='A' and b=='C' and p!=0 and r!=3): d=3-r p,r=p-d,r+d sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) elif(a=='B' and b=='C' and q!=0 and r!=3): c=3-r if(c<q): q,r=q-c,r+c else: q,r=0,r+q sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) elif(a=='B' and b=='A' and q!=0): p=p+q q=0 sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) elif(a=='C' and b=='A' and r!=0): p=p+r r=0 sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) elif(a=='C' and b=='B' and r!=0 and q!=5): g=5-q if(g<r): r,q=r-g,q+g else: q,r=q+r,0 sa=display(p) sb=display(q) sc=display(r) for i in range(len(sa)): print(sa[i]+' '+ sb[i]+' '+ sc[i]) print(" ",p," ",q," ",r) else: print("Wrong Move!!!") n=n-1 if(p==4 and q==4): if(n==7): return 1 else: return 2 return 0 ch='Y' while(ch!='N'): print("Rules: You are allowed to enter either 'A' or 'B' or 'C' \nJust enter your moves : From which the bucket is emptied to the bucket getting filled..") print("Let's start the game...") print("-------------------------------------------------------------------------------------------------------------") print("A B C are buckets of 8ltr 5ltr and 3ltr \nMake 4ltrs in any one bucket") buck=bucket(14) if(buck==1): print("You Won in minimum steps Congo!!!!!!!") elif(buck==2): print("You won ....but try to do in minimum steps....better luck next time!!!") else: print("You lose !!!!!!!") print("Do You wish to play another game? Press Y or N only") ch=input()
def display(p): l = [] s = '' for i in range(0, 9): if i >= 9 - p: L.append('|---------|') else: L.append('| |') L.append('-----------') return L def bucket(n): print('>>>>Enter 1 to fill the bucket A \nEnter 2 to fill the bucket B \nEnter 3 to fill the bucket C <<<<') tap = int(input()) if tap == 1: (p, q, r) = (8, 0, 0) elif tap == 2: (p, q, r) = (0, 5, 0) elif tap == 3: (p, q, r) = (0, 0, 3) else: print('First fill the Bucket to play!!!!') print('A = ', p, 'B = ', q, 'C = ', r) while n > 0 and (tap == 1 or tap == 2 or tap == 3): (a, b) = input().split() if a == 'A' and b == 'B' and (p != 0) and (q != 5): e = 5 - q (p, q) = (p - e, q + e) sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) elif a == 'A' and b == 'C' and (p != 0) and (r != 3): d = 3 - r (p, r) = (p - d, r + d) sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) elif a == 'B' and b == 'C' and (q != 0) and (r != 3): c = 3 - r if c < q: (q, r) = (q - c, r + c) else: (q, r) = (0, r + q) sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) elif a == 'B' and b == 'A' and (q != 0): p = p + q q = 0 sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) elif a == 'C' and b == 'A' and (r != 0): p = p + r r = 0 sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) elif a == 'C' and b == 'B' and (r != 0) and (q != 5): g = 5 - q if g < r: (r, q) = (r - g, q + g) else: (q, r) = (q + r, 0) sa = display(p) sb = display(q) sc = display(r) for i in range(len(sa)): print(sa[i] + ' ' + sb[i] + ' ' + sc[i]) print(' ', p, ' ', q, ' ', r) else: print('Wrong Move!!!') n = n - 1 if p == 4 and q == 4: if n == 7: return 1 else: return 2 return 0 ch = 'Y' while ch != 'N': print("Rules: You are allowed to enter either 'A' or 'B' or 'C' \nJust enter your moves : From which the bucket is emptied to the bucket getting filled..") print("Let's start the game...") print('-------------------------------------------------------------------------------------------------------------') print('A B C are buckets of 8ltr 5ltr and 3ltr \nMake 4ltrs in any one bucket') buck = bucket(14) if buck == 1: print('You Won in minimum steps Congo!!!!!!!') elif buck == 2: print('You won ....but try to do in minimum steps....better luck next time!!!') else: print('You lose !!!!!!!') print('Do You wish to play another game? Press Y or N only') ch = input()
#!/usr/bin/env python # coding: utf-8 # This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). # # Solution Notebook # ## Problem: Given a magazine, see if a ransom note could have been written using the letters in the magazine. # # * [Constraints](#Constraints) # * [Test Cases](#Test-Cases) # * [Algorithm](#Algorithm) # * [Code](#Code) # * [Unit Test](#Unit-Test) # ## Constraints # # * Is this case sensitive? # * Yes # * Can we assume we're working with ASCII characters? # * Yes # * Can we scan the entire magazine, or should we scan only when necessary? # * You can scan the entire magazine # * Can we assume the inputs are valid? # * No # * Can we assume this fits memory? # * Yes # ## Test Cases # # * None -> Exception # * '', '' -> Exception # * 'a', 'b' -> False # * 'aa', 'ab' -> False # * 'aa', 'aab' -> True # ## Algorithm # # * Build a dictionary of the magazine characters and counts. # * Loop through each letter in the ransom note and see if there are enough letters in the magazine's dictionary. # * Note: You could make this more efficient by not scanning the entire magazine all at once, but instead scan just in time as you run out of letters in the dictionary. # # Complexity: # * Time: O(n+m), where n is the length of the ransom note and m is the length of the magazine # * Space: O(n+m) # ## Code # In[1]: class Solution(object): def match_note_to_magazine(self, ransom_note, magazine): if ransom_note is None or magazine is None: raise TypeError('ransom_note or magazine cannot be None') seen_chars = {} for char in magazine: if char in seen_chars: seen_chars[char] += 1 else: seen_chars[char] = 1 for char in ransom_note: try: seen_chars[char] -= 1 except KeyError: return False if seen_chars[char] < 0: return False return True # ## Unit Test # In[2]: get_ipython().run_cell_magic('writefile', 'test_ransom_note.py', "import unittest\n\n\nclass TestRansomNote(unittest.TestCase):\n\n def test_ransom_note(self):\n solution = Solution()\n self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)\n self.assertEqual(solution.match_note_to_magazine('', ''), True)\n self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)\n self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)\n self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)\n print('Success: test_ransom_note')\n\n\ndef main():\n test = TestRansomNote()\n test.test_ransom_note()\n\n\nif __name__ == '__main__':\n main()") # In[3]: get_ipython().run_line_magic('run', '-i test_ransom_note.py')
class Solution(object): def match_note_to_magazine(self, ransom_note, magazine): if ransom_note is None or magazine is None: raise type_error('ransom_note or magazine cannot be None') seen_chars = {} for char in magazine: if char in seen_chars: seen_chars[char] += 1 else: seen_chars[char] = 1 for char in ransom_note: try: seen_chars[char] -= 1 except KeyError: return False if seen_chars[char] < 0: return False return True get_ipython().run_cell_magic('writefile', 'test_ransom_note.py', "import unittest\n\n\nclass TestRansomNote(unittest.TestCase):\n\n def test_ransom_note(self):\n solution = Solution()\n self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)\n self.assertEqual(solution.match_note_to_magazine('', ''), True)\n self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)\n self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)\n self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)\n print('Success: test_ransom_note')\n\n\ndef main():\n test = TestRansomNote()\n test.test_ransom_note()\n\n\nif __name__ == '__main__':\n main()") get_ipython().run_line_magic('run', '-i test_ransom_note.py')
# Modify the code inside this loop to stop when i is greater than zero and exactly divisible by 11 for i in range(0, 100, 7): print(i) if i > 0 and i % 11 == 0: break
for i in range(0, 100, 7): print(i) if i > 0 and i % 11 == 0: break
# We are given an array A of size n that is sorted in ascending order, containing different # natural numbers in pairs. Find algorithm that checks if there is such an index i that A[i] == i. # What will change if the numbers are integers, not necessarily natural numbers? # Natural numbers def is_index_equal_to_number_natural(T): if T[0] == 0: return True else: return False # Integer numbers def is_index_equal_to_number_integer(T): start = 0 end = len(T) - 1 while start <= end: mid = (start + end) // 2 if T[mid] == mid: return True elif T[mid] > mid: end = mid - 1 else: start = mid + 1 return False natural_numbers = [2, 4, 6, 7, 9, 11, 12, 15, 16, 37, 56, 87, 94, 98] integer_numbers = [-10, -6, -4, -1, 2, 5, 12, 23, 34, 54, 57, 67, 79] print(is_index_equal_to_number_natural(natural_numbers)) print(is_index_equal_to_number_integer(integer_numbers))
def is_index_equal_to_number_natural(T): if T[0] == 0: return True else: return False def is_index_equal_to_number_integer(T): start = 0 end = len(T) - 1 while start <= end: mid = (start + end) // 2 if T[mid] == mid: return True elif T[mid] > mid: end = mid - 1 else: start = mid + 1 return False natural_numbers = [2, 4, 6, 7, 9, 11, 12, 15, 16, 37, 56, 87, 94, 98] integer_numbers = [-10, -6, -4, -1, 2, 5, 12, 23, 34, 54, 57, 67, 79] print(is_index_equal_to_number_natural(natural_numbers)) print(is_index_equal_to_number_integer(integer_numbers))
class Solution: def jump(self, nums: List[int]) -> int: n, start, end, ans, amax = len(nums)-1, 0, 0, 0, 0 while True: for i in range(end, start-1, -1): if i >= n: return ans amax = max(amax, i+nums[i]) start = end + 1 end = amax ans += 1
class Solution: def jump(self, nums: List[int]) -> int: (n, start, end, ans, amax) = (len(nums) - 1, 0, 0, 0, 0) while True: for i in range(end, start - 1, -1): if i >= n: return ans amax = max(amax, i + nums[i]) start = end + 1 end = amax ans += 1
with open('input/day6.txt', 'r', encoding='utf8') as file: fish_list = [int(value) for value in file.read().split(',')] population = [0,0,0,0,0,0,0,0,0] for fish in fish_list: population[fish] += 1 for day in range(1, 257): population = population[1:] + population[:1] population[6] += population[8] if day == 80: print(sum(population)) print(sum(population))
with open('input/day6.txt', 'r', encoding='utf8') as file: fish_list = [int(value) for value in file.read().split(',')] population = [0, 0, 0, 0, 0, 0, 0, 0, 0] for fish in fish_list: population[fish] += 1 for day in range(1, 257): population = population[1:] + population[:1] population[6] += population[8] if day == 80: print(sum(population)) print(sum(population))
name0_0_1_1_0_2_0 = None name0_0_1_1_0_2_1 = None name0_0_1_1_0_2_2 = None name0_0_1_1_0_2_3 = None name0_0_1_1_0_2_4 = None
name0_0_1_1_0_2_0 = None name0_0_1_1_0_2_1 = None name0_0_1_1_0_2_2 = None name0_0_1_1_0_2_3 = None name0_0_1_1_0_2_4 = None
names = ['Christopher', 'Susan'] scores = [] scores.append(98) scores.append(99) print(names) print(scores)
names = ['Christopher', 'Susan'] scores = [] scores.append(98) scores.append(99) print(names) print(scores)
# Copyright 2017 BBVA # # 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. class ApitestError(Exception): # noqa pass class ApitestMissingDataError(Exception): pass class ApitestInvalidFormatError(Exception): pass class ApitestValueError(ValueError): pass class ApitestTypeError(TypeError): pass class ApitestUnknownTypeError(TypeError): pass class ApitestConnectionError(ConnectionError): pass class ApitestNotFoundError(FileNotFoundError): pass __all__ = ("ApitestError", "ApitestValueError", "ApitestTypeError", "ApitestUnknownTypeError", "ApitestConnectionError", "ApitestInvalidFormatError", "ApitestNotFoundError", "ApitestMissingDataError")
class Apitesterror(Exception): pass class Apitestmissingdataerror(Exception): pass class Apitestinvalidformaterror(Exception): pass class Apitestvalueerror(ValueError): pass class Apitesttypeerror(TypeError): pass class Apitestunknowntypeerror(TypeError): pass class Apitestconnectionerror(ConnectionError): pass class Apitestnotfounderror(FileNotFoundError): pass __all__ = ('ApitestError', 'ApitestValueError', 'ApitestTypeError', 'ApitestUnknownTypeError', 'ApitestConnectionError', 'ApitestInvalidFormatError', 'ApitestNotFoundError', 'ApitestMissingDataError')
''' pattern Enter number of rows: 5 54321 4321 321 21 1 ''' print('pattern: ') number_row=int(input('Enter number of rows: ')) for row in range(number_row,0,-1): for column in range(row,number_row): print(' ',end=' ') for column in range(row,0,-1): if column < 10: print(f'0{column}',end=' ') else: print(column,end=' ') print()
""" pattern Enter number of rows: 5 54321 4321 321 21 1 """ print('pattern: ') number_row = int(input('Enter number of rows: ')) for row in range(number_row, 0, -1): for column in range(row, number_row): print(' ', end=' ') for column in range(row, 0, -1): if column < 10: print(f'0{column}', end=' ') else: print(column, end=' ') print()
""" 806. Number of Lines To Write String We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 units, it is written on the next line. We are given an array widths, an array where widths[0] is the width of 'a', widths[1] is the width of 'b', ..., and widths[25] is the width of 'z'. Now answer two questions: how many lines have at least one character from S, and what is the width used by the last such line? Return your answer as an integer list of length 2. Example : Input: widths = [10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10] S = "abcdefghijklmnopqrstuvwxyz" Output: [3, 60] Explanation: All letters have the same length of 10. To write all 26 letters, we need two full lines and one line with 60 units. Example : Input: widths = [4,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10] S = "bbbcccdddaaa" Output: [2, 4] Explanation: All letters except 'a' have the same length of 10, and "bbbcccdddaa" will cover 9 * 10 + 2 * 4 = 98 units. For the last 'a', it is written on the second line because there is only 2 units left in the first line. So the answer is 2 lines, plus 4 units in the second line. """ class Solution: def numberOfLines(self, widths, S): """ :type widths: List[int] :type S: str :rtype: List[int] """ lines, cur = 1, 0 for i in S: cur += widths[ord(i)-ord('a')] if cur > 100: lines += 1 cur = widths[ord(i)-ord('a')] return [lines, cur]
""" 806. Number of Lines To Write String We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 units, it is written on the next line. We are given an array widths, an array where widths[0] is the width of 'a', widths[1] is the width of 'b', ..., and widths[25] is the width of 'z'. Now answer two questions: how many lines have at least one character from S, and what is the width used by the last such line? Return your answer as an integer list of length 2. Example : Input: widths = [10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10] S = "abcdefghijklmnopqrstuvwxyz" Output: [3, 60] Explanation: All letters have the same length of 10. To write all 26 letters, we need two full lines and one line with 60 units. Example : Input: widths = [4,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10] S = "bbbcccdddaaa" Output: [2, 4] Explanation: All letters except 'a' have the same length of 10, and "bbbcccdddaa" will cover 9 * 10 + 2 * 4 = 98 units. For the last 'a', it is written on the second line because there is only 2 units left in the first line. So the answer is 2 lines, plus 4 units in the second line. """ class Solution: def number_of_lines(self, widths, S): """ :type widths: List[int] :type S: str :rtype: List[int] """ (lines, cur) = (1, 0) for i in S: cur += widths[ord(i) - ord('a')] if cur > 100: lines += 1 cur = widths[ord(i) - ord('a')] return [lines, cur]
num1 = 00 num2 = 200 for n in range(num1, num2 + 1): if n > 1: for i in range(2, n): if (n % i) == 0: break else: print(n)
num1 = 0 num2 = 200 for n in range(num1, num2 + 1): if n > 1: for i in range(2, n): if n % i == 0: break else: print(n)
# This program displays property taxes. TAX_FACTOR = 0.0065 print('Enter the property lot number') print('or enter 0 to end.') lot = int(input('Lot number: ')) while lot != 0: value = float(input('Enter the property value: ')) tax = value * TAX_FACTOR print('Property tax: $', format(tax, ',.2f'), sep='') print('Enter the next lot number or') print('enter 0 to end.') lot = int(input('Lot number: '))
tax_factor = 0.0065 print('Enter the property lot number') print('or enter 0 to end.') lot = int(input('Lot number: ')) while lot != 0: value = float(input('Enter the property value: ')) tax = value * TAX_FACTOR print('Property tax: $', format(tax, ',.2f'), sep='') print('Enter the next lot number or') print('enter 0 to end.') lot = int(input('Lot number: '))
CHROOTPW = """ dn: olcDatabase={0}config,cn=config changetype: modify add: olcRootPW olcRootPW: SSHA_KEY """ CHDOMAIN=""" dn: olcDatabase={1}monitor,cn=config changetype: modify replace: olcAccess olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read by dn.base="cn=admin,dc=mlogcn,dc=inn" read by * none dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcSuffix olcSuffix: dc=mlogcn,dc=inn dn: olcDatabase={2}hdb,cn=config changetype: modify replace: olcRootDN olcRootDN: cn=admin,dc=mlogcn,dc=inn dn: olcDatabase={2}hdb,cn=config changetype: modify add: olcRootPW olcRootPW: SSHA_KEY dn: olcDatabase={2}hdb,cn=config changetype: modify add: olcAccess olcAccess: {0}to attrs=userPassword,shadowLastChange by dn="cn=admin,dc=mlogcn,dc=inn" write by anonymous auth by self write by * none olcAccess: {1}to dn.base="" by * read olcAccess: {2}to * by dn="cn=admin,dc=mlogcn,dc=inn" write by * read """ ETC_KRB5=""" [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] dns_lookup_realm = false ticket_lifetime = 24h renew_lifetime = 7d forwardable = true rdns = false default_realm = MLOGCN.INN [realms] MLOGCN.INN = { kdc = KDC_SERVER admin_server = KDC_SERVER default_domain = mlogcn.inn database_module = openldap_ldapconf } [domain_realm] .mlogcn.inn = MLOGCN.INN mlogcn.inn = MLOGCN.INN [dbmodules] openldap_ldapconf = { db_library = kldap ldap_kdc_dn = "cn=admin,dc=mlogcn,dc=inn" # this object needs to have read rights on # the realm container, principal container and realm sub-trees ldap_kadmind_dn = "cn=admin,dc=mlogcn,dc=inn" # this object needs to have read and write rights on # the realm container, principal container and realm sub-trees ldap_service_password_file = /etc/krb5kdc/service.keyfile ldap_kerberos_container_dn = cn=container,dc=mlogcn,dc=inn ldap_servers = ldap://KDC_SERVER ldap_conns_per_server = 5 } """ KERBEROS=""" dn: cn=kerberos,cn=schema,cn=config objectClass: olcSchemaConfig cn: kerberos olcAttributeTypes: {0}( 2.16.840.1.113719.1.301.4.1.1 NAME 'krbPrincipalName ' EQUALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6.1 .4.1.1466.115.121.1.26 ) olcAttributeTypes: {1}( 1.2.840.113554.1.4.1.6.1 NAME 'krbCanonicalName' EQU ALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6.1.4.1. 1466.115.121.1.26 SINGLE-VALUE ) olcAttributeTypes: {2}( 2.16.840.1.113719.1.301.4.3.1 NAME 'krbPrincipalType ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {3}( 2.16.840.1.113719.1.301.4.5.1 NAME 'krbUPEnabled' DE SC 'Boolean' SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE ) olcAttributeTypes: {4}( 2.16.840.1.113719.1.301.4.6.1 NAME 'krbPrincipalExpi ration' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE ) olcAttributeTypes: {5}( 2.16.840.1.113719.1.301.4.8.1 NAME 'krbTicketFlags' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {6}( 2.16.840.1.113719.1.301.4.9.1 NAME 'krbMaxTicketLife ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {7}( 2.16.840.1.113719.1.301.4.10.1 NAME 'krbMaxRenewable Age' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALU E ) olcAttributeTypes: {8}( 2.16.840.1.113719.1.301.4.14.1 NAME 'krbRealmReferen ces' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {9}( 2.16.840.1.113719.1.301.4.15.1 NAME 'krbLdapServers' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) olcAttributeTypes: {10}( 2.16.840.1.113719.1.301.4.17.1 NAME 'krbKdcServers' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {11}( 2.16.840.1.113719.1.301.4.18.1 NAME 'krbPwdServers' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {12}( 2.16.840.1.113719.1.301.4.24.1 NAME 'krbHostServer' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) olcAttributeTypes: {13}( 2.16.840.1.113719.1.301.4.25.1 NAME 'krbSearchScope ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {14}( 2.16.840.1.113719.1.301.4.26.1 NAME 'krbPrincipalRe ferences' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1 .12 ) olcAttributeTypes: {15}( 2.16.840.1.113719.1.301.4.28.1 NAME 'krbPrincNaming Attr' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE- VALUE ) olcAttributeTypes: {16}( 2.16.840.1.113719.1.301.4.29.1 NAME 'krbAdmServers' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {17}( 2.16.840.1.113719.1.301.4.30.1 NAME 'krbMaxPwdLife' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {18}( 2.16.840.1.113719.1.301.4.31.1 NAME 'krbMinPwdLife' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {19}( 2.16.840.1.113719.1.301.4.32.1 NAME 'krbPwdMinDiffC hars' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VAL UE ) olcAttributeTypes: {20}( 2.16.840.1.113719.1.301.4.33.1 NAME 'krbPwdMinLengt h' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {21}( 2.16.840.1.113719.1.301.4.34.1 NAME 'krbPwdHistoryL ength' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA LUE ) olcAttributeTypes: {22}( 1.3.6.1.4.1.5322.21.2.1 NAME 'krbPwdMaxFailure' EQU ALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {23}( 1.3.6.1.4.1.5322.21.2.2 NAME 'krbPwdFailureCountInt erval' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA LUE ) olcAttributeTypes: {24}( 1.3.6.1.4.1.5322.21.2.3 NAME 'krbPwdLockoutDuration ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {25}( 1.2.840.113554.1.4.1.6.2 NAME 'krbPwdAttributes' EQ UALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {26}( 1.2.840.113554.1.4.1.6.3 NAME 'krbPwdMaxLife' EQUAL ITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {27}( 1.2.840.113554.1.4.1.6.4 NAME 'krbPwdMaxRenewableLi fe' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) olcAttributeTypes: {28}( 1.2.840.113554.1.4.1.6.5 NAME 'krbPwdAllowedKeysalt s' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE- VALUE ) olcAttributeTypes: {29}( 2.16.840.1.113719.1.301.4.36.1 NAME 'krbPwdPolicyRe ference' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1. 12 SINGLE-VALUE ) olcAttributeTypes: {30}( 2.16.840.1.113719.1.301.4.37.1 NAME 'krbPasswordExp iration' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE ) olcAttributeTypes: {31}( 2.16.840.1.113719.1.301.4.39.1 NAME 'krbPrincipalKe y' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 ) olcAttributeTypes: {32}( 2.16.840.1.113719.1.301.4.40.1 NAME 'krbTicketPolic yReference' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121 .1.12 SINGLE-VALUE ) olcAttributeTypes: {33}( 2.16.840.1.113719.1.301.4.41.1 NAME 'krbSubTrees' E QUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {34}( 2.16.840.1.113719.1.301.4.42.1 NAME 'krbDefaultEncS altTypes' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) olcAttributeTypes: {35}( 2.16.840.1.113719.1.301.4.43.1 NAME 'krbSupportedEn cSaltTypes' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) olcAttributeTypes: {36}( 2.16.840.1.113719.1.301.4.44.1 NAME 'krbPwdHistory' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 ) olcAttributeTypes: {37}( 2.16.840.1.113719.1.301.4.45.1 NAME 'krbLastPwdChan ge' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SING LE-VALUE ) olcAttributeTypes: {38}( 1.3.6.1.4.1.5322.21.2.5 NAME 'krbLastAdminUnlock' E QUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VA LUE ) olcAttributeTypes: {39}( 2.16.840.1.113719.1.301.4.46.1 NAME 'krbMKey' EQUAL ITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 ) olcAttributeTypes: {40}( 2.16.840.1.113719.1.301.4.47.1 NAME 'krbPrincipalAl iases' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) olcAttributeTypes: {41}( 2.16.840.1.113719.1.301.4.48.1 NAME 'krbLastSuccess fulAuth' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE ) olcAttributeTypes: {42}( 2.16.840.1.113719.1.301.4.49.1 NAME 'krbLastFailedA uth' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SIN GLE-VALUE ) olcAttributeTypes: {43}( 2.16.840.1.113719.1.301.4.50.1 NAME 'krbLoginFailed Count' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA LUE ) olcAttributeTypes: {44}( 2.16.840.1.113719.1.301.4.51.1 NAME 'krbExtraData' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 ) olcAttributeTypes: {45}( 2.16.840.1.113719.1.301.4.52.1 NAME 'krbObjectRefer ences' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 ) olcAttributeTypes: {46}( 2.16.840.1.113719.1.301.4.53.1 NAME 'krbPrincContai nerRef' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.1 2 ) olcAttributeTypes: {47}( 1.3.6.1.4.1.5322.21.2.4 NAME 'krbAllowedToDelegateT o' EQUALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6. 1.4.1.1466.115.121.1.26 ) olcObjectClasses: {0}( 2.16.840.1.113719.1.301.6.1.1 NAME 'krbContainer' SUP top STRUCTURAL MUST cn ) olcObjectClasses: {1}( 2.16.840.1.113719.1.301.6.2.1 NAME 'krbRealmContainer ' SUP top STRUCTURAL MUST cn MAY ( krbMKey $ krbUPEnabled $ krbSubTrees $ k rbSearchScope $ krbLdapServers $ krbSupportedEncSaltTypes $ krbDefaultEncSa ltTypes $ krbTicketPolicyReference $ krbKdcServers $ krbPwdServers $ krbAdm Servers $ krbPrincNamingAttr $ krbPwdPolicyReference $ krbPrincContainerRef ) ) olcObjectClasses: {2}( 2.16.840.1.113719.1.301.6.3.1 NAME 'krbService' SUP t op ABSTRACT MUST cn MAY ( krbHostServer $ krbRealmReferences ) ) olcObjectClasses: {3}( 2.16.840.1.113719.1.301.6.4.1 NAME 'krbKdcService' SU P krbService STRUCTURAL ) olcObjectClasses: {4}( 2.16.840.1.113719.1.301.6.5.1 NAME 'krbPwdService' SU P krbService STRUCTURAL ) olcObjectClasses: {5}( 2.16.840.1.113719.1.301.6.8.1 NAME 'krbPrincipalAux' SUP top AUXILIARY MAY ( krbPrincipalName $ krbCanonicalName $ krbUPEnabled $ krbPrincipalKey $ krbTicketPolicyReference $ krbPrincipalExpiration $ krb PasswordExpiration $ krbPwdPolicyReference $ krbPrincipalType $ krbPwdHisto ry $ krbLastPwdChange $ krbLastAdminUnlock $ krbPrincipalAliases $ krbLastS uccessfulAuth $ krbLastFailedAuth $ krbLoginFailedCount $ krbExtraData $ kr bAllowedToDelegateTo ) ) olcObjectClasses: {6}( 2.16.840.1.113719.1.301.6.9.1 NAME 'krbPrincipal' SUP top STRUCTURAL MUST krbPrincipalName MAY krbObjectReferences ) olcObjectClasses: {7}( 2.16.840.1.113719.1.301.6.11.1 NAME 'krbPrincRefAux' SUP top AUXILIARY MAY krbPrincipalReferences ) olcObjectClasses: {8}( 2.16.840.1.113719.1.301.6.13.1 NAME 'krbAdmService' S UP krbService STRUCTURAL ) olcObjectClasses: {9}( 2.16.840.1.113719.1.301.6.14.1 NAME 'krbPwdPolicy' SU P top STRUCTURAL MUST cn MAY ( krbMaxPwdLife $ krbMinPwdLife $ krbPwdMinDif fChars $ krbPwdMinLength $ krbPwdHistoryLength $ krbPwdMaxFailure $ krbPwdF ailureCountInterval $ krbPwdLockoutDuration $ krbPwdAttributes $ krbPwdMaxL ife $ krbPwdMaxRenewableLife $ krbPwdAllowedKeysalts ) ) olcObjectClasses: {10}( 2.16.840.1.113719.1.301.6.16.1 NAME 'krbTicketPolicy Aux' SUP top AUXILIARY MAY ( krbTicketFlags $ krbMaxTicketLife $ krbMaxRene wableAge ) ) olcObjectClasses: {11}( 2.16.840.1.113719.1.301.6.17.1 NAME 'krbTicketPolicy ' SUP top STRUCTURAL MUST cn ) """
chrootpw = '\ndn: olcDatabase={0}config,cn=config\nchangetype: modify\nadd: olcRootPW\nolcRootPW: SSHA_KEY\n' chdomain = '\ndn: olcDatabase={1}monitor,cn=config\nchangetype: modify\nreplace: olcAccess\nolcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth"\n read by dn.base="cn=admin,dc=mlogcn,dc=inn" read by * none\n\ndn: olcDatabase={2}hdb,cn=config\nchangetype: modify\nreplace: olcSuffix\nolcSuffix: dc=mlogcn,dc=inn\n\ndn: olcDatabase={2}hdb,cn=config\nchangetype: modify\nreplace: olcRootDN\nolcRootDN: cn=admin,dc=mlogcn,dc=inn\n\ndn: olcDatabase={2}hdb,cn=config\nchangetype: modify\nadd: olcRootPW\nolcRootPW: SSHA_KEY\n\ndn: olcDatabase={2}hdb,cn=config\nchangetype: modify\nadd: olcAccess\nolcAccess: {0}to attrs=userPassword,shadowLastChange by\n dn="cn=admin,dc=mlogcn,dc=inn" write by anonymous auth by self write by * none\nolcAccess: {1}to dn.base="" by * read\nolcAccess: {2}to * by dn="cn=admin,dc=mlogcn,dc=inn" write by * read\n' etc_krb5 = '\n[logging]\n default = FILE:/var/log/krb5libs.log\n kdc = FILE:/var/log/krb5kdc.log\n admin_server = FILE:/var/log/kadmind.log\n\n [libdefaults]\n dns_lookup_realm = false\n ticket_lifetime = 24h\n renew_lifetime = 7d\n forwardable = true\n rdns = false\n default_realm = MLOGCN.INN\n\n [realms]\n MLOGCN.INN = {\n kdc = KDC_SERVER\n admin_server = KDC_SERVER\n default_domain = mlogcn.inn\n database_module = openldap_ldapconf\n }\n\n [domain_realm]\n .mlogcn.inn = MLOGCN.INN\n mlogcn.inn = MLOGCN.INN\n\n [dbmodules]\n openldap_ldapconf = {\n db_library = kldap\n ldap_kdc_dn = "cn=admin,dc=mlogcn,dc=inn"\n\n # this object needs to have read rights on\n # the realm container, principal container and realm sub-trees\n ldap_kadmind_dn = "cn=admin,dc=mlogcn,dc=inn"\n\n # this object needs to have read and write rights on\n # the realm container, principal container and realm sub-trees\n ldap_service_password_file = /etc/krb5kdc/service.keyfile\n ldap_kerberos_container_dn = cn=container,dc=mlogcn,dc=inn\n ldap_servers = ldap://KDC_SERVER\n ldap_conns_per_server = 5\n }\n' kerberos = "\ndn: cn=kerberos,cn=schema,cn=config\nobjectClass: olcSchemaConfig\ncn: kerberos\nolcAttributeTypes: {0}( 2.16.840.1.113719.1.301.4.1.1 NAME 'krbPrincipalName\n ' EQUALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6.1\n .4.1.1466.115.121.1.26 )\nolcAttributeTypes: {1}( 1.2.840.113554.1.4.1.6.1 NAME 'krbCanonicalName' EQU\n ALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6.1.4.1.\n 1466.115.121.1.26 SINGLE-VALUE )\nolcAttributeTypes: {2}( 2.16.840.1.113719.1.301.4.3.1 NAME 'krbPrincipalType\n ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {3}( 2.16.840.1.113719.1.301.4.5.1 NAME 'krbUPEnabled' DE\n SC 'Boolean' SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )\nolcAttributeTypes: {4}( 2.16.840.1.113719.1.301.4.6.1 NAME 'krbPrincipalExpi\n ration' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24\n SINGLE-VALUE )\nolcAttributeTypes: {5}( 2.16.840.1.113719.1.301.4.8.1 NAME 'krbTicketFlags'\n EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {6}( 2.16.840.1.113719.1.301.4.9.1 NAME 'krbMaxTicketLife\n ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {7}( 2.16.840.1.113719.1.301.4.10.1 NAME 'krbMaxRenewable\n Age' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALU\n E )\nolcAttributeTypes: {8}( 2.16.840.1.113719.1.301.4.14.1 NAME 'krbRealmReferen\n ces' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )\nolcAttributeTypes: {9}( 2.16.840.1.113719.1.301.4.15.1 NAME 'krbLdapServers'\n EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )\nolcAttributeTypes: {10}( 2.16.840.1.113719.1.301.4.17.1 NAME 'krbKdcServers'\n EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )\nolcAttributeTypes: {11}( 2.16.840.1.113719.1.301.4.18.1 NAME 'krbPwdServers'\n EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )\nolcAttributeTypes: {12}( 2.16.840.1.113719.1.301.4.24.1 NAME 'krbHostServer'\n EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )\nolcAttributeTypes: {13}( 2.16.840.1.113719.1.301.4.25.1 NAME 'krbSearchScope\n ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {14}( 2.16.840.1.113719.1.301.4.26.1 NAME 'krbPrincipalRe\n ferences' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1\n .12 )\nolcAttributeTypes: {15}( 2.16.840.1.113719.1.301.4.28.1 NAME 'krbPrincNaming\n Attr' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-\n VALUE )\nolcAttributeTypes: {16}( 2.16.840.1.113719.1.301.4.29.1 NAME 'krbAdmServers'\n EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )\nolcAttributeTypes: {17}( 2.16.840.1.113719.1.301.4.30.1 NAME 'krbMaxPwdLife'\n EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {18}( 2.16.840.1.113719.1.301.4.31.1 NAME 'krbMinPwdLife'\n EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {19}( 2.16.840.1.113719.1.301.4.32.1 NAME 'krbPwdMinDiffC\n hars' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VAL\n UE )\nolcAttributeTypes: {20}( 2.16.840.1.113719.1.301.4.33.1 NAME 'krbPwdMinLengt\n h' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE\n )\nolcAttributeTypes: {21}( 2.16.840.1.113719.1.301.4.34.1 NAME 'krbPwdHistoryL\n ength' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA\n LUE )\nolcAttributeTypes: {22}( 1.3.6.1.4.1.5322.21.2.1 NAME 'krbPwdMaxFailure' EQU\n ALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {23}( 1.3.6.1.4.1.5322.21.2.2 NAME 'krbPwdFailureCountInt\n erval' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA\n LUE )\nolcAttributeTypes: {24}( 1.3.6.1.4.1.5322.21.2.3 NAME 'krbPwdLockoutDuration\n ' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {25}( 1.2.840.113554.1.4.1.6.2 NAME 'krbPwdAttributes' EQ\n UALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {26}( 1.2.840.113554.1.4.1.6.3 NAME 'krbPwdMaxLife' EQUAL\n ITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )\nolcAttributeTypes: {27}( 1.2.840.113554.1.4.1.6.4 NAME 'krbPwdMaxRenewableLi\n fe' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE\n )\nolcAttributeTypes: {28}( 1.2.840.113554.1.4.1.6.5 NAME 'krbPwdAllowedKeysalt\n s' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-\n VALUE )\nolcAttributeTypes: {29}( 2.16.840.1.113719.1.301.4.36.1 NAME 'krbPwdPolicyRe\n ference' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.\n 12 SINGLE-VALUE )\nolcAttributeTypes: {30}( 2.16.840.1.113719.1.301.4.37.1 NAME 'krbPasswordExp\n iration' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24\n SINGLE-VALUE )\nolcAttributeTypes: {31}( 2.16.840.1.113719.1.301.4.39.1 NAME 'krbPrincipalKe\n y' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )\nolcAttributeTypes: {32}( 2.16.840.1.113719.1.301.4.40.1 NAME 'krbTicketPolic\n yReference' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121\n .1.12 SINGLE-VALUE )\nolcAttributeTypes: {33}( 2.16.840.1.113719.1.301.4.41.1 NAME 'krbSubTrees' E\n QUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )\nolcAttributeTypes: {34}( 2.16.840.1.113719.1.301.4.42.1 NAME 'krbDefaultEncS\n altTypes' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )\nolcAttributeTypes: {35}( 2.16.840.1.113719.1.301.4.43.1 NAME 'krbSupportedEn\n cSaltTypes' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )\nolcAttributeTypes: {36}( 2.16.840.1.113719.1.301.4.44.1 NAME 'krbPwdHistory'\n EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )\nolcAttributeTypes: {37}( 2.16.840.1.113719.1.301.4.45.1 NAME 'krbLastPwdChan\n ge' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SING\n LE-VALUE )\nolcAttributeTypes: {38}( 1.3.6.1.4.1.5322.21.2.5 NAME 'krbLastAdminUnlock' E\n QUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VA\n LUE )\nolcAttributeTypes: {39}( 2.16.840.1.113719.1.301.4.46.1 NAME 'krbMKey' EQUAL\n ITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )\nolcAttributeTypes: {40}( 2.16.840.1.113719.1.301.4.47.1 NAME 'krbPrincipalAl\n iases' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )\nolcAttributeTypes: {41}( 2.16.840.1.113719.1.301.4.48.1 NAME 'krbLastSuccess\n fulAuth' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24\n SINGLE-VALUE )\nolcAttributeTypes: {42}( 2.16.840.1.113719.1.301.4.49.1 NAME 'krbLastFailedA\n uth' EQUALITY generalizedTimeMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SIN\n GLE-VALUE )\nolcAttributeTypes: {43}( 2.16.840.1.113719.1.301.4.50.1 NAME 'krbLoginFailed\n Count' EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VA\n LUE )\nolcAttributeTypes: {44}( 2.16.840.1.113719.1.301.4.51.1 NAME 'krbExtraData'\n EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )\nolcAttributeTypes: {45}( 2.16.840.1.113719.1.301.4.52.1 NAME 'krbObjectRefer\n ences' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12\n )\nolcAttributeTypes: {46}( 2.16.840.1.113719.1.301.4.53.1 NAME 'krbPrincContai\n nerRef' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.1\n 2 )\nolcAttributeTypes: {47}( 1.3.6.1.4.1.5322.21.2.4 NAME 'krbAllowedToDelegateT\n o' EQUALITY caseExactIA5Match SUBSTR caseExactSubstringsMatch SYNTAX 1.3.6.\n 1.4.1.1466.115.121.1.26 )\nolcObjectClasses: {0}( 2.16.840.1.113719.1.301.6.1.1 NAME 'krbContainer' SUP\n top STRUCTURAL MUST cn )\nolcObjectClasses: {1}( 2.16.840.1.113719.1.301.6.2.1 NAME 'krbRealmContainer\n ' SUP top STRUCTURAL MUST cn MAY ( krbMKey $ krbUPEnabled $ krbSubTrees $ k\n rbSearchScope $ krbLdapServers $ krbSupportedEncSaltTypes $ krbDefaultEncSa\n ltTypes $ krbTicketPolicyReference $ krbKdcServers $ krbPwdServers $ krbAdm\n Servers $ krbPrincNamingAttr $ krbPwdPolicyReference $ krbPrincContainerRef\n ) )\nolcObjectClasses: {2}( 2.16.840.1.113719.1.301.6.3.1 NAME 'krbService' SUP t\n op ABSTRACT MUST cn MAY ( krbHostServer $ krbRealmReferences ) )\nolcObjectClasses: {3}( 2.16.840.1.113719.1.301.6.4.1 NAME 'krbKdcService' SU\n P krbService STRUCTURAL )\nolcObjectClasses: {4}( 2.16.840.1.113719.1.301.6.5.1 NAME 'krbPwdService' SU\n P krbService STRUCTURAL )\nolcObjectClasses: {5}( 2.16.840.1.113719.1.301.6.8.1 NAME 'krbPrincipalAux'\n SUP top AUXILIARY MAY ( krbPrincipalName $ krbCanonicalName $ krbUPEnabled\n $ krbPrincipalKey $ krbTicketPolicyReference $ krbPrincipalExpiration $ krb\n PasswordExpiration $ krbPwdPolicyReference $ krbPrincipalType $ krbPwdHisto\n ry $ krbLastPwdChange $ krbLastAdminUnlock $ krbPrincipalAliases $ krbLastS\n uccessfulAuth $ krbLastFailedAuth $ krbLoginFailedCount $ krbExtraData $ kr\n bAllowedToDelegateTo ) )\nolcObjectClasses: {6}( 2.16.840.1.113719.1.301.6.9.1 NAME 'krbPrincipal' SUP\n top STRUCTURAL MUST krbPrincipalName MAY krbObjectReferences )\nolcObjectClasses: {7}( 2.16.840.1.113719.1.301.6.11.1 NAME 'krbPrincRefAux'\n SUP top AUXILIARY MAY krbPrincipalReferences )\nolcObjectClasses: {8}( 2.16.840.1.113719.1.301.6.13.1 NAME 'krbAdmService' S\n UP krbService STRUCTURAL )\nolcObjectClasses: {9}( 2.16.840.1.113719.1.301.6.14.1 NAME 'krbPwdPolicy' SU\n P top STRUCTURAL MUST cn MAY ( krbMaxPwdLife $ krbMinPwdLife $ krbPwdMinDif\n fChars $ krbPwdMinLength $ krbPwdHistoryLength $ krbPwdMaxFailure $ krbPwdF\n ailureCountInterval $ krbPwdLockoutDuration $ krbPwdAttributes $ krbPwdMaxL\n ife $ krbPwdMaxRenewableLife $ krbPwdAllowedKeysalts ) )\nolcObjectClasses: {10}( 2.16.840.1.113719.1.301.6.16.1 NAME 'krbTicketPolicy\n Aux' SUP top AUXILIARY MAY ( krbTicketFlags $ krbMaxTicketLife $ krbMaxRene\n wableAge ) )\nolcObjectClasses: {11}( 2.16.840.1.113719.1.301.6.17.1 NAME 'krbTicketPolicy\n ' SUP top STRUCTURAL MUST cn )\n"
""" This module implements some interesting algorithmic challenges on strings """ def remove_duplicates(s): """ Given a string, remove duplicate characters, retaining only the first time for each unique character. Example: helloh -> helo """ unique_chars = set() new_string = "" for char in s: if char not in unique_chars: new_string += char unique_chars.add(char) return new_string def main(): s = "Hello, my friend liam" print(remove_duplicates(s)) if __name__ == "__main__": main()
""" This module implements some interesting algorithmic challenges on strings """ def remove_duplicates(s): """ Given a string, remove duplicate characters, retaining only the first time for each unique character. Example: helloh -> helo """ unique_chars = set() new_string = '' for char in s: if char not in unique_chars: new_string += char unique_chars.add(char) return new_string def main(): s = 'Hello, my friend liam' print(remove_duplicates(s)) if __name__ == '__main__': main()
""" The :mod:`pure_sklearn.metrics` module includes pairwise metrics and distance computations. """ __all__ = ["pairwise"]
""" The :mod:`pure_sklearn.metrics` module includes pairwise metrics and distance computations. """ __all__ = ['pairwise']
def bingo_sort(L): minValue = min(L) maxValue = max(L) bingo = minValue next_bingo = maxValue nextIndex = 0 while bingo < maxValue: startPosition = nextIndex for i in range(startPosition, len(L)): if L[i] == bingo: L[i], L[nextIndex] = L[nextIndex], L[i] ; nextIndex += 1 #BINGO if L[i] < next_bingo: next_bingo = L[i] bingo = next_bingo next_bingo = maxValue L = [1,4,2,5,7,2,4,2,4,1,8,9,2,0,0,1,2,3,5,4,4,4,3,1,1,1,1,1] bingo_sort(L) print(L)
def bingo_sort(L): min_value = min(L) max_value = max(L) bingo = minValue next_bingo = maxValue next_index = 0 while bingo < maxValue: start_position = nextIndex for i in range(startPosition, len(L)): if L[i] == bingo: (L[i], L[nextIndex]) = (L[nextIndex], L[i]) next_index += 1 if L[i] < next_bingo: next_bingo = L[i] bingo = next_bingo next_bingo = maxValue l = [1, 4, 2, 5, 7, 2, 4, 2, 4, 1, 8, 9, 2, 0, 0, 1, 2, 3, 5, 4, 4, 4, 3, 1, 1, 1, 1, 1] bingo_sort(L) print(L)
""" categories: Types,Exception description: User-defined attributes for builtin exceptions are not supported cause: MicroPython is highly optimized for memory usage. workaround: Use user-defined exception subclasses. """ e = Exception() e.x = 0 print(e.x)
""" categories: Types,Exception description: User-defined attributes for builtin exceptions are not supported cause: MicroPython is highly optimized for memory usage. workaround: Use user-defined exception subclasses. """ e = exception() e.x = 0 print(e.x)
# You are given two integer arrays nums1 and nums2 both of unique elements, # where nums1 is a subset of nums2. # Find all the next greater numbers for nums1's elements in the corresponding # places of nums2. # The Next Greater Number of a number x in nums1 is the first greater number to # its right in nums2. If it does not exist, return -1 for this number. # Example 1: # Input: nums1 = [4,1,2], nums2 = [1,3,4,2] # Output: [-1,3,-1] # Explanation: # For number 4 in the first array, you cannot find the next greater number for # it in the second array, so output -1. # For number 1 in the first array, the next greater number for it in the # second array is 3. # For number 2 in the first array, there is no next greater number for it in # the second array, so output -1. # Example 2: # Input: nums1 = [2,4], nums2 = [1,2,3,4] # Output: [3,-1] # Explanation: # For number 2 in the first array, the next greater number for it in the # second array is 3. # For number 4 in the first array, there is no next greater number for it in # the second array, so output -1. # Solution 1 -- Hashmap and Stack class Solution_1: def nextGreaterElement(nums1, nums2): if not nums1 or not nums2: return [] map1 = {} stack = [nums2[0]] for ind in range(1, len(nums2)): while(stack and nums2[ind] > stack[-1]): map1[stack.pop()] = nums2[ind] stack.append(nums2[ind]) for key in stack: map1[key] = -1 return [map1[key] for key in nums1]
class Solution_1: def next_greater_element(nums1, nums2): if not nums1 or not nums2: return [] map1 = {} stack = [nums2[0]] for ind in range(1, len(nums2)): while stack and nums2[ind] > stack[-1]: map1[stack.pop()] = nums2[ind] stack.append(nums2[ind]) for key in stack: map1[key] = -1 return [map1[key] for key in nums1]
#encoding:utf-8 subreddit = 'arabfunny' t_channel = '@r_Arabfunny' def send_post(submission, r2t): return r2t.send_simple(submission)
subreddit = 'arabfunny' t_channel = '@r_Arabfunny' def send_post(submission, r2t): return r2t.send_simple(submission)
# Copyright (C) 2015-2019 by Vd. # This file is part of RocketGram, the modern Telegram bot framework. # RocketGram is released under the MIT License (see LICENSE). class LocationMessageContent: """https://core.telegram.org/bots/api#inputlocationmessagecontent""" def __init__(self, latitude, longitude): self._data = dict() self._data['latitude'] = latitude self._data['longitude'] = longitude def render(self): return self._data
class Locationmessagecontent: """https://core.telegram.org/bots/api#inputlocationmessagecontent""" def __init__(self, latitude, longitude): self._data = dict() self._data['latitude'] = latitude self._data['longitude'] = longitude def render(self): return self._data
#!/usr/local/bin/python2 arquivo = open('pessoas.csv') for registro in arquivo: print('nome: {}, idade: {}'.format(*registro.split(','))) arquivo.close() print("ola mundo")
arquivo = open('pessoas.csv') for registro in arquivo: print('nome: {}, idade: {}'.format(*registro.split(','))) arquivo.close() print('ola mundo')
class SignalAndTarget(object): """ Simple data container class. Parameters ---------- X: 3darray or list of 2darrays The input signal per trial. y: 1darray or list Labels for each trial. """ def __init__(self, X, y): assert len(X) == len(y) self.X = X self.y = y def apply_to_X_y(fn, *sets): """ Apply a function to all `X` and `y` attributes of all given sets. Applies function to list of X arrays and to list of y arrays separately. Parameters ---------- fn: function Function to apply sets: :class:`.SignalAndTarget` objects Returns ------- result_set: :class:`.SignalAndTarget` Dataset with X and y as the result of the application of the function. """ X = fn(*[s.X for s in sets]) y = fn(*[s.y for s in sets]) return SignalAndTarget(X,y)
class Signalandtarget(object): """ Simple data container class. Parameters ---------- X: 3darray or list of 2darrays The input signal per trial. y: 1darray or list Labels for each trial. """ def __init__(self, X, y): assert len(X) == len(y) self.X = X self.y = y def apply_to_x_y(fn, *sets): """ Apply a function to all `X` and `y` attributes of all given sets. Applies function to list of X arrays and to list of y arrays separately. Parameters ---------- fn: function Function to apply sets: :class:`.SignalAndTarget` objects Returns ------- result_set: :class:`.SignalAndTarget` Dataset with X and y as the result of the application of the function. """ x = fn(*[s.X for s in sets]) y = fn(*[s.y for s in sets]) return signal_and_target(X, y)
"""1.6 String Compression: Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2b1c5a3. If the "compressed" string would not become smaller than the original string, your method should return the original string. You can assume the string has only uppercase and lowercase letters (a - z). """ def string_compression(string: str)-> str: """2 stacks, one for the counting of the symbols and one as a string builder """ res, stack = [], [] for e in string: # no stack? then start appending if not stack: stack.append(e); continue # repetitions get pushed in if e == stack[0]: stack.append(e) # changes flush the repetitions into the compressed notation else: res.append(f'{stack[0]}{len(stack)}') stack = [e] # any remeinders? flush them if stack: res.append(f'{stack[0]}{len(stack)}') return ''.join(res) # test t_1 = "aabcccccaaa" print(f'is string_compression? test: {t_1} ans: {string_compression(t_1)}')
"""1.6 String Compression: Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2b1c5a3. If the "compressed" string would not become smaller than the original string, your method should return the original string. You can assume the string has only uppercase and lowercase letters (a - z). """ def string_compression(string: str) -> str: """2 stacks, one for the counting of the symbols and one as a string builder """ (res, stack) = ([], []) for e in string: if not stack: stack.append(e) continue if e == stack[0]: stack.append(e) else: res.append(f'{stack[0]}{len(stack)}') stack = [e] if stack: res.append(f'{stack[0]}{len(stack)}') return ''.join(res) t_1 = 'aabcccccaaa' print(f'is string_compression? test: {t_1} ans: {string_compression(t_1)}')
""" Create a Os and Xs program! The program should do the following: - Create three lists for the three rows of the grid (and put three spaces in each one) - Repeatedly ask the O user and the X user (one after the other) for a row and column to place a symbol - Place the correct symbol for the user at that location - For every symbol placed, check if the grid is full, or there are three symbols in a row - If full or there is a winner, and the program """
""" Create a Os and Xs program! The program should do the following: - Create three lists for the three rows of the grid (and put three spaces in each one) - Repeatedly ask the O user and the X user (one after the other) for a row and column to place a symbol - Place the correct symbol for the user at that location - For every symbol placed, check if the grid is full, or there are three symbols in a row - If full or there is a winner, and the program """
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here t = int(input()) def calc(x): x //= 60 if 6 < x < 18: return 1 + abs(12 - x) return min(x, 24 - x) for _ in range(t): a = input() b = input() h1, m1 = int(a[0:2]), int(a[3:5]) h2, m2 = int(b[0:2]), int(b[3:5]) h1 %= 12 h2 %= 12 h1 += (a[-2:] == 'pm') * 12 h2 += (b[-2:] == 'pm') * 12 t1 = h1 * 60 + m1 t2 = h2 * 60 + m2 p = abs(t2 - t1) ans = 0 if p % 60 >= 30: ans += 60 - p % 60 if p % 60 > 30: p += 60 - p % 60 else: ans = 30 if calc(p + 30) > calc(p - 30): p -= 30 else: p += 30 else: ans += p % 60 p -= p % 60 p //= 60 if 6 < p < 18: ans += 1 p = abs(12 - p) else: p = min(p, 24 - p) ans += p print(ans)
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ t = int(input()) def calc(x): x //= 60 if 6 < x < 18: return 1 + abs(12 - x) return min(x, 24 - x) for _ in range(t): a = input() b = input() (h1, m1) = (int(a[0:2]), int(a[3:5])) (h2, m2) = (int(b[0:2]), int(b[3:5])) h1 %= 12 h2 %= 12 h1 += (a[-2:] == 'pm') * 12 h2 += (b[-2:] == 'pm') * 12 t1 = h1 * 60 + m1 t2 = h2 * 60 + m2 p = abs(t2 - t1) ans = 0 if p % 60 >= 30: ans += 60 - p % 60 if p % 60 > 30: p += 60 - p % 60 else: ans = 30 if calc(p + 30) > calc(p - 30): p -= 30 else: p += 30 else: ans += p % 60 p -= p % 60 p //= 60 if 6 < p < 18: ans += 1 p = abs(12 - p) else: p = min(p, 24 - p) ans += p print(ans)
# Combination Sum III ''' Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers. Note: All numbers will be positive integers. The solution set must not contain duplicate combinations. Example 1: Input: k = 3, n = 7 Output: [[1,2,4]] Example 2: Input: k = 3, n = 9 Output: [[1,2,6], [1,3,5], [2,3,4]] ''' class Solution: def combinationSum3(self, k: int, n: int) -> List[List[int]]: ans = [] def rec(r, ns, comb): if r==0 and len(comb)==k: ans.append(comb) return if len(comb)==k: return for i in range(ns, 10): rec(r-i, i+1, comb+[i]) rec(n, 1,[]) return ans
""" Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers. Note: All numbers will be positive integers. The solution set must not contain duplicate combinations. Example 1: Input: k = 3, n = 7 Output: [[1,2,4]] Example 2: Input: k = 3, n = 9 Output: [[1,2,6], [1,3,5], [2,3,4]] """ class Solution: def combination_sum3(self, k: int, n: int) -> List[List[int]]: ans = [] def rec(r, ns, comb): if r == 0 and len(comb) == k: ans.append(comb) return if len(comb) == k: return for i in range(ns, 10): rec(r - i, i + 1, comb + [i]) rec(n, 1, []) return ans
class Solution: def canConstruct(self, ransomNote: str, magazine: str) -> bool: ransomNote = sorted(ransomNote) magazine = sorted(magazine) i = j = 0 while i < len(ransomNote) and j < len(magazine): if ransomNote[i] == magazine[j]: i += 1 elif ransomNote[i] < magazine[j]: return False j += 1 return i == len(ransomNote) if __name__ == "__main__": solver = Solution() print(solver.canConstruct(ransomNote="a", magazine="b")) print(solver.canConstruct(ransomNote="aa", magazine="ab")) print(solver.canConstruct(ransomNote="aa", magazine="aab"))
class Solution: def can_construct(self, ransomNote: str, magazine: str) -> bool: ransom_note = sorted(ransomNote) magazine = sorted(magazine) i = j = 0 while i < len(ransomNote) and j < len(magazine): if ransomNote[i] == magazine[j]: i += 1 elif ransomNote[i] < magazine[j]: return False j += 1 return i == len(ransomNote) if __name__ == '__main__': solver = solution() print(solver.canConstruct(ransomNote='a', magazine='b')) print(solver.canConstruct(ransomNote='aa', magazine='ab')) print(solver.canConstruct(ransomNote='aa', magazine='aab'))
# File: P (Python 2.4) protectedStates = [ 'Injured'] overrideStates = [ 'ThrownInJail']
protected_states = ['Injured'] override_states = ['ThrownInJail']
print("You will meet two people - one is the sweet shop owner who wants to steal the password so he can keep the sweets.") print() playername=input("What is your name? ") print("Welcome "+ playername)
print('You will meet two people - one is the sweet shop owner who wants to steal the password so he can keep the sweets.') print() playername = input('What is your name? ') print('Welcome ' + playername)
# https://leetcode.com/problems/next-greater-node-in-linked-list/discuss/265508/JavaC%2B%2BPython-Next-Greater-Element class Solution: def nextLargerNodes(self, head): res, stack = [], [] while head: while stack and stack[-1][1] < head.val: res[stack.pop()[0]] = head.val stack.append([len(res), head.val]) res.append(0) head = head.next return res # O(N^2) time complexity doesn't pass :( # if not head: # return [] # out = [] # curr = head # while curr: # explorer = curr.next # while explorer and explorer.val <= curr.val: # explorer = explorer.next # if explorer: # out.append(explorer.val) # else: # out.append(0) # curr = curr.next # return out
class Solution: def next_larger_nodes(self, head): (res, stack) = ([], []) while head: while stack and stack[-1][1] < head.val: res[stack.pop()[0]] = head.val stack.append([len(res), head.val]) res.append(0) head = head.next return res
message = "Hello Python world!" print(message) message = "Hello Python Crash Course world!" print(message) mesage = "Hello Python Crash Course reader!" print(mesage)
message = 'Hello Python world!' print(message) message = 'Hello Python Crash Course world!' print(message) mesage = 'Hello Python Crash Course reader!' print(mesage)
class NHomogeneousBatchLoss: def __init__(self, loss, *args, **kwargs): """ Apply loss on list of Non-Homogeneous tensors """ self.loss = loss(**kwargs) def __call__(self, output, target): """ output: must be a list of torch tensors [1 x ? x spatial] target: must be a list of torch tensors or a single tensor, shape depends on loss function """ assert isinstance(output, list), "output must be a list of torch tensors" l, it = 0, 0 for it, o in enumerate(output): l = l + self.loss(o, target[it]) return l / (it + 1)
class Nhomogeneousbatchloss: def __init__(self, loss, *args, **kwargs): """ Apply loss on list of Non-Homogeneous tensors """ self.loss = loss(**kwargs) def __call__(self, output, target): """ output: must be a list of torch tensors [1 x ? x spatial] target: must be a list of torch tensors or a single tensor, shape depends on loss function """ assert isinstance(output, list), 'output must be a list of torch tensors' (l, it) = (0, 0) for (it, o) in enumerate(output): l = l + self.loss(o, target[it]) return l / (it + 1)
n = int(input()) l = list(map(int, input().split())) flag = 0 for i in range(1,max(l)+1): for j in range(n): if i>l[j]: l[j] = 0 for j in range(n-1): if l[j] == l[j+1]==0 or l[n-1]==0 or l[0] == 0: flag = 1 break if flag == 1: break if n==1: print(l[0]) else: print(i-1) # n=int(input()) # l=list(map(int,input().split())) # i=1 # ll=l[0] # while(i<n-1): # if (l[i]>l[i+1]): # if l[i]<ll: # ll=l[i] # i+=1 # else: # if l[i+1]<ll: # ll=l[i+1] # i+=2 # if l[n-1]<ll: # ll=l[n-1] # print(ll)
n = int(input()) l = list(map(int, input().split())) flag = 0 for i in range(1, max(l) + 1): for j in range(n): if i > l[j]: l[j] = 0 for j in range(n - 1): if l[j] == l[j + 1] == 0 or l[n - 1] == 0 or l[0] == 0: flag = 1 break if flag == 1: break if n == 1: print(l[0]) else: print(i - 1)
# NPTEL WEEK 3 PROGRAMMING ASSIGNMENT def ascending(l): if len(l)==0: return(True) for i in range(len(l)-1,0,-1): if l[i]<l[i-1]: return(False) return(True) #print(ascending([2,3,4,5,1])) #print(ascending([1,2,3,4,5,5])) def valley(l): if len(l)<3: return(False) for i in range(0,len(l),1): if i==len(l)-1: return(False) if l[i]==l[i+1]: return(False) if l[i]<l[i+1]: break if len(l[i:])<2: return(False) for j in range(i,len(l),1): if j==len(l)-1: return(True) if l[j]==l[j+1]: return(False) if l[j]>l[j+1]: return(False) #print(valley([3,2,1,2,3])) #print(valley([3,3,2,3])) #print(valley([5,4,3,2,1,2])) #print(valley([17,1,2,3,4,5])) #print(valley([13,12,14,14])) def transpose(A): B = [] C = [] col = len(A[0]) row = len(A) for i in range(col): C = [] for j in range(row): C.append(A[j][i]) B.append(C) return(B) #print(transpose([[1,4,9]])) #print(transpose([[1,3,5],[2,4,6]])) #print(transpose([[1,2]]))
def ascending(l): if len(l) == 0: return True for i in range(len(l) - 1, 0, -1): if l[i] < l[i - 1]: return False return True def valley(l): if len(l) < 3: return False for i in range(0, len(l), 1): if i == len(l) - 1: return False if l[i] == l[i + 1]: return False if l[i] < l[i + 1]: break if len(l[i:]) < 2: return False for j in range(i, len(l), 1): if j == len(l) - 1: return True if l[j] == l[j + 1]: return False if l[j] > l[j + 1]: return False def transpose(A): b = [] c = [] col = len(A[0]) row = len(A) for i in range(col): c = [] for j in range(row): C.append(A[j][i]) B.append(C) return B
def single_number(arr): arr.sort() idx = 0 while idx < len(arr): try: if arr[idx] != arr[idx + 1]: return arr[idx] except IndexError: return arr[idx] idx += 2
def single_number(arr): arr.sort() idx = 0 while idx < len(arr): try: if arr[idx] != arr[idx + 1]: return arr[idx] except IndexError: return arr[idx] idx += 2
"""Parse plate-reader and fit ClopHensor titrations.""" __version__ = "0.3.3" # importlib.metadata.version(__name__)
"""Parse plate-reader and fit ClopHensor titrations.""" __version__ = '0.3.3'
# interp.py ''' Interpreter Project =================== This is an interpreter than can run wabbit programs directly from the generated IR code. To run a program use:: bash % python3 -m wabbit.interp someprogram.wb '''
""" Interpreter Project =================== This is an interpreter than can run wabbit programs directly from the generated IR code. To run a program use:: bash % python3 -m wabbit.interp someprogram.wb """
cityFile = open("Lecture5_NumpyMatplotScipy/ornek.txt") cityArr = cityFile.read().split("\n") cityDict = {} for line in cityArr: info = line.split(",") cityName = info[0] day = int(info[1]) rainfall = float(info[2]) if cityName in cityDict.keys(): days = cityDict[cityName] days[day] = rainfall else: cityDict[cityName] = {day: rainfall} for name in cityDict.keys(): min = 99999 max = -9999 sum = 0 for value in cityDict[name].values(): if value > max: max = value if value < min: min = value sum += value avg = sum / len(cityDict[name].values()) print(f'{name}:\nmin: {min}\nmax: {max}\n average: {avg}')
city_file = open('Lecture5_NumpyMatplotScipy/ornek.txt') city_arr = cityFile.read().split('\n') city_dict = {} for line in cityArr: info = line.split(',') city_name = info[0] day = int(info[1]) rainfall = float(info[2]) if cityName in cityDict.keys(): days = cityDict[cityName] days[day] = rainfall else: cityDict[cityName] = {day: rainfall} for name in cityDict.keys(): min = 99999 max = -9999 sum = 0 for value in cityDict[name].values(): if value > max: max = value if value < min: min = value sum += value avg = sum / len(cityDict[name].values()) print(f'{name}:\nmin: {min}\nmax: {max}\n average: {avg}')
def print_keyword_args(**kwargs): print('\n') for key, value in kwargs.items(): print(f'{key} = {value}') third = kwargs.get('third', None) if third != None: print('third arg =', third) print_keyword_args(first='a') print_keyword_args(first='b', second='c') print_keyword_args(first='d', second='e', third='f')
def print_keyword_args(**kwargs): print('\n') for (key, value) in kwargs.items(): print(f'{key} = {value}') third = kwargs.get('third', None) if third != None: print('third arg =', third) print_keyword_args(first='a') print_keyword_args(first='b', second='c') print_keyword_args(first='d', second='e', third='f')
class ShylockAsyncBackend: @staticmethod def _check(): raise NotImplementedError() async def acquire(self, name: str, block: bool = True): raise NotImplementedError() async def release(self, name: str): raise NotImplementedError() class ShylockSyncBackend: @staticmethod def _check(): raise NotImplementedError() def acquire(self, name: str, block: bool = True): raise NotImplementedError() def release(self, name: str): raise NotImplementedError()
class Shylockasyncbackend: @staticmethod def _check(): raise not_implemented_error() async def acquire(self, name: str, block: bool=True): raise not_implemented_error() async def release(self, name: str): raise not_implemented_error() class Shylocksyncbackend: @staticmethod def _check(): raise not_implemented_error() def acquire(self, name: str, block: bool=True): raise not_implemented_error() def release(self, name: str): raise not_implemented_error()
class Solution: # O(n) time | O(1) space def minStartValue(self, nums: List[int]) -> int: minSum, currentSum = nums[0], 0 for num in nums: currentSum += num minSum = min(minSum, currentSum) if minSum < 0: return abs(minSum) + 1 else: return 1
class Solution: def min_start_value(self, nums: List[int]) -> int: (min_sum, current_sum) = (nums[0], 0) for num in nums: current_sum += num min_sum = min(minSum, currentSum) if minSum < 0: return abs(minSum) + 1 else: return 1
class TrieNode(object): def __init__(self): self.children = {} self.is_word = False class Trie(object): def __init__(self): self.root = TrieNode() def insert(self, word): curr = self.root for letter in word: if word in curr.children: curr = curr.children[letter] else: new_node = TrieNode() curr.children[letter] = new_node curr = new_node curr.is_word = True def search(self, word): curr = self.root for letter in word: if letter not in curr.children: return False curr = curr.children[letter] return curr.is_word def startsWith(self, prefix): curr = self.root for letter in word: if letter not in curr.children: return False curr = curr.children[letter] return True
class Trienode(object): def __init__(self): self.children = {} self.is_word = False class Trie(object): def __init__(self): self.root = trie_node() def insert(self, word): curr = self.root for letter in word: if word in curr.children: curr = curr.children[letter] else: new_node = trie_node() curr.children[letter] = new_node curr = new_node curr.is_word = True def search(self, word): curr = self.root for letter in word: if letter not in curr.children: return False curr = curr.children[letter] return curr.is_word def starts_with(self, prefix): curr = self.root for letter in word: if letter not in curr.children: return False curr = curr.children[letter] return True
foo = [25, 68, 'bar', 89.45, 789, 'spam', 0, 'last item'] print(foo[:3]) # difference? print(foo[0:3]) print(foo[2:]) print(foo[1:-1])
foo = [25, 68, 'bar', 89.45, 789, 'spam', 0, 'last item'] print(foo[:3]) print(foo[0:3]) print(foo[2:]) print(foo[1:-1])
# -*- coding: utf-8 -*- config_page_name = { 'zh': { 'wikipedia': '', } }
config_page_name = {'zh': {'wikipedia': ''}}
class Result: def __init__(self, id = None, success = None, message = None, url = None, data = None) -> None: self.id = id self.success = success self.message = message self.url = url self.data = data def to_json(self): json_data = None if (self.data and hasattr(self.data, '__dict__')): json_data = vars(self.data) else: json_data = self.data return { "id": self.id, "success": self.success, "message": self.message, "url": self.url, "data": json_data }
class Result: def __init__(self, id=None, success=None, message=None, url=None, data=None) -> None: self.id = id self.success = success self.message = message self.url = url self.data = data def to_json(self): json_data = None if self.data and hasattr(self.data, '__dict__'): json_data = vars(self.data) else: json_data = self.data return {'id': self.id, 'success': self.success, 'message': self.message, 'url': self.url, 'data': json_data}
def solution(arr): size = 0 value = 0 for i in range(len(arr)): if size == 0: value = arr[i] size += 1 else: if value != arr[i] and size != 0: size -= 1 else: size += 1 leader = value if arr.count(leader) <= len(arr) // 2: return -1 return arr.index(leader) arr1 = [4, 5, 6, 7, 5, 8, 3, 5, 5, 5, 5] print(solution(arr=arr1)) arr2 = [3, 4, 3, 2, 3, -1, 3, 3] print(solution(arr=arr2)) arr3 = [3, 4, 1, 2, 3, -1, 3, 9] print(solution(arr=arr3)) arr4 = [3, ] print(solution(arr=arr4)) arr5 = [] print(solution(arr=arr5))
def solution(arr): size = 0 value = 0 for i in range(len(arr)): if size == 0: value = arr[i] size += 1 elif value != arr[i] and size != 0: size -= 1 else: size += 1 leader = value if arr.count(leader) <= len(arr) // 2: return -1 return arr.index(leader) arr1 = [4, 5, 6, 7, 5, 8, 3, 5, 5, 5, 5] print(solution(arr=arr1)) arr2 = [3, 4, 3, 2, 3, -1, 3, 3] print(solution(arr=arr2)) arr3 = [3, 4, 1, 2, 3, -1, 3, 9] print(solution(arr=arr3)) arr4 = [3] print(solution(arr=arr4)) arr5 = [] print(solution(arr=arr5))
""" The module provides utility methods for hash code calculation. """ HASH_SEED = 23 def calc_hashcode(seed_value: int, value: int) -> int: """ Calculates hash code of the value using seed value. :param seed_value: Seed value (current hash code). :param value: Value for which to calculate hash code. :returns: Calculated hash code. """ return (HASH_PRIME_NUMBER * seed_value + value) & 0xFFFFFFFF HASH_PRIME_NUMBER = 37
""" The module provides utility methods for hash code calculation. """ hash_seed = 23 def calc_hashcode(seed_value: int, value: int) -> int: """ Calculates hash code of the value using seed value. :param seed_value: Seed value (current hash code). :param value: Value for which to calculate hash code. :returns: Calculated hash code. """ return HASH_PRIME_NUMBER * seed_value + value & 4294967295 hash_prime_number = 37
class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ if not matrix or not matrix[0]: return [] len_mat_row = len(matrix) len_mat_col = len(matrix[0]) j, k, m, n = 0, 0, 0, 0 res = [] total_range = len_mat_row*len_mat_col for i in range(total_range): if j==m and k<(len_mat_col-1-n): res.append(matrix[j][k]) k+=1 elif j<(len_mat_row-1-m) and k==(len_mat_col-1-n): res.append(matrix[j][k]) j += 1 elif j==(len_mat_row-1-m) and k>n: res.append(matrix[j][k]) k -= 1 elif j>(m+1) and k==n: res.append(matrix[j][k]) j -= 1 if j==(m+1): m+=1; n+=1 else: res.append(matrix[j][k]) return res class Sol2(object): def spiralOrder(self, matrix): return matrix and list(matrix.pop(0)) + self.spiralOrder(zip(*matrix)[::-1]) mat = [[1,2,3],[4,5,6],[7,8,9]] print(Solution().spiralOrder(mat)) print(Sol2().spiralOrder(mat))
class Solution(object): def spiral_order(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ if not matrix or not matrix[0]: return [] len_mat_row = len(matrix) len_mat_col = len(matrix[0]) (j, k, m, n) = (0, 0, 0, 0) res = [] total_range = len_mat_row * len_mat_col for i in range(total_range): if j == m and k < len_mat_col - 1 - n: res.append(matrix[j][k]) k += 1 elif j < len_mat_row - 1 - m and k == len_mat_col - 1 - n: res.append(matrix[j][k]) j += 1 elif j == len_mat_row - 1 - m and k > n: res.append(matrix[j][k]) k -= 1 elif j > m + 1 and k == n: res.append(matrix[j][k]) j -= 1 if j == m + 1: m += 1 n += 1 else: res.append(matrix[j][k]) return res class Sol2(object): def spiral_order(self, matrix): return matrix and list(matrix.pop(0)) + self.spiralOrder(zip(*matrix)[::-1]) mat = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(solution().spiralOrder(mat)) print(sol2().spiralOrder(mat))
def memory(x): x = [i for i in range(x)] return -1 def time(x): # recursive function to find xth fibonacci number if x < 3: return 1 return time(x-1) + time(x-2) def error(x=None): # error function return "a" / 2 def return_check(*args, **kwagrs): # args and kwargs function return list(args) + list(kwagrs.values())
def memory(x): x = [i for i in range(x)] return -1 def time(x): if x < 3: return 1 return time(x - 1) + time(x - 2) def error(x=None): return 'a' / 2 def return_check(*args, **kwagrs): return list(args) + list(kwagrs.values())
class User: user_budget = "" travel_budget, food_budget, stay_budget = 500, 100, 400 travel_preference = False stay_preference = False food_preference = False origin_city = "" start_date = "" return_date = "" def __init__(self, origin_city, start_date, return_date, user_budget): self.origin_city = origin_city self.start_date = start_date self.return_date = return_date self.user_budget = user_budget #self.travel_preference=travel_preference #self.categorize_budget(user_budget,travel_preference, stay_preference, food_preferenc) def categorize_budget(self, user_budget, travel_preference, stay_preference, food_preference): if travel_preference and stay_preference and food_preference: self.travel_budget = user_budget/3 self.food_budget = user_budget/3 self. stay_budget = user_budget/3 if travel_preference and stay_preference and (not food_preference): self.travel_budget = user_budget*.40 self.stay_budget = user_budget*.40 self.food_budget = user_budget*.20 if travel_preference and (not stay_preference) and food_preference: self.travel_budget = user_budget*.40 self.food_budget = user_budget*.20 self.stay_budget = user_budget*.40 if travel_preference and (not stay_preference) and not food_preference: self.travel_budget = user_budget*.40 self.stay_budget = user_budget*.30 self.food_budget = user_budget*.30 if (not travel_preference) and stay_preference and food_preference: self.travel_budget = user_budget*.20 self.food_budget = user_budget*.40 self.stay_budget = user_budget*.40 if (not travel_preference) and stay_preference and (not food_preference): self.travel_budget = user_budget*.30 self.stay_budget = user_budget*.60 self.food_budget = user_budget*.30 if travel_preference and not stay_preference and food_preference: self.travel_budget = user_budget*.40 self.food_budget = user_budget*.20 self.stay_budget = user_budget*.40 if (not travel_preference) and (not stay_preference) and (not food_preference): self.travel_budget = user_budget/3 self.stay_budget = user_budget/3 self.food_budget = user_budget/3 return self.user_budget
class User: user_budget = '' (travel_budget, food_budget, stay_budget) = (500, 100, 400) travel_preference = False stay_preference = False food_preference = False origin_city = '' start_date = '' return_date = '' def __init__(self, origin_city, start_date, return_date, user_budget): self.origin_city = origin_city self.start_date = start_date self.return_date = return_date self.user_budget = user_budget def categorize_budget(self, user_budget, travel_preference, stay_preference, food_preference): if travel_preference and stay_preference and food_preference: self.travel_budget = user_budget / 3 self.food_budget = user_budget / 3 self.stay_budget = user_budget / 3 if travel_preference and stay_preference and (not food_preference): self.travel_budget = user_budget * 0.4 self.stay_budget = user_budget * 0.4 self.food_budget = user_budget * 0.2 if travel_preference and (not stay_preference) and food_preference: self.travel_budget = user_budget * 0.4 self.food_budget = user_budget * 0.2 self.stay_budget = user_budget * 0.4 if travel_preference and (not stay_preference) and (not food_preference): self.travel_budget = user_budget * 0.4 self.stay_budget = user_budget * 0.3 self.food_budget = user_budget * 0.3 if not travel_preference and stay_preference and food_preference: self.travel_budget = user_budget * 0.2 self.food_budget = user_budget * 0.4 self.stay_budget = user_budget * 0.4 if not travel_preference and stay_preference and (not food_preference): self.travel_budget = user_budget * 0.3 self.stay_budget = user_budget * 0.6 self.food_budget = user_budget * 0.3 if travel_preference and (not stay_preference) and food_preference: self.travel_budget = user_budget * 0.4 self.food_budget = user_budget * 0.2 self.stay_budget = user_budget * 0.4 if not travel_preference and (not stay_preference) and (not food_preference): self.travel_budget = user_budget / 3 self.stay_budget = user_budget / 3 self.food_budget = user_budget / 3 return self.user_budget
# # PySNMP MIB module HUAWEI-LswQos-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-LswQos-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:34:31 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") lswCommon, = mibBuilder.importSymbols("HUAWEI-3COM-OID-MIB", "lswCommon") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, TimeTicks, Gauge32, ModuleIdentity, Bits, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Unsigned32, Counter32, IpAddress, NotificationType, MibIdentifier, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "Gauge32", "ModuleIdentity", "Bits", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Unsigned32", "Counter32", "IpAddress", "NotificationType", "MibIdentifier", "ObjectIdentity") DisplayString, TextualConvention, RowStatus, MacAddress, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "RowStatus", "MacAddress", "TruthValue") hwLswQosAclMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16)) hwLswQosAclMib.setRevisions(('2002-11-19 00:00',)) if mibBuilder.loadTexts: hwLswQosAclMib.setLastUpdated('200211190000Z') if mibBuilder.loadTexts: hwLswQosAclMib.setOrganization('HUAWEI LANSWITCH') class HwMirrorOrMonitorType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("port", 1), ("board", 2)) hwLswQosMibObject = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2)) hwPriorityTrustMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("default", 0), ("dscp", 1), ("ipprecedence", 2), ("cos", 3), ("localprecedence", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPriorityTrustMode.setStatus('current') hwPortMonitorBothIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortMonitorBothIfIndex.setStatus('current') hwQueueTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3), ) if mibBuilder.loadTexts: hwQueueTable.setStatus('current') hwQueueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwQueueIfIndex")) if mibBuilder.loadTexts: hwQueueEntry.setStatus('current') hwQueueIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwQueueIfIndex.setStatus('current') hwQueueScheduleMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("sp", 1), ("wrr", 2), ("wrr-max-delay", 3), ("sc-0", 4), ("sc-1", 5), ("sc-2", 6), ("rr", 7), ("wfq", 8), ("hq-wrr", 9))).clone('sp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueScheduleMode.setStatus('current') hwQueueWeight1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight1.setStatus('current') hwQueueWeight2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight2.setStatus('current') hwQueueWeight3 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight3.setStatus('current') hwQueueWeight4 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight4.setStatus('current') hwQueueMaxDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueMaxDelay.setStatus('current') hwQueueWeight5 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight5.setStatus('current') hwQueueWeight6 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight6.setStatus('current') hwQueueWeight7 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight7.setStatus('current') hwQueueWeight8 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwQueueWeight8.setStatus('current') hwRateLimitTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4), ) if mibBuilder.loadTexts: hwRateLimitTable.setStatus('current') hwRateLimitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwRateLimitAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwRateLimitIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwRateLimitVlanID"), (0, "HUAWEI-LswQos-MIB", "hwRateLimitDirection")) if mibBuilder.loadTexts: hwRateLimitEntry.setStatus('current') hwRateLimitAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitAclIndex.setStatus('current') hwRateLimitIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitIfIndex.setStatus('current') hwRateLimitVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitVlanID.setStatus('current') hwRateLimitDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitDirection.setStatus('current') hwRateLimitUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitUserAclNum.setStatus('current') hwRateLimitUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitUserAclRule.setStatus('current') hwRateLimitIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitIpAclNum.setStatus('current') hwRateLimitIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitIpAclRule.setStatus('current') hwRateLimitLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitLinkAclNum.setStatus('current') hwRateLimitLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitLinkAclRule.setStatus('current') hwRateLimitTargetRateMbps = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 11), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitTargetRateMbps.setStatus('current') hwRateLimitTargetRateKbps = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 12), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitTargetRateKbps.setStatus('current') hwRateLimitPeakRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(64, 8388608), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitPeakRate.setStatus('current') hwRateLimitCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 34120000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitCIR.setStatus('current') hwRateLimitCBS = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1048575))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitCBS.setStatus('current') hwRateLimitEBS = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 268435455))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitEBS.setStatus('current') hwRateLimitPIR = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 34120000))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitPIR.setStatus('current') hwRateLimitConformLocalPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 18), Integer32().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitConformLocalPre.setStatus('current') hwRateLimitConformActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("invalid", 0), ("remark-cos", 1), ("remark-drop-priority", 2), ("remark-cos-drop-priority", 3), ("remark-policed-service", 4), ("remark-dscp", 5))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitConformActionType.setStatus('current') hwRateLimitExceedActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("invalid", 0), ("forward", 1), ("drop", 2), ("remarkdscp", 3), ("exceed-cos", 4))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitExceedActionType.setStatus('current') hwRateLimitExceedDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitExceedDscp.setStatus('current') hwRateLimitRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 22), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwRateLimitRuntime.setStatus('current') hwRateLimitRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 23), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitRowStatus.setStatus('current') hwRateLimitExceedCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 24), Integer32().clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitExceedCos.setStatus('current') hwRateLimitConformCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitConformCos.setStatus('current') hwRateLimitConformDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitConformDscp.setStatus('current') hwRateLimitMeterStatByteCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwRateLimitMeterStatByteCount.setStatus('current') hwRateLimitMeterStatByteXCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwRateLimitMeterStatByteXCount.setStatus('current') hwRateLimitMeterStatState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("set", 1), ("unDo", 2), ("reset", 3), ("running", 4), ("notRunning", 5)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRateLimitMeterStatState.setStatus('current') hwPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5), ) if mibBuilder.loadTexts: hwPriorityTable.setStatus('current') hwPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwPriorityAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwPriorityIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwPriorityVlanID"), (0, "HUAWEI-LswQos-MIB", "hwPriorityDirection")) if mibBuilder.loadTexts: hwPriorityEntry.setStatus('current') hwPriorityAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityAclIndex.setStatus('current') hwPriorityIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityIfIndex.setStatus('current') hwPriorityVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityVlanID.setStatus('current') hwPriorityDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityDirection.setStatus('current') hwPriorityUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityUserAclNum.setStatus('current') hwPriorityUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityUserAclRule.setStatus('current') hwPriorityIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityIpAclNum.setStatus('current') hwPriorityIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityIpAclRule.setStatus('current') hwPriorityLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityLinkAclNum.setStatus('current') hwPriorityLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityLinkAclRule.setStatus('current') hwPriorityDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityDscp.setStatus('current') hwPriorityIpPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityIpPre.setStatus('current') hwPriorityIpPreFromCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 13), TruthValue().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityIpPreFromCos.setStatus('current') hwPriorityCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityCos.setStatus('current') hwPriorityCosFromIpPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 15), TruthValue().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityCosFromIpPre.setStatus('current') hwPriorityLocalPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityLocalPre.setStatus('current') hwPriorityPolicedServiceType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("invalid", 0), ("auto", 1), ("trust-dscp", 2), ("new-dscp", 3), ("untrusted", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceType.setStatus('current') hwPriorityPolicedServiceDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceDscp.setStatus('current') hwPriorityPolicedServiceExp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceExp.setStatus('current') hwPriorityPolicedServiceCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceCos.setStatus('current') hwPriorityPolicedServiceLoaclPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceLoaclPre.setStatus('current') hwPriorityPolicedServiceDropPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 2), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityPolicedServiceDropPriority.setStatus('current') hwPriorityRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 23), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPriorityRuntime.setStatus('current') hwPriorityRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 24), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPriorityRowStatus.setStatus('current') hwRedirectTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6), ) if mibBuilder.loadTexts: hwRedirectTable.setStatus('current') hwRedirectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwRedirectAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwRedirectIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwRedirectVlanID"), (0, "HUAWEI-LswQos-MIB", "hwRedirectDirection")) if mibBuilder.loadTexts: hwRedirectEntry.setStatus('current') hwRedirectAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectAclIndex.setStatus('current') hwRedirectIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectIfIndex.setStatus('current') hwRedirectVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectVlanID.setStatus('current') hwRedirectDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectDirection.setStatus('current') hwRedirectUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectUserAclNum.setStatus('current') hwRedirectUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectUserAclRule.setStatus('current') hwRedirectIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectIpAclNum.setStatus('current') hwRedirectIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectIpAclRule.setStatus('current') hwRedirectLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectLinkAclNum.setStatus('current') hwRedirectLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectLinkAclRule.setStatus('current') hwRedirectToCpu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 11), TruthValue().clone(2)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToCpu.setStatus('current') hwRedirectToIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 12), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToIfIndex.setStatus('current') hwRedirectToNextHop1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 13), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToNextHop1.setStatus('current') hwRedirectToNextHop2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 14), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToNextHop2.setStatus('current') hwRedirectRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 15), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwRedirectRuntime.setStatus('current') hwRedirectRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 16), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectRowStatus.setStatus('current') hwRedirectToSlotNo = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToSlotNo.setStatus('current') hwRedirectRemarkedDSCP = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectRemarkedDSCP.setStatus('current') hwRedirectRemarkedPri = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectRemarkedPri.setStatus('current') hwRedirectRemarkedTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 15), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectRemarkedTos.setStatus('current') hwRedirectToNextHop3 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 21), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToNextHop3.setStatus('current') hwRedirectTargetVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectTargetVlanID.setStatus('current') hwRedirectMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("strict-priority", 1), ("load-balance", 2))).clone('strict-priority')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectMode.setStatus('current') hwRedirectToNestedVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 24), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToNestedVlanID.setStatus('current') hwRedirectToModifiedVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 25), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedirectToModifiedVlanID.setStatus('current') hwStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7), ) if mibBuilder.loadTexts: hwStatisticTable.setStatus('current') hwStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwStatisticAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwStatisticIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwStatisticVlanID"), (0, "HUAWEI-LswQos-MIB", "hwStatisticDirection")) if mibBuilder.loadTexts: hwStatisticEntry.setStatus('current') hwStatisticAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticAclIndex.setStatus('current') hwStatisticIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticIfIndex.setStatus('current') hwStatisticVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticVlanID.setStatus('current') hwStatisticDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticDirection.setStatus('current') hwStatisticUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticUserAclNum.setStatus('current') hwStatisticUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticUserAclRule.setStatus('current') hwStatisticIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticIpAclNum.setStatus('current') hwStatisticIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticIpAclRule.setStatus('current') hwStatisticLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticLinkAclNum.setStatus('current') hwStatisticLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticLinkAclRule.setStatus('current') hwStatisticRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 11), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwStatisticRuntime.setStatus('current') hwStatisticPacketCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwStatisticPacketCount.setStatus('current') hwStatisticByteCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwStatisticByteCount.setStatus('current') hwStatisticCountClear = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cleared", 1), ("nouse", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwStatisticCountClear.setStatus('current') hwStatisticRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 15), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwStatisticRowStatus.setStatus('current') hwStatisticPacketXCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwStatisticPacketXCount.setStatus('current') hwStatisticByteXCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwStatisticByteXCount.setStatus('current') hwMirrorTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8), ) if mibBuilder.loadTexts: hwMirrorTable.setStatus('current') hwMirrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirrorAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwMirrorIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwMirrorVlanID"), (0, "HUAWEI-LswQos-MIB", "hwMirrorDirection")) if mibBuilder.loadTexts: hwMirrorEntry.setStatus('current') hwMirrorAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorAclIndex.setStatus('current') hwMirrorIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorIfIndex.setStatus('current') hwMirrorVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorVlanID.setStatus('current') hwMirrorDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorDirection.setStatus('current') hwMirrorUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorUserAclNum.setStatus('current') hwMirrorUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorUserAclRule.setStatus('current') hwMirrorIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorIpAclNum.setStatus('current') hwMirrorIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorIpAclRule.setStatus('current') hwMirrorLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorLinkAclNum.setStatus('current') hwMirrorLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorLinkAclRule.setStatus('current') hwMirrorToIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 11), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorToIfIndex.setStatus('current') hwMirrorToCpu = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 12), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorToCpu.setStatus('current') hwMirrorRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 13), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMirrorRuntime.setStatus('current') hwMirrorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 14), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorRowStatus.setStatus('current') hwMirrorToGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 15), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorToGroup.setStatus('current') hwPortMirrorTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9), ) if mibBuilder.loadTexts: hwPortMirrorTable.setStatus('current') hwPortMirrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwPortMirrorIfIndex")) if mibBuilder.loadTexts: hwPortMirrorEntry.setStatus('current') hwPortMirrorIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPortMirrorIfIndex.setStatus('current') hwPortMirrorDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("in", 1), ("out", 2), ("both", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPortMirrorDirection.setStatus('current') hwPortMirrorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwPortMirrorRowStatus.setStatus('current') hwLineRateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10), ) if mibBuilder.loadTexts: hwLineRateTable.setStatus('current') hwLineRateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwLineRateIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwLineRateDirection")) if mibBuilder.loadTexts: hwLineRateEntry.setStatus('current') hwLineRateIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwLineRateIfIndex.setStatus('current') hwLineRateDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("in", 1), ("out", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwLineRateDirection.setStatus('current') hwLineRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwLineRateValue.setStatus('current') hwLineRateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwLineRateRowStatus.setStatus('current') hwBandwidthTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11), ) if mibBuilder.loadTexts: hwBandwidthTable.setStatus('current') hwBandwidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwBandwidthAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwBandwidthIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwBandwidthVlanID"), (0, "HUAWEI-LswQos-MIB", "hwBandwidthDirection")) if mibBuilder.loadTexts: hwBandwidthEntry.setStatus('current') hwBandwidthAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthAclIndex.setStatus('current') hwBandwidthIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthIfIndex.setStatus('current') hwBandwidthVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthVlanID.setStatus('current') hwBandwidthDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 2))).clone(namedValues=NamedValues(("invalid", 0), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthDirection.setStatus('current') hwBandwidthIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthIpAclNum.setStatus('current') hwBandwidthIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthIpAclRule.setStatus('current') hwBandwidthLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthLinkAclNum.setStatus('current') hwBandwidthLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwBandwidthLinkAclRule.setStatus('current') hwBandwidthMinGuaranteedWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8388608))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwBandwidthMinGuaranteedWidth.setStatus('current') hwBandwidthMaxGuaranteedWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8388608))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwBandwidthMaxGuaranteedWidth.setStatus('current') hwBandwidthWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwBandwidthWeight.setStatus('current') hwBandwidthRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwBandwidthRuntime.setStatus('current') hwBandwidthRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwBandwidthRowStatus.setStatus('current') hwRedTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12), ) if mibBuilder.loadTexts: hwRedTable.setStatus('current') hwRedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwRedAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwRedIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwRedVlanID"), (0, "HUAWEI-LswQos-MIB", "hwRedDirection")) if mibBuilder.loadTexts: hwRedEntry.setStatus('current') hwRedAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedAclIndex.setStatus('current') hwRedIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 2), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedIfIndex.setStatus('current') hwRedVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedVlanID.setStatus('current') hwRedDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 2))).clone(namedValues=NamedValues(("invalid", 0), ("output", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedDirection.setStatus('current') hwRedIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedIpAclNum.setStatus('current') hwRedIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedIpAclRule.setStatus('current') hwRedLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedLinkAclNum.setStatus('current') hwRedLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRedLinkAclRule.setStatus('current') hwRedStartQueueLen = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 262128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwRedStartQueueLen.setStatus('current') hwRedStopQueueLen = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 262128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwRedStopQueueLen.setStatus('current') hwRedProbability = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwRedProbability.setStatus('current') hwRedRuntime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 12), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwRedRuntime.setStatus('current') hwRedRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwRedRowStatus.setStatus('current') hwMirrorGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13), ) if mibBuilder.loadTexts: hwMirrorGroupTable.setStatus('current') hwMirrorGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirrorGroupID")) if mibBuilder.loadTexts: hwMirrorGroupEntry.setStatus('current') hwMirrorGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMirrorGroupID.setStatus('current') hwMirrorGroupDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("input", 1), ("output", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwMirrorGroupDirection.setStatus('current') hwMirrorGroupMirrorIfIndexList = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 257))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwMirrorGroupMirrorIfIndexList.setStatus('current') hwMirrorGroupMonitorIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwMirrorGroupMonitorIfIndex.setStatus('current') hwMirrorGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 5), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwMirrorGroupRowStatus.setStatus('current') hwFlowtempTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14), ) if mibBuilder.loadTexts: hwFlowtempTable.setStatus('current') hwFlowtempEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwFlowtempIndex")) if mibBuilder.loadTexts: hwFlowtempEntry.setStatus('current') hwFlowtempIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("default", 1), ("user-defined", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwFlowtempIndex.setStatus('current') hwFlowtempIpProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 2), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempIpProtocol.setStatus('current') hwFlowtempTcpFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 3), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempTcpFlag.setStatus('current') hwFlowtempSPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 4), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempSPort.setStatus('current') hwFlowtempDPort = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 5), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDPort.setStatus('current') hwFlowtempIcmpType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 6), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempIcmpType.setStatus('current') hwFlowtempIcmpCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 7), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempIcmpCode.setStatus('current') hwFlowtempFragment = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 8), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempFragment.setStatus('current') hwFlowtempDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 9), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDscp.setStatus('current') hwFlowtempIpPre = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 10), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempIpPre.setStatus('current') hwFlowtempTos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 11), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempTos.setStatus('current') hwFlowtempSIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 12), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempSIp.setStatus('current') hwFlowtempSIpMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 13), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempSIpMask.setStatus('current') hwFlowtempDIp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 14), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDIp.setStatus('current') hwFlowtempDIpMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 15), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDIpMask.setStatus('current') hwFlowtempEthProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 16), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempEthProtocol.setStatus('current') hwFlowtempSMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 17), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempSMac.setStatus('current') hwFlowtempSMacMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 18), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempSMacMask.setStatus('current') hwFlowtempDMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 19), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDMac.setStatus('current') hwFlowtempDMacMask = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 20), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempDMacMask.setStatus('current') hwFlowtempVpn = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 21), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempVpn.setStatus('current') hwFlowtempRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 22), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempRowStatus.setStatus('current') hwFlowtempVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 23), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempVlanId.setStatus('current') hwFlowtempCos = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 24), TruthValue()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempCos.setStatus('current') hwFlowtempEnableTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15), ) if mibBuilder.loadTexts: hwFlowtempEnableTable.setStatus('current') hwFlowtempEnableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwFlowtempEnableIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwFlowtempEnableVlanID")) if mibBuilder.loadTexts: hwFlowtempEnableEntry.setStatus('current') hwFlowtempEnableIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempEnableIfIndex.setStatus('current') hwFlowtempEnableVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwFlowtempEnableVlanID.setStatus('current') hwFlowtempEnableFlowtempIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("default", 1), ("user-defined", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwFlowtempEnableFlowtempIndex.setStatus('current') hwTrafficShapeTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16), ) if mibBuilder.loadTexts: hwTrafficShapeTable.setStatus('current') hwTrafficShapeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwTrafficShapeIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwTrafficShapeQueueId")) if mibBuilder.loadTexts: hwTrafficShapeEntry.setStatus('current') hwTrafficShapeIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeIfIndex.setStatus('current') hwTrafficShapeQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeQueueId.setStatus('current') hwTrafficShapeMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeMaxRate.setStatus('current') hwTrafficShapeBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeBurstSize.setStatus('current') hwTrafficShapeBufferLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(16, 8000), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeBufferLimit.setStatus('current') hwTrafficShapeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwTrafficShapeRowStatus.setStatus('current') hwPortQueueTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17), ) if mibBuilder.loadTexts: hwPortQueueTable.setStatus('current') hwPortQueueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwPortQueueIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwPortQueueQueueID")) if mibBuilder.loadTexts: hwPortQueueEntry.setStatus('current') hwPortQueueIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPortQueueIfIndex.setStatus('current') hwPortQueueQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPortQueueQueueID.setStatus('current') hwPortQueueWrrPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("sp", 1), ("wrr-high-priority", 2), ("wrr-low-priority", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortQueueWrrPriority.setStatus('current') hwPortQueueWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1, 255), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortQueueWeight.setStatus('current') hwDropModeTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18), ) if mibBuilder.loadTexts: hwDropModeTable.setStatus('current') hwDropModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDropModeIfIndex")) if mibBuilder.loadTexts: hwDropModeEntry.setStatus('current') hwDropModeIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwDropModeIfIndex.setStatus('current') hwDropModeMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("random-detect", 1), ("tail-drop", 2))).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDropModeMode.setStatus('current') hwDropModeWredIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDropModeWredIndex.setStatus('current') hwWredTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19), ) if mibBuilder.loadTexts: hwWredTable.setStatus('current') hwWredEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwWredIndex"), (0, "HUAWEI-LswQos-MIB", "hwWredQueueId")) if mibBuilder.loadTexts: hwWredEntry.setStatus('current') hwWredIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWredIndex.setStatus('current') hwWredQueueId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwWredQueueId.setStatus('current') hwWredGreenMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredGreenMinThreshold.setStatus('current') hwWredGreenMaxThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredGreenMaxThreshold.setStatus('current') hwWredGreenMaxProb = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredGreenMaxProb.setStatus('current') hwWredYellowMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredYellowMinThreshold.setStatus('current') hwWredYellowMaxThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredYellowMaxThreshold.setStatus('current') hwWredYellowMaxProb = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredYellowMaxProb.setStatus('current') hwWredRedMinThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredRedMinThreshold.setStatus('current') hwWredRedMaxThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredRedMaxThreshold.setStatus('current') hwWredRedMaxProb = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredRedMaxProb.setStatus('current') hwWredExponent = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(9)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwWredExponent.setStatus('current') hwCosToLocalPrecedenceMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20), ) if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapTable.setStatus('current') hwCosToLocalPrecedenceMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwCosToLocalPrecedenceMapCosIndex")) if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapEntry.setStatus('current') hwCosToLocalPrecedenceMapCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapCosIndex.setStatus('current') hwCosToLocalPrecedenceMapLocalPrecedenceValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapLocalPrecedenceValue.setStatus('current') hwCosToDropPrecedenceMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21), ) if mibBuilder.loadTexts: hwCosToDropPrecedenceMapTable.setStatus('current') hwCosToDropPrecedenceMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwCosToDropPrecedenceMapCosIndex")) if mibBuilder.loadTexts: hwCosToDropPrecedenceMapEntry.setStatus('current') hwCosToDropPrecedenceMapCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwCosToDropPrecedenceMapCosIndex.setStatus('current') hwCosToDropPrecedenceMapDropPrecedenceValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwCosToDropPrecedenceMapDropPrecedenceValue.setStatus('current') hwDscpMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22), ) if mibBuilder.loadTexts: hwDscpMapTable.setStatus('current') hwDscpMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDscpMapConformLevel"), (0, "HUAWEI-LswQos-MIB", "hwDscpMapDscpIndex")) if mibBuilder.loadTexts: hwDscpMapEntry.setStatus('current') hwDscpMapConformLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwDscpMapConformLevel.setStatus('current') hwDscpMapDscpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwDscpMapDscpIndex.setStatus('current') hwDscpMapDscpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpMapDscpValue.setStatus('current') hwDscpMapExpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpMapExpValue.setStatus('current') hwDscpMapCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpMapCosValue.setStatus('current') hwDscpMapLocalPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpMapLocalPrecedence.setStatus('current') hwDscpMapDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpMapDropPrecedence.setStatus('current') hwExpMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23), ) if mibBuilder.loadTexts: hwExpMapTable.setStatus('current') hwExpMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwExpMapConformLevel"), (0, "HUAWEI-LswQos-MIB", "hwExpMapExpIndex")) if mibBuilder.loadTexts: hwExpMapEntry.setStatus('current') hwExpMapConformLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwExpMapConformLevel.setStatus('current') hwExpMapExpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwExpMapExpIndex.setStatus('current') hwExpMapDscpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwExpMapDscpValue.setStatus('current') hwExpMapExpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwExpMapExpValue.setStatus('current') hwExpMapCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwExpMapCosValue.setStatus('current') hwExpMapLocalPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwExpMapLocalPrecedence.setStatus('current') hwExpMapDropPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwExpMapDropPrecedence.setStatus('current') hwLocalPrecedenceMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24), ) if mibBuilder.loadTexts: hwLocalPrecedenceMapTable.setStatus('current') hwLocalPrecedenceMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwLocalPrecedenceMapConformLevel"), (0, "HUAWEI-LswQos-MIB", "hwLocalPrecedenceMapLocalPrecedenceIndex")) if mibBuilder.loadTexts: hwLocalPrecedenceMapEntry.setStatus('current') hwLocalPrecedenceMapConformLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwLocalPrecedenceMapConformLevel.setStatus('current') hwLocalPrecedenceMapLocalPrecedenceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwLocalPrecedenceMapLocalPrecedenceIndex.setStatus('current') hwLocalPrecedenceMapCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwLocalPrecedenceMapCosValue.setStatus('current') hwPortWredTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25), ) if mibBuilder.loadTexts: hwPortWredTable.setStatus('current') hwPortWredEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwPortWredIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwPortWredQueueID")) if mibBuilder.loadTexts: hwPortWredEntry.setStatus('current') hwPortWredIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPortWredIfIndex.setStatus('current') hwPortWredQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwPortWredQueueID.setStatus('current') hwPortWredQueueStartLength = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2047))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortWredQueueStartLength.setStatus('current') hwPortWredQueueProbability = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortWredQueueProbability.setStatus('current') hwMirroringGroupTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26), ) if mibBuilder.loadTexts: hwMirroringGroupTable.setStatus('current') hwMirroringGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID")) if mibBuilder.loadTexts: hwMirroringGroupEntry.setStatus('current') hwMirroringGroupID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))) if mibBuilder.loadTexts: hwMirroringGroupID.setStatus('current') hwMirroringGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("local", 1), ("remote-source", 2), ("remote-destination", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupType.setStatus('current') hwMirroringGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwMirroringGroupStatus.setStatus('current') hwMirroringGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupRowStatus.setStatus('current') hwMirroringGroupMirrorTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27), ) if mibBuilder.loadTexts: hwMirroringGroupMirrorTable.setStatus('current') hwMirroringGroupMirrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID")) if mibBuilder.loadTexts: hwMirroringGroupMirrorEntry.setStatus('current') hwMirroringGroupMirrorInboundIfIndexList = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 1), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorInboundIfIndexList.setStatus('current') hwMirroringGroupMirrorOutboundIfIndexList = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 2), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorOutboundIfIndexList.setStatus('current') hwMirroringGroupMirrorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorRowStatus.setStatus('current') hwMirroringGroupMirrorInTypeList = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 4), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorInTypeList.setStatus('current') hwMirroringGroupMirrorOutTypeList = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 5), OctetString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorOutTypeList.setStatus('current') hwMirroringGroupMonitorTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28), ) if mibBuilder.loadTexts: hwMirroringGroupMonitorTable.setStatus('current') hwMirroringGroupMonitorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID")) if mibBuilder.loadTexts: hwMirroringGroupMonitorEntry.setStatus('current') hwMirroringGroupMonitorIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMonitorIfIndex.setStatus('current') hwMirroringGroupMonitorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMonitorRowStatus.setStatus('current') hwMirroringGroupMonitorType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 3), HwMirrorOrMonitorType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMonitorType.setStatus('current') hwMirroringGroupReflectorTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29), ) if mibBuilder.loadTexts: hwMirroringGroupReflectorTable.setStatus('current') hwMirroringGroupReflectorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID")) if mibBuilder.loadTexts: hwMirroringGroupReflectorEntry.setStatus('current') hwMirroringGroupReflectorIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1, 1), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupReflectorIfIndex.setStatus('current') hwMirroringGroupReflectorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupReflectorRowStatus.setStatus('current') hwMirroringGroupRprobeVlanTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30), ) if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanTable.setStatus('current') hwMirroringGroupRprobeVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID")) if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanEntry.setStatus('current') hwMirroringGroupRprobeVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanID.setStatus('current') hwMirroringGroupRprobeVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanRowStatus.setStatus('current') hwMirroringGroupMirrorMacTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31), ) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacTable.setStatus('current') hwMirroringGroupMirrorMacEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID"), (0, "HUAWEI-LswQos-MIB", "hwMirroringGroupMirrorMacSeq")) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacEntry.setStatus('current') hwMirroringGroupMirrorMacSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 1), Integer32()) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacSeq.setStatus('current') hwMirroringGroupMirrorMac = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 2), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorMac.setStatus('current') hwMirrorMacVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirrorMacVlanID.setStatus('current') hwMirroringGroupMirroMacStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirroMacStatus.setStatus('current') hwMirroringGroupMirrorVlanTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32), ) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanTable.setStatus('current') hwMirroringGroupMirrorVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwMirroringGroupID"), (0, "HUAWEI-LswQos-MIB", "hwMirroringGroupMirrorVlanSeq")) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanEntry.setStatus('current') hwMirroringGroupMirrorVlanSeq = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 1), Integer32()) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanSeq.setStatus('current') hwMirroringGroupMirrorVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanID.setStatus('current') hwMirroringGroupMirrorVlanDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("inbound", 1), ("outbound", 2), ("both", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanDirection.setStatus('current') hwMirroringGroupMirroVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwMirroringGroupMirroVlanStatus.setStatus('current') hwPortTrustTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33), ) if mibBuilder.loadTexts: hwPortTrustTable.setStatus('current') hwPortTrustEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwPortTrustIfIndex")) if mibBuilder.loadTexts: hwPortTrustEntry.setStatus('current') hwPortTrustIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 1), Integer32()) if mibBuilder.loadTexts: hwPortTrustIfIndex.setStatus('current') hwPortTrustTrustType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("port", 1), ("cos", 2), ("dscp", 3))).clone('port')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortTrustTrustType.setStatus('current') hwPortTrustOvercastType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOvercast", 1), ("overcastDSCP", 2), ("overcastCOS", 3))).clone('noOvercast')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortTrustOvercastType.setStatus('current') hwPortTrustReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwPortTrustReset.setStatus('current') hwRemarkVlanIDTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34), ) if mibBuilder.loadTexts: hwRemarkVlanIDTable.setStatus('current') hwRemarkVlanIDEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwRemarkVlanIDAclIndex"), (0, "HUAWEI-LswQos-MIB", "hwRemarkVlanIDIfIndex"), (0, "HUAWEI-LswQos-MIB", "hwRemarkVlanIDVlanID"), (0, "HUAWEI-LswQos-MIB", "hwRemarkVlanIDDirection")) if mibBuilder.loadTexts: hwRemarkVlanIDEntry.setStatus('current') hwRemarkVlanIDAclIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2999))) if mibBuilder.loadTexts: hwRemarkVlanIDAclIndex.setStatus('current') hwRemarkVlanIDIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 2), Integer32()) if mibBuilder.loadTexts: hwRemarkVlanIDIfIndex.setStatus('current') hwRemarkVlanIDVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))) if mibBuilder.loadTexts: hwRemarkVlanIDVlanID.setStatus('current') hwRemarkVlanIDDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("invalid", 0), ("input", 1), ("output", 2)))) if mibBuilder.loadTexts: hwRemarkVlanIDDirection.setStatus('current') hwRemarkVlanIDUserAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 5999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDUserAclNum.setStatus('current') hwRemarkVlanIDUserAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDUserAclRule.setStatus('current') hwRemarkVlanIDIpAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDIpAclNum.setStatus('current') hwRemarkVlanIDIpAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDIpAclRule.setStatus('current') hwRemarkVlanIDLinkAclNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 4999), ValueRangeConstraint(10000, 12999), ))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDLinkAclNum.setStatus('current') hwRemarkVlanIDLinkAclRule = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDLinkAclRule.setStatus('current') hwRemarkVlanIDRemarkVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDRemarkVlanID.setStatus('current') hwRemarkVlanIDPacketType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("all", 1), ("tagged", 2), ("untagged", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDPacketType.setStatus('current') hwRemarkVlanIDRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 13), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hwRemarkVlanIDRowStatus.setStatus('current') hwCosToDscpMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35), ) if mibBuilder.loadTexts: hwCosToDscpMapTable.setStatus('current') hwCosToDscpMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwCosToDscpMapCosIndex")) if mibBuilder.loadTexts: hwCosToDscpMapEntry.setStatus('current') hwCosToDscpMapCosIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: hwCosToDscpMapCosIndex.setStatus('current') hwCosToDscpMapDscpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwCosToDscpMapDscpValue.setStatus('current') hwCosToDscpMapReSet = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwCosToDscpMapReSet.setStatus('current') hwDscpToLocalPreMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36), ) if mibBuilder.loadTexts: hwDscpToLocalPreMapTable.setStatus('current') hwDscpToLocalPreMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDscpToLocalPreMapDscpIndex")) if mibBuilder.loadTexts: hwDscpToLocalPreMapEntry.setStatus('current') hwDscpToLocalPreMapDscpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: hwDscpToLocalPreMapDscpIndex.setStatus('current') hwDscpToLocalPreMapLocalPreVal = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToLocalPreMapLocalPreVal.setStatus('current') hwDscpToLocalPreMapReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToLocalPreMapReset.setStatus('current') hwDscpToDropPreMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37), ) if mibBuilder.loadTexts: hwDscpToDropPreMapTable.setStatus('current') hwDscpToDropPreMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDscpToDropPreMapDscpIndex")) if mibBuilder.loadTexts: hwDscpToDropPreMapEntry.setStatus('current') hwDscpToDropPreMapDscpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: hwDscpToDropPreMapDscpIndex.setStatus('current') hwDscpToDropPreMapDropPreVal = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToDropPreMapDropPreVal.setStatus('current') hwDscpToDropPreMapReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToDropPreMapReset.setStatus('current') hwDscpToCosMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38), ) if mibBuilder.loadTexts: hwDscpToCosMapTable.setStatus('current') hwDscpToCosMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDscpToCosMapDscpIndex")) if mibBuilder.loadTexts: hwDscpToCosMapEntry.setStatus('current') hwDscpToCosMapDscpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: hwDscpToCosMapDscpIndex.setStatus('current') hwDscpToCosMapCosValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToCosMapCosValue.setStatus('current') hwDscpToCosMapReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToCosMapReset.setStatus('current') hwDscpToDscpMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39), ) if mibBuilder.loadTexts: hwDscpToDscpMapTable.setStatus('current') hwDscpToDscpMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1), ).setIndexNames((0, "HUAWEI-LswQos-MIB", "hwDscpToDscpMapDscpIndex")) if mibBuilder.loadTexts: hwDscpToDscpMapEntry.setStatus('current') hwDscpToDscpMapDscpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))) if mibBuilder.loadTexts: hwDscpToDscpMapDscpIndex.setStatus('current') hwDscpToDscpMapDscpValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToDscpMapDscpValue.setStatus('current') hwDscpToDscpMapReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwDscpToDscpMapReset.setStatus('current') mibBuilder.exportSymbols("HUAWEI-LswQos-MIB", hwWredExponent=hwWredExponent, hwPortTrustReset=hwPortTrustReset, hwRedVlanID=hwRedVlanID, hwRedirectRuntime=hwRedirectRuntime, hwLineRateTable=hwLineRateTable, hwPriorityTable=hwPriorityTable, hwRateLimitIfIndex=hwRateLimitIfIndex, hwBandwidthDirection=hwBandwidthDirection, hwRateLimitMeterStatByteCount=hwRateLimitMeterStatByteCount, hwFlowtempEnableFlowtempIndex=hwFlowtempEnableFlowtempIndex, hwFlowtempDMac=hwFlowtempDMac, hwRedirectTable=hwRedirectTable, hwMirroringGroupMirrorMacSeq=hwMirroringGroupMirrorMacSeq, hwLineRateRowStatus=hwLineRateRowStatus, hwWredGreenMaxThreshold=hwWredGreenMaxThreshold, hwDscpToDropPreMapDropPreVal=hwDscpToDropPreMapDropPreVal, hwMirroringGroupReflectorEntry=hwMirroringGroupReflectorEntry, hwRedirectIfIndex=hwRedirectIfIndex, hwPriorityPolicedServiceType=hwPriorityPolicedServiceType, hwRedirectToCpu=hwRedirectToCpu, hwWredRedMinThreshold=hwWredRedMinThreshold, hwStatisticVlanID=hwStatisticVlanID, hwRedirectRemarkedDSCP=hwRedirectRemarkedDSCP, hwQueueTable=hwQueueTable, hwRemarkVlanIDUserAclNum=hwRemarkVlanIDUserAclNum, hwRedirectLinkAclNum=hwRedirectLinkAclNum, hwDscpToLocalPreMapEntry=hwDscpToLocalPreMapEntry, hwRateLimitPIR=hwRateLimitPIR, hwPortWredQueueID=hwPortWredQueueID, hwWredQueueId=hwWredQueueId, hwRedIfIndex=hwRedIfIndex, hwRedirectRowStatus=hwRedirectRowStatus, hwQueueWeight4=hwQueueWeight4, hwFlowtempDPort=hwFlowtempDPort, hwPriorityPolicedServiceDropPriority=hwPriorityPolicedServiceDropPriority, hwPriorityRuntime=hwPriorityRuntime, hwRedirectEntry=hwRedirectEntry, hwPortMirrorTable=hwPortMirrorTable, hwStatisticUserAclRule=hwStatisticUserAclRule, hwRedStartQueueLen=hwRedStartQueueLen, hwDscpToDropPreMapTable=hwDscpToDropPreMapTable, hwWredYellowMaxThreshold=hwWredYellowMaxThreshold, hwBandwidthVlanID=hwBandwidthVlanID, hwMirrorEntry=hwMirrorEntry, hwRedirectVlanID=hwRedirectVlanID, hwRedLinkAclRule=hwRedLinkAclRule, hwMirroringGroupRprobeVlanID=hwMirroringGroupRprobeVlanID, hwMirroringGroupMirrorVlanDirection=hwMirroringGroupMirrorVlanDirection, hwStatisticPacketXCount=hwStatisticPacketXCount, hwMirrorGroupMonitorIfIndex=hwMirrorGroupMonitorIfIndex, hwMirroringGroupMirrorEntry=hwMirroringGroupMirrorEntry, hwPriorityIpAclRule=hwPriorityIpAclRule, hwLineRateEntry=hwLineRateEntry, hwMirrorIfIndex=hwMirrorIfIndex, hwCosToDropPrecedenceMapDropPrecedenceValue=hwCosToDropPrecedenceMapDropPrecedenceValue, hwWredRedMaxThreshold=hwWredRedMaxThreshold, hwStatisticPacketCount=hwStatisticPacketCount, hwMirrorToGroup=hwMirrorToGroup, hwPortMirrorDirection=hwPortMirrorDirection, hwStatisticAclIndex=hwStatisticAclIndex, hwFlowtempDscp=hwFlowtempDscp, hwFlowtempEnableIfIndex=hwFlowtempEnableIfIndex, hwDscpMapDropPrecedence=hwDscpMapDropPrecedence, hwRemarkVlanIDIfIndex=hwRemarkVlanIDIfIndex, hwPortTrustIfIndex=hwPortTrustIfIndex, hwCosToDscpMapDscpValue=hwCosToDscpMapDscpValue, hwMirroringGroupRowStatus=hwMirroringGroupRowStatus, hwMirrorMacVlanID=hwMirrorMacVlanID, hwRemarkVlanIDRowStatus=hwRemarkVlanIDRowStatus, hwMirroringGroupMirrorVlanID=hwMirroringGroupMirrorVlanID, hwMirroringGroupMonitorEntry=hwMirroringGroupMonitorEntry, hwFlowtempTos=hwFlowtempTos, hwFlowtempVpn=hwFlowtempVpn, hwRedirectToNextHop3=hwRedirectToNextHop3, hwCosToLocalPrecedenceMapCosIndex=hwCosToLocalPrecedenceMapCosIndex, hwTrafficShapeTable=hwTrafficShapeTable, hwCosToDscpMapEntry=hwCosToDscpMapEntry, hwQueueScheduleMode=hwQueueScheduleMode, hwCosToLocalPrecedenceMapLocalPrecedenceValue=hwCosToLocalPrecedenceMapLocalPrecedenceValue, hwMirrorGroupTable=hwMirrorGroupTable, hwRateLimitUserAclNum=hwRateLimitUserAclNum, hwRateLimitRuntime=hwRateLimitRuntime, hwDscpMapConformLevel=hwDscpMapConformLevel, hwDscpToLocalPreMapDscpIndex=hwDscpToLocalPreMapDscpIndex, hwBandwidthLinkAclNum=hwBandwidthLinkAclNum, hwFlowtempTable=hwFlowtempTable, hwCosToDropPrecedenceMapCosIndex=hwCosToDropPrecedenceMapCosIndex, hwLswQosMibObject=hwLswQosMibObject, hwCosToLocalPrecedenceMapTable=hwCosToLocalPrecedenceMapTable, hwMirroringGroupMirroMacStatus=hwMirroringGroupMirroMacStatus, hwPriorityIpPreFromCos=hwPriorityIpPreFromCos, hwPriorityTrustMode=hwPriorityTrustMode, hwMirroringGroupMirrorRowStatus=hwMirroringGroupMirrorRowStatus, hwRateLimitUserAclRule=hwRateLimitUserAclRule, hwFlowtempSIpMask=hwFlowtempSIpMask, hwMirroringGroupMonitorRowStatus=hwMirroringGroupMonitorRowStatus, hwLineRateIfIndex=hwLineRateIfIndex, hwQueueEntry=hwQueueEntry, hwRedirectMode=hwRedirectMode, hwLocalPrecedenceMapTable=hwLocalPrecedenceMapTable, hwDscpToDscpMapDscpValue=hwDscpToDscpMapDscpValue, hwBandwidthAclIndex=hwBandwidthAclIndex, hwQueueWeight2=hwQueueWeight2, hwMirroringGroupReflectorTable=hwMirroringGroupReflectorTable, hwFlowtempFragment=hwFlowtempFragment, hwDscpToCosMapDscpIndex=hwDscpToCosMapDscpIndex, hwWredEntry=hwWredEntry, hwMirrorVlanID=hwMirrorVlanID, hwCosToLocalPrecedenceMapEntry=hwCosToLocalPrecedenceMapEntry, hwQueueWeight5=hwQueueWeight5, hwMirroringGroupRprobeVlanEntry=hwMirroringGroupRprobeVlanEntry, hwPortQueueIfIndex=hwPortQueueIfIndex, hwRateLimitIpAclNum=hwRateLimitIpAclNum, hwBandwidthLinkAclRule=hwBandwidthLinkAclRule, hwDscpMapEntry=hwDscpMapEntry, hwFlowtempSMac=hwFlowtempSMac, hwFlowtempDIp=hwFlowtempDIp, hwRedirectToIfIndex=hwRedirectToIfIndex, hwDscpToCosMapCosValue=hwDscpToCosMapCosValue, hwMirroringGroupMirrorVlanSeq=hwMirroringGroupMirrorVlanSeq, hwRedirectAclIndex=hwRedirectAclIndex, hwPortQueueQueueID=hwPortQueueQueueID, hwPriorityDirection=hwPriorityDirection, hwRedirectLinkAclRule=hwRedirectLinkAclRule, hwLocalPrecedenceMapLocalPrecedenceIndex=hwLocalPrecedenceMapLocalPrecedenceIndex, hwRemarkVlanIDEntry=hwRemarkVlanIDEntry, hwCosToDscpMapTable=hwCosToDscpMapTable, hwPriorityCosFromIpPre=hwPriorityCosFromIpPre, hwRateLimitConformDscp=hwRateLimitConformDscp, hwPriorityPolicedServiceExp=hwPriorityPolicedServiceExp, hwRedirectRemarkedPri=hwRedirectRemarkedPri, hwStatisticRuntime=hwStatisticRuntime, hwRedirectToModifiedVlanID=hwRedirectToModifiedVlanID, hwRateLimitDirection=hwRateLimitDirection, hwPriorityPolicedServiceDscp=hwPriorityPolicedServiceDscp, hwFlowtempEnableTable=hwFlowtempEnableTable, hwRateLimitTable=hwRateLimitTable, hwDscpMapDscpIndex=hwDscpMapDscpIndex, hwMirroringGroupMonitorIfIndex=hwMirroringGroupMonitorIfIndex, hwLineRateDirection=hwLineRateDirection, hwMirroringGroupMirrorMacEntry=hwMirroringGroupMirrorMacEntry, hwRedDirection=hwRedDirection, hwLswQosAclMib=hwLswQosAclMib, hwExpMapLocalPrecedence=hwExpMapLocalPrecedence, hwPriorityDscp=hwPriorityDscp, hwRedIpAclRule=hwRedIpAclRule, hwPortQueueWrrPriority=hwPortQueueWrrPriority, hwDscpToLocalPreMapLocalPreVal=hwDscpToLocalPreMapLocalPreVal, hwPriorityRowStatus=hwPriorityRowStatus, hwRateLimitConformActionType=hwRateLimitConformActionType, hwRemarkVlanIDAclIndex=hwRemarkVlanIDAclIndex, hwRemarkVlanIDVlanID=hwRemarkVlanIDVlanID, hwWredIndex=hwWredIndex, hwPriorityPolicedServiceCos=hwPriorityPolicedServiceCos, hwRateLimitIpAclRule=hwRateLimitIpAclRule, hwRemarkVlanIDUserAclRule=hwRemarkVlanIDUserAclRule, hwFlowtempDIpMask=hwFlowtempDIpMask, hwRemarkVlanIDIpAclNum=hwRemarkVlanIDIpAclNum, hwMirrorGroupMirrorIfIndexList=hwMirrorGroupMirrorIfIndexList, hwMirroringGroupStatus=hwMirroringGroupStatus, hwCosToDropPrecedenceMapEntry=hwCosToDropPrecedenceMapEntry, hwMirroringGroupEntry=hwMirroringGroupEntry, hwTrafficShapeIfIndex=hwTrafficShapeIfIndex, hwMirroringGroupMirrorMacTable=hwMirroringGroupMirrorMacTable, hwRateLimitEntry=hwRateLimitEntry, hwRedirectToNextHop2=hwRedirectToNextHop2, hwMirroringGroupMirrorMac=hwMirroringGroupMirrorMac, hwTrafficShapeEntry=hwTrafficShapeEntry, hwFlowtempIpPre=hwFlowtempIpPre, hwPriorityUserAclNum=hwPriorityUserAclNum, hwRateLimitTargetRateKbps=hwRateLimitTargetRateKbps, hwDscpMapCosValue=hwDscpMapCosValue, hwBandwidthWeight=hwBandwidthWeight, hwRateLimitVlanID=hwRateLimitVlanID, hwPortMirrorIfIndex=hwPortMirrorIfIndex, hwFlowtempTcpFlag=hwFlowtempTcpFlag, hwWredYellowMinThreshold=hwWredYellowMinThreshold, hwWredYellowMaxProb=hwWredYellowMaxProb, hwFlowtempIndex=hwFlowtempIndex, hwRateLimitLinkAclRule=hwRateLimitLinkAclRule, hwMirrorToIfIndex=hwMirrorToIfIndex, hwFlowtempSMacMask=hwFlowtempSMacMask, hwMirrorGroupEntry=hwMirrorGroupEntry, hwMirrorLinkAclRule=hwMirrorLinkAclRule, hwStatisticTable=hwStatisticTable, hwMirroringGroupMirrorOutTypeList=hwMirroringGroupMirrorOutTypeList, hwFlowtempEnableVlanID=hwFlowtempEnableVlanID, hwPriorityPolicedServiceLoaclPre=hwPriorityPolicedServiceLoaclPre, hwRedRowStatus=hwRedRowStatus, hwRateLimitRowStatus=hwRateLimitRowStatus, hwMirroringGroupID=hwMirroringGroupID, hwQueueIfIndex=hwQueueIfIndex, hwPortMirrorEntry=hwPortMirrorEntry, hwMirroringGroupMirroVlanStatus=hwMirroringGroupMirroVlanStatus, hwRateLimitAclIndex=hwRateLimitAclIndex, hwRedAclIndex=hwRedAclIndex, hwRemarkVlanIDDirection=hwRemarkVlanIDDirection, hwTrafficShapeQueueId=hwTrafficShapeQueueId, hwFlowtempCos=hwFlowtempCos, hwDscpMapLocalPrecedence=hwDscpMapLocalPrecedence, hwQueueWeight1=hwQueueWeight1, hwRateLimitLinkAclNum=hwRateLimitLinkAclNum, hwRedirectUserAclRule=hwRedirectUserAclRule, PYSNMP_MODULE_ID=hwLswQosAclMib, hwRedEntry=hwRedEntry, hwPriorityLinkAclNum=hwPriorityLinkAclNum, hwDscpToDscpMapTable=hwDscpToDscpMapTable, hwRemarkVlanIDRemarkVlanID=hwRemarkVlanIDRemarkVlanID, hwExpMapTable=hwExpMapTable, hwPortTrustEntry=hwPortTrustEntry, hwMirrorUserAclRule=hwMirrorUserAclRule, hwMirrorTable=hwMirrorTable, hwRedIpAclNum=hwRedIpAclNum, hwDscpMapTable=hwDscpMapTable, hwMirrorUserAclNum=hwMirrorUserAclNum, hwBandwidthMinGuaranteedWidth=hwBandwidthMinGuaranteedWidth, hwFlowtempEntry=hwFlowtempEntry, hwPriorityEntry=hwPriorityEntry, hwDscpToDropPreMapReset=hwDscpToDropPreMapReset, hwDropModeEntry=hwDropModeEntry, hwRemarkVlanIDLinkAclNum=hwRemarkVlanIDLinkAclNum, hwBandwidthTable=hwBandwidthTable, hwTrafficShapeBurstSize=hwTrafficShapeBurstSize, hwRemarkVlanIDPacketType=hwRemarkVlanIDPacketType, hwPriorityIfIndex=hwPriorityIfIndex, hwRedProbability=hwRedProbability, hwStatisticByteCount=hwStatisticByteCount, hwCosToDscpMapReSet=hwCosToDscpMapReSet, hwBandwidthRowStatus=hwBandwidthRowStatus, hwPriorityUserAclRule=hwPriorityUserAclRule, hwRedStopQueueLen=hwRedStopQueueLen, hwPortTrustOvercastType=hwPortTrustOvercastType, hwRemarkVlanIDLinkAclRule=hwRemarkVlanIDLinkAclRule, hwRateLimitEBS=hwRateLimitEBS, hwRedirectToNestedVlanID=hwRedirectToNestedVlanID, hwRateLimitExceedCos=hwRateLimitExceedCos, hwMirroringGroupType=hwMirroringGroupType, hwPortQueueTable=hwPortQueueTable, hwFlowtempIpProtocol=hwFlowtempIpProtocol, hwRedRuntime=hwRedRuntime, hwMirrorRowStatus=hwMirrorRowStatus, hwBandwidthEntry=hwBandwidthEntry, hwDscpMapExpValue=hwDscpMapExpValue, hwDropModeMode=hwDropModeMode, hwRateLimitTargetRateMbps=hwRateLimitTargetRateMbps, hwMirrorToCpu=hwMirrorToCpu, hwRateLimitCBS=hwRateLimitCBS, hwRedirectIpAclNum=hwRedirectIpAclNum, hwDscpToCosMapEntry=hwDscpToCosMapEntry, hwTrafficShapeRowStatus=hwTrafficShapeRowStatus, hwMirrorIpAclRule=hwMirrorIpAclRule, hwCosToDscpMapCosIndex=hwCosToDscpMapCosIndex, hwMirroringGroupMirrorInTypeList=hwMirroringGroupMirrorInTypeList, hwDropModeIfIndex=hwDropModeIfIndex) mibBuilder.exportSymbols("HUAWEI-LswQos-MIB", hwStatisticEntry=hwStatisticEntry, hwBandwidthRuntime=hwBandwidthRuntime, hwExpMapCosValue=hwExpMapCosValue, hwExpMapEntry=hwExpMapEntry, hwRateLimitCIR=hwRateLimitCIR, hwRateLimitConformLocalPre=hwRateLimitConformLocalPre, hwMirrorAclIndex=hwMirrorAclIndex, hwQueueMaxDelay=hwQueueMaxDelay, hwWredGreenMaxProb=hwWredGreenMaxProb, hwDscpToLocalPreMapTable=hwDscpToLocalPreMapTable, hwFlowtempRowStatus=hwFlowtempRowStatus, hwPortMonitorBothIfIndex=hwPortMonitorBothIfIndex, hwPriorityVlanID=hwPriorityVlanID, hwDropModeWredIndex=hwDropModeWredIndex, hwBandwidthIpAclNum=hwBandwidthIpAclNum, hwFlowtempIcmpType=hwFlowtempIcmpType, hwMirroringGroupMirrorOutboundIfIndexList=hwMirroringGroupMirrorOutboundIfIndexList, hwFlowtempEnableEntry=hwFlowtempEnableEntry, hwDscpToCosMapReset=hwDscpToCosMapReset, hwPortMirrorRowStatus=hwPortMirrorRowStatus, hwDscpToDropPreMapDscpIndex=hwDscpToDropPreMapDscpIndex, hwPortWredQueueStartLength=hwPortWredQueueStartLength, hwRateLimitExceedActionType=hwRateLimitExceedActionType, hwMirroringGroupMonitorType=hwMirroringGroupMonitorType, hwPriorityLinkAclRule=hwPriorityLinkAclRule, hwStatisticCountClear=hwStatisticCountClear, hwFlowtempDMacMask=hwFlowtempDMacMask, hwRateLimitMeterStatByteXCount=hwRateLimitMeterStatByteXCount, hwExpMapDscpValue=hwExpMapDscpValue, hwPortWredTable=hwPortWredTable, hwDscpMapDscpValue=hwDscpMapDscpValue, hwPriorityCos=hwPriorityCos, hwQueueWeight6=hwQueueWeight6, hwRedirectToNextHop1=hwRedirectToNextHop1, hwStatisticUserAclNum=hwStatisticUserAclNum, hwMirrorGroupDirection=hwMirrorGroupDirection, hwExpMapDropPrecedence=hwExpMapDropPrecedence, hwFlowtempVlanId=hwFlowtempVlanId, hwRedirectDirection=hwRedirectDirection, hwDropModeTable=hwDropModeTable, hwDscpToDscpMapReset=hwDscpToDscpMapReset, hwPriorityAclIndex=hwPriorityAclIndex, hwPortTrustTable=hwPortTrustTable, hwFlowtempSIp=hwFlowtempSIp, hwCosToDropPrecedenceMapTable=hwCosToDropPrecedenceMapTable, hwRedirectUserAclNum=hwRedirectUserAclNum, hwStatisticLinkAclNum=hwStatisticLinkAclNum, hwRateLimitExceedDscp=hwRateLimitExceedDscp, hwPriorityIpPre=hwPriorityIpPre, hwPortWredEntry=hwPortWredEntry, hwQueueWeight8=hwQueueWeight8, hwMirroringGroupReflectorIfIndex=hwMirroringGroupReflectorIfIndex, hwFlowtempSPort=hwFlowtempSPort, hwMirroringGroupRprobeVlanRowStatus=hwMirroringGroupRprobeVlanRowStatus, hwMirroringGroupReflectorRowStatus=hwMirroringGroupReflectorRowStatus, hwPortWredQueueProbability=hwPortWredQueueProbability, hwPortQueueWeight=hwPortQueueWeight, hwWredRedMaxProb=hwWredRedMaxProb, hwFlowtempEthProtocol=hwFlowtempEthProtocol, hwMirroringGroupMirrorInboundIfIndexList=hwMirroringGroupMirrorInboundIfIndexList, hwPriorityLocalPre=hwPriorityLocalPre, hwPortTrustTrustType=hwPortTrustTrustType, hwFlowtempIcmpCode=hwFlowtempIcmpCode, hwRateLimitMeterStatState=hwRateLimitMeterStatState, hwPortWredIfIndex=hwPortWredIfIndex, hwStatisticLinkAclRule=hwStatisticLinkAclRule, hwRedTable=hwRedTable, hwRateLimitPeakRate=hwRateLimitPeakRate, hwStatisticByteXCount=hwStatisticByteXCount, hwDscpToDropPreMapEntry=hwDscpToDropPreMapEntry, hwDscpToCosMapTable=hwDscpToCosMapTable, hwTrafficShapeMaxRate=hwTrafficShapeMaxRate, hwMirroringGroupTable=hwMirroringGroupTable, hwMirroringGroupRprobeVlanTable=hwMirroringGroupRprobeVlanTable, hwMirroringGroupMirrorVlanEntry=hwMirroringGroupMirrorVlanEntry, hwMirrorGroupID=hwMirrorGroupID, hwExpMapExpValue=hwExpMapExpValue, hwLocalPrecedenceMapEntry=hwLocalPrecedenceMapEntry, hwWredTable=hwWredTable, hwDscpToLocalPreMapReset=hwDscpToLocalPreMapReset, hwLocalPrecedenceMapConformLevel=hwLocalPrecedenceMapConformLevel, hwMirroringGroupMirrorVlanTable=hwMirroringGroupMirrorVlanTable, hwBandwidthMaxGuaranteedWidth=hwBandwidthMaxGuaranteedWidth, hwMirroringGroupMirrorTable=hwMirroringGroupMirrorTable, hwRemarkVlanIDIpAclRule=hwRemarkVlanIDIpAclRule, hwStatisticIfIndex=hwStatisticIfIndex, hwRedirectIpAclRule=hwRedirectIpAclRule, hwBandwidthIpAclRule=hwBandwidthIpAclRule, hwMirrorIpAclNum=hwMirrorIpAclNum, hwMirrorGroupRowStatus=hwMirrorGroupRowStatus, HwMirrorOrMonitorType=HwMirrorOrMonitorType, hwExpMapExpIndex=hwExpMapExpIndex, hwTrafficShapeBufferLimit=hwTrafficShapeBufferLimit, hwMirroringGroupMonitorTable=hwMirroringGroupMonitorTable, hwMirrorDirection=hwMirrorDirection, hwQueueWeight3=hwQueueWeight3, hwRedLinkAclNum=hwRedLinkAclNum, hwMirrorRuntime=hwMirrorRuntime, hwQueueWeight7=hwQueueWeight7, hwWredGreenMinThreshold=hwWredGreenMinThreshold, hwPriorityIpAclNum=hwPriorityIpAclNum, hwStatisticIpAclRule=hwStatisticIpAclRule, hwLineRateValue=hwLineRateValue, hwDscpToDscpMapEntry=hwDscpToDscpMapEntry, hwRedirectToSlotNo=hwRedirectToSlotNo, hwStatisticRowStatus=hwStatisticRowStatus, hwExpMapConformLevel=hwExpMapConformLevel, hwRemarkVlanIDTable=hwRemarkVlanIDTable, hwStatisticIpAclNum=hwStatisticIpAclNum, hwRedirectTargetVlanID=hwRedirectTargetVlanID, hwRedirectRemarkedTos=hwRedirectRemarkedTos, hwPortQueueEntry=hwPortQueueEntry, hwBandwidthIfIndex=hwBandwidthIfIndex, hwStatisticDirection=hwStatisticDirection, hwRateLimitConformCos=hwRateLimitConformCos, hwDscpToDscpMapDscpIndex=hwDscpToDscpMapDscpIndex, hwMirrorLinkAclNum=hwMirrorLinkAclNum, hwLocalPrecedenceMapCosValue=hwLocalPrecedenceMapCosValue)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint') (lsw_common,) = mibBuilder.importSymbols('HUAWEI-3COM-OID-MIB', 'lswCommon') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (integer32, time_ticks, gauge32, module_identity, bits, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, unsigned32, counter32, ip_address, notification_type, mib_identifier, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'Gauge32', 'ModuleIdentity', 'Bits', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Unsigned32', 'Counter32', 'IpAddress', 'NotificationType', 'MibIdentifier', 'ObjectIdentity') (display_string, textual_convention, row_status, mac_address, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'RowStatus', 'MacAddress', 'TruthValue') hw_lsw_qos_acl_mib = module_identity((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16)) hwLswQosAclMib.setRevisions(('2002-11-19 00:00',)) if mibBuilder.loadTexts: hwLswQosAclMib.setLastUpdated('200211190000Z') if mibBuilder.loadTexts: hwLswQosAclMib.setOrganization('HUAWEI LANSWITCH') class Hwmirrorormonitortype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('port', 1), ('board', 2)) hw_lsw_qos_mib_object = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2)) hw_priority_trust_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('default', 0), ('dscp', 1), ('ipprecedence', 2), ('cos', 3), ('localprecedence', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPriorityTrustMode.setStatus('current') hw_port_monitor_both_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortMonitorBothIfIndex.setStatus('current') hw_queue_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3)) if mibBuilder.loadTexts: hwQueueTable.setStatus('current') hw_queue_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwQueueIfIndex')) if mibBuilder.loadTexts: hwQueueEntry.setStatus('current') hw_queue_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwQueueIfIndex.setStatus('current') hw_queue_schedule_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('sp', 1), ('wrr', 2), ('wrr-max-delay', 3), ('sc-0', 4), ('sc-1', 5), ('sc-2', 6), ('rr', 7), ('wfq', 8), ('hq-wrr', 9))).clone('sp')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueScheduleMode.setStatus('current') hw_queue_weight1 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight1.setStatus('current') hw_queue_weight2 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight2.setStatus('current') hw_queue_weight3 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight3.setStatus('current') hw_queue_weight4 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight4.setStatus('current') hw_queue_max_delay = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueMaxDelay.setStatus('current') hw_queue_weight5 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight5.setStatus('current') hw_queue_weight6 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight6.setStatus('current') hw_queue_weight7 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight7.setStatus('current') hw_queue_weight8 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 3, 1, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwQueueWeight8.setStatus('current') hw_rate_limit_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4)) if mibBuilder.loadTexts: hwRateLimitTable.setStatus('current') hw_rate_limit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwRateLimitAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRateLimitIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRateLimitVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwRateLimitDirection')) if mibBuilder.loadTexts: hwRateLimitEntry.setStatus('current') hw_rate_limit_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitAclIndex.setStatus('current') hw_rate_limit_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitIfIndex.setStatus('current') hw_rate_limit_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitVlanID.setStatus('current') hw_rate_limit_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitDirection.setStatus('current') hw_rate_limit_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitUserAclNum.setStatus('current') hw_rate_limit_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitUserAclRule.setStatus('current') hw_rate_limit_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitIpAclNum.setStatus('current') hw_rate_limit_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitIpAclRule.setStatus('current') hw_rate_limit_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitLinkAclNum.setStatus('current') hw_rate_limit_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitLinkAclRule.setStatus('current') hw_rate_limit_target_rate_mbps = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 11), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitTargetRateMbps.setStatus('current') hw_rate_limit_target_rate_kbps = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 12), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitTargetRateKbps.setStatus('current') hw_rate_limit_peak_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(64, 8388608)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitPeakRate.setStatus('current') hw_rate_limit_cir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 34120000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitCIR.setStatus('current') hw_rate_limit_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 1048575))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitCBS.setStatus('current') hw_rate_limit_ebs = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 268435455))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitEBS.setStatus('current') hw_rate_limit_pir = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(0, 34120000))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitPIR.setStatus('current') hw_rate_limit_conform_local_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 18), integer32().clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitConformLocalPre.setStatus('current') hw_rate_limit_conform_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('invalid', 0), ('remark-cos', 1), ('remark-drop-priority', 2), ('remark-cos-drop-priority', 3), ('remark-policed-service', 4), ('remark-dscp', 5))).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitConformActionType.setStatus('current') hw_rate_limit_exceed_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('invalid', 0), ('forward', 1), ('drop', 2), ('remarkdscp', 3), ('exceed-cos', 4))).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitExceedActionType.setStatus('current') hw_rate_limit_exceed_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 21), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitExceedDscp.setStatus('current') hw_rate_limit_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 22), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwRateLimitRuntime.setStatus('current') hw_rate_limit_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 23), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitRowStatus.setStatus('current') hw_rate_limit_exceed_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 24), integer32().clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitExceedCos.setStatus('current') hw_rate_limit_conform_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 25), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitConformCos.setStatus('current') hw_rate_limit_conform_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 26), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitConformDscp.setStatus('current') hw_rate_limit_meter_stat_byte_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwRateLimitMeterStatByteCount.setStatus('current') hw_rate_limit_meter_stat_byte_x_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwRateLimitMeterStatByteXCount.setStatus('current') hw_rate_limit_meter_stat_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 4, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('set', 1), ('unDo', 2), ('reset', 3), ('running', 4), ('notRunning', 5)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRateLimitMeterStatState.setStatus('current') hw_priority_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5)) if mibBuilder.loadTexts: hwPriorityTable.setStatus('current') hw_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwPriorityAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwPriorityIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwPriorityVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwPriorityDirection')) if mibBuilder.loadTexts: hwPriorityEntry.setStatus('current') hw_priority_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityAclIndex.setStatus('current') hw_priority_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityIfIndex.setStatus('current') hw_priority_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityVlanID.setStatus('current') hw_priority_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityDirection.setStatus('current') hw_priority_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityUserAclNum.setStatus('current') hw_priority_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityUserAclRule.setStatus('current') hw_priority_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityIpAclNum.setStatus('current') hw_priority_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityIpAclRule.setStatus('current') hw_priority_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityLinkAclNum.setStatus('current') hw_priority_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityLinkAclRule.setStatus('current') hw_priority_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 11), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityDscp.setStatus('current') hw_priority_ip_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 12), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityIpPre.setStatus('current') hw_priority_ip_pre_from_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 13), truth_value().clone(2)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityIpPreFromCos.setStatus('current') hw_priority_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 14), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityCos.setStatus('current') hw_priority_cos_from_ip_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 15), truth_value().clone(2)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityCosFromIpPre.setStatus('current') hw_priority_local_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 16), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityLocalPre.setStatus('current') hw_priority_policed_service_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('invalid', 0), ('auto', 1), ('trust-dscp', 2), ('new-dscp', 3), ('untrusted', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceType.setStatus('current') hw_priority_policed_service_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 18), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceDscp.setStatus('current') hw_priority_policed_service_exp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 19), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceExp.setStatus('current') hw_priority_policed_service_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 20), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceCos.setStatus('current') hw_priority_policed_service_loacl_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 21), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceLoaclPre.setStatus('current') hw_priority_policed_service_drop_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 22), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 2), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityPolicedServiceDropPriority.setStatus('current') hw_priority_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 23), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPriorityRuntime.setStatus('current') hw_priority_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 5, 1, 24), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPriorityRowStatus.setStatus('current') hw_redirect_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6)) if mibBuilder.loadTexts: hwRedirectTable.setStatus('current') hw_redirect_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwRedirectAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRedirectIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRedirectVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwRedirectDirection')) if mibBuilder.loadTexts: hwRedirectEntry.setStatus('current') hw_redirect_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectAclIndex.setStatus('current') hw_redirect_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectIfIndex.setStatus('current') hw_redirect_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectVlanID.setStatus('current') hw_redirect_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectDirection.setStatus('current') hw_redirect_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectUserAclNum.setStatus('current') hw_redirect_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectUserAclRule.setStatus('current') hw_redirect_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectIpAclNum.setStatus('current') hw_redirect_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectIpAclRule.setStatus('current') hw_redirect_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectLinkAclNum.setStatus('current') hw_redirect_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectLinkAclRule.setStatus('current') hw_redirect_to_cpu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 11), truth_value().clone(2)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToCpu.setStatus('current') hw_redirect_to_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 12), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToIfIndex.setStatus('current') hw_redirect_to_next_hop1 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 13), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToNextHop1.setStatus('current') hw_redirect_to_next_hop2 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 14), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToNextHop2.setStatus('current') hw_redirect_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 15), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwRedirectRuntime.setStatus('current') hw_redirect_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 16), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectRowStatus.setStatus('current') hw_redirect_to_slot_no = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToSlotNo.setStatus('current') hw_redirect_remarked_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 18), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectRemarkedDSCP.setStatus('current') hw_redirect_remarked_pri = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 19), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectRemarkedPri.setStatus('current') hw_redirect_remarked_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 20), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 15), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectRemarkedTos.setStatus('current') hw_redirect_to_next_hop3 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 21), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToNextHop3.setStatus('current') hw_redirect_target_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectTargetVlanID.setStatus('current') hw_redirect_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('strict-priority', 1), ('load-balance', 2))).clone('strict-priority')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectMode.setStatus('current') hw_redirect_to_nested_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 24), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToNestedVlanID.setStatus('current') hw_redirect_to_modified_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 6, 1, 25), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedirectToModifiedVlanID.setStatus('current') hw_statistic_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7)) if mibBuilder.loadTexts: hwStatisticTable.setStatus('current') hw_statistic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwStatisticAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwStatisticIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwStatisticVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwStatisticDirection')) if mibBuilder.loadTexts: hwStatisticEntry.setStatus('current') hw_statistic_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticAclIndex.setStatus('current') hw_statistic_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticIfIndex.setStatus('current') hw_statistic_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticVlanID.setStatus('current') hw_statistic_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticDirection.setStatus('current') hw_statistic_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticUserAclNum.setStatus('current') hw_statistic_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticUserAclRule.setStatus('current') hw_statistic_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticIpAclNum.setStatus('current') hw_statistic_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticIpAclRule.setStatus('current') hw_statistic_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticLinkAclNum.setStatus('current') hw_statistic_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticLinkAclRule.setStatus('current') hw_statistic_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 11), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwStatisticRuntime.setStatus('current') hw_statistic_packet_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwStatisticPacketCount.setStatus('current') hw_statistic_byte_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwStatisticByteCount.setStatus('current') hw_statistic_count_clear = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cleared', 1), ('nouse', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwStatisticCountClear.setStatus('current') hw_statistic_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 15), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwStatisticRowStatus.setStatus('current') hw_statistic_packet_x_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwStatisticPacketXCount.setStatus('current') hw_statistic_byte_x_count = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 7, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwStatisticByteXCount.setStatus('current') hw_mirror_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8)) if mibBuilder.loadTexts: hwMirrorTable.setStatus('current') hw_mirror_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirrorAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwMirrorIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwMirrorVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwMirrorDirection')) if mibBuilder.loadTexts: hwMirrorEntry.setStatus('current') hw_mirror_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorAclIndex.setStatus('current') hw_mirror_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorIfIndex.setStatus('current') hw_mirror_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorVlanID.setStatus('current') hw_mirror_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorDirection.setStatus('current') hw_mirror_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorUserAclNum.setStatus('current') hw_mirror_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorUserAclRule.setStatus('current') hw_mirror_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorIpAclNum.setStatus('current') hw_mirror_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorIpAclRule.setStatus('current') hw_mirror_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorLinkAclNum.setStatus('current') hw_mirror_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorLinkAclRule.setStatus('current') hw_mirror_to_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 11), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorToIfIndex.setStatus('current') hw_mirror_to_cpu = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 12), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorToCpu.setStatus('current') hw_mirror_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 13), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMirrorRuntime.setStatus('current') hw_mirror_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 14), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorRowStatus.setStatus('current') hw_mirror_to_group = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 8, 1, 15), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorToGroup.setStatus('current') hw_port_mirror_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9)) if mibBuilder.loadTexts: hwPortMirrorTable.setStatus('current') hw_port_mirror_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwPortMirrorIfIndex')) if mibBuilder.loadTexts: hwPortMirrorEntry.setStatus('current') hw_port_mirror_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPortMirrorIfIndex.setStatus('current') hw_port_mirror_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('in', 1), ('out', 2), ('both', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPortMirrorDirection.setStatus('current') hw_port_mirror_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 9, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwPortMirrorRowStatus.setStatus('current') hw_line_rate_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10)) if mibBuilder.loadTexts: hwLineRateTable.setStatus('current') hw_line_rate_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwLineRateIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwLineRateDirection')) if mibBuilder.loadTexts: hwLineRateEntry.setStatus('current') hw_line_rate_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwLineRateIfIndex.setStatus('current') hw_line_rate_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('in', 1), ('out', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwLineRateDirection.setStatus('current') hw_line_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 3), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwLineRateValue.setStatus('current') hw_line_rate_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 10, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwLineRateRowStatus.setStatus('current') hw_bandwidth_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11)) if mibBuilder.loadTexts: hwBandwidthTable.setStatus('current') hw_bandwidth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwBandwidthAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwBandwidthIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwBandwidthVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwBandwidthDirection')) if mibBuilder.loadTexts: hwBandwidthEntry.setStatus('current') hw_bandwidth_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthAclIndex.setStatus('current') hw_bandwidth_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthIfIndex.setStatus('current') hw_bandwidth_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthVlanID.setStatus('current') hw_bandwidth_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 2))).clone(namedValues=named_values(('invalid', 0), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthDirection.setStatus('current') hw_bandwidth_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthIpAclNum.setStatus('current') hw_bandwidth_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthIpAclRule.setStatus('current') hw_bandwidth_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthLinkAclNum.setStatus('current') hw_bandwidth_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwBandwidthLinkAclRule.setStatus('current') hw_bandwidth_min_guaranteed_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 8388608))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwBandwidthMinGuaranteedWidth.setStatus('current') hw_bandwidth_max_guaranteed_width = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 8388608))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwBandwidthMaxGuaranteedWidth.setStatus('current') hw_bandwidth_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwBandwidthWeight.setStatus('current') hw_bandwidth_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwBandwidthRuntime.setStatus('current') hw_bandwidth_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 11, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwBandwidthRowStatus.setStatus('current') hw_red_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12)) if mibBuilder.loadTexts: hwRedTable.setStatus('current') hw_red_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwRedAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRedIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRedVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwRedDirection')) if mibBuilder.loadTexts: hwRedEntry.setStatus('current') hw_red_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedAclIndex.setStatus('current') hw_red_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 2), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedIfIndex.setStatus('current') hw_red_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedVlanID.setStatus('current') hw_red_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 2))).clone(namedValues=named_values(('invalid', 0), ('output', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedDirection.setStatus('current') hw_red_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedIpAclNum.setStatus('current') hw_red_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedIpAclRule.setStatus('current') hw_red_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedLinkAclNum.setStatus('current') hw_red_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRedLinkAclRule.setStatus('current') hw_red_start_queue_len = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 262128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwRedStartQueueLen.setStatus('current') hw_red_stop_queue_len = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 262128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwRedStopQueueLen.setStatus('current') hw_red_probability = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwRedProbability.setStatus('current') hw_red_runtime = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 12), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwRedRuntime.setStatus('current') hw_red_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 12, 1, 13), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwRedRowStatus.setStatus('current') hw_mirror_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13)) if mibBuilder.loadTexts: hwMirrorGroupTable.setStatus('current') hw_mirror_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirrorGroupID')) if mibBuilder.loadTexts: hwMirrorGroupEntry.setStatus('current') hw_mirror_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMirrorGroupID.setStatus('current') hw_mirror_group_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('input', 1), ('output', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwMirrorGroupDirection.setStatus('current') hw_mirror_group_mirror_if_index_list = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 257))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwMirrorGroupMirrorIfIndexList.setStatus('current') hw_mirror_group_monitor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwMirrorGroupMonitorIfIndex.setStatus('current') hw_mirror_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 13, 1, 5), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwMirrorGroupRowStatus.setStatus('current') hw_flowtemp_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14)) if mibBuilder.loadTexts: hwFlowtempTable.setStatus('current') hw_flowtemp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwFlowtempIndex')) if mibBuilder.loadTexts: hwFlowtempEntry.setStatus('current') hw_flowtemp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('default', 1), ('user-defined', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwFlowtempIndex.setStatus('current') hw_flowtemp_ip_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 2), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempIpProtocol.setStatus('current') hw_flowtemp_tcp_flag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 3), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempTcpFlag.setStatus('current') hw_flowtemp_s_port = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 4), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempSPort.setStatus('current') hw_flowtemp_d_port = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 5), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDPort.setStatus('current') hw_flowtemp_icmp_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 6), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempIcmpType.setStatus('current') hw_flowtemp_icmp_code = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 7), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempIcmpCode.setStatus('current') hw_flowtemp_fragment = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 8), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempFragment.setStatus('current') hw_flowtemp_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 9), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDscp.setStatus('current') hw_flowtemp_ip_pre = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 10), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempIpPre.setStatus('current') hw_flowtemp_tos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 11), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempTos.setStatus('current') hw_flowtemp_s_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 12), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempSIp.setStatus('current') hw_flowtemp_s_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 13), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempSIpMask.setStatus('current') hw_flowtemp_d_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 14), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDIp.setStatus('current') hw_flowtemp_d_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 15), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDIpMask.setStatus('current') hw_flowtemp_eth_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 16), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempEthProtocol.setStatus('current') hw_flowtemp_s_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 17), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempSMac.setStatus('current') hw_flowtemp_s_mac_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 18), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempSMacMask.setStatus('current') hw_flowtemp_d_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 19), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDMac.setStatus('current') hw_flowtemp_d_mac_mask = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 20), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempDMacMask.setStatus('current') hw_flowtemp_vpn = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 21), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempVpn.setStatus('current') hw_flowtemp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 22), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempRowStatus.setStatus('current') hw_flowtemp_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 23), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempVlanId.setStatus('current') hw_flowtemp_cos = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 14, 1, 24), truth_value()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempCos.setStatus('current') hw_flowtemp_enable_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15)) if mibBuilder.loadTexts: hwFlowtempEnableTable.setStatus('current') hw_flowtemp_enable_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwFlowtempEnableIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwFlowtempEnableVlanID')) if mibBuilder.loadTexts: hwFlowtempEnableEntry.setStatus('current') hw_flowtemp_enable_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempEnableIfIndex.setStatus('current') hw_flowtemp_enable_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwFlowtempEnableVlanID.setStatus('current') hw_flowtemp_enable_flowtemp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 15, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('default', 1), ('user-defined', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwFlowtempEnableFlowtempIndex.setStatus('current') hw_traffic_shape_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16)) if mibBuilder.loadTexts: hwTrafficShapeTable.setStatus('current') hw_traffic_shape_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwTrafficShapeIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwTrafficShapeQueueId')) if mibBuilder.loadTexts: hwTrafficShapeEntry.setStatus('current') hw_traffic_shape_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeIfIndex.setStatus('current') hw_traffic_shape_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeQueueId.setStatus('current') hw_traffic_shape_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 3), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeMaxRate.setStatus('current') hw_traffic_shape_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 4), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeBurstSize.setStatus('current') hw_traffic_shape_buffer_limit = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(16, 8000)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeBufferLimit.setStatus('current') hw_traffic_shape_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 16, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwTrafficShapeRowStatus.setStatus('current') hw_port_queue_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17)) if mibBuilder.loadTexts: hwPortQueueTable.setStatus('current') hw_port_queue_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwPortQueueIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwPortQueueQueueID')) if mibBuilder.loadTexts: hwPortQueueEntry.setStatus('current') hw_port_queue_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPortQueueIfIndex.setStatus('current') hw_port_queue_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPortQueueQueueID.setStatus('current') hw_port_queue_wrr_priority = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('sp', 1), ('wrr-high-priority', 2), ('wrr-low-priority', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortQueueWrrPriority.setStatus('current') hw_port_queue_weight = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 17, 1, 4), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(1, 255)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortQueueWeight.setStatus('current') hw_drop_mode_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18)) if mibBuilder.loadTexts: hwDropModeTable.setStatus('current') hw_drop_mode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDropModeIfIndex')) if mibBuilder.loadTexts: hwDropModeEntry.setStatus('current') hw_drop_mode_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwDropModeIfIndex.setStatus('current') hw_drop_mode_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('random-detect', 1), ('tail-drop', 2))).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDropModeMode.setStatus('current') hw_drop_mode_wred_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 18, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDropModeWredIndex.setStatus('current') hw_wred_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19)) if mibBuilder.loadTexts: hwWredTable.setStatus('current') hw_wred_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwWredIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwWredQueueId')) if mibBuilder.loadTexts: hwWredEntry.setStatus('current') hw_wred_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 3))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwWredIndex.setStatus('current') hw_wred_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwWredQueueId.setStatus('current') hw_wred_green_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredGreenMinThreshold.setStatus('current') hw_wred_green_max_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredGreenMaxThreshold.setStatus('current') hw_wred_green_max_prob = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredGreenMaxProb.setStatus('current') hw_wred_yellow_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredYellowMinThreshold.setStatus('current') hw_wred_yellow_max_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredYellowMaxThreshold.setStatus('current') hw_wred_yellow_max_prob = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredYellowMaxProb.setStatus('current') hw_wred_red_min_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredRedMinThreshold.setStatus('current') hw_wred_red_max_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredRedMaxThreshold.setStatus('current') hw_wred_red_max_prob = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredRedMaxProb.setStatus('current') hw_wred_exponent = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 19, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(9)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwWredExponent.setStatus('current') hw_cos_to_local_precedence_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20)) if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapTable.setStatus('current') hw_cos_to_local_precedence_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwCosToLocalPrecedenceMapCosIndex')) if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapEntry.setStatus('current') hw_cos_to_local_precedence_map_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapCosIndex.setStatus('current') hw_cos_to_local_precedence_map_local_precedence_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 20, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwCosToLocalPrecedenceMapLocalPrecedenceValue.setStatus('current') hw_cos_to_drop_precedence_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21)) if mibBuilder.loadTexts: hwCosToDropPrecedenceMapTable.setStatus('current') hw_cos_to_drop_precedence_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwCosToDropPrecedenceMapCosIndex')) if mibBuilder.loadTexts: hwCosToDropPrecedenceMapEntry.setStatus('current') hw_cos_to_drop_precedence_map_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwCosToDropPrecedenceMapCosIndex.setStatus('current') hw_cos_to_drop_precedence_map_drop_precedence_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 21, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwCosToDropPrecedenceMapDropPrecedenceValue.setStatus('current') hw_dscp_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22)) if mibBuilder.loadTexts: hwDscpMapTable.setStatus('current') hw_dscp_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDscpMapConformLevel'), (0, 'HUAWEI-LswQos-MIB', 'hwDscpMapDscpIndex')) if mibBuilder.loadTexts: hwDscpMapEntry.setStatus('current') hw_dscp_map_conform_level = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwDscpMapConformLevel.setStatus('current') hw_dscp_map_dscp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwDscpMapDscpIndex.setStatus('current') hw_dscp_map_dscp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpMapDscpValue.setStatus('current') hw_dscp_map_exp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpMapExpValue.setStatus('current') hw_dscp_map_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpMapCosValue.setStatus('current') hw_dscp_map_local_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpMapLocalPrecedence.setStatus('current') hw_dscp_map_drop_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 22, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpMapDropPrecedence.setStatus('current') hw_exp_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23)) if mibBuilder.loadTexts: hwExpMapTable.setStatus('current') hw_exp_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwExpMapConformLevel'), (0, 'HUAWEI-LswQos-MIB', 'hwExpMapExpIndex')) if mibBuilder.loadTexts: hwExpMapEntry.setStatus('current') hw_exp_map_conform_level = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwExpMapConformLevel.setStatus('current') hw_exp_map_exp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwExpMapExpIndex.setStatus('current') hw_exp_map_dscp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwExpMapDscpValue.setStatus('current') hw_exp_map_exp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwExpMapExpValue.setStatus('current') hw_exp_map_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwExpMapCosValue.setStatus('current') hw_exp_map_local_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwExpMapLocalPrecedence.setStatus('current') hw_exp_map_drop_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 23, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwExpMapDropPrecedence.setStatus('current') hw_local_precedence_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24)) if mibBuilder.loadTexts: hwLocalPrecedenceMapTable.setStatus('current') hw_local_precedence_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwLocalPrecedenceMapConformLevel'), (0, 'HUAWEI-LswQos-MIB', 'hwLocalPrecedenceMapLocalPrecedenceIndex')) if mibBuilder.loadTexts: hwLocalPrecedenceMapEntry.setStatus('current') hw_local_precedence_map_conform_level = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwLocalPrecedenceMapConformLevel.setStatus('current') hw_local_precedence_map_local_precedence_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwLocalPrecedenceMapLocalPrecedenceIndex.setStatus('current') hw_local_precedence_map_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 24, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwLocalPrecedenceMapCosValue.setStatus('current') hw_port_wred_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25)) if mibBuilder.loadTexts: hwPortWredTable.setStatus('current') hw_port_wred_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwPortWredIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwPortWredQueueID')) if mibBuilder.loadTexts: hwPortWredEntry.setStatus('current') hw_port_wred_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPortWredIfIndex.setStatus('current') hw_port_wred_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwPortWredQueueID.setStatus('current') hw_port_wred_queue_start_length = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2047))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortWredQueueStartLength.setStatus('current') hw_port_wred_queue_probability = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 25, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortWredQueueProbability.setStatus('current') hw_mirroring_group_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26)) if mibBuilder.loadTexts: hwMirroringGroupTable.setStatus('current') hw_mirroring_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID')) if mibBuilder.loadTexts: hwMirroringGroupEntry.setStatus('current') hw_mirroring_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))) if mibBuilder.loadTexts: hwMirroringGroupID.setStatus('current') hw_mirroring_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('local', 1), ('remote-source', 2), ('remote-destination', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupType.setStatus('current') hw_mirroring_group_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwMirroringGroupStatus.setStatus('current') hw_mirroring_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 26, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupRowStatus.setStatus('current') hw_mirroring_group_mirror_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27)) if mibBuilder.loadTexts: hwMirroringGroupMirrorTable.setStatus('current') hw_mirroring_group_mirror_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID')) if mibBuilder.loadTexts: hwMirroringGroupMirrorEntry.setStatus('current') hw_mirroring_group_mirror_inbound_if_index_list = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 1), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorInboundIfIndexList.setStatus('current') hw_mirroring_group_mirror_outbound_if_index_list = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 2), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorOutboundIfIndexList.setStatus('current') hw_mirroring_group_mirror_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorRowStatus.setStatus('current') hw_mirroring_group_mirror_in_type_list = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 4), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorInTypeList.setStatus('current') hw_mirroring_group_mirror_out_type_list = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 27, 1, 5), octet_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorOutTypeList.setStatus('current') hw_mirroring_group_monitor_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28)) if mibBuilder.loadTexts: hwMirroringGroupMonitorTable.setStatus('current') hw_mirroring_group_monitor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID')) if mibBuilder.loadTexts: hwMirroringGroupMonitorEntry.setStatus('current') hw_mirroring_group_monitor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMonitorIfIndex.setStatus('current') hw_mirroring_group_monitor_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMonitorRowStatus.setStatus('current') hw_mirroring_group_monitor_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 28, 1, 3), hw_mirror_or_monitor_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMonitorType.setStatus('current') hw_mirroring_group_reflector_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29)) if mibBuilder.loadTexts: hwMirroringGroupReflectorTable.setStatus('current') hw_mirroring_group_reflector_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID')) if mibBuilder.loadTexts: hwMirroringGroupReflectorEntry.setStatus('current') hw_mirroring_group_reflector_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1, 1), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupReflectorIfIndex.setStatus('current') hw_mirroring_group_reflector_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 29, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupReflectorRowStatus.setStatus('current') hw_mirroring_group_rprobe_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30)) if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanTable.setStatus('current') hw_mirroring_group_rprobe_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID')) if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanEntry.setStatus('current') hw_mirroring_group_rprobe_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanID.setStatus('current') hw_mirroring_group_rprobe_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 30, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupRprobeVlanRowStatus.setStatus('current') hw_mirroring_group_mirror_mac_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31)) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacTable.setStatus('current') hw_mirroring_group_mirror_mac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID'), (0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupMirrorMacSeq')) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacEntry.setStatus('current') hw_mirroring_group_mirror_mac_seq = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 1), integer32()) if mibBuilder.loadTexts: hwMirroringGroupMirrorMacSeq.setStatus('current') hw_mirroring_group_mirror_mac = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 2), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorMac.setStatus('current') hw_mirror_mac_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirrorMacVlanID.setStatus('current') hw_mirroring_group_mirro_mac_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 31, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirroMacStatus.setStatus('current') hw_mirroring_group_mirror_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32)) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanTable.setStatus('current') hw_mirroring_group_mirror_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupID'), (0, 'HUAWEI-LswQos-MIB', 'hwMirroringGroupMirrorVlanSeq')) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanEntry.setStatus('current') hw_mirroring_group_mirror_vlan_seq = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 1), integer32()) if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanSeq.setStatus('current') hw_mirroring_group_mirror_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanID.setStatus('current') hw_mirroring_group_mirror_vlan_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('inbound', 1), ('outbound', 2), ('both', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirrorVlanDirection.setStatus('current') hw_mirroring_group_mirro_vlan_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 32, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwMirroringGroupMirroVlanStatus.setStatus('current') hw_port_trust_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33)) if mibBuilder.loadTexts: hwPortTrustTable.setStatus('current') hw_port_trust_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwPortTrustIfIndex')) if mibBuilder.loadTexts: hwPortTrustEntry.setStatus('current') hw_port_trust_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 1), integer32()) if mibBuilder.loadTexts: hwPortTrustIfIndex.setStatus('current') hw_port_trust_trust_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('port', 1), ('cos', 2), ('dscp', 3))).clone('port')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortTrustTrustType.setStatus('current') hw_port_trust_overcast_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOvercast', 1), ('overcastDSCP', 2), ('overcastCOS', 3))).clone('noOvercast')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortTrustOvercastType.setStatus('current') hw_port_trust_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 33, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwPortTrustReset.setStatus('current') hw_remark_vlan_id_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34)) if mibBuilder.loadTexts: hwRemarkVlanIDTable.setStatus('current') hw_remark_vlan_id_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwRemarkVlanIDAclIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRemarkVlanIDIfIndex'), (0, 'HUAWEI-LswQos-MIB', 'hwRemarkVlanIDVlanID'), (0, 'HUAWEI-LswQos-MIB', 'hwRemarkVlanIDDirection')) if mibBuilder.loadTexts: hwRemarkVlanIDEntry.setStatus('current') hw_remark_vlan_id_acl_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2999))) if mibBuilder.loadTexts: hwRemarkVlanIDAclIndex.setStatus('current') hw_remark_vlan_id_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 2), integer32()) if mibBuilder.loadTexts: hwRemarkVlanIDIfIndex.setStatus('current') hw_remark_vlan_id_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))) if mibBuilder.loadTexts: hwRemarkVlanIDVlanID.setStatus('current') hw_remark_vlan_id_direction = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('invalid', 0), ('input', 1), ('output', 2)))) if mibBuilder.loadTexts: hwRemarkVlanIDDirection.setStatus('current') hw_remark_vlan_id_user_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 5), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 5999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDUserAclNum.setStatus('current') hw_remark_vlan_id_user_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDUserAclRule.setStatus('current') hw_remark_vlan_id_ip_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 7), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDIpAclNum.setStatus('current') hw_remark_vlan_id_ip_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDIpAclRule.setStatus('current') hw_remark_vlan_id_link_acl_num = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 4999), value_range_constraint(10000, 12999)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDLinkAclNum.setStatus('current') hw_remark_vlan_id_link_acl_rule = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDLinkAclRule.setStatus('current') hw_remark_vlan_id_remark_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 4094))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDRemarkVlanID.setStatus('current') hw_remark_vlan_id_packet_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('all', 1), ('tagged', 2), ('untagged', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDPacketType.setStatus('current') hw_remark_vlan_id_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 34, 1, 13), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hwRemarkVlanIDRowStatus.setStatus('current') hw_cos_to_dscp_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35)) if mibBuilder.loadTexts: hwCosToDscpMapTable.setStatus('current') hw_cos_to_dscp_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwCosToDscpMapCosIndex')) if mibBuilder.loadTexts: hwCosToDscpMapEntry.setStatus('current') hw_cos_to_dscp_map_cos_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: hwCosToDscpMapCosIndex.setStatus('current') hw_cos_to_dscp_map_dscp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwCosToDscpMapDscpValue.setStatus('current') hw_cos_to_dscp_map_re_set = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 35, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwCosToDscpMapReSet.setStatus('current') hw_dscp_to_local_pre_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36)) if mibBuilder.loadTexts: hwDscpToLocalPreMapTable.setStatus('current') hw_dscp_to_local_pre_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDscpToLocalPreMapDscpIndex')) if mibBuilder.loadTexts: hwDscpToLocalPreMapEntry.setStatus('current') hw_dscp_to_local_pre_map_dscp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))) if mibBuilder.loadTexts: hwDscpToLocalPreMapDscpIndex.setStatus('current') hw_dscp_to_local_pre_map_local_pre_val = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToLocalPreMapLocalPreVal.setStatus('current') hw_dscp_to_local_pre_map_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 36, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToLocalPreMapReset.setStatus('current') hw_dscp_to_drop_pre_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37)) if mibBuilder.loadTexts: hwDscpToDropPreMapTable.setStatus('current') hw_dscp_to_drop_pre_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDscpToDropPreMapDscpIndex')) if mibBuilder.loadTexts: hwDscpToDropPreMapEntry.setStatus('current') hw_dscp_to_drop_pre_map_dscp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))) if mibBuilder.loadTexts: hwDscpToDropPreMapDscpIndex.setStatus('current') hw_dscp_to_drop_pre_map_drop_pre_val = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToDropPreMapDropPreVal.setStatus('current') hw_dscp_to_drop_pre_map_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 37, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToDropPreMapReset.setStatus('current') hw_dscp_to_cos_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38)) if mibBuilder.loadTexts: hwDscpToCosMapTable.setStatus('current') hw_dscp_to_cos_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDscpToCosMapDscpIndex')) if mibBuilder.loadTexts: hwDscpToCosMapEntry.setStatus('current') hw_dscp_to_cos_map_dscp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))) if mibBuilder.loadTexts: hwDscpToCosMapDscpIndex.setStatus('current') hw_dscp_to_cos_map_cos_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToCosMapCosValue.setStatus('current') hw_dscp_to_cos_map_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 38, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToCosMapReset.setStatus('current') hw_dscp_to_dscp_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39)) if mibBuilder.loadTexts: hwDscpToDscpMapTable.setStatus('current') hw_dscp_to_dscp_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1)).setIndexNames((0, 'HUAWEI-LswQos-MIB', 'hwDscpToDscpMapDscpIndex')) if mibBuilder.loadTexts: hwDscpToDscpMapEntry.setStatus('current') hw_dscp_to_dscp_map_dscp_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))) if mibBuilder.loadTexts: hwDscpToDscpMapDscpIndex.setStatus('current') hw_dscp_to_dscp_map_dscp_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToDscpMapDscpValue.setStatus('current') hw_dscp_to_dscp_map_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 2, 23, 1, 16, 2, 39, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwDscpToDscpMapReset.setStatus('current') mibBuilder.exportSymbols('HUAWEI-LswQos-MIB', hwWredExponent=hwWredExponent, hwPortTrustReset=hwPortTrustReset, hwRedVlanID=hwRedVlanID, hwRedirectRuntime=hwRedirectRuntime, hwLineRateTable=hwLineRateTable, hwPriorityTable=hwPriorityTable, hwRateLimitIfIndex=hwRateLimitIfIndex, hwBandwidthDirection=hwBandwidthDirection, hwRateLimitMeterStatByteCount=hwRateLimitMeterStatByteCount, hwFlowtempEnableFlowtempIndex=hwFlowtempEnableFlowtempIndex, hwFlowtempDMac=hwFlowtempDMac, hwRedirectTable=hwRedirectTable, hwMirroringGroupMirrorMacSeq=hwMirroringGroupMirrorMacSeq, hwLineRateRowStatus=hwLineRateRowStatus, hwWredGreenMaxThreshold=hwWredGreenMaxThreshold, hwDscpToDropPreMapDropPreVal=hwDscpToDropPreMapDropPreVal, hwMirroringGroupReflectorEntry=hwMirroringGroupReflectorEntry, hwRedirectIfIndex=hwRedirectIfIndex, hwPriorityPolicedServiceType=hwPriorityPolicedServiceType, hwRedirectToCpu=hwRedirectToCpu, hwWredRedMinThreshold=hwWredRedMinThreshold, hwStatisticVlanID=hwStatisticVlanID, hwRedirectRemarkedDSCP=hwRedirectRemarkedDSCP, hwQueueTable=hwQueueTable, hwRemarkVlanIDUserAclNum=hwRemarkVlanIDUserAclNum, hwRedirectLinkAclNum=hwRedirectLinkAclNum, hwDscpToLocalPreMapEntry=hwDscpToLocalPreMapEntry, hwRateLimitPIR=hwRateLimitPIR, hwPortWredQueueID=hwPortWredQueueID, hwWredQueueId=hwWredQueueId, hwRedIfIndex=hwRedIfIndex, hwRedirectRowStatus=hwRedirectRowStatus, hwQueueWeight4=hwQueueWeight4, hwFlowtempDPort=hwFlowtempDPort, hwPriorityPolicedServiceDropPriority=hwPriorityPolicedServiceDropPriority, hwPriorityRuntime=hwPriorityRuntime, hwRedirectEntry=hwRedirectEntry, hwPortMirrorTable=hwPortMirrorTable, hwStatisticUserAclRule=hwStatisticUserAclRule, hwRedStartQueueLen=hwRedStartQueueLen, hwDscpToDropPreMapTable=hwDscpToDropPreMapTable, hwWredYellowMaxThreshold=hwWredYellowMaxThreshold, hwBandwidthVlanID=hwBandwidthVlanID, hwMirrorEntry=hwMirrorEntry, hwRedirectVlanID=hwRedirectVlanID, hwRedLinkAclRule=hwRedLinkAclRule, hwMirroringGroupRprobeVlanID=hwMirroringGroupRprobeVlanID, hwMirroringGroupMirrorVlanDirection=hwMirroringGroupMirrorVlanDirection, hwStatisticPacketXCount=hwStatisticPacketXCount, hwMirrorGroupMonitorIfIndex=hwMirrorGroupMonitorIfIndex, hwMirroringGroupMirrorEntry=hwMirroringGroupMirrorEntry, hwPriorityIpAclRule=hwPriorityIpAclRule, hwLineRateEntry=hwLineRateEntry, hwMirrorIfIndex=hwMirrorIfIndex, hwCosToDropPrecedenceMapDropPrecedenceValue=hwCosToDropPrecedenceMapDropPrecedenceValue, hwWredRedMaxThreshold=hwWredRedMaxThreshold, hwStatisticPacketCount=hwStatisticPacketCount, hwMirrorToGroup=hwMirrorToGroup, hwPortMirrorDirection=hwPortMirrorDirection, hwStatisticAclIndex=hwStatisticAclIndex, hwFlowtempDscp=hwFlowtempDscp, hwFlowtempEnableIfIndex=hwFlowtempEnableIfIndex, hwDscpMapDropPrecedence=hwDscpMapDropPrecedence, hwRemarkVlanIDIfIndex=hwRemarkVlanIDIfIndex, hwPortTrustIfIndex=hwPortTrustIfIndex, hwCosToDscpMapDscpValue=hwCosToDscpMapDscpValue, hwMirroringGroupRowStatus=hwMirroringGroupRowStatus, hwMirrorMacVlanID=hwMirrorMacVlanID, hwRemarkVlanIDRowStatus=hwRemarkVlanIDRowStatus, hwMirroringGroupMirrorVlanID=hwMirroringGroupMirrorVlanID, hwMirroringGroupMonitorEntry=hwMirroringGroupMonitorEntry, hwFlowtempTos=hwFlowtempTos, hwFlowtempVpn=hwFlowtempVpn, hwRedirectToNextHop3=hwRedirectToNextHop3, hwCosToLocalPrecedenceMapCosIndex=hwCosToLocalPrecedenceMapCosIndex, hwTrafficShapeTable=hwTrafficShapeTable, hwCosToDscpMapEntry=hwCosToDscpMapEntry, hwQueueScheduleMode=hwQueueScheduleMode, hwCosToLocalPrecedenceMapLocalPrecedenceValue=hwCosToLocalPrecedenceMapLocalPrecedenceValue, hwMirrorGroupTable=hwMirrorGroupTable, hwRateLimitUserAclNum=hwRateLimitUserAclNum, hwRateLimitRuntime=hwRateLimitRuntime, hwDscpMapConformLevel=hwDscpMapConformLevel, hwDscpToLocalPreMapDscpIndex=hwDscpToLocalPreMapDscpIndex, hwBandwidthLinkAclNum=hwBandwidthLinkAclNum, hwFlowtempTable=hwFlowtempTable, hwCosToDropPrecedenceMapCosIndex=hwCosToDropPrecedenceMapCosIndex, hwLswQosMibObject=hwLswQosMibObject, hwCosToLocalPrecedenceMapTable=hwCosToLocalPrecedenceMapTable, hwMirroringGroupMirroMacStatus=hwMirroringGroupMirroMacStatus, hwPriorityIpPreFromCos=hwPriorityIpPreFromCos, hwPriorityTrustMode=hwPriorityTrustMode, hwMirroringGroupMirrorRowStatus=hwMirroringGroupMirrorRowStatus, hwRateLimitUserAclRule=hwRateLimitUserAclRule, hwFlowtempSIpMask=hwFlowtempSIpMask, hwMirroringGroupMonitorRowStatus=hwMirroringGroupMonitorRowStatus, hwLineRateIfIndex=hwLineRateIfIndex, hwQueueEntry=hwQueueEntry, hwRedirectMode=hwRedirectMode, hwLocalPrecedenceMapTable=hwLocalPrecedenceMapTable, hwDscpToDscpMapDscpValue=hwDscpToDscpMapDscpValue, hwBandwidthAclIndex=hwBandwidthAclIndex, hwQueueWeight2=hwQueueWeight2, hwMirroringGroupReflectorTable=hwMirroringGroupReflectorTable, hwFlowtempFragment=hwFlowtempFragment, hwDscpToCosMapDscpIndex=hwDscpToCosMapDscpIndex, hwWredEntry=hwWredEntry, hwMirrorVlanID=hwMirrorVlanID, hwCosToLocalPrecedenceMapEntry=hwCosToLocalPrecedenceMapEntry, hwQueueWeight5=hwQueueWeight5, hwMirroringGroupRprobeVlanEntry=hwMirroringGroupRprobeVlanEntry, hwPortQueueIfIndex=hwPortQueueIfIndex, hwRateLimitIpAclNum=hwRateLimitIpAclNum, hwBandwidthLinkAclRule=hwBandwidthLinkAclRule, hwDscpMapEntry=hwDscpMapEntry, hwFlowtempSMac=hwFlowtempSMac, hwFlowtempDIp=hwFlowtempDIp, hwRedirectToIfIndex=hwRedirectToIfIndex, hwDscpToCosMapCosValue=hwDscpToCosMapCosValue, hwMirroringGroupMirrorVlanSeq=hwMirroringGroupMirrorVlanSeq, hwRedirectAclIndex=hwRedirectAclIndex, hwPortQueueQueueID=hwPortQueueQueueID, hwPriorityDirection=hwPriorityDirection, hwRedirectLinkAclRule=hwRedirectLinkAclRule, hwLocalPrecedenceMapLocalPrecedenceIndex=hwLocalPrecedenceMapLocalPrecedenceIndex, hwRemarkVlanIDEntry=hwRemarkVlanIDEntry, hwCosToDscpMapTable=hwCosToDscpMapTable, hwPriorityCosFromIpPre=hwPriorityCosFromIpPre, hwRateLimitConformDscp=hwRateLimitConformDscp, hwPriorityPolicedServiceExp=hwPriorityPolicedServiceExp, hwRedirectRemarkedPri=hwRedirectRemarkedPri, hwStatisticRuntime=hwStatisticRuntime, hwRedirectToModifiedVlanID=hwRedirectToModifiedVlanID, hwRateLimitDirection=hwRateLimitDirection, hwPriorityPolicedServiceDscp=hwPriorityPolicedServiceDscp, hwFlowtempEnableTable=hwFlowtempEnableTable, hwRateLimitTable=hwRateLimitTable, hwDscpMapDscpIndex=hwDscpMapDscpIndex, hwMirroringGroupMonitorIfIndex=hwMirroringGroupMonitorIfIndex, hwLineRateDirection=hwLineRateDirection, hwMirroringGroupMirrorMacEntry=hwMirroringGroupMirrorMacEntry, hwRedDirection=hwRedDirection, hwLswQosAclMib=hwLswQosAclMib, hwExpMapLocalPrecedence=hwExpMapLocalPrecedence, hwPriorityDscp=hwPriorityDscp, hwRedIpAclRule=hwRedIpAclRule, hwPortQueueWrrPriority=hwPortQueueWrrPriority, hwDscpToLocalPreMapLocalPreVal=hwDscpToLocalPreMapLocalPreVal, hwPriorityRowStatus=hwPriorityRowStatus, hwRateLimitConformActionType=hwRateLimitConformActionType, hwRemarkVlanIDAclIndex=hwRemarkVlanIDAclIndex, hwRemarkVlanIDVlanID=hwRemarkVlanIDVlanID, hwWredIndex=hwWredIndex, hwPriorityPolicedServiceCos=hwPriorityPolicedServiceCos, hwRateLimitIpAclRule=hwRateLimitIpAclRule, hwRemarkVlanIDUserAclRule=hwRemarkVlanIDUserAclRule, hwFlowtempDIpMask=hwFlowtempDIpMask, hwRemarkVlanIDIpAclNum=hwRemarkVlanIDIpAclNum, hwMirrorGroupMirrorIfIndexList=hwMirrorGroupMirrorIfIndexList, hwMirroringGroupStatus=hwMirroringGroupStatus, hwCosToDropPrecedenceMapEntry=hwCosToDropPrecedenceMapEntry, hwMirroringGroupEntry=hwMirroringGroupEntry, hwTrafficShapeIfIndex=hwTrafficShapeIfIndex, hwMirroringGroupMirrorMacTable=hwMirroringGroupMirrorMacTable, hwRateLimitEntry=hwRateLimitEntry, hwRedirectToNextHop2=hwRedirectToNextHop2, hwMirroringGroupMirrorMac=hwMirroringGroupMirrorMac, hwTrafficShapeEntry=hwTrafficShapeEntry, hwFlowtempIpPre=hwFlowtempIpPre, hwPriorityUserAclNum=hwPriorityUserAclNum, hwRateLimitTargetRateKbps=hwRateLimitTargetRateKbps, hwDscpMapCosValue=hwDscpMapCosValue, hwBandwidthWeight=hwBandwidthWeight, hwRateLimitVlanID=hwRateLimitVlanID, hwPortMirrorIfIndex=hwPortMirrorIfIndex, hwFlowtempTcpFlag=hwFlowtempTcpFlag, hwWredYellowMinThreshold=hwWredYellowMinThreshold, hwWredYellowMaxProb=hwWredYellowMaxProb, hwFlowtempIndex=hwFlowtempIndex, hwRateLimitLinkAclRule=hwRateLimitLinkAclRule, hwMirrorToIfIndex=hwMirrorToIfIndex, hwFlowtempSMacMask=hwFlowtempSMacMask, hwMirrorGroupEntry=hwMirrorGroupEntry, hwMirrorLinkAclRule=hwMirrorLinkAclRule, hwStatisticTable=hwStatisticTable, hwMirroringGroupMirrorOutTypeList=hwMirroringGroupMirrorOutTypeList, hwFlowtempEnableVlanID=hwFlowtempEnableVlanID, hwPriorityPolicedServiceLoaclPre=hwPriorityPolicedServiceLoaclPre, hwRedRowStatus=hwRedRowStatus, hwRateLimitRowStatus=hwRateLimitRowStatus, hwMirroringGroupID=hwMirroringGroupID, hwQueueIfIndex=hwQueueIfIndex, hwPortMirrorEntry=hwPortMirrorEntry, hwMirroringGroupMirroVlanStatus=hwMirroringGroupMirroVlanStatus, hwRateLimitAclIndex=hwRateLimitAclIndex, hwRedAclIndex=hwRedAclIndex, hwRemarkVlanIDDirection=hwRemarkVlanIDDirection, hwTrafficShapeQueueId=hwTrafficShapeQueueId, hwFlowtempCos=hwFlowtempCos, hwDscpMapLocalPrecedence=hwDscpMapLocalPrecedence, hwQueueWeight1=hwQueueWeight1, hwRateLimitLinkAclNum=hwRateLimitLinkAclNum, hwRedirectUserAclRule=hwRedirectUserAclRule, PYSNMP_MODULE_ID=hwLswQosAclMib, hwRedEntry=hwRedEntry, hwPriorityLinkAclNum=hwPriorityLinkAclNum, hwDscpToDscpMapTable=hwDscpToDscpMapTable, hwRemarkVlanIDRemarkVlanID=hwRemarkVlanIDRemarkVlanID, hwExpMapTable=hwExpMapTable, hwPortTrustEntry=hwPortTrustEntry, hwMirrorUserAclRule=hwMirrorUserAclRule, hwMirrorTable=hwMirrorTable, hwRedIpAclNum=hwRedIpAclNum, hwDscpMapTable=hwDscpMapTable, hwMirrorUserAclNum=hwMirrorUserAclNum, hwBandwidthMinGuaranteedWidth=hwBandwidthMinGuaranteedWidth, hwFlowtempEntry=hwFlowtempEntry, hwPriorityEntry=hwPriorityEntry, hwDscpToDropPreMapReset=hwDscpToDropPreMapReset, hwDropModeEntry=hwDropModeEntry, hwRemarkVlanIDLinkAclNum=hwRemarkVlanIDLinkAclNum, hwBandwidthTable=hwBandwidthTable, hwTrafficShapeBurstSize=hwTrafficShapeBurstSize, hwRemarkVlanIDPacketType=hwRemarkVlanIDPacketType, hwPriorityIfIndex=hwPriorityIfIndex, hwRedProbability=hwRedProbability, hwStatisticByteCount=hwStatisticByteCount, hwCosToDscpMapReSet=hwCosToDscpMapReSet, hwBandwidthRowStatus=hwBandwidthRowStatus, hwPriorityUserAclRule=hwPriorityUserAclRule, hwRedStopQueueLen=hwRedStopQueueLen, hwPortTrustOvercastType=hwPortTrustOvercastType, hwRemarkVlanIDLinkAclRule=hwRemarkVlanIDLinkAclRule, hwRateLimitEBS=hwRateLimitEBS, hwRedirectToNestedVlanID=hwRedirectToNestedVlanID, hwRateLimitExceedCos=hwRateLimitExceedCos, hwMirroringGroupType=hwMirroringGroupType, hwPortQueueTable=hwPortQueueTable, hwFlowtempIpProtocol=hwFlowtempIpProtocol, hwRedRuntime=hwRedRuntime, hwMirrorRowStatus=hwMirrorRowStatus, hwBandwidthEntry=hwBandwidthEntry, hwDscpMapExpValue=hwDscpMapExpValue, hwDropModeMode=hwDropModeMode, hwRateLimitTargetRateMbps=hwRateLimitTargetRateMbps, hwMirrorToCpu=hwMirrorToCpu, hwRateLimitCBS=hwRateLimitCBS, hwRedirectIpAclNum=hwRedirectIpAclNum, hwDscpToCosMapEntry=hwDscpToCosMapEntry, hwTrafficShapeRowStatus=hwTrafficShapeRowStatus, hwMirrorIpAclRule=hwMirrorIpAclRule, hwCosToDscpMapCosIndex=hwCosToDscpMapCosIndex, hwMirroringGroupMirrorInTypeList=hwMirroringGroupMirrorInTypeList, hwDropModeIfIndex=hwDropModeIfIndex) mibBuilder.exportSymbols('HUAWEI-LswQos-MIB', hwStatisticEntry=hwStatisticEntry, hwBandwidthRuntime=hwBandwidthRuntime, hwExpMapCosValue=hwExpMapCosValue, hwExpMapEntry=hwExpMapEntry, hwRateLimitCIR=hwRateLimitCIR, hwRateLimitConformLocalPre=hwRateLimitConformLocalPre, hwMirrorAclIndex=hwMirrorAclIndex, hwQueueMaxDelay=hwQueueMaxDelay, hwWredGreenMaxProb=hwWredGreenMaxProb, hwDscpToLocalPreMapTable=hwDscpToLocalPreMapTable, hwFlowtempRowStatus=hwFlowtempRowStatus, hwPortMonitorBothIfIndex=hwPortMonitorBothIfIndex, hwPriorityVlanID=hwPriorityVlanID, hwDropModeWredIndex=hwDropModeWredIndex, hwBandwidthIpAclNum=hwBandwidthIpAclNum, hwFlowtempIcmpType=hwFlowtempIcmpType, hwMirroringGroupMirrorOutboundIfIndexList=hwMirroringGroupMirrorOutboundIfIndexList, hwFlowtempEnableEntry=hwFlowtempEnableEntry, hwDscpToCosMapReset=hwDscpToCosMapReset, hwPortMirrorRowStatus=hwPortMirrorRowStatus, hwDscpToDropPreMapDscpIndex=hwDscpToDropPreMapDscpIndex, hwPortWredQueueStartLength=hwPortWredQueueStartLength, hwRateLimitExceedActionType=hwRateLimitExceedActionType, hwMirroringGroupMonitorType=hwMirroringGroupMonitorType, hwPriorityLinkAclRule=hwPriorityLinkAclRule, hwStatisticCountClear=hwStatisticCountClear, hwFlowtempDMacMask=hwFlowtempDMacMask, hwRateLimitMeterStatByteXCount=hwRateLimitMeterStatByteXCount, hwExpMapDscpValue=hwExpMapDscpValue, hwPortWredTable=hwPortWredTable, hwDscpMapDscpValue=hwDscpMapDscpValue, hwPriorityCos=hwPriorityCos, hwQueueWeight6=hwQueueWeight6, hwRedirectToNextHop1=hwRedirectToNextHop1, hwStatisticUserAclNum=hwStatisticUserAclNum, hwMirrorGroupDirection=hwMirrorGroupDirection, hwExpMapDropPrecedence=hwExpMapDropPrecedence, hwFlowtempVlanId=hwFlowtempVlanId, hwRedirectDirection=hwRedirectDirection, hwDropModeTable=hwDropModeTable, hwDscpToDscpMapReset=hwDscpToDscpMapReset, hwPriorityAclIndex=hwPriorityAclIndex, hwPortTrustTable=hwPortTrustTable, hwFlowtempSIp=hwFlowtempSIp, hwCosToDropPrecedenceMapTable=hwCosToDropPrecedenceMapTable, hwRedirectUserAclNum=hwRedirectUserAclNum, hwStatisticLinkAclNum=hwStatisticLinkAclNum, hwRateLimitExceedDscp=hwRateLimitExceedDscp, hwPriorityIpPre=hwPriorityIpPre, hwPortWredEntry=hwPortWredEntry, hwQueueWeight8=hwQueueWeight8, hwMirroringGroupReflectorIfIndex=hwMirroringGroupReflectorIfIndex, hwFlowtempSPort=hwFlowtempSPort, hwMirroringGroupRprobeVlanRowStatus=hwMirroringGroupRprobeVlanRowStatus, hwMirroringGroupReflectorRowStatus=hwMirroringGroupReflectorRowStatus, hwPortWredQueueProbability=hwPortWredQueueProbability, hwPortQueueWeight=hwPortQueueWeight, hwWredRedMaxProb=hwWredRedMaxProb, hwFlowtempEthProtocol=hwFlowtempEthProtocol, hwMirroringGroupMirrorInboundIfIndexList=hwMirroringGroupMirrorInboundIfIndexList, hwPriorityLocalPre=hwPriorityLocalPre, hwPortTrustTrustType=hwPortTrustTrustType, hwFlowtempIcmpCode=hwFlowtempIcmpCode, hwRateLimitMeterStatState=hwRateLimitMeterStatState, hwPortWredIfIndex=hwPortWredIfIndex, hwStatisticLinkAclRule=hwStatisticLinkAclRule, hwRedTable=hwRedTable, hwRateLimitPeakRate=hwRateLimitPeakRate, hwStatisticByteXCount=hwStatisticByteXCount, hwDscpToDropPreMapEntry=hwDscpToDropPreMapEntry, hwDscpToCosMapTable=hwDscpToCosMapTable, hwTrafficShapeMaxRate=hwTrafficShapeMaxRate, hwMirroringGroupTable=hwMirroringGroupTable, hwMirroringGroupRprobeVlanTable=hwMirroringGroupRprobeVlanTable, hwMirroringGroupMirrorVlanEntry=hwMirroringGroupMirrorVlanEntry, hwMirrorGroupID=hwMirrorGroupID, hwExpMapExpValue=hwExpMapExpValue, hwLocalPrecedenceMapEntry=hwLocalPrecedenceMapEntry, hwWredTable=hwWredTable, hwDscpToLocalPreMapReset=hwDscpToLocalPreMapReset, hwLocalPrecedenceMapConformLevel=hwLocalPrecedenceMapConformLevel, hwMirroringGroupMirrorVlanTable=hwMirroringGroupMirrorVlanTable, hwBandwidthMaxGuaranteedWidth=hwBandwidthMaxGuaranteedWidth, hwMirroringGroupMirrorTable=hwMirroringGroupMirrorTable, hwRemarkVlanIDIpAclRule=hwRemarkVlanIDIpAclRule, hwStatisticIfIndex=hwStatisticIfIndex, hwRedirectIpAclRule=hwRedirectIpAclRule, hwBandwidthIpAclRule=hwBandwidthIpAclRule, hwMirrorIpAclNum=hwMirrorIpAclNum, hwMirrorGroupRowStatus=hwMirrorGroupRowStatus, HwMirrorOrMonitorType=HwMirrorOrMonitorType, hwExpMapExpIndex=hwExpMapExpIndex, hwTrafficShapeBufferLimit=hwTrafficShapeBufferLimit, hwMirroringGroupMonitorTable=hwMirroringGroupMonitorTable, hwMirrorDirection=hwMirrorDirection, hwQueueWeight3=hwQueueWeight3, hwRedLinkAclNum=hwRedLinkAclNum, hwMirrorRuntime=hwMirrorRuntime, hwQueueWeight7=hwQueueWeight7, hwWredGreenMinThreshold=hwWredGreenMinThreshold, hwPriorityIpAclNum=hwPriorityIpAclNum, hwStatisticIpAclRule=hwStatisticIpAclRule, hwLineRateValue=hwLineRateValue, hwDscpToDscpMapEntry=hwDscpToDscpMapEntry, hwRedirectToSlotNo=hwRedirectToSlotNo, hwStatisticRowStatus=hwStatisticRowStatus, hwExpMapConformLevel=hwExpMapConformLevel, hwRemarkVlanIDTable=hwRemarkVlanIDTable, hwStatisticIpAclNum=hwStatisticIpAclNum, hwRedirectTargetVlanID=hwRedirectTargetVlanID, hwRedirectRemarkedTos=hwRedirectRemarkedTos, hwPortQueueEntry=hwPortQueueEntry, hwBandwidthIfIndex=hwBandwidthIfIndex, hwStatisticDirection=hwStatisticDirection, hwRateLimitConformCos=hwRateLimitConformCos, hwDscpToDscpMapDscpIndex=hwDscpToDscpMapDscpIndex, hwMirrorLinkAclNum=hwMirrorLinkAclNum, hwLocalPrecedenceMapCosValue=hwLocalPrecedenceMapCosValue)
def test_check_userId1(client): response = client.get('/check?userId=1') assert "True" in response.json def test_check_userId3(client): response = client.get('/check?userId=3') assert "False" in response.json
def test_check_user_id1(client): response = client.get('/check?userId=1') assert 'True' in response.json def test_check_user_id3(client): response = client.get('/check?userId=3') assert 'False' in response.json
# Write your solution for 1.3 here! mysum=0 i=0 while i <= 10000 : i = i+1 mysum = mysum+ i print (mysum)
mysum = 0 i = 0 while i <= 10000: i = i + 1 mysum = mysum + i print(mysum)
config = { "CLIENT_ID": "8", "API_URL": "http://DOMAIN.COM", "PERSONAL_ACCESS_TOKEN": "", "BRIDGE_IP": "192.168.x.x", }
config = {'CLIENT_ID': '8', 'API_URL': 'http://DOMAIN.COM', 'PERSONAL_ACCESS_TOKEN': '', 'BRIDGE_IP': '192.168.x.x'}
load("//bazel/rules/cpp:main.bzl", "cpp_main") load("//bazel/rules/unilang:unilang_to_java.bzl", "unilang_to_java") load("//bazel/rules/code:code_to_java.bzl", "code_to_java") load("//bazel/rules/move_file:move_file.bzl", "move_file") load("//bazel/rules/move_file:move_file_java.bzl", "move_java_file") def transfer_unilang_java(name, path): unilang_to_java(name) move_java_file(name, path)
load('//bazel/rules/cpp:main.bzl', 'cpp_main') load('//bazel/rules/unilang:unilang_to_java.bzl', 'unilang_to_java') load('//bazel/rules/code:code_to_java.bzl', 'code_to_java') load('//bazel/rules/move_file:move_file.bzl', 'move_file') load('//bazel/rules/move_file:move_file_java.bzl', 'move_java_file') def transfer_unilang_java(name, path): unilang_to_java(name) move_java_file(name, path)
class Track: count = 0 def __init__(self, track_id, centroid, bbox=None, class_id=None): """ Track Parameters ---------- track_id : int Track id. centroid : tuple Centroid of the track pixel coordinate (x, y). bbox : tuple, list, numpy.ndarray Bounding box of the track. class_id : int Class label id. """ self.id = track_id self.class_id = class_id Track.count += 1 self.centroid = centroid self.bbox = bbox self.lost = 0 self.info = dict( max_score=0.0, lost=0, score=0.0, )
class Track: count = 0 def __init__(self, track_id, centroid, bbox=None, class_id=None): """ Track Parameters ---------- track_id : int Track id. centroid : tuple Centroid of the track pixel coordinate (x, y). bbox : tuple, list, numpy.ndarray Bounding box of the track. class_id : int Class label id. """ self.id = track_id self.class_id = class_id Track.count += 1 self.centroid = centroid self.bbox = bbox self.lost = 0 self.info = dict(max_score=0.0, lost=0, score=0.0)
""" Example of property documentation >>> f = Foo() >>> f.bar = 77 >>> f.bar 77 >>> Foo.bar.__doc__ 'The bar attribute' """ # BEGIN DOC_PROPERTY class Foo: @property def bar(self): '''The bar attribute''' return self.__dict__['bar'] @bar.setter def bar(self, value): self.__dict__['bar'] = value # END DOC_PROPERTY
""" Example of property documentation >>> f = Foo() >>> f.bar = 77 >>> f.bar 77 >>> Foo.bar.__doc__ 'The bar attribute' """ class Foo: @property def bar(self): """The bar attribute""" return self.__dict__['bar'] @bar.setter def bar(self, value): self.__dict__['bar'] = value
getinput = input() def main(): # import pdb; pdb.set_trace() res = [] split_input = list(str(getinput)) for i, _ in enumerate(split_input): if i == len(split_input) - 1: if split_input[i] == split_input[-1]: res.append(int(split_input[i])) else: if split_input[i] == split_input[i + 1]: res.append(int(split_input[i])) return sum(res) print(main())
getinput = input() def main(): res = [] split_input = list(str(getinput)) for (i, _) in enumerate(split_input): if i == len(split_input) - 1: if split_input[i] == split_input[-1]: res.append(int(split_input[i])) elif split_input[i] == split_input[i + 1]: res.append(int(split_input[i])) return sum(res) print(main())
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Composer CLI."""
"""Composer CLI."""
# # PySNMP MIB module H3C-SUBNET-VLAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-SUBNET-VLAN-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:23:59 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") h3cCommon, = mibBuilder.importSymbols("HUAWEI-3COM-OID-MIB", "h3cCommon") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Integer32, Gauge32, ObjectIdentity, Counter32, ModuleIdentity, iso, Counter64, TimeTicks, MibIdentifier, Bits, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Integer32", "Gauge32", "ObjectIdentity", "Counter32", "ModuleIdentity", "iso", "Counter64", "TimeTicks", "MibIdentifier", "Bits", "IpAddress") TextualConvention, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString") h3cSubnetVlan = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61)) h3cSubnetVlan.setRevisions(('2005-08-02 13:53',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: h3cSubnetVlan.setRevisionsDescriptions(('The initial revision of this MIB module.',)) if mibBuilder.loadTexts: h3cSubnetVlan.setLastUpdated('200508021353Z') if mibBuilder.loadTexts: h3cSubnetVlan.setOrganization('Huawei 3Com Technology Co., Ltd.') if mibBuilder.loadTexts: h3cSubnetVlan.setContactInfo('Platform Team Huawei 3Com Technology Co., Ltd Hai-Dian District Beijing P.R.China http://www.huawei-3com.com Zip:100085') if mibBuilder.loadTexts: h3cSubnetVlan.setDescription('This MIB contains the objects for managing the subnet-based vlan configurations.') h3cSubnetVlanObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1)) h3cSubnetVlanScalarObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1)) h3cSubnetNumAllVlan = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cSubnetNumAllVlan.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumAllVlan.setDescription('The maximum number of subnet that can be configured on all vlans.') h3cSubnetNumPerVlan = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cSubnetNumPerVlan.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumPerVlan.setDescription('The maximum number of subnet that can be configured on each vlan.') h3cSubnetNumAllPort = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cSubnetNumAllPort.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumAllPort.setDescription('The maximum number of subnet that can be applied to all ports.') h3cSubnetNumPerPort = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cSubnetNumPerPort.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumPerPort.setDescription('The maximum number of subnet that can be applied to each port.') h3cSubnetVlanTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2), ) if mibBuilder.loadTexts: h3cSubnetVlanTable.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanTable.setDescription('Subnet-based vlan configuration table.') h3cSubnetVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1), ).setIndexNames((0, "H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanVlanId"), (0, "H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanSubnetIndex")) if mibBuilder.loadTexts: h3cSubnetVlanEntry.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanEntry.setDescription('Subnet-based vlan configuration entry.') h3cSubnetVlanVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cSubnetVlanVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanVlanId.setDescription('Vlan id.') h3cSubnetVlanSubnetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cSubnetVlanSubnetIndex.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanSubnetIndex.setDescription('The subnet index value of a row in this table is from zero to the value of h3cSubnetNumPerVlan subtracting one.') h3cSubnetVlanVlanIpAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 3), InetAddressType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cSubnetVlanVlanIpAddressType.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanVlanIpAddressType.setDescription('There are two kinds of ip address supported by vlan. One is ipv4, which is 32 bits. The other is ipv6, which is 128 bits.') h3cSubnetVlanIpAddressValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 4), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cSubnetVlanIpAddressValue.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanIpAddressValue.setDescription('The ip address of the configured subnet on vlan, including ipv4 and ipv6.') h3cSubnetVlanNetMaskValue = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 5), InetAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cSubnetVlanNetMaskValue.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanNetMaskValue.setDescription('The net mask of the configured subnet on vlan, including ipv4 and ipv6.') h3cSubnetVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cSubnetVlanRowStatus.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanRowStatus.setDescription('The row status of this table.') h3cSubnetVlanPortCreateTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3), ) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateTable.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateTable.setDescription('Subnet-based vlan port table. Add all subnet on vlan whose vlan id is h3cSubnetVlanPortInfoVlanId into port at a draught. All of the subnet information in this port is from the h3cSubnetVlanTable above, with the value of h3cSubnetVlanPortInfoVlanId as an index, which is h3cSubnetVlanVlanId in h3cSubnetVlanTable.') h3cSubnetVlanPortCreateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1), ).setIndexNames((0, "H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanPortCreateIndex"), (0, "H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanPortCreateVlanId")) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateEntry.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateEntry.setDescription('Subnet-based vlan port create entry.') h3cSubnetVlanPortCreateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateIndex.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateIndex.setDescription('The port index.') h3cSubnetVlanPortCreateVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 2), Integer32()) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateVlanId.setDescription('The subnet-based vlan id. h3cSubnetVlanPortCreateVlanId refers to h3cSubnetVlanVlanId in h3cSubnetVlanTable. If h3cSubnetVlanPortCreateVlanId has no corresponding entry in h3cSubnetVlanTable, set operation will fail.') h3cSubnetVlanPortInfoVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cSubnetVlanPortInfoVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortInfoVlanId.setDescription('This vlaue is the same as the value of h3cSubnetVlanPortCreateVlanId index. All of the subnet information in this port, is described on vlan, whose vlan id is the value of h3cSubnetVlanPortInfoVlanId. The vlan id of vlan including subnet information can be gotten here. The subnet information can be gotten in the h3cSubnetVlanTable above.') h3cSubnetVlanPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: h3cSubnetVlanPortRowStatus.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortRowStatus.setDescription('The row status of this table.') h3cSubnetVlanConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2)) h3cSubnetVlanCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 1)) h3cSubnetVlanCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 1, 1)).setObjects(("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanScalarObjectGroup"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanSubnetGroup"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanPortCreateGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cSubnetVlanCompliance = h3cSubnetVlanCompliance.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanCompliance.setDescription('The compliance statement for subnet vlan MIB.') h3cSubnetVlanGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2)) h3cSubnetVlanScalarObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 1)).setObjects(("H3C-SUBNET-VLAN-MIB", "h3cSubnetNumAllVlan"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetNumPerVlan"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetNumAllPort"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetNumPerPort")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cSubnetVlanScalarObjectGroup = h3cSubnetVlanScalarObjectGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanScalarObjectGroup.setDescription('A group of scalar objects describing the maximum number.') h3cSubnetVlanSubnetGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 2)).setObjects(("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanVlanIpAddressType"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanIpAddressValue"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanNetMaskValue"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cSubnetVlanSubnetGroup = h3cSubnetVlanSubnetGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanSubnetGroup.setDescription('A group of subnet vlan subnet.') h3cSubnetVlanPortCreateGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 3)).setObjects(("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanPortInfoVlanId"), ("H3C-SUBNET-VLAN-MIB", "h3cSubnetVlanPortRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cSubnetVlanPortCreateGroup = h3cSubnetVlanPortCreateGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateGroup.setDescription('A group of subnet vlan port create table.') mibBuilder.exportSymbols("H3C-SUBNET-VLAN-MIB", h3cSubnetVlanScalarObjectGroup=h3cSubnetVlanScalarObjectGroup, h3cSubnetVlan=h3cSubnetVlan, h3cSubnetVlanSubnetGroup=h3cSubnetVlanSubnetGroup, h3cSubnetVlanSubnetIndex=h3cSubnetVlanSubnetIndex, h3cSubnetNumPerVlan=h3cSubnetNumPerVlan, h3cSubnetVlanScalarObjects=h3cSubnetVlanScalarObjects, h3cSubnetVlanNetMaskValue=h3cSubnetVlanNetMaskValue, h3cSubnetVlanCompliances=h3cSubnetVlanCompliances, h3cSubnetVlanPortCreateEntry=h3cSubnetVlanPortCreateEntry, h3cSubnetVlanObjects=h3cSubnetVlanObjects, h3cSubnetNumAllVlan=h3cSubnetNumAllVlan, h3cSubnetVlanPortCreateTable=h3cSubnetVlanPortCreateTable, h3cSubnetVlanVlanIpAddressType=h3cSubnetVlanVlanIpAddressType, h3cSubnetNumAllPort=h3cSubnetNumAllPort, h3cSubnetVlanCompliance=h3cSubnetVlanCompliance, h3cSubnetVlanPortCreateVlanId=h3cSubnetVlanPortCreateVlanId, h3cSubnetNumPerPort=h3cSubnetNumPerPort, h3cSubnetVlanRowStatus=h3cSubnetVlanRowStatus, h3cSubnetVlanVlanId=h3cSubnetVlanVlanId, h3cSubnetVlanTable=h3cSubnetVlanTable, h3cSubnetVlanPortCreateGroup=h3cSubnetVlanPortCreateGroup, h3cSubnetVlanPortInfoVlanId=h3cSubnetVlanPortInfoVlanId, PYSNMP_MODULE_ID=h3cSubnetVlan, h3cSubnetVlanPortRowStatus=h3cSubnetVlanPortRowStatus, h3cSubnetVlanPortCreateIndex=h3cSubnetVlanPortCreateIndex, h3cSubnetVlanGroups=h3cSubnetVlanGroups, h3cSubnetVlanEntry=h3cSubnetVlanEntry, h3cSubnetVlanConformance=h3cSubnetVlanConformance, h3cSubnetVlanIpAddressValue=h3cSubnetVlanIpAddressValue)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint') (h3c_common,) = mibBuilder.importSymbols('HUAWEI-3COM-OID-MIB', 'h3cCommon') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, integer32, gauge32, object_identity, counter32, module_identity, iso, counter64, time_ticks, mib_identifier, bits, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Integer32', 'Gauge32', 'ObjectIdentity', 'Counter32', 'ModuleIdentity', 'iso', 'Counter64', 'TimeTicks', 'MibIdentifier', 'Bits', 'IpAddress') (textual_convention, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString') h3c_subnet_vlan = module_identity((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61)) h3cSubnetVlan.setRevisions(('2005-08-02 13:53',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: h3cSubnetVlan.setRevisionsDescriptions(('The initial revision of this MIB module.',)) if mibBuilder.loadTexts: h3cSubnetVlan.setLastUpdated('200508021353Z') if mibBuilder.loadTexts: h3cSubnetVlan.setOrganization('Huawei 3Com Technology Co., Ltd.') if mibBuilder.loadTexts: h3cSubnetVlan.setContactInfo('Platform Team Huawei 3Com Technology Co., Ltd Hai-Dian District Beijing P.R.China http://www.huawei-3com.com Zip:100085') if mibBuilder.loadTexts: h3cSubnetVlan.setDescription('This MIB contains the objects for managing the subnet-based vlan configurations.') h3c_subnet_vlan_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1)) h3c_subnet_vlan_scalar_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1)) h3c_subnet_num_all_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cSubnetNumAllVlan.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumAllVlan.setDescription('The maximum number of subnet that can be configured on all vlans.') h3c_subnet_num_per_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cSubnetNumPerVlan.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumPerVlan.setDescription('The maximum number of subnet that can be configured on each vlan.') h3c_subnet_num_all_port = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cSubnetNumAllPort.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumAllPort.setDescription('The maximum number of subnet that can be applied to all ports.') h3c_subnet_num_per_port = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cSubnetNumPerPort.setStatus('current') if mibBuilder.loadTexts: h3cSubnetNumPerPort.setDescription('The maximum number of subnet that can be applied to each port.') h3c_subnet_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2)) if mibBuilder.loadTexts: h3cSubnetVlanTable.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanTable.setDescription('Subnet-based vlan configuration table.') h3c_subnet_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1)).setIndexNames((0, 'H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanVlanId'), (0, 'H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanSubnetIndex')) if mibBuilder.loadTexts: h3cSubnetVlanEntry.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanEntry.setDescription('Subnet-based vlan configuration entry.') h3c_subnet_vlan_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 1), integer32()) if mibBuilder.loadTexts: h3cSubnetVlanVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanVlanId.setDescription('Vlan id.') h3c_subnet_vlan_subnet_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 2), integer32()) if mibBuilder.loadTexts: h3cSubnetVlanSubnetIndex.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanSubnetIndex.setDescription('The subnet index value of a row in this table is from zero to the value of h3cSubnetNumPerVlan subtracting one.') h3c_subnet_vlan_vlan_ip_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 3), inet_address_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cSubnetVlanVlanIpAddressType.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanVlanIpAddressType.setDescription('There are two kinds of ip address supported by vlan. One is ipv4, which is 32 bits. The other is ipv6, which is 128 bits.') h3c_subnet_vlan_ip_address_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 4), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cSubnetVlanIpAddressValue.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanIpAddressValue.setDescription('The ip address of the configured subnet on vlan, including ipv4 and ipv6.') h3c_subnet_vlan_net_mask_value = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 5), inet_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cSubnetVlanNetMaskValue.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanNetMaskValue.setDescription('The net mask of the configured subnet on vlan, including ipv4 and ipv6.') h3c_subnet_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 2, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cSubnetVlanRowStatus.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanRowStatus.setDescription('The row status of this table.') h3c_subnet_vlan_port_create_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3)) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateTable.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateTable.setDescription('Subnet-based vlan port table. Add all subnet on vlan whose vlan id is h3cSubnetVlanPortInfoVlanId into port at a draught. All of the subnet information in this port is from the h3cSubnetVlanTable above, with the value of h3cSubnetVlanPortInfoVlanId as an index, which is h3cSubnetVlanVlanId in h3cSubnetVlanTable.') h3c_subnet_vlan_port_create_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1)).setIndexNames((0, 'H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanPortCreateIndex'), (0, 'H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanPortCreateVlanId')) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateEntry.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateEntry.setDescription('Subnet-based vlan port create entry.') h3c_subnet_vlan_port_create_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 1), integer32()) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateIndex.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateIndex.setDescription('The port index.') h3c_subnet_vlan_port_create_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 2), integer32()) if mibBuilder.loadTexts: h3cSubnetVlanPortCreateVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateVlanId.setDescription('The subnet-based vlan id. h3cSubnetVlanPortCreateVlanId refers to h3cSubnetVlanVlanId in h3cSubnetVlanTable. If h3cSubnetVlanPortCreateVlanId has no corresponding entry in h3cSubnetVlanTable, set operation will fail.') h3c_subnet_vlan_port_info_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cSubnetVlanPortInfoVlanId.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortInfoVlanId.setDescription('This vlaue is the same as the value of h3cSubnetVlanPortCreateVlanId index. All of the subnet information in this port, is described on vlan, whose vlan id is the value of h3cSubnetVlanPortInfoVlanId. The vlan id of vlan including subnet information can be gotten here. The subnet information can be gotten in the h3cSubnetVlanTable above.') h3c_subnet_vlan_port_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 1, 3, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: h3cSubnetVlanPortRowStatus.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortRowStatus.setDescription('The row status of this table.') h3c_subnet_vlan_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2)) h3c_subnet_vlan_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 1)) h3c_subnet_vlan_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 1, 1)).setObjects(('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanScalarObjectGroup'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanSubnetGroup'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanPortCreateGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_subnet_vlan_compliance = h3cSubnetVlanCompliance.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanCompliance.setDescription('The compliance statement for subnet vlan MIB.') h3c_subnet_vlan_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2)) h3c_subnet_vlan_scalar_object_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 1)).setObjects(('H3C-SUBNET-VLAN-MIB', 'h3cSubnetNumAllVlan'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetNumPerVlan'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetNumAllPort'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetNumPerPort')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_subnet_vlan_scalar_object_group = h3cSubnetVlanScalarObjectGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanScalarObjectGroup.setDescription('A group of scalar objects describing the maximum number.') h3c_subnet_vlan_subnet_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 2)).setObjects(('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanVlanIpAddressType'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanIpAddressValue'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanNetMaskValue'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_subnet_vlan_subnet_group = h3cSubnetVlanSubnetGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanSubnetGroup.setDescription('A group of subnet vlan subnet.') h3c_subnet_vlan_port_create_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 61, 2, 2, 3)).setObjects(('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanPortInfoVlanId'), ('H3C-SUBNET-VLAN-MIB', 'h3cSubnetVlanPortRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_subnet_vlan_port_create_group = h3cSubnetVlanPortCreateGroup.setStatus('current') if mibBuilder.loadTexts: h3cSubnetVlanPortCreateGroup.setDescription('A group of subnet vlan port create table.') mibBuilder.exportSymbols('H3C-SUBNET-VLAN-MIB', h3cSubnetVlanScalarObjectGroup=h3cSubnetVlanScalarObjectGroup, h3cSubnetVlan=h3cSubnetVlan, h3cSubnetVlanSubnetGroup=h3cSubnetVlanSubnetGroup, h3cSubnetVlanSubnetIndex=h3cSubnetVlanSubnetIndex, h3cSubnetNumPerVlan=h3cSubnetNumPerVlan, h3cSubnetVlanScalarObjects=h3cSubnetVlanScalarObjects, h3cSubnetVlanNetMaskValue=h3cSubnetVlanNetMaskValue, h3cSubnetVlanCompliances=h3cSubnetVlanCompliances, h3cSubnetVlanPortCreateEntry=h3cSubnetVlanPortCreateEntry, h3cSubnetVlanObjects=h3cSubnetVlanObjects, h3cSubnetNumAllVlan=h3cSubnetNumAllVlan, h3cSubnetVlanPortCreateTable=h3cSubnetVlanPortCreateTable, h3cSubnetVlanVlanIpAddressType=h3cSubnetVlanVlanIpAddressType, h3cSubnetNumAllPort=h3cSubnetNumAllPort, h3cSubnetVlanCompliance=h3cSubnetVlanCompliance, h3cSubnetVlanPortCreateVlanId=h3cSubnetVlanPortCreateVlanId, h3cSubnetNumPerPort=h3cSubnetNumPerPort, h3cSubnetVlanRowStatus=h3cSubnetVlanRowStatus, h3cSubnetVlanVlanId=h3cSubnetVlanVlanId, h3cSubnetVlanTable=h3cSubnetVlanTable, h3cSubnetVlanPortCreateGroup=h3cSubnetVlanPortCreateGroup, h3cSubnetVlanPortInfoVlanId=h3cSubnetVlanPortInfoVlanId, PYSNMP_MODULE_ID=h3cSubnetVlan, h3cSubnetVlanPortRowStatus=h3cSubnetVlanPortRowStatus, h3cSubnetVlanPortCreateIndex=h3cSubnetVlanPortCreateIndex, h3cSubnetVlanGroups=h3cSubnetVlanGroups, h3cSubnetVlanEntry=h3cSubnetVlanEntry, h3cSubnetVlanConformance=h3cSubnetVlanConformance, h3cSubnetVlanIpAddressValue=h3cSubnetVlanIpAddressValue)
class User: # create the class attributes n_active = 0 users = [] # create the __init__ method def __init__(self, active, user_name): self.active = active self.user_name = user_name
class User: n_active = 0 users = [] def __init__(self, active, user_name): self.active = active self.user_name = user_name
class DatabaseError(Exception): pass class GameError(Exception): pass
class Databaseerror(Exception): pass class Gameerror(Exception): pass
# -*- coding: utf-8 -*- """ compat.py ~~~~~~~~~ Defines cross-platform functions and classes needed to achieve proper functionality. """ pass
""" compat.py ~~~~~~~~~ Defines cross-platform functions and classes needed to achieve proper functionality. """ pass
lst = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) def sequential__search(lst_, num): for i in lst_: if i == num: print() print(i) return print() print() print(f"{num} does not exist in the given list") print() return False sequential__search(lst, 10)
lst = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) def sequential__search(lst_, num): for i in lst_: if i == num: print() print(i) return print() print() print(f'{num} does not exist in the given list') print() return False sequential__search(lst, 10)
""" Geological modelling classes and functions """
""" Geological modelling classes and functions """
# -*- coding: utf-8 -*- dummy_log = """commit 6b635e74901e6e4c264534c0f05dc0498e0f5eb6 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:45:38 2020 +0530 Latest commit commit 9a05e2014694f1633a17ed84eab00f577d0a51f2 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:45:32 2020 +0530 Ok last I promise commit 162bf31bb1507853e7fc847b72aab55873b77c41 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:45:19 2020 +0530 And another one commit a61a4f967ca39738497950f10db611f79d01e3f9 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:45:13 2020 +0530 Another one maybe commit 7d862ae82b19fca694eeb002ab2e2559ff5c653f Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:44:52 2020 +0530 How many commits for a large log? commit 4255ea9ca0382fc3ef32755312cc4988e06ad7c7 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:44:33 2020 +0530 Third commit commit 12108655e8dd0f6f2ec56729fe55e64d7fc05775 Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:44:29 2020 +0530 Second commit commit 635aa70d66f78bdcd2ebe22350c30d9a6020904b Author: Vinayak Mehta <vmehta94@gmail.com> Date: Tue Apr 14 15:44:21 2020 +0530 First commit """ def get_log(): return dummy_log dummy_status = """On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) """ def get_status(): return dummy_status commit_message_marker = """ # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Changes to be committed: # new file: a.txt # """ def get_commit_message_marker(): return commit_message_marker
dummy_log = 'commit 6b635e74901e6e4c264534c0f05dc0498e0f5eb6\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:45:38 2020 +0530\n\n Latest commit\n\ncommit 9a05e2014694f1633a17ed84eab00f577d0a51f2\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:45:32 2020 +0530\n\n Ok last I promise\n\ncommit 162bf31bb1507853e7fc847b72aab55873b77c41\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:45:19 2020 +0530\n\n And another one\n\ncommit a61a4f967ca39738497950f10db611f79d01e3f9\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:45:13 2020 +0530\n\n Another one maybe\n\ncommit 7d862ae82b19fca694eeb002ab2e2559ff5c653f\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:44:52 2020 +0530\n\n How many commits for a large log?\n\ncommit 4255ea9ca0382fc3ef32755312cc4988e06ad7c7\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:44:33 2020 +0530\n\n Third commit\n\ncommit 12108655e8dd0f6f2ec56729fe55e64d7fc05775\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:44:29 2020 +0530\n\n Second commit\n\ncommit 635aa70d66f78bdcd2ebe22350c30d9a6020904b\nAuthor: Vinayak Mehta <vmehta94@gmail.com>\nDate: Tue Apr 14 15:44:21 2020 +0530\n\n First commit\n' def get_log(): return dummy_log dummy_status = 'On branch master\nChanges to be committed:\n (use "git reset HEAD <file>..." to unstage)\n\n' def get_status(): return dummy_status commit_message_marker = "\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n# On branch master\n# Changes to be committed:\n# new file: a.txt\n#\n" def get_commit_message_marker(): return commit_message_marker
def is_credit_card_valid(number): length = len(number) if length % 2 == 0: return False new_number = '' rev = number[::-1] for index in range(0,length): if index % 2 == 0: new_number += rev[index] else: new_number += (str)((int)(rev[index]) + (int)(rev[index])) return sum(map(int, list(new_number))) % 10 == 0 def main(): print(is_credit_card_valid('79927398713')) # Expected output : VALID (True) print(is_credit_card_valid('79927398715')) # Expected output : INVALID (False) if __name__ == '__main__': main()
def is_credit_card_valid(number): length = len(number) if length % 2 == 0: return False new_number = '' rev = number[::-1] for index in range(0, length): if index % 2 == 0: new_number += rev[index] else: new_number += str(int(rev[index]) + int(rev[index])) return sum(map(int, list(new_number))) % 10 == 0 def main(): print(is_credit_card_valid('79927398713')) print(is_credit_card_valid('79927398715')) if __name__ == '__main__': main()
""" Copyright (c) 2013-2015, Fionn Kelleher All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ # ---------------------------------------------------------------------- # # https://github.com/aidenwallis/irc-message-ts/blob/master/src/types.ts # translated to python class IRCMessage: def __init__(self, command: str, prefix: str, tags: dict, params: list, raw: str, param: str, trailing: str): """A class to store a parsed IRC message""" self.command = command self.prefix = prefix self.tags = tags self.params = params self.raw = raw self.param = param self.trailing = trailing def __str__(self): # yes, I know, I know out = "" out += ("{\n") out += (f' "command": "{self.command}"\n') out += (f' "param": "{self.param}"\n') out += (f' "params": {self.params}\n') out += (f' "prefix": "{self.prefix}"\n') out += (f' "raw": "{self.raw}"\n') out += (f' "tags": {self.tags}\n') out += (f' "trailing": "{self.trailing}"\n') out += ('}') return out # I added this for conveinece @staticmethod def empty(): """All defalt peramiters""" return IRCMessage(command="", prefix="", tags={}, params=[], raw="", param="", trailing="") # ----------------------------------------------------------------------- # # https://github.com/aidenwallis/irc-message-ts/blob/master/src/parser.ts # translated to python # added this because in js when you try to get something from an array, # it doesnt throw an error for out of index, but in python it does def getLetterAtIndexWithoutError(string, index: int, alt=None): try: return string[index] except (IndexError, KeyError): return alt def parseIRC(line: str) -> IRCMessage or None: """Takes in a raw IRC string and breaks it down into its basic components. Returns `None` if there is an invalid IRC message otherwise, returns an `IRCMessage` with the coresponding values """ message = IRCMessage.empty() # all defalt values message.raw = line # position and nextspace are used by the parser as a reference. position = 0 nextspace = 0 # The first thing we check for is IRCv3.2 message tags. if line.startswith("@"): nextspace = line.find(" ") if nextspace == -1: # malformed IRC message return None # Tags are split by a semi colon. rawTags = line[1 : nextspace].split(";") i = 0 while i < len(rawTags): # Tags delimited by an equals sign are key=value tags. # If there's no equals, we assign the tag a value of true. tag = rawTags[i] pair = tag.split("=") message.tags[pair[0]] = getLetterAtIndexWithoutError(pair, 1, alt=True) i += 1 position = nextspace + 1 # Skip any trailing whitespace. while getLetterAtIndexWithoutError(line, position) == " ": position += 1 # Extract the message's prefix if present. Prefixes are prepended # with a colon. if getLetterAtIndexWithoutError(line, position) == ":": nextspace = line.find(" ", position) # If there's nothing after the prefix, deem this message to be # malformed. if nextspace == -1: # Malformed IRC message. return None message.prefix = line[position + 1: nextspace] position = nextspace + 1 # Skip any trailing whitespace. while getLetterAtIndexWithoutError(line, position) == " ": position += 1 nextspace = line.find(" ", position) # If there's no more whitespace left, extract everything from the # current position to the end of the string as the command. if nextspace == -1: if len(line) > position: message.command = line[position:] return message return None # Else, the command is the current position up to the next space. After # that, we expect some parameters. message.command = line[position:nextspace] position = nextspace + 1 # Skip any trailing whitespace. while getLetterAtIndexWithoutError(line, position) == " ": position += 1 while position < len(line): nextspace = line.find(" ", position) # If the character is a colon, we've got a trailing parameter. # At this point, there are no extra params, so we push everything # from after the colon to the end of the string, to the params array # and break out of the loop. if getLetterAtIndexWithoutError(line, position) == ":": message.params.append(line[position + 1:]) break # If we still have some whitespace... if nextspace != -1: # Push whatever's between the current position and the next # space to the params array. message.params.append(line[position: nextspace]) position = nextspace + 1 # Skip any trailing whitespace and continue looping. while getLetterAtIndexWithoutError(line, position) == " ": position += 1 continue # If we don't have any more whitespace and the param isn't trailing, # push everything remaining to the params array. if nextspace == -1: message.params.append(line[position:]) break # Add the param property if len(message.params) > 0: message.param = message.params[0] # Add the trailing param if len(message.params) > 1: message.trailing = message.params[len(message.params) - 1] return message
""" Copyright (c) 2013-2015, Fionn Kelleher All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ class Ircmessage: def __init__(self, command: str, prefix: str, tags: dict, params: list, raw: str, param: str, trailing: str): """A class to store a parsed IRC message""" self.command = command self.prefix = prefix self.tags = tags self.params = params self.raw = raw self.param = param self.trailing = trailing def __str__(self): out = '' out += '{\n' out += f' "command": "{self.command}"\n' out += f' "param": "{self.param}"\n' out += f' "params": {self.params}\n' out += f' "prefix": "{self.prefix}"\n' out += f' "raw": "{self.raw}"\n' out += f' "tags": {self.tags}\n' out += f' "trailing": "{self.trailing}"\n' out += '}' return out @staticmethod def empty(): """All defalt peramiters""" return irc_message(command='', prefix='', tags={}, params=[], raw='', param='', trailing='') def get_letter_at_index_without_error(string, index: int, alt=None): try: return string[index] except (IndexError, KeyError): return alt def parse_irc(line: str) -> IRCMessage or None: """Takes in a raw IRC string and breaks it down into its basic components. Returns `None` if there is an invalid IRC message otherwise, returns an `IRCMessage` with the coresponding values """ message = IRCMessage.empty() message.raw = line position = 0 nextspace = 0 if line.startswith('@'): nextspace = line.find(' ') if nextspace == -1: return None raw_tags = line[1:nextspace].split(';') i = 0 while i < len(rawTags): tag = rawTags[i] pair = tag.split('=') message.tags[pair[0]] = get_letter_at_index_without_error(pair, 1, alt=True) i += 1 position = nextspace + 1 while get_letter_at_index_without_error(line, position) == ' ': position += 1 if get_letter_at_index_without_error(line, position) == ':': nextspace = line.find(' ', position) if nextspace == -1: return None message.prefix = line[position + 1:nextspace] position = nextspace + 1 while get_letter_at_index_without_error(line, position) == ' ': position += 1 nextspace = line.find(' ', position) if nextspace == -1: if len(line) > position: message.command = line[position:] return message return None message.command = line[position:nextspace] position = nextspace + 1 while get_letter_at_index_without_error(line, position) == ' ': position += 1 while position < len(line): nextspace = line.find(' ', position) if get_letter_at_index_without_error(line, position) == ':': message.params.append(line[position + 1:]) break if nextspace != -1: message.params.append(line[position:nextspace]) position = nextspace + 1 while get_letter_at_index_without_error(line, position) == ' ': position += 1 continue if nextspace == -1: message.params.append(line[position:]) break if len(message.params) > 0: message.param = message.params[0] if len(message.params) > 1: message.trailing = message.params[len(message.params) - 1] return message
""" Templie exceptions """ class TemplieException(Exception): def __init__(self, message): super().__init__('ERROR: {}'.format(message)) class DslSyntaxError(TemplieException): @classmethod def get_error(cls, line): return cls('invalid line: {}'.format(line.strip('\n'))) class MissingSection(TemplieException): @classmethod def get_error(cls, section): return cls('Input file does not contain [{}] section'.format(section)) class MissingParameter(TemplieException): @classmethod def get_error(cls, name, section): return cls('Missing {} in section [{}]'.format(name, section)) class WrongValue(TemplieException): @classmethod def get_error(cls, name, correct_value): return cls('Wrong value of the parameter {}: it must be {}'.format(name, correct_value)) class ValidationError(TemplieException): @classmethod def get_error(cls, message): return cls(message) class ParseException(Exception): pass
""" Templie exceptions """ class Templieexception(Exception): def __init__(self, message): super().__init__('ERROR: {}'.format(message)) class Dslsyntaxerror(TemplieException): @classmethod def get_error(cls, line): return cls('invalid line: {}'.format(line.strip('\n'))) class Missingsection(TemplieException): @classmethod def get_error(cls, section): return cls('Input file does not contain [{}] section'.format(section)) class Missingparameter(TemplieException): @classmethod def get_error(cls, name, section): return cls('Missing {} in section [{}]'.format(name, section)) class Wrongvalue(TemplieException): @classmethod def get_error(cls, name, correct_value): return cls('Wrong value of the parameter {}: it must be {}'.format(name, correct_value)) class Validationerror(TemplieException): @classmethod def get_error(cls, message): return cls(message) class Parseexception(Exception): pass
"""Const for Velbus.""" DOMAIN = "velbus" CONF_INTERFACE = "interface" CONF_MEMO_TEXT = "memo_text" SERVICE_SCAN = "scan" SERVICE_SYNC = "sync_clock" SERVICE_SET_MEMO_TEXT = "set_memo_text"
"""Const for Velbus.""" domain = 'velbus' conf_interface = 'interface' conf_memo_text = 'memo_text' service_scan = 'scan' service_sync = 'sync_clock' service_set_memo_text = 'set_memo_text'
"""A test that verifies documenting a namespace of functions.""" def _min(integers): """Returns the minimum of given elements. Args: integers: A list of integers. Must not be empty. Returns: The minimum integer in the given list. """ _ignore = [integers] return 42 def _assert_non_empty(some_list, other_list): """Asserts the two given lists are not empty. Args: some_list: The first list other_list: The second list """ _ignore = [some_list, other_list] fail("Not implemented") def _join_strings(strings, delimiter = ", "): """Joins the given strings with a delimiter. Args: strings: A list of strings to join. delimiter: The delimiter to use Returns: The joined string. """ _ignore = [strings, delimiter] return "" my_namespace = struct( dropped_field = "Note this field should not be documented", assert_non_empty = _assert_non_empty, min = _min, join_strings = _join_strings, )
"""A test that verifies documenting a namespace of functions.""" def _min(integers): """Returns the minimum of given elements. Args: integers: A list of integers. Must not be empty. Returns: The minimum integer in the given list. """ _ignore = [integers] return 42 def _assert_non_empty(some_list, other_list): """Asserts the two given lists are not empty. Args: some_list: The first list other_list: The second list """ _ignore = [some_list, other_list] fail('Not implemented') def _join_strings(strings, delimiter=', '): """Joins the given strings with a delimiter. Args: strings: A list of strings to join. delimiter: The delimiter to use Returns: The joined string. """ _ignore = [strings, delimiter] return '' my_namespace = struct(dropped_field='Note this field should not be documented', assert_non_empty=_assert_non_empty, min=_min, join_strings=_join_strings)
BNB_BASE_URL = "https://www.bnb.bg/Statistics/StExternalSector/StExchangeRates/StERForeignCurrencies/index.htm?" BNB_DATE_FORMAT = "%d.%m.%Y" BNB_SPLIT_BY_MONTHS = 3 BNB_CSV_HEADER_ROWS = 2 NAP_DIGIT_PRECISION = "0.01" NAP_DATE_FORMAT = "%Y-%m-%d" NAP_DIVIDEND_TAX = "0.05" RECEIVED_DIVIDEND_ACTIVITY_TYPES = ["DIV", "DIVIDEND", "DIVCGL", "DIVCGS", "DIVROC", "DIVTXEX"] TAX_DIVIDEND_ACTIVITY_TYPES = ["DIVNRA", "DIVFT", "DIVTW"]
bnb_base_url = 'https://www.bnb.bg/Statistics/StExternalSector/StExchangeRates/StERForeignCurrencies/index.htm?' bnb_date_format = '%d.%m.%Y' bnb_split_by_months = 3 bnb_csv_header_rows = 2 nap_digit_precision = '0.01' nap_date_format = '%Y-%m-%d' nap_dividend_tax = '0.05' received_dividend_activity_types = ['DIV', 'DIVIDEND', 'DIVCGL', 'DIVCGS', 'DIVROC', 'DIVTXEX'] tax_dividend_activity_types = ['DIVNRA', 'DIVFT', 'DIVTW']
class Matcher: def matches(self, arg): pass class Any(Matcher): def __init__(self, wanted_type=None): self.wanted_type = wanted_type def matches(self, arg): if self.wanted_type: return isinstance(arg, self.wanted_type) else: return True def __repr__(self): return "<Any: %s>" % self.wanted_type class Contains(Matcher): def __init__(self, sub): self.sub = sub def matches(self, arg): if not hasattr(arg, 'find'): return return self.sub and len(self.sub) > 0 and arg.find(self.sub) > -1 def __repr__(self): return "<Contains: '%s'>" % self.sub
class Matcher: def matches(self, arg): pass class Any(Matcher): def __init__(self, wanted_type=None): self.wanted_type = wanted_type def matches(self, arg): if self.wanted_type: return isinstance(arg, self.wanted_type) else: return True def __repr__(self): return '<Any: %s>' % self.wanted_type class Contains(Matcher): def __init__(self, sub): self.sub = sub def matches(self, arg): if not hasattr(arg, 'find'): return return self.sub and len(self.sub) > 0 and (arg.find(self.sub) > -1) def __repr__(self): return "<Contains: '%s'>" % self.sub
print("The elementary reactions are:") print(" Reaction 1: the birth of susceptible individuals with propensity b") print(" Reaction 2: their death with propensity mu_S*S(t)") print(" Reaction 3: their infection with propensity beta * S(t)*I(t)") print(" Reaction 4: the death of infected individuals with propensity mu_I*I(t) with mu_I>mu_S") print(" Reaction 5: the recovery of infected individuals with rate alpha * I(t)") print(" Reaction 6: the death of recovered individuals with propensity mu_R*R(t), with mu_R<mu_I.")
print('The elementary reactions are:') print(' Reaction 1: the birth of susceptible individuals with propensity b') print(' Reaction 2: their death with propensity mu_S*S(t)') print(' Reaction 3: their infection with propensity beta * S(t)*I(t)') print(' Reaction 4: the death of infected individuals with propensity mu_I*I(t) with mu_I>mu_S') print(' Reaction 5: the recovery of infected individuals with rate alpha * I(t)') print(' Reaction 6: the death of recovered individuals with propensity mu_R*R(t), with mu_R<mu_I.')
def baz(x): if x < 0: baz(x) else: baz(x)
def baz(x): if x < 0: baz(x) else: baz(x)
TABLES = {'Network': [['f_name', 'TEXT'], ['scenariodate', 'TEXT'], ['stopthresholdspeed', 'TEXT'], ['growth', 'TEXT'], ['defwidth', 'TEXT'], ['pedspeed', 'TEXT'], ['phf', 'TEXT'], ['vehlength', 'TEXT'], ['criticalmergegap', 'TEXT'], ['hv', 'TEXT'], ['followuptime', 'TEXT'], ['utdfversion', 'TEXT'], ['dontwalk', 'TEXT'], ['allredtime', 'TEXT'], ['losttimeadjust', 'TEXT'], ['walk', 'TEXT'], ['defflow', 'TEXT'], ['metric', 'TEXT'], ['criticalgap', 'TEXT'], ['heavyvehlength', 'TEXT'], ['yellowtime', 'TEXT'], ['scenariotime', 'TEXT']], 'Nodes': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['type', 'TEXT'], ['x', 'TEXT'], ['y', 'TEXT'], ['z', 'TEXT'], ['description', 'TEXT'], ['cbd', 'TEXT'], ['inside_radius', 'TEXT'], ['outside_radius', 'TEXT'], ['roundabout_lanes', 'TEXT'], ['circle_speed', 'TEXT']], 'Links': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['median', 'TEXT'], ['name', 'TEXT'], ['time', 'TEXT'], ['grade', 'TEXT'], ['curve_pt_x', 'TEXT'], ['mandatory_distance', 'TEXT'], ['up_id', 'TEXT'], ['speed', 'TEXT'], ['lanes', 'TEXT'], ['link_is_hidden', 'TEXT'], ['street_name_is_hidden', 'TEXT'], ['crosswalk_width', 'TEXT'], ['distance', 'TEXT'], ['twltl', 'TEXT'], ['positioning_distance2', 'TEXT'], ['curve_pt_y', 'TEXT'], ['mandatory_distance2', 'TEXT'], ['offset', 'TEXT'], ['positioning_distance', 'TEXT'], ['curve_pt_z', 'TEXT']], 'Lanes': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['lane_group_flow', 'TEXT'], ['storage', 'TEXT'], ['switchphase', 'TEXT'], ['alignment', 'TEXT'], ['right_radius', 'TEXT'], ['bicycles', 'TEXT'], ['taper', 'TEXT'], ['detectsize1', 'TEXT'], ['heavyvehicles', 'TEXT'], ['turning_speed', 'TEXT'], ['up_node', 'TEXT'], ['right_channeled', 'TEXT'], ['detecttype1', 'TEXT'], ['satflowrtor', 'TEXT'], ['stlanes', 'TEXT'], ['midblock', 'TEXT'], ['detectphase4', 'TEXT'], ['detectqueue1', 'TEXT'], ['detectdelay1', 'TEXT'], ['detectpos2', 'TEXT'], ['busstops', 'TEXT'], ['enter_blocked', 'TEXT'], ['traffic_in_shared_lane', 'TEXT'], ['exit_lanes', 'TEXT'], ['satflow', 'TEXT'], ['detectphase1', 'TEXT'], ['numdetects', 'TEXT'], ['traveltime', 'TEXT'], ['distance', 'TEXT'], ['permphase1', 'TEXT'], ['shared', 'TEXT'], ['phase1', 'TEXT'], ['grade', 'TEXT'], ['width', 'TEXT'], ['allow_rtor', 'TEXT'], ['add_lanes', 'TEXT'], ['lost_time_adjust', 'TEXT'], ['speed', 'TEXT'], ['peds', 'TEXT'], ['detectextend2', 'TEXT'], ['firstdetect', 'TEXT'], ['lanes', 'TEXT'], ['detectsize2', 'TEXT'], ['growth', 'TEXT'], ['detecttype2', 'TEXT'], ['detectphase2', 'TEXT'], ['volume', 'TEXT'], ['signcontrol', 'TEXT'], ['detectextend1', 'TEXT'], ['detectphase3', 'TEXT'], ['detectpos1', 'TEXT'], ['satflowperm', 'TEXT'], ['phf', 'TEXT'], ['headwayfact', 'TEXT'], ['cbd', 'TEXT'], ['lastdetect', 'TEXT'], ['losttime', 'TEXT'], ['dest_node', 'TEXT'], ['idealflow', 'TEXT'], ['phase2', 'TEXT']], 'Timeplans': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['master', 'TEXT'], ['lock_timings', 'TEXT'], ['control_type', 'TEXT'], ['yield', 'TEXT'], ['cycle_length', 'TEXT'], ['node_0', 'TEXT'], ['node_1', 'TEXT'], ['reference_phase', 'TEXT'], ['referenced_to', 'TEXT'], ['offset', 'TEXT']], 'Phases': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['mingreen', 'TEXT'], ['timetoreduce', 'TEXT'], ['actgreen', 'TEXT'], ['end', 'TEXT'], ['allred', 'TEXT'], ['localyield170', 'TEXT'], ['recall', 'TEXT'], ['minsplit', 'TEXT'], ['localstart', 'TEXT'], ['dontwalk', 'TEXT'], ['yield170', 'TEXT'], ['localyield', 'TEXT'], ['timebeforereduce', 'TEXT'], ['brp', 'TEXT'], ['inhibitmax', 'TEXT'], ['yellow', 'TEXT'], ['start', 'TEXT'], ['yield', 'TEXT'], ['vehext', 'TEXT'], ['pedcalls', 'TEXT'], ['maxgreen', 'TEXT'], ['dualentry', 'TEXT'], ['walk', 'TEXT'], ['mingap', 'TEXT']]}
tables = {'Network': [['f_name', 'TEXT'], ['scenariodate', 'TEXT'], ['stopthresholdspeed', 'TEXT'], ['growth', 'TEXT'], ['defwidth', 'TEXT'], ['pedspeed', 'TEXT'], ['phf', 'TEXT'], ['vehlength', 'TEXT'], ['criticalmergegap', 'TEXT'], ['hv', 'TEXT'], ['followuptime', 'TEXT'], ['utdfversion', 'TEXT'], ['dontwalk', 'TEXT'], ['allredtime', 'TEXT'], ['losttimeadjust', 'TEXT'], ['walk', 'TEXT'], ['defflow', 'TEXT'], ['metric', 'TEXT'], ['criticalgap', 'TEXT'], ['heavyvehlength', 'TEXT'], ['yellowtime', 'TEXT'], ['scenariotime', 'TEXT']], 'Nodes': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['type', 'TEXT'], ['x', 'TEXT'], ['y', 'TEXT'], ['z', 'TEXT'], ['description', 'TEXT'], ['cbd', 'TEXT'], ['inside_radius', 'TEXT'], ['outside_radius', 'TEXT'], ['roundabout_lanes', 'TEXT'], ['circle_speed', 'TEXT']], 'Links': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['median', 'TEXT'], ['name', 'TEXT'], ['time', 'TEXT'], ['grade', 'TEXT'], ['curve_pt_x', 'TEXT'], ['mandatory_distance', 'TEXT'], ['up_id', 'TEXT'], ['speed', 'TEXT'], ['lanes', 'TEXT'], ['link_is_hidden', 'TEXT'], ['street_name_is_hidden', 'TEXT'], ['crosswalk_width', 'TEXT'], ['distance', 'TEXT'], ['twltl', 'TEXT'], ['positioning_distance2', 'TEXT'], ['curve_pt_y', 'TEXT'], ['mandatory_distance2', 'TEXT'], ['offset', 'TEXT'], ['positioning_distance', 'TEXT'], ['curve_pt_z', 'TEXT']], 'Lanes': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['lane_group_flow', 'TEXT'], ['storage', 'TEXT'], ['switchphase', 'TEXT'], ['alignment', 'TEXT'], ['right_radius', 'TEXT'], ['bicycles', 'TEXT'], ['taper', 'TEXT'], ['detectsize1', 'TEXT'], ['heavyvehicles', 'TEXT'], ['turning_speed', 'TEXT'], ['up_node', 'TEXT'], ['right_channeled', 'TEXT'], ['detecttype1', 'TEXT'], ['satflowrtor', 'TEXT'], ['stlanes', 'TEXT'], ['midblock', 'TEXT'], ['detectphase4', 'TEXT'], ['detectqueue1', 'TEXT'], ['detectdelay1', 'TEXT'], ['detectpos2', 'TEXT'], ['busstops', 'TEXT'], ['enter_blocked', 'TEXT'], ['traffic_in_shared_lane', 'TEXT'], ['exit_lanes', 'TEXT'], ['satflow', 'TEXT'], ['detectphase1', 'TEXT'], ['numdetects', 'TEXT'], ['traveltime', 'TEXT'], ['distance', 'TEXT'], ['permphase1', 'TEXT'], ['shared', 'TEXT'], ['phase1', 'TEXT'], ['grade', 'TEXT'], ['width', 'TEXT'], ['allow_rtor', 'TEXT'], ['add_lanes', 'TEXT'], ['lost_time_adjust', 'TEXT'], ['speed', 'TEXT'], ['peds', 'TEXT'], ['detectextend2', 'TEXT'], ['firstdetect', 'TEXT'], ['lanes', 'TEXT'], ['detectsize2', 'TEXT'], ['growth', 'TEXT'], ['detecttype2', 'TEXT'], ['detectphase2', 'TEXT'], ['volume', 'TEXT'], ['signcontrol', 'TEXT'], ['detectextend1', 'TEXT'], ['detectphase3', 'TEXT'], ['detectpos1', 'TEXT'], ['satflowperm', 'TEXT'], ['phf', 'TEXT'], ['headwayfact', 'TEXT'], ['cbd', 'TEXT'], ['lastdetect', 'TEXT'], ['losttime', 'TEXT'], ['dest_node', 'TEXT'], ['idealflow', 'TEXT'], ['phase2', 'TEXT']], 'Timeplans': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['master', 'TEXT'], ['lock_timings', 'TEXT'], ['control_type', 'TEXT'], ['yield', 'TEXT'], ['cycle_length', 'TEXT'], ['node_0', 'TEXT'], ['node_1', 'TEXT'], ['reference_phase', 'TEXT'], ['referenced_to', 'TEXT'], ['offset', 'TEXT']], 'Phases': [['f_name', 'TEXT'], ['intid', 'TEXT'], ['direction', 'TEXT'], ['mingreen', 'TEXT'], ['timetoreduce', 'TEXT'], ['actgreen', 'TEXT'], ['end', 'TEXT'], ['allred', 'TEXT'], ['localyield170', 'TEXT'], ['recall', 'TEXT'], ['minsplit', 'TEXT'], ['localstart', 'TEXT'], ['dontwalk', 'TEXT'], ['yield170', 'TEXT'], ['localyield', 'TEXT'], ['timebeforereduce', 'TEXT'], ['brp', 'TEXT'], ['inhibitmax', 'TEXT'], ['yellow', 'TEXT'], ['start', 'TEXT'], ['yield', 'TEXT'], ['vehext', 'TEXT'], ['pedcalls', 'TEXT'], ['maxgreen', 'TEXT'], ['dualentry', 'TEXT'], ['walk', 'TEXT'], ['mingap', 'TEXT']]}
class TxInfo: def __init__(self, txid, timestamp, fee, fee_currency, wallet_address, exchange, url): self.txid = txid self.timestamp = timestamp self.fee = fee self.fee_currency = fee_currency self.wallet_address = wallet_address self.exchange = exchange self.url = url self.comment = ""
class Txinfo: def __init__(self, txid, timestamp, fee, fee_currency, wallet_address, exchange, url): self.txid = txid self.timestamp = timestamp self.fee = fee self.fee_currency = fee_currency self.wallet_address = wallet_address self.exchange = exchange self.url = url self.comment = ''
'''https://practice.geeksforgeeks.org/problems/multiply-two-linked-lists/1 Multiply two linked lists Easy Accuracy: 38.67% Submissions: 24824 Points: 2 Given elements as nodes of the two linked lists. The task is to multiply these two linked lists, say L1 and L2. Note: The output could be large take modulo 109+7. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow, the first line of each test case contains an integer N denoting the size of the first linked list (L1). In the next line are the space separated values of the first linked list. The third line of each test case contains an integer M denoting the size of the second linked list (L2). In the forth line are space separated values of the second linked list. Output: For each test case output will be an integer denoting the product of the two linked list. User Task: The task is to complete the function multiplyTwoLists() which should multiply the given two linked lists and return the result. Constraints: 1 <= T <= 100 1 <= N, M <= 100 Example: Input: 2 2 3 2 1 2 3 1 0 0 2 1 0 Output: 64 1000 Explanation: Testcase 1: 32*2 = 64. Testcase 2: 100*10 = 1000.''' MOD = 10**9+7 # your task is to complete this function # Function should return an integer value # head1 denotes head node of 1st list # head2 denotes head node of 2nd list ''' class node: def __init__(self): self.data = None self.next = None ''' def multiplyTwoList(head1, head2): num1 = 0 num2 = 0 while head1 or head2: if head1: num1 = (num1*10+head1.data) % MOD head1 = head1.next if head2: num2 = (num2*10+head2. data) % MOD head2 = head2.next return (num1 % MOD*num2 % MOD) % MOD # { # Driver Code Starts class node: def __init__(self): self.data = None self.next = None class Linked_List: def __init__(self): self.head = None def get_head(self): return self.head def insert(self, data): if self.head == None: self.head = node() self.head.data = data else: new_node = node() new_node.data = data new_node.next = None temp = self.head while(temp.next): temp = temp.next temp.next = new_node def printlist(ptr): while ptr != None: print(ptr.data, end=" ") ptr = ptr.next if __name__ == '__main__': t = int(input()) for i in range(t): list1 = Linked_List() n = int(input()) values = list(map(int, input().strip().split())) for i in values: list1.insert(i) # printlist(list1.get_head()) # print '' list2 = Linked_List() n = int(input()) values = list(map(int, input().strip().split())) for i in values: list2.insert(i) # printlist(list2.get_head()) # print '' print(multiplyTwoList(list1.get_head(), list2.get_head())) # } Driver Code Ends
"""https://practice.geeksforgeeks.org/problems/multiply-two-linked-lists/1 Multiply two linked lists Easy Accuracy: 38.67% Submissions: 24824 Points: 2 Given elements as nodes of the two linked lists. The task is to multiply these two linked lists, say L1 and L2. Note: The output could be large take modulo 109+7. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow, the first line of each test case contains an integer N denoting the size of the first linked list (L1). In the next line are the space separated values of the first linked list. The third line of each test case contains an integer M denoting the size of the second linked list (L2). In the forth line are space separated values of the second linked list. Output: For each test case output will be an integer denoting the product of the two linked list. User Task: The task is to complete the function multiplyTwoLists() which should multiply the given two linked lists and return the result. Constraints: 1 <= T <= 100 1 <= N, M <= 100 Example: Input: 2 2 3 2 1 2 3 1 0 0 2 1 0 Output: 64 1000 Explanation: Testcase 1: 32*2 = 64. Testcase 2: 100*10 = 1000.""" mod = 10 ** 9 + 7 '\nclass node:\n def __init__(self):\n self.data = None\n self.next = None\n' def multiply_two_list(head1, head2): num1 = 0 num2 = 0 while head1 or head2: if head1: num1 = (num1 * 10 + head1.data) % MOD head1 = head1.next if head2: num2 = (num2 * 10 + head2.data) % MOD head2 = head2.next return num1 % MOD * num2 % MOD % MOD class Node: def __init__(self): self.data = None self.next = None class Linked_List: def __init__(self): self.head = None def get_head(self): return self.head def insert(self, data): if self.head == None: self.head = node() self.head.data = data else: new_node = node() new_node.data = data new_node.next = None temp = self.head while temp.next: temp = temp.next temp.next = new_node def printlist(ptr): while ptr != None: print(ptr.data, end=' ') ptr = ptr.next if __name__ == '__main__': t = int(input()) for i in range(t): list1 = linked__list() n = int(input()) values = list(map(int, input().strip().split())) for i in values: list1.insert(i) list2 = linked__list() n = int(input()) values = list(map(int, input().strip().split())) for i in values: list2.insert(i) print(multiply_two_list(list1.get_head(), list2.get_head()))
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def numComponents(self, head: ListNode, G: List[int]) -> int: ans = 0 G_set = set(G) cur = head while cur: if cur.val in G_set and (not cur.next or cur.next.val not in G_set): ans += 1 cur = cur.next return ans
class Solution: def num_components(self, head: ListNode, G: List[int]) -> int: ans = 0 g_set = set(G) cur = head while cur: if cur.val in G_set and (not cur.next or cur.next.val not in G_set): ans += 1 cur = cur.next return ans
#Kunal Gautam #Codewars : @Kunalpod #Problem name: Rock Paper Scissors! #Problem level: 8 kyu def rps(p1, p2): if p1[0]=='r' and p2[0]=='s': return "Player 1 won!" if p1[0]=='s' and p2[0]=='p': return "Player 1 won!" if p1[0]=='p' and p2[0]=='r': return "Player 1 won!" if p2[0]=='r' and p1[0]=='s': return "Player 2 won!" if p2[0]=='s' and p1[0]=='p': return "Player 2 won!" if p2[0]=='p' and p1[0]=='r': return "Player 2 won!" if p1==p2: return 'Draw!'
def rps(p1, p2): if p1[0] == 'r' and p2[0] == 's': return 'Player 1 won!' if p1[0] == 's' and p2[0] == 'p': return 'Player 1 won!' if p1[0] == 'p' and p2[0] == 'r': return 'Player 1 won!' if p2[0] == 'r' and p1[0] == 's': return 'Player 2 won!' if p2[0] == 's' and p1[0] == 'p': return 'Player 2 won!' if p2[0] == 'p' and p1[0] == 'r': return 'Player 2 won!' if p1 == p2: return 'Draw!'
class ArgsTest: def __init__(self, key:str=None, value:str=None, max_age=None, expires=None, path:str=None, domain:str=None, secure:bool=False, httponly:bool=False, sync_expires:bool=True, comment:str=None, version:int=None): pass class Sub(ArgsTest): pass
class Argstest: def __init__(self, key: str=None, value: str=None, max_age=None, expires=None, path: str=None, domain: str=None, secure: bool=False, httponly: bool=False, sync_expires: bool=True, comment: str=None, version: int=None): pass class Sub(ArgsTest): pass
def roll_new(name, gender): pass def describe(character): pass
def roll_new(name, gender): pass def describe(character): pass
# receive a integer than count the number of "1"s in it's binary form #my : def countBits(n): i = 0 while n > 2: if n % 2 == 1: i = i + 1 n = (n-1)/2 else: n = n/2 return (i + 1) if n != 0 else 0
def count_bits(n): i = 0 while n > 2: if n % 2 == 1: i = i + 1 n = (n - 1) / 2 else: n = n / 2 return i + 1 if n != 0 else 0
# -*- coding: utf-8 -*- class ImageSerializerMixin: def build_absolute_image_url(self, url): if not url.startswith('http'): request = self.context.get('request') return request.build_absolute_uri(url) return url
class Imageserializermixin: def build_absolute_image_url(self, url): if not url.startswith('http'): request = self.context.get('request') return request.build_absolute_uri(url) return url
__version__ = "0.1.9" __license__ = "Apache 2.0 license" __website__ = "https://oss.navio.online/navio-gitlab/" __download_url__ = ('https://github.com/navio-online/navio-gitlab/archive' '/{}.tar.gz'.format(__version__)),
__version__ = '0.1.9' __license__ = 'Apache 2.0 license' __website__ = 'https://oss.navio.online/navio-gitlab/' __download_url__ = ('https://github.com/navio-online/navio-gitlab/archive/{}.tar.gz'.format(__version__),)
SPACE_TOKEN = "\u241F" def replace_space(text: str) -> str: return text.replace(" ", SPACE_TOKEN) def revert_space(text: list) -> str: clean = ( " ".join("".join(text).replace(SPACE_TOKEN, " ").split()) .strip() ) return clean
space_token = '␟' def replace_space(text: str) -> str: return text.replace(' ', SPACE_TOKEN) def revert_space(text: list) -> str: clean = ' '.join(''.join(text).replace(SPACE_TOKEN, ' ').split()).strip() return clean
# -*- coding utf-8 -*- """ Created on Tue Nov 12 07:51:01 2019 Copyright 2019 Douglas Bowman dbowmans46@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ # Employee name is the key, time worked is the value employeeTimesThisWeek = ( ('Bob' , 8), ('Sally', 8), ('Reinholdt' , 10), ('Jack Ryan' , 4), ('Joan' , 12), ('Weatherby' , 2), ('Scilia' , 10), ('Sally', 5), ('Jack Ryan' , 12), ('Weatherby' , 4), ('Joan' , 10), ('Joan' , 8), ('Sally', 12), ('Reinholdt' , 12), ('Bob' , 10), ('Reinholdt' , 8), ('Joan' , 10), ('Jack Ryan' , 5), ('Sally', 10), ('Bob' , 10), ('Sally', 6), ('Reinholdt' , 8), ('Reinholdt' , 9), ('Joan' , 10) ) # Task: Determine which employees have worked overtime this week. # Bonus: Get the slackers # TODO: Create variable to hold times # TODO: Loop through each key-value pair of the employeeTimes dictionary # TODO: Add each time to the appropriate person # TODO: Manually add the times of one employee to test script functionality employeeTotalTimes = {} normalHoursPerWeek = 40 for workerAndTime in employeeTimesThisWeek: if workerAndTime[0] in employeeTotalTimes.keys(): employeeTotalTimes[workerAndTime[0]] += workerAndTime[1] else: employeeTotalTimes[workerAndTime[0]] = workerAndTime[1] # Sort employees by how much they worked overTimeWorkers = {} normalTimeWorkers = {} underTimeWorkers = {} # Create an initial record for comparison, setting the time worked higher than # any possible time a person can work lastPlace = {'NoOne':24*7+1} for employee in employeeTotalTimes: timeWorked = employeeTotalTimes[employee] if timeWorked > normalHoursPerWeek: overTimeWorkers[employee] = timeWorked elif timeWorked == normalHoursPerWeek: normalTimeWorkers [employee] = timeWorked else: underTimeWorkers[employee] = timeWorked if timeWorked < lastPlace[list(lastPlace.keys())[0]]: lastPlace = {employee:timeWorked} print("Overtime Workers:") print(overTimeWorkers) print() print("Normal Work Week Workers:") print(normalTimeWorkers) print() print("Under Achievers:") print(underTimeWorkers) print() print("Least time worked:") print(lastPlace) print()
""" Created on Tue Nov 12 07:51:01 2019 Copyright 2019 Douglas Bowman dbowmans46@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ employee_times_this_week = (('Bob', 8), ('Sally', 8), ('Reinholdt', 10), ('Jack Ryan', 4), ('Joan', 12), ('Weatherby', 2), ('Scilia', 10), ('Sally', 5), ('Jack Ryan', 12), ('Weatherby', 4), ('Joan', 10), ('Joan', 8), ('Sally', 12), ('Reinholdt', 12), ('Bob', 10), ('Reinholdt', 8), ('Joan', 10), ('Jack Ryan', 5), ('Sally', 10), ('Bob', 10), ('Sally', 6), ('Reinholdt', 8), ('Reinholdt', 9), ('Joan', 10)) employee_total_times = {} normal_hours_per_week = 40 for worker_and_time in employeeTimesThisWeek: if workerAndTime[0] in employeeTotalTimes.keys(): employeeTotalTimes[workerAndTime[0]] += workerAndTime[1] else: employeeTotalTimes[workerAndTime[0]] = workerAndTime[1] over_time_workers = {} normal_time_workers = {} under_time_workers = {} last_place = {'NoOne': 24 * 7 + 1} for employee in employeeTotalTimes: time_worked = employeeTotalTimes[employee] if timeWorked > normalHoursPerWeek: overTimeWorkers[employee] = timeWorked elif timeWorked == normalHoursPerWeek: normalTimeWorkers[employee] = timeWorked else: underTimeWorkers[employee] = timeWorked if timeWorked < lastPlace[list(lastPlace.keys())[0]]: last_place = {employee: timeWorked} print('Overtime Workers:') print(overTimeWorkers) print() print('Normal Work Week Workers:') print(normalTimeWorkers) print() print('Under Achievers:') print(underTimeWorkers) print() print('Least time worked:') print(lastPlace) print()
def check(s): (rule, password) = s.split(':') (amount, letter) = rule.split(' ') (lower, upper) = amount.split('-') count = password.count(letter) return count >= int(lower) and count <= int(upper) def solve(in_file): with open(in_file) as f: passwords = f.readlines() return sum(1 for password in passwords if check(password)) print(solve('input.txt'))
def check(s): (rule, password) = s.split(':') (amount, letter) = rule.split(' ') (lower, upper) = amount.split('-') count = password.count(letter) return count >= int(lower) and count <= int(upper) def solve(in_file): with open(in_file) as f: passwords = f.readlines() return sum((1 for password in passwords if check(password))) print(solve('input.txt'))
class DictionaryManipulator: def __init__(self): self.__dict = {} with open("./en_US.dic", 'r') as content_file: count = 0 for line in content_file.readlines(): words = line.split("/") if len(words) > 1: self.__dict[words[0].lower()] = count # words[1].replace("\n", "") else: self.__dict[line.replace("\n", "")] = count # None count += 1 def words_exist(self, word): return word in self.__dict.keys() def add_word_into_dictionary(self, word, speech=None): if word: self.__dict[word] = speech
class Dictionarymanipulator: def __init__(self): self.__dict = {} with open('./en_US.dic', 'r') as content_file: count = 0 for line in content_file.readlines(): words = line.split('/') if len(words) > 1: self.__dict[words[0].lower()] = count else: self.__dict[line.replace('\n', '')] = count count += 1 def words_exist(self, word): return word in self.__dict.keys() def add_word_into_dictionary(self, word, speech=None): if word: self.__dict[word] = speech
""" logging ~~~~~~~ This module contains a class that wraps the log4j object instantiated by the active SparkContext, enabling Log4j logging for PySpark using. """ class Log4j(object): """Wrapper class for Log4j JVM object. :param spark: SparkSession object. """ def __init__(self,spark,key=None): log4j = spark._jvm.org.apache.log4j #message_prefix = '<' + app_name + ' ' + app_id + '>' message_prefix = '<:: '+ key+'::> ' self.logger = log4j.LogManager.getLogger(message_prefix) def error(self, message): """Log an error. :param: Error message to write to log :return: None """ self.logger.error(message) return None def warn(self, message): """Log an warning. :param: Error message to write to log :return: None """ self.logger.warn(message) return None def info(self, message): """Log information. :param: Information message to write to log :return: None """ self.logger.info(message) return None
""" logging ~~~~~~~ This module contains a class that wraps the log4j object instantiated by the active SparkContext, enabling Log4j logging for PySpark using. """ class Log4J(object): """Wrapper class for Log4j JVM object. :param spark: SparkSession object. """ def __init__(self, spark, key=None): log4j = spark._jvm.org.apache.log4j message_prefix = '<:: ' + key + '::> ' self.logger = log4j.LogManager.getLogger(message_prefix) def error(self, message): """Log an error. :param: Error message to write to log :return: None """ self.logger.error(message) return None def warn(self, message): """Log an warning. :param: Error message to write to log :return: None """ self.logger.warn(message) return None def info(self, message): """Log information. :param: Information message to write to log :return: None """ self.logger.info(message) return None
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"load_dcm": "00_io.ipynb", "load_h5": "00_io.ipynb", "crop": "01_manipulate.ipynb", "pad": "01_manipulate.ipynb", "resample": "01_manipulate.ipynb", "resample_by": "01_manipulate.ipynb"} modules = ["io.py", "manipulate.py"] doc_url = "https://pfdamasceno.github.io/I2T2/" git_url = "https://github.com/pfdamasceno/I2T2/tree/master/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'load_dcm': '00_io.ipynb', 'load_h5': '00_io.ipynb', 'crop': '01_manipulate.ipynb', 'pad': '01_manipulate.ipynb', 'resample': '01_manipulate.ipynb', 'resample_by': '01_manipulate.ipynb'} modules = ['io.py', 'manipulate.py'] doc_url = 'https://pfdamasceno.github.io/I2T2/' git_url = 'https://github.com/pfdamasceno/I2T2/tree/master/' def custom_doc_links(name): return None
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external") load( "@nl_tulipsolutions_tecl//third_party/protoc-gen-validate:version.bzl", com_envoyproxy_protoc_gen_validate_version = "version", ) def repositories( omit_com_salesforce_servicelibs_reactive_grpc = False, omit_com_github_spullara_mustache_java_compiler = False, omit_bazel_skylib = False, omit_com_google_protobuf = False, omit_com_github_grpc_grpc = False, omit_cython = False, omit_io_grpc_grpc_java = False, omit_com_github_grpc_grpc_web = False, omit_io_bazel_rules_closure = False, omit_six_archive = False, omit_io_bazel_rules_python = False, omit_six = False, omit_python_headers = False, omit_org_llvm_clang = False, omit_bazel_gazelle = False, omit_build_stack_rules_proto = False, omit_io_bazel_rules_go_version = False, omit_com_github_bazelbuild_buildtools = False, omit_build_bazel_rules_nodejs = False, omit_zlib = False, omit_rules_proto = False, omit_rules_cc = False, omit_rules_java = False, omit_com_google_errorprone_error_prone_annotations = False, omit_com_envoyproxy_protoc_gen_validate = False, omit_io_bazel_rules_kotlin = False, omit_org_apache_commons_validator = False): if not omit_com_salesforce_servicelibs_reactive_grpc: # Latest on master on 2019-06-25 version = "e7aa649e9a7d4af87fa17ccd6100c53758ee717d" http_archive( name = "com_salesforce_servicelibs_reactive_grpc", strip_prefix = "reactive-grpc-%s" % version, sha256 = "89ce5f010e517437a997107621cba355009d8397c76864e8ee1714f063482875", url = "https://github.com/salesforce/reactive-grpc/archive/%s.zip" % version, ) if not omit_com_github_spullara_mustache_java_compiler: java_import_external( name = "com_github_spullara_mustache_java_compiler", jar_urls = ["http://central.maven.org/maven2/com/github/spullara/mustache/java/compiler/0.9.6/compiler-0.9.6.jar"], jar_sha256 = "c4d697fd3619cb616cc5e22e9530c8a4fd4a8e9a76953c0655ee627cb2d22318", srcjar_urls = ["http://central.maven.org/maven2/com/github/spullara/mustache/java/compiler/0.9.6/compiler-0.9.6-sources.jar"], srcjar_sha256 = "fb3cf89e4daa0aaa4e659aca12a8ddb0d7b605271285f3e108201e0a389b4c7a", licenses = ["notice"], # Apache 2.0 ) if not omit_bazel_skylib: # 0.9.0 is incompatible with rules_go 0.19.1 # https://github.com/bazelbuild/rules_go/issues/2157 bazel_skylib_version = "0.8.0" http_archive( name = "bazel_skylib", strip_prefix = "bazel-skylib-%s" % bazel_skylib_version, sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a", urls = ["https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % bazel_skylib_version], ) if not omit_com_google_protobuf: protobuf_version = "v3.9.1" http_archive( name = "com_google_protobuf", sha256 = "c90d9e13564c0af85fd2912545ee47b57deded6e5a97de80395b6d2d9be64854", strip_prefix = "protobuf-%s" % protobuf_version[1:], urls = ["https://github.com/google/protobuf/archive/%s.zip" % protobuf_version], ) if not omit_com_github_grpc_grpc: grpc_version = "1.20.0" http_archive( name = "com_github_grpc_grpc", sha256 = "5c00f09f7b0517a9ccbd6f0de356b1be915bc7baad2d2189adf8ce803e00af12", strip_prefix = "grpc-%s" % grpc_version, urls = ["https://github.com/grpc/grpc/archive/v%s.zip" % grpc_version], ) if not omit_cython: # Mirrors https://github.com/grpc/grpc/blob/9aee1731c92c8e7c880703fc948557c70bb4fc47/WORKSPACE#L20 cython_version = "c2b80d87658a8525ce091cbe146cb7eaa29fed5c" http_archive( name = "cython", build_file = "@com_github_grpc_grpc//third_party:cython.BUILD", sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27", strip_prefix = "cython-%s" % cython_version, urls = ["https://github.com/cython/cython/archive/%s.tar.gz" % cython_version], ) if not omit_io_grpc_grpc_java: io_grpc_grpc_java_version = "v1.20.0" http_archive( name = "io_grpc_grpc_java", patches = [ "@nl_tulipsolutions_tecl//third_party/patches/io_grpc_grpc_java:0001-Set-core-internal-visibility-to-public.patch", "@nl_tulipsolutions_tecl//third_party/patches/io_grpc_grpc_java:0002-Set-gRPC-method-name-in-OpenCensus-statistics.patch", ], sha256 = "9d23d9fec84e24bd3962f5ef9d1fd61ce939d3f649a22bcab0f19e8167fae8ef", strip_prefix = "grpc-java-%s" % io_grpc_grpc_java_version[1:], urls = ["https://github.com/grpc/grpc-java/archive/%s.zip" % io_grpc_grpc_java_version], ) if not omit_com_github_grpc_grpc_web: grpc_web_version = "1.0.5" http_archive( name = "com_github_grpc_grpc_web", sha256 = "3edcb8cd06e7ebd15650e2035e14351efc321991d73d5ff351fb1f58a1871e3f", strip_prefix = "grpc-web-%s" % grpc_web_version, urls = ["https://github.com/grpc/grpc-web/archive/%s.zip" % grpc_web_version], ) if not omit_io_bazel_rules_closure: io_bazel_rules_closure_version = "29ec97e7c85d607ba9e41cab3993fbb13f812c4b" # master HEAD on 2019-07-25 http_archive( name = "io_bazel_rules_closure", sha256 = "e15a2c8db4da16d8ae3d55b3e303bed944bc2303b92c92bd4769b84dd711d123", strip_prefix = "rules_closure-%s" % io_bazel_rules_closure_version, urls = ["https://github.com/bazelbuild/rules_closure/archive/%s.zip" % io_bazel_rules_closure_version], ) if not omit_io_bazel_rules_python: rules_python_version = "640e88a6ee6b949ef131a9d512e2f71c6e0e858c" http_archive( name = "io_bazel_rules_python", sha256 = "e6d511fbbb71962823a58e8b06f5961ede02737879113acd5a50b0c2fe58d2be", strip_prefix = "rules_python-%s" % rules_python_version, url = "https://github.com/bazelbuild/rules_python/archive/%s.zip" % rules_python_version, ) # Six is a dependency for the Python Protobuf rules if not omit_six_archive: six_archive_build_file_content = """ genrule( name = "copy_six", srcs = ["six-1.12.0/six.py"], outs = ["six.py"], cmd = "cp $< $(@)", ) py_library( name = "six", srcs = ["six.py"], srcs_version = "PY2AND3", visibility = ["//visibility:public"], ) """ http_archive( name = "six_archive", build_file_content = six_archive_build_file_content, sha256 = "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73", urls = ["https://pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz"], ) if not omit_six: native.bind( name = "six", actual = "@six_archive//:six", ) if not omit_python_headers: native.bind( name = "python_headers", actual = "@com_google_protobuf//util/python:python_headers", ) if not omit_org_llvm_clang: org_llvm_clang_version = "8.0.0" http_archive( name = "org_llvm_clang", sha256 = "0f5c314f375ebd5c35b8c1d5e5b161d9efaeff0523bac287f8b4e5b751272f51", strip_prefix = "clang+llvm-%s-x86_64-linux-gnu-ubuntu-18.04" % org_llvm_clang_version, url = "http://releases.llvm.org/{0}/clang+llvm-{0}-x86_64-linux-gnu-ubuntu-18.04.tar.xz".format(org_llvm_clang_version), build_file_content = """ sh_binary( name = "clang_format", srcs = ["bin/clang-format"], visibility = ['//visibility:public'], ) """, ) if not omit_bazel_gazelle: bazel_gazelle_version = "0.18.1" http_archive( name = "bazel_gazelle", sha256 = "40f6b81c163d190ce7e16ea734ee748ad45e371306a46653fcab93aecda5c0da", strip_prefix = "bazel-gazelle-%s" % bazel_gazelle_version, urls = ["https://github.com/bazelbuild/bazel-gazelle/archive/%s.tar.gz" % (bazel_gazelle_version)], ) if not omit_build_stack_rules_proto: build_stack_rules_proto_version = "d9a123032f8436dbc34069cfc3207f2810a494ee" http_archive( name = "build_stack_rules_proto", sha256 = "ff20827de390a86857cf921f757437cf407db4e5acb39b660467bd8c4d294a8b", strip_prefix = "rules_proto-%s" % build_stack_rules_proto_version, url = "https://github.com/stackb/rules_proto/archive/%s.zip" % build_stack_rules_proto_version, ) if not omit_io_bazel_rules_go_version: io_bazel_rules_go_version = "0.19.1" http_archive( name = "io_bazel_rules_go", strip_prefix = "rules_go-%s" % io_bazel_rules_go_version, sha256 = "c9cc6a02113781bb1b1039c289d457dfd832ce2c07dc94dc5bee83160165cffa", url = "https://github.com/bazelbuild/rules_go/archive/%s.zip" % io_bazel_rules_go_version, ) if not omit_com_github_bazelbuild_buildtools: build_tools_version = "0.29.0" http_archive( name = "com_github_bazelbuild_buildtools", sha256 = "05eb52437fb250c7591dd6cbcfd1f9b5b61d85d6b20f04b041e0830dd1ab39b3", strip_prefix = "buildtools-%s" % build_tools_version, url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % build_tools_version, ) if not omit_build_bazel_rules_nodejs: build_bazel_rules_nodejs_version = "0.34.0" # Not a github source archive as it is not recommended (https://github.com/bazelbuild/rules_nodejs/releases/tag/0.18.4) http_archive( name = "build_bazel_rules_nodejs", urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/{0}/rules_nodejs-{0}.tar.gz".format(build_bazel_rules_nodejs_version)], sha256 = "7c4a690268be97c96f04d505224ec4cb1ae53c2c2b68be495c9bd2634296a5cd", ) if not omit_com_google_errorprone_error_prone_annotations: java_import_external( name = "com_google_errorprone_error_prone_annotations", jar_urls = ["http://central.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.3.3/error_prone_annotations-2.3.3.jar"], jar_sha256 = "ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a", srcjar_urls = ["http://central.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.3.3/error_prone_annotations-2.3.3-sources.jar"], srcjar_sha256 = "f58446b80b5f1e98bcb74dae5c0710ed8e52baafe5a4bb315f769f306d85634a", licenses = ["notice"], # Apache 2.0 ) native.bind( # This exact name is required by com_google_protobuf name = "error_prone_annotations", actual = "@com_google_errorprone_error_prone_annotations", ) if not omit_zlib and not native.existing_rule("zlib"): # Mirrors https://github.com/protocolbuffers/protobuf/blob/3.9.x/protobuf_deps.bzl http_archive( name = "zlib", build_file = "@com_google_protobuf//:third_party/zlib.BUILD", sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", strip_prefix = "zlib-1.2.11", urls = ["https://zlib.net/zlib-1.2.11.tar.gz"], ) if not omit_rules_proto and not native.existing_rule("rules_proto"): # Mirrors https://github.com/protocolbuffers/protobuf/blob/3.9.x/protobuf_deps.bzl http_archive( name = "rules_proto", sha256 = "88b0a90433866b44bb4450d4c30bc5738b8c4f9c9ba14e9661deb123f56a833d", strip_prefix = "rules_proto-b0cc14be5da05168b01db282fe93bdf17aa2b9f4", urls = ["https://github.com/bazelbuild/rules_proto/archive/b0cc14be5da05168b01db282fe93bdf17aa2b9f4.tar.gz"], ) if not omit_rules_cc and not native.existing_rule("rules_cc"): # Mirrors https://github.com/protocolbuffers/protobuf/blob/3.9.x/protobuf_deps.bzl http_archive( name = "rules_cc", sha256 = "29daf0159f0cf552fcff60b49d8bcd4f08f08506d2da6e41b07058ec50cfeaec", strip_prefix = "rules_cc-b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e", urls = ["https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz"], ) if not omit_rules_java and not native.existing_rule("rules_java"): # Mirrors https://github.com/protocolbuffers/protobuf/blob/3.9.x/protobuf_deps.bzl http_archive( name = "rules_java", sha256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3", strip_prefix = "rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd", urls = ["https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz"], ) if not omit_com_envoyproxy_protoc_gen_validate: http_archive( name = "com_envoyproxy_protoc_gen_validate", sha256 = "62c89ce3556e6f9b1ecc1b9deed7024798d2519e631316f7f4c3bca37b295bb5", strip_prefix = "protoc-gen-validate-%s" % com_envoyproxy_protoc_gen_validate_version, url = "https://github.com/envoyproxy/protoc-gen-validate/archive/%s.zip" % com_envoyproxy_protoc_gen_validate_version, patches = [ "@nl_tulipsolutions_tecl//third_party/patches/com_envoyproxy_protoc_gen_validate:0001-Add-description-fields-to-ValidationException.patch", ], ) if not omit_io_bazel_rules_kotlin: rules_kotlin_version = "8ca948548159f288450516a09248dcfb9e957804" http_archive( name = "io_bazel_rules_kotlin", sha256 = "05feb1d521a912f13a8d32a6aed0446b1876f577ece47edeec6e551a802b8b58", strip_prefix = "rules_kotlin-%s" % rules_kotlin_version, url = "https://github.com/bazelbuild/rules_kotlin/archive/%s.zip" % rules_kotlin_version, ) if not omit_org_apache_commons_validator: java_import_external( name = "org_apache_commons_validator", jar_urls = ["http://central.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6.jar"], jar_sha256 = "bd62795d7068a69cbea333f6dbf9c9c1a6ad7521443fb57202a44874f240ba25", srcjar_urls = ["http://central.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6-sources.jar"], srcjar_sha256 = "9d4d052237a3b010138b853d8603d996cc3f89a6b3f793c5a50b93481cd8dea2", licenses = ["notice"], # Apache 2.0 )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') load('@bazel_tools//tools/build_defs/repo:java.bzl', 'java_import_external') load('@nl_tulipsolutions_tecl//third_party/protoc-gen-validate:version.bzl', com_envoyproxy_protoc_gen_validate_version='version') def repositories(omit_com_salesforce_servicelibs_reactive_grpc=False, omit_com_github_spullara_mustache_java_compiler=False, omit_bazel_skylib=False, omit_com_google_protobuf=False, omit_com_github_grpc_grpc=False, omit_cython=False, omit_io_grpc_grpc_java=False, omit_com_github_grpc_grpc_web=False, omit_io_bazel_rules_closure=False, omit_six_archive=False, omit_io_bazel_rules_python=False, omit_six=False, omit_python_headers=False, omit_org_llvm_clang=False, omit_bazel_gazelle=False, omit_build_stack_rules_proto=False, omit_io_bazel_rules_go_version=False, omit_com_github_bazelbuild_buildtools=False, omit_build_bazel_rules_nodejs=False, omit_zlib=False, omit_rules_proto=False, omit_rules_cc=False, omit_rules_java=False, omit_com_google_errorprone_error_prone_annotations=False, omit_com_envoyproxy_protoc_gen_validate=False, omit_io_bazel_rules_kotlin=False, omit_org_apache_commons_validator=False): if not omit_com_salesforce_servicelibs_reactive_grpc: version = 'e7aa649e9a7d4af87fa17ccd6100c53758ee717d' http_archive(name='com_salesforce_servicelibs_reactive_grpc', strip_prefix='reactive-grpc-%s' % version, sha256='89ce5f010e517437a997107621cba355009d8397c76864e8ee1714f063482875', url='https://github.com/salesforce/reactive-grpc/archive/%s.zip' % version) if not omit_com_github_spullara_mustache_java_compiler: java_import_external(name='com_github_spullara_mustache_java_compiler', jar_urls=['http://central.maven.org/maven2/com/github/spullara/mustache/java/compiler/0.9.6/compiler-0.9.6.jar'], jar_sha256='c4d697fd3619cb616cc5e22e9530c8a4fd4a8e9a76953c0655ee627cb2d22318', srcjar_urls=['http://central.maven.org/maven2/com/github/spullara/mustache/java/compiler/0.9.6/compiler-0.9.6-sources.jar'], srcjar_sha256='fb3cf89e4daa0aaa4e659aca12a8ddb0d7b605271285f3e108201e0a389b4c7a', licenses=['notice']) if not omit_bazel_skylib: bazel_skylib_version = '0.8.0' http_archive(name='bazel_skylib', strip_prefix='bazel-skylib-%s' % bazel_skylib_version, sha256='2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a', urls=['https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz' % bazel_skylib_version]) if not omit_com_google_protobuf: protobuf_version = 'v3.9.1' http_archive(name='com_google_protobuf', sha256='c90d9e13564c0af85fd2912545ee47b57deded6e5a97de80395b6d2d9be64854', strip_prefix='protobuf-%s' % protobuf_version[1:], urls=['https://github.com/google/protobuf/archive/%s.zip' % protobuf_version]) if not omit_com_github_grpc_grpc: grpc_version = '1.20.0' http_archive(name='com_github_grpc_grpc', sha256='5c00f09f7b0517a9ccbd6f0de356b1be915bc7baad2d2189adf8ce803e00af12', strip_prefix='grpc-%s' % grpc_version, urls=['https://github.com/grpc/grpc/archive/v%s.zip' % grpc_version]) if not omit_cython: cython_version = 'c2b80d87658a8525ce091cbe146cb7eaa29fed5c' http_archive(name='cython', build_file='@com_github_grpc_grpc//third_party:cython.BUILD', sha256='d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27', strip_prefix='cython-%s' % cython_version, urls=['https://github.com/cython/cython/archive/%s.tar.gz' % cython_version]) if not omit_io_grpc_grpc_java: io_grpc_grpc_java_version = 'v1.20.0' http_archive(name='io_grpc_grpc_java', patches=['@nl_tulipsolutions_tecl//third_party/patches/io_grpc_grpc_java:0001-Set-core-internal-visibility-to-public.patch', '@nl_tulipsolutions_tecl//third_party/patches/io_grpc_grpc_java:0002-Set-gRPC-method-name-in-OpenCensus-statistics.patch'], sha256='9d23d9fec84e24bd3962f5ef9d1fd61ce939d3f649a22bcab0f19e8167fae8ef', strip_prefix='grpc-java-%s' % io_grpc_grpc_java_version[1:], urls=['https://github.com/grpc/grpc-java/archive/%s.zip' % io_grpc_grpc_java_version]) if not omit_com_github_grpc_grpc_web: grpc_web_version = '1.0.5' http_archive(name='com_github_grpc_grpc_web', sha256='3edcb8cd06e7ebd15650e2035e14351efc321991d73d5ff351fb1f58a1871e3f', strip_prefix='grpc-web-%s' % grpc_web_version, urls=['https://github.com/grpc/grpc-web/archive/%s.zip' % grpc_web_version]) if not omit_io_bazel_rules_closure: io_bazel_rules_closure_version = '29ec97e7c85d607ba9e41cab3993fbb13f812c4b' http_archive(name='io_bazel_rules_closure', sha256='e15a2c8db4da16d8ae3d55b3e303bed944bc2303b92c92bd4769b84dd711d123', strip_prefix='rules_closure-%s' % io_bazel_rules_closure_version, urls=['https://github.com/bazelbuild/rules_closure/archive/%s.zip' % io_bazel_rules_closure_version]) if not omit_io_bazel_rules_python: rules_python_version = '640e88a6ee6b949ef131a9d512e2f71c6e0e858c' http_archive(name='io_bazel_rules_python', sha256='e6d511fbbb71962823a58e8b06f5961ede02737879113acd5a50b0c2fe58d2be', strip_prefix='rules_python-%s' % rules_python_version, url='https://github.com/bazelbuild/rules_python/archive/%s.zip' % rules_python_version) if not omit_six_archive: six_archive_build_file_content = '\ngenrule(\n name = "copy_six",\n srcs = ["six-1.12.0/six.py"],\n outs = ["six.py"],\n cmd = "cp $< $(@)",\n)\n\npy_library(\n name = "six",\n srcs = ["six.py"],\n srcs_version = "PY2AND3",\n visibility = ["//visibility:public"],\n)\n ' http_archive(name='six_archive', build_file_content=six_archive_build_file_content, sha256='d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73', urls=['https://pypi.python.org/packages/source/s/six/six-1.12.0.tar.gz']) if not omit_six: native.bind(name='six', actual='@six_archive//:six') if not omit_python_headers: native.bind(name='python_headers', actual='@com_google_protobuf//util/python:python_headers') if not omit_org_llvm_clang: org_llvm_clang_version = '8.0.0' http_archive(name='org_llvm_clang', sha256='0f5c314f375ebd5c35b8c1d5e5b161d9efaeff0523bac287f8b4e5b751272f51', strip_prefix='clang+llvm-%s-x86_64-linux-gnu-ubuntu-18.04' % org_llvm_clang_version, url='http://releases.llvm.org/{0}/clang+llvm-{0}-x86_64-linux-gnu-ubuntu-18.04.tar.xz'.format(org_llvm_clang_version), build_file_content='\nsh_binary(\n name = "clang_format",\n srcs = ["bin/clang-format"],\n visibility = [\'//visibility:public\'],\n)\n') if not omit_bazel_gazelle: bazel_gazelle_version = '0.18.1' http_archive(name='bazel_gazelle', sha256='40f6b81c163d190ce7e16ea734ee748ad45e371306a46653fcab93aecda5c0da', strip_prefix='bazel-gazelle-%s' % bazel_gazelle_version, urls=['https://github.com/bazelbuild/bazel-gazelle/archive/%s.tar.gz' % bazel_gazelle_version]) if not omit_build_stack_rules_proto: build_stack_rules_proto_version = 'd9a123032f8436dbc34069cfc3207f2810a494ee' http_archive(name='build_stack_rules_proto', sha256='ff20827de390a86857cf921f757437cf407db4e5acb39b660467bd8c4d294a8b', strip_prefix='rules_proto-%s' % build_stack_rules_proto_version, url='https://github.com/stackb/rules_proto/archive/%s.zip' % build_stack_rules_proto_version) if not omit_io_bazel_rules_go_version: io_bazel_rules_go_version = '0.19.1' http_archive(name='io_bazel_rules_go', strip_prefix='rules_go-%s' % io_bazel_rules_go_version, sha256='c9cc6a02113781bb1b1039c289d457dfd832ce2c07dc94dc5bee83160165cffa', url='https://github.com/bazelbuild/rules_go/archive/%s.zip' % io_bazel_rules_go_version) if not omit_com_github_bazelbuild_buildtools: build_tools_version = '0.29.0' http_archive(name='com_github_bazelbuild_buildtools', sha256='05eb52437fb250c7591dd6cbcfd1f9b5b61d85d6b20f04b041e0830dd1ab39b3', strip_prefix='buildtools-%s' % build_tools_version, url='https://github.com/bazelbuild/buildtools/archive/%s.zip' % build_tools_version) if not omit_build_bazel_rules_nodejs: build_bazel_rules_nodejs_version = '0.34.0' http_archive(name='build_bazel_rules_nodejs', urls=['https://github.com/bazelbuild/rules_nodejs/releases/download/{0}/rules_nodejs-{0}.tar.gz'.format(build_bazel_rules_nodejs_version)], sha256='7c4a690268be97c96f04d505224ec4cb1ae53c2c2b68be495c9bd2634296a5cd') if not omit_com_google_errorprone_error_prone_annotations: java_import_external(name='com_google_errorprone_error_prone_annotations', jar_urls=['http://central.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.3.3/error_prone_annotations-2.3.3.jar'], jar_sha256='ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a', srcjar_urls=['http://central.maven.org/maven2/com/google/errorprone/error_prone_annotations/2.3.3/error_prone_annotations-2.3.3-sources.jar'], srcjar_sha256='f58446b80b5f1e98bcb74dae5c0710ed8e52baafe5a4bb315f769f306d85634a', licenses=['notice']) native.bind(name='error_prone_annotations', actual='@com_google_errorprone_error_prone_annotations') if not omit_zlib and (not native.existing_rule('zlib')): http_archive(name='zlib', build_file='@com_google_protobuf//:third_party/zlib.BUILD', sha256='c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1', strip_prefix='zlib-1.2.11', urls=['https://zlib.net/zlib-1.2.11.tar.gz']) if not omit_rules_proto and (not native.existing_rule('rules_proto')): http_archive(name='rules_proto', sha256='88b0a90433866b44bb4450d4c30bc5738b8c4f9c9ba14e9661deb123f56a833d', strip_prefix='rules_proto-b0cc14be5da05168b01db282fe93bdf17aa2b9f4', urls=['https://github.com/bazelbuild/rules_proto/archive/b0cc14be5da05168b01db282fe93bdf17aa2b9f4.tar.gz']) if not omit_rules_cc and (not native.existing_rule('rules_cc')): http_archive(name='rules_cc', sha256='29daf0159f0cf552fcff60b49d8bcd4f08f08506d2da6e41b07058ec50cfeaec', strip_prefix='rules_cc-b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e', urls=['https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz']) if not omit_rules_java and (not native.existing_rule('rules_java')): http_archive(name='rules_java', sha256='f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3', strip_prefix='rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd', urls=['https://github.com/bazelbuild/rules_java/archive/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz']) if not omit_com_envoyproxy_protoc_gen_validate: http_archive(name='com_envoyproxy_protoc_gen_validate', sha256='62c89ce3556e6f9b1ecc1b9deed7024798d2519e631316f7f4c3bca37b295bb5', strip_prefix='protoc-gen-validate-%s' % com_envoyproxy_protoc_gen_validate_version, url='https://github.com/envoyproxy/protoc-gen-validate/archive/%s.zip' % com_envoyproxy_protoc_gen_validate_version, patches=['@nl_tulipsolutions_tecl//third_party/patches/com_envoyproxy_protoc_gen_validate:0001-Add-description-fields-to-ValidationException.patch']) if not omit_io_bazel_rules_kotlin: rules_kotlin_version = '8ca948548159f288450516a09248dcfb9e957804' http_archive(name='io_bazel_rules_kotlin', sha256='05feb1d521a912f13a8d32a6aed0446b1876f577ece47edeec6e551a802b8b58', strip_prefix='rules_kotlin-%s' % rules_kotlin_version, url='https://github.com/bazelbuild/rules_kotlin/archive/%s.zip' % rules_kotlin_version) if not omit_org_apache_commons_validator: java_import_external(name='org_apache_commons_validator', jar_urls=['http://central.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6.jar'], jar_sha256='bd62795d7068a69cbea333f6dbf9c9c1a6ad7521443fb57202a44874f240ba25', srcjar_urls=['http://central.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6-sources.jar'], srcjar_sha256='9d4d052237a3b010138b853d8603d996cc3f89a6b3f793c5a50b93481cd8dea2', licenses=['notice'])
# # PySNMP MIB module SNR-ERD-4 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SNR-ERD-4 # Produced by pysmi-0.3.4 at Mon Apr 29 21:00:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, ObjectIdentity, Unsigned32, IpAddress, iso, Gauge32, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, Counter32, enterprises, Bits, Counter64, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "Unsigned32", "IpAddress", "iso", "Gauge32", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "Counter32", "enterprises", "Bits", "Counter64", "Integer32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") snr = ModuleIdentity((1, 3, 6, 1, 4, 1, 40418)) snr.setRevisions(('2015-04-29 12:00',)) if mibBuilder.loadTexts: snr.setLastUpdated('201504291200Z') if mibBuilder.loadTexts: snr.setOrganization('NAG ') snr_erd = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2)).setLabel("snr-erd") snr_erd_4 = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6)).setLabel("snr-erd-4") measurements = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1)) sensesstate = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2)) management = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3)) counters = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8)) options = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 10)) snrSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1)) temperatureSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1)) powerSensors = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2)) alarmSensCnts = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2)) erd4Traps = MibIdentifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0)) voltageSensor = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageSensor.setStatus('current') serialS1 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 10), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS1.setStatus('current') serialS2 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 11), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS2.setStatus('current') serialS3 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 12), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS3.setStatus('current') serialS4 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 13), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS4.setStatus('current') serialS5 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 14), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS5.setStatus('current') serialS6 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 15), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS6.setStatus('current') serialS7 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 16), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS7.setStatus('current') serialS8 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 17), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS8.setStatus('current') serialS9 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 18), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS9.setStatus('current') serialS10 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 19), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: serialS10.setStatus('current') temperatureS1 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS1.setStatus('current') temperatureS2 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS2.setStatus('current') temperatureS3 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS3.setStatus('current') temperatureS4 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS4.setStatus('current') temperatureS5 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS5.setStatus('current') temperatureS6 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS6.setStatus('current') temperatureS7 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS7.setStatus('current') temperatureS8 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS8.setStatus('current') temperatureS9 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS9.setStatus('current') temperatureS10 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureS10.setStatus('current') voltageS1 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS1.setStatus('current') currentS1 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS1.setStatus('current') voltageS2 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS2.setStatus('current') currentS2 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS2.setStatus('current') voltageS3 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS3.setStatus('current') currentS3 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS3.setStatus('current') voltageS4 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS4.setStatus('current') currentS4 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS4.setStatus('current') voltageS5 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS5.setStatus('current') currentS5 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS5.setStatus('current') voltageS6 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS6.setStatus('current') currentS6 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS6.setStatus('current') voltageS7 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS7.setStatus('current') currentS7 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS7.setStatus('current') voltageS8 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS8.setStatus('current') currentS8 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 23), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS8.setStatus('current') voltageS9 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS9.setStatus('current') currentS9 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS9.setStatus('current') voltageS10 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: voltageS10.setStatus('current') currentS10 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: currentS10.setStatus('current') alarmSensor1 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 0), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alarmSensor1.setStatus('current') alarmSensor2 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 0), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alarmSensor2.setStatus('current') alarmSensor3 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 0), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alarmSensor3.setStatus('current') alarmSensor4 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 0), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alarmSensor4.setStatus('current') alarmSensor5 = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("high", 1), ("low", 0), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alarmSensor5.setStatus('current') uSensor = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("no", 1), ("yes", 0)))).setMaxAccess("readonly") if mibBuilder.loadTexts: uSensor.setStatus('current') releState = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: releState.setStatus('current') smart1State = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart1State.setStatus('current') smart2State = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart2State.setStatus('current') smart3State = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart3State.setStatus('current') smart4State = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart4State.setStatus('current') smart5State = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 0), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart5State.setStatus('current') releResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 11), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: releResetTime.setStatus('current') smart1ResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 12), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart1ResetTime.setStatus('current') smart2ResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 13), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart2ResetTime.setStatus('current') smart3ResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 14), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart3ResetTime.setStatus('current') smart4ResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 15), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart4ResetTime.setStatus('current') smart5ResetTime = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 16), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: smart5ResetTime.setStatus('current') alarmSensor1cnt = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 1), Counter32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alarmSensor1cnt.setStatus('current') alarmSensor2cnt = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 2), Counter32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alarmSensor2cnt.setStatus('current') alarmSensor3cnt = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 3), Counter32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alarmSensor3cnt.setStatus('current') alarmSensor4cnt = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 4), Counter32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alarmSensor4cnt.setStatus('current') alarmSensor5cnt = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 5), Counter32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alarmSensor5cnt.setStatus('current') dataType = MibScalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("integer", 0), ("float", 1), ("ufloat", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: dataType.setStatus('current') aSense1Alarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 1)) if mibBuilder.loadTexts: aSense1Alarm.setStatus('current') aSense1Release = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 2)) if mibBuilder.loadTexts: aSense1Release.setStatus('current') aSense2Alarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 3)) if mibBuilder.loadTexts: aSense2Alarm.setStatus('current') aSense2Release = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 4)) if mibBuilder.loadTexts: aSense2Release.setStatus('current') aSense3Alarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 5)) if mibBuilder.loadTexts: aSense3Alarm.setStatus('current') aSense3Release = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 6)) if mibBuilder.loadTexts: aSense3Release.setStatus('current') aSense4Alarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 7)) if mibBuilder.loadTexts: aSense4Alarm.setStatus('current') aSense4Release = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 8)) if mibBuilder.loadTexts: aSense4Release.setStatus('current') aSense5Alarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 9)) if mibBuilder.loadTexts: aSense5Alarm.setStatus('current') aSense5Release = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 10)) if mibBuilder.loadTexts: aSense5Release.setStatus('current') uSenseAlarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 11)) if mibBuilder.loadTexts: uSenseAlarm.setStatus('current') uSenseRelease = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 12)) if mibBuilder.loadTexts: uSenseRelease.setStatus('current') reloutThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 13)) if mibBuilder.loadTexts: reloutThermoOn.setStatus('current') reloutThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 14)) if mibBuilder.loadTexts: reloutThermoOff.setStatus('current') smart1ThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 15)) if mibBuilder.loadTexts: smart1ThermoOn.setStatus('current') smart1ThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 16)) if mibBuilder.loadTexts: smart1ThermoOff.setStatus('current') smart2ThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 17)) if mibBuilder.loadTexts: smart2ThermoOn.setStatus('current') smart2ThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 18)) if mibBuilder.loadTexts: smart2ThermoOff.setStatus('current') smart3ThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 19)) if mibBuilder.loadTexts: smart3ThermoOn.setStatus('current') smart3ThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 20)) if mibBuilder.loadTexts: smart3ThermoOff.setStatus('current') smart4ThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 21)) if mibBuilder.loadTexts: smart4ThermoOn.setStatus('current') smart4ThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 22)) if mibBuilder.loadTexts: smart4ThermoOff.setStatus('current') smart5ThermoOn = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 23)) if mibBuilder.loadTexts: smart5ThermoOn.setStatus('current') smart5ThermoOff = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 24)) if mibBuilder.loadTexts: smart5ThermoOff.setStatus('current') tempSensorAlarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 29)) if mibBuilder.loadTexts: tempSensorAlarm.setStatus('current') tempSensorRelease = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 30)) if mibBuilder.loadTexts: tempSensorRelease.setStatus('current') voltSensorAlarm = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 31)) if mibBuilder.loadTexts: voltSensorAlarm.setStatus('current') voltSensorRelease = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 32)) if mibBuilder.loadTexts: voltSensorRelease.setStatus('current') task1Done = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 36)) if mibBuilder.loadTexts: task1Done.setStatus('current') task2Done = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 37)) if mibBuilder.loadTexts: task2Done.setStatus('current') task3Done = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 38)) if mibBuilder.loadTexts: task3Done.setStatus('current') task4Done = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 39)) if mibBuilder.loadTexts: task4Done.setStatus('current') pingLost = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 45)) if mibBuilder.loadTexts: pingLost.setStatus('current') batteryChargeLow = NotificationType((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 47)) if mibBuilder.loadTexts: batteryChargeLow.setStatus('current') erd4Group = NotificationGroup((1, 3, 6, 1, 4, 1, 40418, 2, 6, 99)).setObjects(("SNR-ERD-4", "aSense1Alarm"), ("SNR-ERD-4", "aSense1Release"), ("SNR-ERD-4", "aSense2Alarm"), ("SNR-ERD-4", "aSense2Release"), ("SNR-ERD-4", "aSense3Alarm"), ("SNR-ERD-4", "aSense3Release"), ("SNR-ERD-4", "aSense4Alarm"), ("SNR-ERD-4", "aSense4Release"), ("SNR-ERD-4", "aSense5Alarm"), ("SNR-ERD-4", "aSense5Release"), ("SNR-ERD-4", "uSenseAlarm"), ("SNR-ERD-4", "uSenseRelease"), ("SNR-ERD-4", "reloutThermoOn"), ("SNR-ERD-4", "reloutThermoOff"), ("SNR-ERD-4", "smart1ThermoOn"), ("SNR-ERD-4", "smart1ThermoOff"), ("SNR-ERD-4", "smart2ThermoOn"), ("SNR-ERD-4", "smart2ThermoOff"), ("SNR-ERD-4", "smart3ThermoOn"), ("SNR-ERD-4", "smart3ThermoOff"), ("SNR-ERD-4", "smart4ThermoOn"), ("SNR-ERD-4", "smart4ThermoOff"), ("SNR-ERD-4", "smart5ThermoOn"), ("SNR-ERD-4", "smart5ThermoOff"), ("SNR-ERD-4", "tempSensorAlarm"), ("SNR-ERD-4", "tempSensorRelease"), ("SNR-ERD-4", "voltSensorAlarm"), ("SNR-ERD-4", "voltSensorRelease"), ("SNR-ERD-4", "task1Done"), ("SNR-ERD-4", "task2Done"), ("SNR-ERD-4", "task3Done"), ("SNR-ERD-4", "task4Done"), ("SNR-ERD-4", "pingLost"), ("SNR-ERD-4", "batteryChargeLow")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): erd4Group = erd4Group.setStatus('current') mibBuilder.exportSymbols("SNR-ERD-4", voltageSensor=voltageSensor, aSense3Release=aSense3Release, smart2ThermoOff=smart2ThermoOff, serialS2=serialS2, snr=snr, powerSensors=powerSensors, tempSensorRelease=tempSensorRelease, alarmSensor1cnt=alarmSensor1cnt, smart3ThermoOn=smart3ThermoOn, serialS5=serialS5, currentS9=currentS9, serialS8=serialS8, voltageS6=voltageS6, serialS10=serialS10, temperatureS5=temperatureS5, alarmSensor5=alarmSensor5, smart4ThermoOff=smart4ThermoOff, alarmSensor5cnt=alarmSensor5cnt, serialS4=serialS4, erd4Traps=erd4Traps, smart2ThermoOn=smart2ThermoOn, alarmSensor2=alarmSensor2, smart1ThermoOn=smart1ThermoOn, management=management, PYSNMP_MODULE_ID=snr, voltageS10=voltageS10, task2Done=task2Done, alarmSensor3cnt=alarmSensor3cnt, smart4ResetTime=smart4ResetTime, currentS2=currentS2, task4Done=task4Done, voltageS9=voltageS9, reloutThermoOff=reloutThermoOff, smart5State=smart5State, uSenseRelease=uSenseRelease, temperatureS9=temperatureS9, currentS3=currentS3, serialS9=serialS9, uSenseAlarm=uSenseAlarm, snr_erd=snr_erd, smart1ResetTime=smart1ResetTime, temperatureS8=temperatureS8, currentS5=currentS5, smart5ThermoOff=smart5ThermoOff, aSense1Release=aSense1Release, voltageS1=voltageS1, smart5ThermoOn=smart5ThermoOn, temperatureS4=temperatureS4, smart2ResetTime=smart2ResetTime, currentS4=currentS4, temperatureS3=temperatureS3, tempSensorAlarm=tempSensorAlarm, smart4State=smart4State, smart3ResetTime=smart3ResetTime, alarmSensor1=alarmSensor1, temperatureS10=temperatureS10, voltageS7=voltageS7, aSense2Alarm=aSense2Alarm, aSense4Alarm=aSense4Alarm, alarmSensCnts=alarmSensCnts, serialS3=serialS3, voltageS3=voltageS3, smart3State=smart3State, temperatureS6=temperatureS6, dataType=dataType, currentS8=currentS8, uSensor=uSensor, temperatureS2=temperatureS2, voltageS5=voltageS5, smart1State=smart1State, erd4Group=erd4Group, aSense1Alarm=aSense1Alarm, batteryChargeLow=batteryChargeLow, alarmSensor2cnt=alarmSensor2cnt, alarmSensor4=alarmSensor4, aSense4Release=aSense4Release, smart1ThermoOff=smart1ThermoOff, releResetTime=releResetTime, pingLost=pingLost, serialS6=serialS6, smart4ThermoOn=smart4ThermoOn, serialS7=serialS7, smart5ResetTime=smart5ResetTime, currentS6=currentS6, voltageS8=voltageS8, currentS10=currentS10, temperatureS1=temperatureS1, snr_erd_4=snr_erd_4, aSense5Release=aSense5Release, voltSensorRelease=voltSensorRelease, task3Done=task3Done, snrSensors=snrSensors, voltageS2=voltageS2, smart3ThermoOff=smart3ThermoOff, currentS1=currentS1, smart2State=smart2State, currentS7=currentS7, aSense3Alarm=aSense3Alarm, alarmSensor3=alarmSensor3, releState=releState, aSense5Alarm=aSense5Alarm, measurements=measurements, options=options, temperatureSensors=temperatureSensors, serialS1=serialS1, task1Done=task1Done, temperatureS7=temperatureS7, sensesstate=sensesstate, alarmSensor4cnt=alarmSensor4cnt, aSense2Release=aSense2Release, voltSensorAlarm=voltSensorAlarm, counters=counters, reloutThermoOn=reloutThermoOn, voltageS4=voltageS4)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, value_size_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, object_identity, unsigned32, ip_address, iso, gauge32, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, module_identity, counter32, enterprises, bits, counter64, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'IpAddress', 'iso', 'Gauge32', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ModuleIdentity', 'Counter32', 'enterprises', 'Bits', 'Counter64', 'Integer32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') snr = module_identity((1, 3, 6, 1, 4, 1, 40418)) snr.setRevisions(('2015-04-29 12:00',)) if mibBuilder.loadTexts: snr.setLastUpdated('201504291200Z') if mibBuilder.loadTexts: snr.setOrganization('NAG ') snr_erd = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2)).setLabel('snr-erd') snr_erd_4 = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6)).setLabel('snr-erd-4') measurements = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1)) sensesstate = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2)) management = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3)) counters = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8)) options = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 10)) snr_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1)) temperature_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1)) power_sensors = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2)) alarm_sens_cnts = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2)) erd4_traps = mib_identifier((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0)) voltage_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageSensor.setStatus('current') serial_s1 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 10), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS1.setStatus('current') serial_s2 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 11), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS2.setStatus('current') serial_s3 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 12), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS3.setStatus('current') serial_s4 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 13), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS4.setStatus('current') serial_s5 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 14), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS5.setStatus('current') serial_s6 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 15), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS6.setStatus('current') serial_s7 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 16), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS7.setStatus('current') serial_s8 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 17), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS8.setStatus('current') serial_s9 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 18), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS9.setStatus('current') serial_s10 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 19), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: serialS10.setStatus('current') temperature_s1 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS1.setStatus('current') temperature_s2 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS2.setStatus('current') temperature_s3 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS3.setStatus('current') temperature_s4 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS4.setStatus('current') temperature_s5 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS5.setStatus('current') temperature_s6 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS6.setStatus('current') temperature_s7 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS7.setStatus('current') temperature_s8 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS8.setStatus('current') temperature_s9 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS9.setStatus('current') temperature_s10 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureS10.setStatus('current') voltage_s1 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS1.setStatus('current') current_s1 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS1.setStatus('current') voltage_s2 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS2.setStatus('current') current_s2 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS2.setStatus('current') voltage_s3 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS3.setStatus('current') current_s3 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS3.setStatus('current') voltage_s4 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS4.setStatus('current') current_s4 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS4.setStatus('current') voltage_s5 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS5.setStatus('current') current_s5 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS5.setStatus('current') voltage_s6 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS6.setStatus('current') current_s6 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS6.setStatus('current') voltage_s7 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS7.setStatus('current') current_s7 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS7.setStatus('current') voltage_s8 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS8.setStatus('current') current_s8 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 23), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS8.setStatus('current') voltage_s9 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS9.setStatus('current') current_s9 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS9.setStatus('current') voltage_s10 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: voltageS10.setStatus('current') current_s10 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 1, 1, 2, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: currentS10.setStatus('current') alarm_sensor1 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('high', 1), ('low', 0), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alarmSensor1.setStatus('current') alarm_sensor2 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('high', 1), ('low', 0), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alarmSensor2.setStatus('current') alarm_sensor3 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('high', 1), ('low', 0), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alarmSensor3.setStatus('current') alarm_sensor4 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('high', 1), ('low', 0), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alarmSensor4.setStatus('current') alarm_sensor5 = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('high', 1), ('low', 0), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alarmSensor5.setStatus('current') u_sensor = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('no', 1), ('yes', 0)))).setMaxAccess('readonly') if mibBuilder.loadTexts: uSensor.setStatus('current') rele_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: releState.setStatus('current') smart1_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart1State.setStatus('current') smart2_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart2State.setStatus('current') smart3_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart3State.setStatus('current') smart4_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart4State.setStatus('current') smart5_state = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0, 2))).clone(namedValues=named_values(('on', 1), ('off', 0), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart5State.setStatus('current') rele_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 11), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: releResetTime.setStatus('current') smart1_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 12), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart1ResetTime.setStatus('current') smart2_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 13), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart2ResetTime.setStatus('current') smart3_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 14), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart3ResetTime.setStatus('current') smart4_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 15), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart4ResetTime.setStatus('current') smart5_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 3, 16), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: smart5ResetTime.setStatus('current') alarm_sensor1cnt = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 1), counter32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alarmSensor1cnt.setStatus('current') alarm_sensor2cnt = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 2), counter32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alarmSensor2cnt.setStatus('current') alarm_sensor3cnt = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 3), counter32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alarmSensor3cnt.setStatus('current') alarm_sensor4cnt = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 4), counter32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alarmSensor4cnt.setStatus('current') alarm_sensor5cnt = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 8, 2, 5), counter32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alarmSensor5cnt.setStatus('current') data_type = mib_scalar((1, 3, 6, 1, 4, 1, 40418, 2, 6, 10, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('integer', 0), ('float', 1), ('ufloat', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: dataType.setStatus('current') a_sense1_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 1)) if mibBuilder.loadTexts: aSense1Alarm.setStatus('current') a_sense1_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 2)) if mibBuilder.loadTexts: aSense1Release.setStatus('current') a_sense2_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 3)) if mibBuilder.loadTexts: aSense2Alarm.setStatus('current') a_sense2_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 4)) if mibBuilder.loadTexts: aSense2Release.setStatus('current') a_sense3_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 5)) if mibBuilder.loadTexts: aSense3Alarm.setStatus('current') a_sense3_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 6)) if mibBuilder.loadTexts: aSense3Release.setStatus('current') a_sense4_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 7)) if mibBuilder.loadTexts: aSense4Alarm.setStatus('current') a_sense4_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 8)) if mibBuilder.loadTexts: aSense4Release.setStatus('current') a_sense5_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 9)) if mibBuilder.loadTexts: aSense5Alarm.setStatus('current') a_sense5_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 10)) if mibBuilder.loadTexts: aSense5Release.setStatus('current') u_sense_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 11)) if mibBuilder.loadTexts: uSenseAlarm.setStatus('current') u_sense_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 12)) if mibBuilder.loadTexts: uSenseRelease.setStatus('current') relout_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 13)) if mibBuilder.loadTexts: reloutThermoOn.setStatus('current') relout_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 14)) if mibBuilder.loadTexts: reloutThermoOff.setStatus('current') smart1_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 15)) if mibBuilder.loadTexts: smart1ThermoOn.setStatus('current') smart1_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 16)) if mibBuilder.loadTexts: smart1ThermoOff.setStatus('current') smart2_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 17)) if mibBuilder.loadTexts: smart2ThermoOn.setStatus('current') smart2_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 18)) if mibBuilder.loadTexts: smart2ThermoOff.setStatus('current') smart3_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 19)) if mibBuilder.loadTexts: smart3ThermoOn.setStatus('current') smart3_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 20)) if mibBuilder.loadTexts: smart3ThermoOff.setStatus('current') smart4_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 21)) if mibBuilder.loadTexts: smart4ThermoOn.setStatus('current') smart4_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 22)) if mibBuilder.loadTexts: smart4ThermoOff.setStatus('current') smart5_thermo_on = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 23)) if mibBuilder.loadTexts: smart5ThermoOn.setStatus('current') smart5_thermo_off = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 24)) if mibBuilder.loadTexts: smart5ThermoOff.setStatus('current') temp_sensor_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 29)) if mibBuilder.loadTexts: tempSensorAlarm.setStatus('current') temp_sensor_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 30)) if mibBuilder.loadTexts: tempSensorRelease.setStatus('current') volt_sensor_alarm = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 31)) if mibBuilder.loadTexts: voltSensorAlarm.setStatus('current') volt_sensor_release = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 32)) if mibBuilder.loadTexts: voltSensorRelease.setStatus('current') task1_done = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 36)) if mibBuilder.loadTexts: task1Done.setStatus('current') task2_done = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 37)) if mibBuilder.loadTexts: task2Done.setStatus('current') task3_done = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 38)) if mibBuilder.loadTexts: task3Done.setStatus('current') task4_done = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 39)) if mibBuilder.loadTexts: task4Done.setStatus('current') ping_lost = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 45)) if mibBuilder.loadTexts: pingLost.setStatus('current') battery_charge_low = notification_type((1, 3, 6, 1, 4, 1, 40418, 2, 6, 0, 47)) if mibBuilder.loadTexts: batteryChargeLow.setStatus('current') erd4_group = notification_group((1, 3, 6, 1, 4, 1, 40418, 2, 6, 99)).setObjects(('SNR-ERD-4', 'aSense1Alarm'), ('SNR-ERD-4', 'aSense1Release'), ('SNR-ERD-4', 'aSense2Alarm'), ('SNR-ERD-4', 'aSense2Release'), ('SNR-ERD-4', 'aSense3Alarm'), ('SNR-ERD-4', 'aSense3Release'), ('SNR-ERD-4', 'aSense4Alarm'), ('SNR-ERD-4', 'aSense4Release'), ('SNR-ERD-4', 'aSense5Alarm'), ('SNR-ERD-4', 'aSense5Release'), ('SNR-ERD-4', 'uSenseAlarm'), ('SNR-ERD-4', 'uSenseRelease'), ('SNR-ERD-4', 'reloutThermoOn'), ('SNR-ERD-4', 'reloutThermoOff'), ('SNR-ERD-4', 'smart1ThermoOn'), ('SNR-ERD-4', 'smart1ThermoOff'), ('SNR-ERD-4', 'smart2ThermoOn'), ('SNR-ERD-4', 'smart2ThermoOff'), ('SNR-ERD-4', 'smart3ThermoOn'), ('SNR-ERD-4', 'smart3ThermoOff'), ('SNR-ERD-4', 'smart4ThermoOn'), ('SNR-ERD-4', 'smart4ThermoOff'), ('SNR-ERD-4', 'smart5ThermoOn'), ('SNR-ERD-4', 'smart5ThermoOff'), ('SNR-ERD-4', 'tempSensorAlarm'), ('SNR-ERD-4', 'tempSensorRelease'), ('SNR-ERD-4', 'voltSensorAlarm'), ('SNR-ERD-4', 'voltSensorRelease'), ('SNR-ERD-4', 'task1Done'), ('SNR-ERD-4', 'task2Done'), ('SNR-ERD-4', 'task3Done'), ('SNR-ERD-4', 'task4Done'), ('SNR-ERD-4', 'pingLost'), ('SNR-ERD-4', 'batteryChargeLow')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): erd4_group = erd4Group.setStatus('current') mibBuilder.exportSymbols('SNR-ERD-4', voltageSensor=voltageSensor, aSense3Release=aSense3Release, smart2ThermoOff=smart2ThermoOff, serialS2=serialS2, snr=snr, powerSensors=powerSensors, tempSensorRelease=tempSensorRelease, alarmSensor1cnt=alarmSensor1cnt, smart3ThermoOn=smart3ThermoOn, serialS5=serialS5, currentS9=currentS9, serialS8=serialS8, voltageS6=voltageS6, serialS10=serialS10, temperatureS5=temperatureS5, alarmSensor5=alarmSensor5, smart4ThermoOff=smart4ThermoOff, alarmSensor5cnt=alarmSensor5cnt, serialS4=serialS4, erd4Traps=erd4Traps, smart2ThermoOn=smart2ThermoOn, alarmSensor2=alarmSensor2, smart1ThermoOn=smart1ThermoOn, management=management, PYSNMP_MODULE_ID=snr, voltageS10=voltageS10, task2Done=task2Done, alarmSensor3cnt=alarmSensor3cnt, smart4ResetTime=smart4ResetTime, currentS2=currentS2, task4Done=task4Done, voltageS9=voltageS9, reloutThermoOff=reloutThermoOff, smart5State=smart5State, uSenseRelease=uSenseRelease, temperatureS9=temperatureS9, currentS3=currentS3, serialS9=serialS9, uSenseAlarm=uSenseAlarm, snr_erd=snr_erd, smart1ResetTime=smart1ResetTime, temperatureS8=temperatureS8, currentS5=currentS5, smart5ThermoOff=smart5ThermoOff, aSense1Release=aSense1Release, voltageS1=voltageS1, smart5ThermoOn=smart5ThermoOn, temperatureS4=temperatureS4, smart2ResetTime=smart2ResetTime, currentS4=currentS4, temperatureS3=temperatureS3, tempSensorAlarm=tempSensorAlarm, smart4State=smart4State, smart3ResetTime=smart3ResetTime, alarmSensor1=alarmSensor1, temperatureS10=temperatureS10, voltageS7=voltageS7, aSense2Alarm=aSense2Alarm, aSense4Alarm=aSense4Alarm, alarmSensCnts=alarmSensCnts, serialS3=serialS3, voltageS3=voltageS3, smart3State=smart3State, temperatureS6=temperatureS6, dataType=dataType, currentS8=currentS8, uSensor=uSensor, temperatureS2=temperatureS2, voltageS5=voltageS5, smart1State=smart1State, erd4Group=erd4Group, aSense1Alarm=aSense1Alarm, batteryChargeLow=batteryChargeLow, alarmSensor2cnt=alarmSensor2cnt, alarmSensor4=alarmSensor4, aSense4Release=aSense4Release, smart1ThermoOff=smart1ThermoOff, releResetTime=releResetTime, pingLost=pingLost, serialS6=serialS6, smart4ThermoOn=smart4ThermoOn, serialS7=serialS7, smart5ResetTime=smart5ResetTime, currentS6=currentS6, voltageS8=voltageS8, currentS10=currentS10, temperatureS1=temperatureS1, snr_erd_4=snr_erd_4, aSense5Release=aSense5Release, voltSensorRelease=voltSensorRelease, task3Done=task3Done, snrSensors=snrSensors, voltageS2=voltageS2, smart3ThermoOff=smart3ThermoOff, currentS1=currentS1, smart2State=smart2State, currentS7=currentS7, aSense3Alarm=aSense3Alarm, alarmSensor3=alarmSensor3, releState=releState, aSense5Alarm=aSense5Alarm, measurements=measurements, options=options, temperatureSensors=temperatureSensors, serialS1=serialS1, task1Done=task1Done, temperatureS7=temperatureS7, sensesstate=sensesstate, alarmSensor4cnt=alarmSensor4cnt, aSense2Release=aSense2Release, voltSensorAlarm=voltSensorAlarm, counters=counters, reloutThermoOn=reloutThermoOn, voltageS4=voltageS4)
class Subtract: def subtract(initial, remove): if not(remove in initial): return initial index = initial.index(remove) tracker = 0 removed = '' while tracker < len(initial): if not(tracker >= index and tracker < index + len(remove)): removed += initial[tracker:tracker + 1] tracker += 1 return removed def subtract_all(initial, remove): if not(remove in initial): return initial removed = '' tracker = 0 index = initial.index(remove) while tracker < len(initial): if not(tracker >= index and tracker < index + len(remove)): removed += initial[tracker:tracker + 1] if tracker == index + len(remove) - 1 and remove in initial[index + len(remove)]: index = initial.index(remove, index + len(remove)) tracker += 1 return removed #print(Subtract.subtract("hello", "hel"))
class Subtract: def subtract(initial, remove): if not remove in initial: return initial index = initial.index(remove) tracker = 0 removed = '' while tracker < len(initial): if not (tracker >= index and tracker < index + len(remove)): removed += initial[tracker:tracker + 1] tracker += 1 return removed def subtract_all(initial, remove): if not remove in initial: return initial removed = '' tracker = 0 index = initial.index(remove) while tracker < len(initial): if not (tracker >= index and tracker < index + len(remove)): removed += initial[tracker:tracker + 1] if tracker == index + len(remove) - 1 and remove in initial[index + len(remove)]: index = initial.index(remove, index + len(remove)) tracker += 1 return removed
fr=open('migrating.txt', 'r') caseDict = {} oldList = [ "Ball_LightningSphere1.bmp", "Ball_LightningSphere2.bmp", "Ball_LightningSphere3.bmp", "Ball_Paper.bmp", "Ball_Stone.bmp", "Ball_Wood.bmp", "Brick.bmp", "Button01_deselect.tga", "Button01_select.tga", "Button01_special.tga", "Column_beige.bmp", "Column_beige_fade.tga", "Column_blue.bmp", "Dome.bmp", "DomeEnvironment.bmp", "DomeShadow.tga", "ExtraBall.bmp", "ExtraParticle.bmp", "E_Holzbeschlag.bmp", "FloorGlow.bmp", "Floor_Side.bmp", "Floor_Top_Border.bmp", "Floor_Top_Borderless.bmp", "Floor_Top_Checkpoint.bmp", "Floor_Top_Flat.bmp", "Floor_Top_Profil.bmp", "Floor_Top_ProfilFlat.bmp", "Font_1.tga", "Gravitylogo_intro.bmp", "HardShadow.bmp", "Laterne_Glas.bmp", "Laterne_Schatten.tga", "Laterne_Verlauf.tga", "Metal_stained.bmp", "Misc_Ufo.bmp", "Misc_UFO_Flash.bmp", "Modul03_Floor.bmp", "Modul03_Wall.bmp", "Modul11_13_Wood.bmp", "Modul11_Wood.bmp", "Modul15.bmp", "Modul16.bmp", "Modul18.bmp", "Modul18_Gitter.tga", "Modul30_d_Seiten.bmp", "Particle_Flames.bmp", "Particle_Smoke.bmp", "PE_Bal_balloons.bmp", "PE_Bal_platform.bmp", "PE_Ufo_env.bmp", "P_Extra_Life_Oil.bmp", "P_Extra_Life_Particle.bmp", "P_Extra_Life_Shadow.bmp", "Rail_Environment.bmp", "sandsack.bmp", "SkyLayer.bmp", "Sky_Vortex.bmp", "Stick_Bottom.tga", "Stick_Stripes.bmp", "Target.bmp", "Tower_Roof.bmp", "Trafo_Environment.bmp", "Trafo_FlashField.bmp", "Trafo_Shadow_Big.tga", "Wood_Metal.bmp", "Wood_MetalStripes.bmp", "Wood_Misc.bmp", "Wood_Nailed.bmp", "Wood_Old.bmp", "Wood_Panel.bmp", "Wood_Plain.bmp", "Wood_Plain2.bmp", "Wood_Raft.bmp" ] caseMode = False caseIndex = 0 while True: cache=fr.readline() if cache=='': break cache=cache.strip() cache=cache.replace('\t', '') if cache=='': continue if not caseMode: if cache.startswith('//case'): # ignored item # skip this pass elif cache.startswith('case'): codeline = "" caseMode = True caseIndex=int(cache.split(' ')[1].replace(':', '')) else: if cache=='break;': codeline+=cache+"\n" caseMode = False caseDict[caseIndex] = codeline else: codeline+=cache+"\n" fr.close() fw=open('migrated.txt', 'w') newList = [ "atari.avi", "atari.bmp", "Ball_LightningSphere1.bmp", "Ball_LightningSphere2.bmp", "Ball_LightningSphere3.bmp", "Ball_Paper.bmp", "Ball_Stone.bmp", "Ball_Wood.bmp", "Brick.bmp", "Button01_deselect.tga", "Button01_select.tga", "Button01_special.tga", "Column_beige.bmp", "Column_beige_fade.tga", "Column_blue.bmp", "Cursor.tga", "Dome.bmp", "DomeEnvironment.bmp", "DomeShadow.tga", "ExtraBall.bmp", "ExtraParticle.bmp", "E_Holzbeschlag.bmp", "FloorGlow.bmp", "Floor_Side.bmp", "Floor_Top_Border.bmp", "Floor_Top_Borderless.bmp", "Floor_Top_Checkpoint.bmp", "Floor_Top_Flat.bmp", "Floor_Top_Profil.bmp", "Floor_Top_ProfilFlat.bmp", "Font_1.tga", "Gravitylogo_intro.bmp", "HardShadow.bmp", "Laterne_Glas.bmp", "Laterne_Schatten.tga", "Laterne_Verlauf.tga", "Logo.bmp", "Metal_stained.bmp", "Misc_Ufo.bmp", "Misc_UFO_Flash.bmp", "Modul03_Floor.bmp", "Modul03_Wall.bmp", "Modul11_13_Wood.bmp", "Modul11_Wood.bmp", "Modul15.bmp", "Modul16.bmp", "Modul18.bmp", "Modul18_Gitter.tga", "Modul30_d_Seiten.bmp", "Particle_Flames.bmp", "Particle_Smoke.bmp", "PE_Bal_balloons.bmp", "PE_Bal_platform.bmp", "PE_Ufo_env.bmp", "Pfeil.tga", "P_Extra_Life_Oil.bmp", "P_Extra_Life_Particle.bmp", "P_Extra_Life_Shadow.bmp", "Rail_Environment.bmp", "sandsack.bmp", "SkyLayer.bmp", "Sky_Vortex.bmp", "Stick_Bottom.tga", "Stick_Stripes.bmp", "Target.bmp", "Tower_Roof.bmp", "Trafo_Environment.bmp", "Trafo_FlashField.bmp", "Trafo_Shadow_Big.tga", "Tut_Pfeil01.tga", "Tut_Pfeil_Hoch.tga", "Wolken_intro.tga", "Wood_Metal.bmp", "Wood_MetalStripes.bmp", "Wood_Misc.bmp", "Wood_Nailed.bmp", "Wood_Old.bmp", "Wood_Panel.bmp", "Wood_Plain.bmp", "Wood_Plain2.bmp", "Wood_Raft.bmp" ] counter = 0 for item in newList: if item in oldList: existedCode = caseDict.get(oldList.index(item), '') else: existedCode = '' if existedCode == '': fw.write('//') fw.write('case {}: //{}'.format(counter, item)) fw.write('\n') fw.write(existedCode) counter+=1 fw.close()
fr = open('migrating.txt', 'r') case_dict = {} old_list = ['Ball_LightningSphere1.bmp', 'Ball_LightningSphere2.bmp', 'Ball_LightningSphere3.bmp', 'Ball_Paper.bmp', 'Ball_Stone.bmp', 'Ball_Wood.bmp', 'Brick.bmp', 'Button01_deselect.tga', 'Button01_select.tga', 'Button01_special.tga', 'Column_beige.bmp', 'Column_beige_fade.tga', 'Column_blue.bmp', 'Dome.bmp', 'DomeEnvironment.bmp', 'DomeShadow.tga', 'ExtraBall.bmp', 'ExtraParticle.bmp', 'E_Holzbeschlag.bmp', 'FloorGlow.bmp', 'Floor_Side.bmp', 'Floor_Top_Border.bmp', 'Floor_Top_Borderless.bmp', 'Floor_Top_Checkpoint.bmp', 'Floor_Top_Flat.bmp', 'Floor_Top_Profil.bmp', 'Floor_Top_ProfilFlat.bmp', 'Font_1.tga', 'Gravitylogo_intro.bmp', 'HardShadow.bmp', 'Laterne_Glas.bmp', 'Laterne_Schatten.tga', 'Laterne_Verlauf.tga', 'Metal_stained.bmp', 'Misc_Ufo.bmp', 'Misc_UFO_Flash.bmp', 'Modul03_Floor.bmp', 'Modul03_Wall.bmp', 'Modul11_13_Wood.bmp', 'Modul11_Wood.bmp', 'Modul15.bmp', 'Modul16.bmp', 'Modul18.bmp', 'Modul18_Gitter.tga', 'Modul30_d_Seiten.bmp', 'Particle_Flames.bmp', 'Particle_Smoke.bmp', 'PE_Bal_balloons.bmp', 'PE_Bal_platform.bmp', 'PE_Ufo_env.bmp', 'P_Extra_Life_Oil.bmp', 'P_Extra_Life_Particle.bmp', 'P_Extra_Life_Shadow.bmp', 'Rail_Environment.bmp', 'sandsack.bmp', 'SkyLayer.bmp', 'Sky_Vortex.bmp', 'Stick_Bottom.tga', 'Stick_Stripes.bmp', 'Target.bmp', 'Tower_Roof.bmp', 'Trafo_Environment.bmp', 'Trafo_FlashField.bmp', 'Trafo_Shadow_Big.tga', 'Wood_Metal.bmp', 'Wood_MetalStripes.bmp', 'Wood_Misc.bmp', 'Wood_Nailed.bmp', 'Wood_Old.bmp', 'Wood_Panel.bmp', 'Wood_Plain.bmp', 'Wood_Plain2.bmp', 'Wood_Raft.bmp'] case_mode = False case_index = 0 while True: cache = fr.readline() if cache == '': break cache = cache.strip() cache = cache.replace('\t', '') if cache == '': continue if not caseMode: if cache.startswith('//case'): pass elif cache.startswith('case'): codeline = '' case_mode = True case_index = int(cache.split(' ')[1].replace(':', '')) elif cache == 'break;': codeline += cache + '\n' case_mode = False caseDict[caseIndex] = codeline else: codeline += cache + '\n' fr.close() fw = open('migrated.txt', 'w') new_list = ['atari.avi', 'atari.bmp', 'Ball_LightningSphere1.bmp', 'Ball_LightningSphere2.bmp', 'Ball_LightningSphere3.bmp', 'Ball_Paper.bmp', 'Ball_Stone.bmp', 'Ball_Wood.bmp', 'Brick.bmp', 'Button01_deselect.tga', 'Button01_select.tga', 'Button01_special.tga', 'Column_beige.bmp', 'Column_beige_fade.tga', 'Column_blue.bmp', 'Cursor.tga', 'Dome.bmp', 'DomeEnvironment.bmp', 'DomeShadow.tga', 'ExtraBall.bmp', 'ExtraParticle.bmp', 'E_Holzbeschlag.bmp', 'FloorGlow.bmp', 'Floor_Side.bmp', 'Floor_Top_Border.bmp', 'Floor_Top_Borderless.bmp', 'Floor_Top_Checkpoint.bmp', 'Floor_Top_Flat.bmp', 'Floor_Top_Profil.bmp', 'Floor_Top_ProfilFlat.bmp', 'Font_1.tga', 'Gravitylogo_intro.bmp', 'HardShadow.bmp', 'Laterne_Glas.bmp', 'Laterne_Schatten.tga', 'Laterne_Verlauf.tga', 'Logo.bmp', 'Metal_stained.bmp', 'Misc_Ufo.bmp', 'Misc_UFO_Flash.bmp', 'Modul03_Floor.bmp', 'Modul03_Wall.bmp', 'Modul11_13_Wood.bmp', 'Modul11_Wood.bmp', 'Modul15.bmp', 'Modul16.bmp', 'Modul18.bmp', 'Modul18_Gitter.tga', 'Modul30_d_Seiten.bmp', 'Particle_Flames.bmp', 'Particle_Smoke.bmp', 'PE_Bal_balloons.bmp', 'PE_Bal_platform.bmp', 'PE_Ufo_env.bmp', 'Pfeil.tga', 'P_Extra_Life_Oil.bmp', 'P_Extra_Life_Particle.bmp', 'P_Extra_Life_Shadow.bmp', 'Rail_Environment.bmp', 'sandsack.bmp', 'SkyLayer.bmp', 'Sky_Vortex.bmp', 'Stick_Bottom.tga', 'Stick_Stripes.bmp', 'Target.bmp', 'Tower_Roof.bmp', 'Trafo_Environment.bmp', 'Trafo_FlashField.bmp', 'Trafo_Shadow_Big.tga', 'Tut_Pfeil01.tga', 'Tut_Pfeil_Hoch.tga', 'Wolken_intro.tga', 'Wood_Metal.bmp', 'Wood_MetalStripes.bmp', 'Wood_Misc.bmp', 'Wood_Nailed.bmp', 'Wood_Old.bmp', 'Wood_Panel.bmp', 'Wood_Plain.bmp', 'Wood_Plain2.bmp', 'Wood_Raft.bmp'] counter = 0 for item in newList: if item in oldList: existed_code = caseDict.get(oldList.index(item), '') else: existed_code = '' if existedCode == '': fw.write('//') fw.write('case {}: //{}'.format(counter, item)) fw.write('\n') fw.write(existedCode) counter += 1 fw.close()
class Net3(nn.Module): def __init__(self, kernel=None, padding=0, stride=2): super(Net3, self).__init__() self.conv1 = nn.Conv2d(in_channels=1, out_channels=3, kernel_size=3, padding=padding) # first kernel - leading diagonal kernel_1 = torch.Tensor([[[1, -1, -1], [-1, 1, -1], [-1, -1, 1]]]) # second kernel -checkerboard pattern kernel_2 = torch.Tensor([[[1, -1, 1], [-1, 1, -1], [1, -1, 1]]]) # third kernel - other diagonal kernel_3 = torch.Tensor([[[-1, -1, 1], [-1, 1, -1], [1, -1, -1]]]) multiple_kernels = torch.stack([kernel_1, kernel_2, kernel_3], dim=0) self.conv1.weight = torch.nn.Parameter(multiple_kernels) self.conv1.bias = torch.nn.Parameter(torch.Tensor([0, 0, 0])) self.pool = nn.MaxPool2d(kernel_size=2, stride=stride) def forward(self, x): x = self.conv1(x) x = F.relu(x) x = self.pool(x) # pass through a max pool layer return x # add event to airtable atform.add_event('Coding Exercise 3.3: Implement MaxPooling') ## check if your implementation is correct net = Net3().to(DEVICE) check_pooling_net(net, device=DEVICE)
class Net3(nn.Module): def __init__(self, kernel=None, padding=0, stride=2): super(Net3, self).__init__() self.conv1 = nn.Conv2d(in_channels=1, out_channels=3, kernel_size=3, padding=padding) kernel_1 = torch.Tensor([[[1, -1, -1], [-1, 1, -1], [-1, -1, 1]]]) kernel_2 = torch.Tensor([[[1, -1, 1], [-1, 1, -1], [1, -1, 1]]]) kernel_3 = torch.Tensor([[[-1, -1, 1], [-1, 1, -1], [1, -1, -1]]]) multiple_kernels = torch.stack([kernel_1, kernel_2, kernel_3], dim=0) self.conv1.weight = torch.nn.Parameter(multiple_kernels) self.conv1.bias = torch.nn.Parameter(torch.Tensor([0, 0, 0])) self.pool = nn.MaxPool2d(kernel_size=2, stride=stride) def forward(self, x): x = self.conv1(x) x = F.relu(x) x = self.pool(x) return x atform.add_event('Coding Exercise 3.3: Implement MaxPooling') net = net3().to(DEVICE) check_pooling_net(net, device=DEVICE)
# Fonte https://www.thehuxley.com/problem/2253?locale=pt_BR # TODO: Ordenar saidas de forma alfabetica, seguindo especificacoes do problema tamanho_a, tamanho_b = input().split() tamanho_a = int(tamanho_a) tamanho_b = int(tamanho_b) selecionados_a, selecionados_b = input().split() selecionados_a = int(selecionados_a) selecionados_b = int(selecionados_b) a = input().split() a = list(map(int, a)) b = input().split() b = list(map(int, b)) a.sort() b.sort(reverse=True) if a[selecionados_a - 1] < b[selecionados_b - 1]: print("YES") else: print("NO")
(tamanho_a, tamanho_b) = input().split() tamanho_a = int(tamanho_a) tamanho_b = int(tamanho_b) (selecionados_a, selecionados_b) = input().split() selecionados_a = int(selecionados_a) selecionados_b = int(selecionados_b) a = input().split() a = list(map(int, a)) b = input().split() b = list(map(int, b)) a.sort() b.sort(reverse=True) if a[selecionados_a - 1] < b[selecionados_b - 1]: print('YES') else: print('NO')
# # PySNMP MIB module ASCEND-CALL-LOGGING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-CALL-LOGGING-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:26:02 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) # callLoggingGroup, = mibBuilder.importSymbols("ASCEND-MIB", "callLoggingGroup") Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, MibIdentifier, TimeTicks, Unsigned32, NotificationType, Gauge32, Counter64, Counter32, iso, Bits, Integer32, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibIdentifier", "TimeTicks", "Unsigned32", "NotificationType", "Gauge32", "Counter64", "Counter32", "iso", "Bits", "Integer32", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") callLoggingNumServers = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callLoggingNumServers.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingNumServers.setDescription('The maximum number of Call Logging servers supported by the system.') callLoggingServerTable = MibTable((1, 3, 6, 1, 4, 1, 529, 25, 2), ) if mibBuilder.loadTexts: callLoggingServerTable.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerTable.setDescription('A list of entries for Call Logging Server addresses.') callLoggingServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 25, 2, 1), ).setIndexNames((0, "ASCEND-CALL-LOGGING-MIB", "callLoggingServerIndex")) if mibBuilder.loadTexts: callLoggingServerEntry.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerEntry.setDescription('Entry holding information about the currently active Call Logging Server and the address of a Server.') callLoggingServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callLoggingServerIndex.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerIndex.setDescription("The index number for this Call Logging server entry. Its value ranges from 1 to 'callLoggingNumServers'. and identifies which server entry is associated with.") callLoggingCurrentServerFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("standby", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callLoggingCurrentServerFlag.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingCurrentServerFlag.setDescription('Value indicates whether this entry is the current Call Logging server or not.') callLoggingServerIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingServerIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerIPAddress.setDescription('The IP address of Call Logging server. The value 0.0.0.0 is returned if entry is invalid.') callLoggingEnableActiveServer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notApplicable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingEnableActiveServer.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingEnableActiveServer.setDescription('This is used to set the active call Logging server. If set to enable(2) it will enable the call Logging server, A read on the variable will return notApplicable(1).') callLoggingStatus = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingStatus.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingStatus.setDescription('Enable/Disable call loggin support. Note: Prior to enable the call Logging, one of the Call Logging server must be setup with a valid IP address. If the server IP address is not setup, a SET to this object will return with a bad value error.') callLoggingPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingPortNumber.setDescription('The UDP server port to use for Call Logging packets.') callLoggingKey = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingKey.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingKey.setDescription('The (RADIUS_ACCT) call logging key to access server.') callLoggingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingTimeout.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingTimeout.setDescription('Number of seconds to wait for a response to previous Call Logging request sent to server.') callLoggingIdBase = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 10, 16))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("base10", 10), ("base16", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingIdBase.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingIdBase.setDescription('The Base to use in reporting Call Logging ID.') callLoggingResetTime = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingResetTime.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingResetTime.setDescription('The time to reset to the primary server after it has failed.') callLoggingStopPacketsOnly = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingStopPacketsOnly.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingStopPacketsOnly.setDescription('Send call log Stop packets that have username=0. These are caused by connections that are dropped before authentication is done.') callLoggingRetryLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 10), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingRetryLimit.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingRetryLimit.setDescription('Number of retries before removing Call Logging packet. 0 means leave on retry list until maximum retry entries are exceeded.') callLoggingAssStatus = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("idle", 1), ("active", 2), ("aborted", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: callLoggingAssStatus.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingAssStatus.setDescription('Indicates the status of Active Session Snapshot protocol. Writing the attribute with a nonzero value causes the start of an Active Session Snapshot. If no server is configured the Active Session Snapshot will abort immediatly, an active session can not be aborted') callLoggingDroppedPacketCount = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: callLoggingDroppedPacketCount.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingDroppedPacketCount.setDescription('Number of dropped Call Logging packets since the last Active Session Snapshot') callLoggingRadCompatMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 25, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("radOldAscend", 3), ("radVendorSpecific", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: callLoggingRadCompatMode.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingRadCompatMode.setDescription('Indicates call logging RADIUS compatibility mode. This variable is deprecated, starting with TAOS Release 8.0. this variable has a fixed value of radVendorSpecific(4)') mibBuilder.exportSymbols("ASCEND-CALL-LOGGING-MIB", callLoggingKey=callLoggingKey, callLoggingServerEntry=callLoggingServerEntry, callLoggingStatus=callLoggingStatus, callLoggingDroppedPacketCount=callLoggingDroppedPacketCount, callLoggingServerIndex=callLoggingServerIndex, callLoggingTimeout=callLoggingTimeout, callLoggingServerTable=callLoggingServerTable, callLoggingStopPacketsOnly=callLoggingStopPacketsOnly, callLoggingRadCompatMode=callLoggingRadCompatMode, callLoggingNumServers=callLoggingNumServers, callLoggingResetTime=callLoggingResetTime, callLoggingRetryLimit=callLoggingRetryLimit, callLoggingIdBase=callLoggingIdBase, callLoggingEnableActiveServer=callLoggingEnableActiveServer, callLoggingAssStatus=callLoggingAssStatus, callLoggingCurrentServerFlag=callLoggingCurrentServerFlag, callLoggingServerIPAddress=callLoggingServerIPAddress, callLoggingPortNumber=callLoggingPortNumber)
(call_logging_group,) = mibBuilder.importSymbols('ASCEND-MIB', 'callLoggingGroup') (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (ip_address, mib_identifier, time_ticks, unsigned32, notification_type, gauge32, counter64, counter32, iso, bits, integer32, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'MibIdentifier', 'TimeTicks', 'Unsigned32', 'NotificationType', 'Gauge32', 'Counter64', 'Counter32', 'iso', 'Bits', 'Integer32', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') call_logging_num_servers = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callLoggingNumServers.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingNumServers.setDescription('The maximum number of Call Logging servers supported by the system.') call_logging_server_table = mib_table((1, 3, 6, 1, 4, 1, 529, 25, 2)) if mibBuilder.loadTexts: callLoggingServerTable.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerTable.setDescription('A list of entries for Call Logging Server addresses.') call_logging_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 25, 2, 1)).setIndexNames((0, 'ASCEND-CALL-LOGGING-MIB', 'callLoggingServerIndex')) if mibBuilder.loadTexts: callLoggingServerEntry.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerEntry.setDescription('Entry holding information about the currently active Call Logging Server and the address of a Server.') call_logging_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callLoggingServerIndex.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerIndex.setDescription("The index number for this Call Logging server entry. Its value ranges from 1 to 'callLoggingNumServers'. and identifies which server entry is associated with.") call_logging_current_server_flag = mib_table_column((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('standby', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callLoggingCurrentServerFlag.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingCurrentServerFlag.setDescription('Value indicates whether this entry is the current Call Logging server or not.') call_logging_server_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingServerIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingServerIPAddress.setDescription('The IP address of Call Logging server. The value 0.0.0.0 is returned if entry is invalid.') call_logging_enable_active_server = mib_table_column((1, 3, 6, 1, 4, 1, 529, 25, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notApplicable', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingEnableActiveServer.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingEnableActiveServer.setDescription('This is used to set the active call Logging server. If set to enable(2) it will enable the call Logging server, A read on the variable will return notApplicable(1).') call_logging_status = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingStatus.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingStatus.setDescription('Enable/Disable call loggin support. Note: Prior to enable the call Logging, one of the Call Logging server must be setup with a valid IP address. If the server IP address is not setup, a SET to this object will return with a bad value error.') call_logging_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingPortNumber.setDescription('The UDP server port to use for Call Logging packets.') call_logging_key = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingKey.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingKey.setDescription('The (RADIUS_ACCT) call logging key to access server.') call_logging_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingTimeout.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingTimeout.setDescription('Number of seconds to wait for a response to previous Call Logging request sent to server.') call_logging_id_base = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 10, 16))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('base10', 10), ('base16', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingIdBase.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingIdBase.setDescription('The Base to use in reporting Call Logging ID.') call_logging_reset_time = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingResetTime.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingResetTime.setDescription('The time to reset to the primary server after it has failed.') call_logging_stop_packets_only = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingStopPacketsOnly.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingStopPacketsOnly.setDescription('Send call log Stop packets that have username=0. These are caused by connections that are dropped before authentication is done.') call_logging_retry_limit = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 10), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingRetryLimit.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingRetryLimit.setDescription('Number of retries before removing Call Logging packet. 0 means leave on retry list until maximum retry entries are exceeded.') call_logging_ass_status = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('idle', 1), ('active', 2), ('aborted', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: callLoggingAssStatus.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingAssStatus.setDescription('Indicates the status of Active Session Snapshot protocol. Writing the attribute with a nonzero value causes the start of an Active Session Snapshot. If no server is configured the Active Session Snapshot will abort immediatly, an active session can not be aborted') call_logging_dropped_packet_count = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: callLoggingDroppedPacketCount.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingDroppedPacketCount.setDescription('Number of dropped Call Logging packets since the last Active Session Snapshot') call_logging_rad_compat_mode = mib_scalar((1, 3, 6, 1, 4, 1, 529, 25, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('invalid', 2), ('radOldAscend', 3), ('radVendorSpecific', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: callLoggingRadCompatMode.setStatus('mandatory') if mibBuilder.loadTexts: callLoggingRadCompatMode.setDescription('Indicates call logging RADIUS compatibility mode. This variable is deprecated, starting with TAOS Release 8.0. this variable has a fixed value of radVendorSpecific(4)') mibBuilder.exportSymbols('ASCEND-CALL-LOGGING-MIB', callLoggingKey=callLoggingKey, callLoggingServerEntry=callLoggingServerEntry, callLoggingStatus=callLoggingStatus, callLoggingDroppedPacketCount=callLoggingDroppedPacketCount, callLoggingServerIndex=callLoggingServerIndex, callLoggingTimeout=callLoggingTimeout, callLoggingServerTable=callLoggingServerTable, callLoggingStopPacketsOnly=callLoggingStopPacketsOnly, callLoggingRadCompatMode=callLoggingRadCompatMode, callLoggingNumServers=callLoggingNumServers, callLoggingResetTime=callLoggingResetTime, callLoggingRetryLimit=callLoggingRetryLimit, callLoggingIdBase=callLoggingIdBase, callLoggingEnableActiveServer=callLoggingEnableActiveServer, callLoggingAssStatus=callLoggingAssStatus, callLoggingCurrentServerFlag=callLoggingCurrentServerFlag, callLoggingServerIPAddress=callLoggingServerIPAddress, callLoggingPortNumber=callLoggingPortNumber)