content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
with open("input", 'r') as f:
lines = f.readlines()
# lines = [x.strip("\n") for x in lines]
lines.append("\n")
total = 0
answers = set()
for line in lines:
if line == "\n":
total += len(answers)
answers = set()
else:
for letter in line.strip("\n"):
answers.add(letter)
print("Total: {}".format(total))
| with open('input', 'r') as f:
lines = f.readlines()
lines.append('\n')
total = 0
answers = set()
for line in lines:
if line == '\n':
total += len(answers)
answers = set()
else:
for letter in line.strip('\n'):
answers.add(letter)
print('Total: {}'.format(total)) |
#pass is just a placeholder which does nothing
def func():
pass
for i in [1,2,3,4,5]:
pass | def func():
pass
for i in [1, 2, 3, 4, 5]:
pass |
del_items(0x800A0E8C)
SetType(0x800A0E8C, "void VID_OpenModule__Fv()")
del_items(0x800A0F4C)
SetType(0x800A0F4C, "void InitScreens__Fv()")
del_items(0x800A103C)
SetType(0x800A103C, "void MEM_SetupMem__Fv()")
del_items(0x800A1068)
SetType(0x800A1068, "void SetupWorkRam__Fv()")
del_items(0x800A10F8)
SetType(0x800A10F8, "void SYSI_Init__Fv()")
del_items(0x800A1204)
SetType(0x800A1204, "void GM_Open__Fv()")
del_items(0x800A1228)
SetType(0x800A1228, "void PA_Open__Fv()")
del_items(0x800A1260)
SetType(0x800A1260, "void PAD_Open__Fv()")
del_items(0x800A12A4)
SetType(0x800A12A4, "void OVR_Open__Fv()")
del_items(0x800A12C4)
SetType(0x800A12C4, "void SCR_Open__Fv()")
del_items(0x800A12F4)
SetType(0x800A12F4, "void DEC_Open__Fv()")
del_items(0x800A1568)
SetType(0x800A1568, "char *GetVersionString__FPc(char *VersionString2)")
del_items(0x800A163C)
SetType(0x800A163C, "char *GetWord__FPc(char *VStr)")
| del_items(2148142732)
set_type(2148142732, 'void VID_OpenModule__Fv()')
del_items(2148142924)
set_type(2148142924, 'void InitScreens__Fv()')
del_items(2148143164)
set_type(2148143164, 'void MEM_SetupMem__Fv()')
del_items(2148143208)
set_type(2148143208, 'void SetupWorkRam__Fv()')
del_items(2148143352)
set_type(2148143352, 'void SYSI_Init__Fv()')
del_items(2148143620)
set_type(2148143620, 'void GM_Open__Fv()')
del_items(2148143656)
set_type(2148143656, 'void PA_Open__Fv()')
del_items(2148143712)
set_type(2148143712, 'void PAD_Open__Fv()')
del_items(2148143780)
set_type(2148143780, 'void OVR_Open__Fv()')
del_items(2148143812)
set_type(2148143812, 'void SCR_Open__Fv()')
del_items(2148143860)
set_type(2148143860, 'void DEC_Open__Fv()')
del_items(2148144488)
set_type(2148144488, 'char *GetVersionString__FPc(char *VersionString2)')
del_items(2148144700)
set_type(2148144700, 'char *GetWord__FPc(char *VStr)') |
def mergeSort(a, temp, leftStart, rightEnd):
if(leftStart >= rightEnd):
return
middle = int((leftStart + rightEnd) / 2)
mergeSort(a, temp, leftStart, middle)
mergeSort(a, temp, middle + 1, rightEnd)
merge(a, temp, leftStart, middle, rightEnd)
return
def merge(a, temp, leftStart, middle, rightEnd):
left = leftStart
right = middle + 1
index = leftStart
while(left <= middle and right <= rightEnd):
if(a[left] <= a[right]):
temp[index] = a[left]
left += 1
else:
temp[index] = a[right]
right += 1
index += 1
while left <= middle:
temp[index] = a[left]
left += 1
index += 1
while right <= rightEnd:
temp[index] = a[right]
right += 1
index += 1
a[leftStart:rightEnd+1] = temp[leftStart:rightEnd+1] | def merge_sort(a, temp, leftStart, rightEnd):
if leftStart >= rightEnd:
return
middle = int((leftStart + rightEnd) / 2)
merge_sort(a, temp, leftStart, middle)
merge_sort(a, temp, middle + 1, rightEnd)
merge(a, temp, leftStart, middle, rightEnd)
return
def merge(a, temp, leftStart, middle, rightEnd):
left = leftStart
right = middle + 1
index = leftStart
while left <= middle and right <= rightEnd:
if a[left] <= a[right]:
temp[index] = a[left]
left += 1
else:
temp[index] = a[right]
right += 1
index += 1
while left <= middle:
temp[index] = a[left]
left += 1
index += 1
while right <= rightEnd:
temp[index] = a[right]
right += 1
index += 1
a[leftStart:rightEnd + 1] = temp[leftStart:rightEnd + 1] |
def ans(n):
global fib
for i in range(1,99):
if fib[i]==n: return n
if fib[i+1]>n: return ans(n-fib[i])
fib=[1]*100
for i in range(2,100):
fib[i]=fib[i-1]+fib[i-2]
n=int(input())
print(ans(n)) | def ans(n):
global fib
for i in range(1, 99):
if fib[i] == n:
return n
if fib[i + 1] > n:
return ans(n - fib[i])
fib = [1] * 100
for i in range(2, 100):
fib[i] = fib[i - 1] + fib[i - 2]
n = int(input())
print(ans(n)) |
#
# This file contains the Python code from Program 7.23 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm07_23.txt
#
class SortedList(OrderedList):
def __init__(self):
super(SortedList, self).__init__()
| class Sortedlist(OrderedList):
def __init__(self):
super(SortedList, self).__init__() |
'''Program to read a number and check whether it is duck number or not.
Hint: A duck number is a number which has zeros present in it, but no zero present in the begining of the number.
Input Format
a number from the user
Constraints
n>=0
Output Format
Yes or No
Sample Input 0
123
Sample Output 0
No
Sample Input 1
140
Sample Output 1
Yes'''
#solution
def duck(num):
num.lstrip('0')
if num.count('0')>0:
return "Yes"
return "No"
print(duck(input()))
| """Program to read a number and check whether it is duck number or not.
Hint: A duck number is a number which has zeros present in it, but no zero present in the begining of the number.
Input Format
a number from the user
Constraints
n>=0
Output Format
Yes or No
Sample Input 0
123
Sample Output 0
No
Sample Input 1
140
Sample Output 1
Yes"""
def duck(num):
num.lstrip('0')
if num.count('0') > 0:
return 'Yes'
return 'No'
print(duck(input())) |
consumer_key = "TSKf1HtYKBsnYU9qfpvbRJkxo"
consumer_secret = "Y5lH7u6MDu5DjV5hUxEkwUpPwugYvEuqfpqyvP7y5ulen9XUML"
access_token = '115029611-4TampaXbxHmUHcpK5Cll8h7rioP80SJMNneZiYCN'
access_secret = 'wx4iaVvgvY5ZknCn6bOiKFiTzAU62R5PXC8b29RC6alwU'
| consumer_key = 'TSKf1HtYKBsnYU9qfpvbRJkxo'
consumer_secret = 'Y5lH7u6MDu5DjV5hUxEkwUpPwugYvEuqfpqyvP7y5ulen9XUML'
access_token = '115029611-4TampaXbxHmUHcpK5Cll8h7rioP80SJMNneZiYCN'
access_secret = 'wx4iaVvgvY5ZknCn6bOiKFiTzAU62R5PXC8b29RC6alwU' |
# Breadth First Search and Depth First Search
class BinarySearchTree:
def __init__(self):
self.root = None
# Insert a new node
def insert(self, value):
new_node = {
'value': value,
'left': None,
'right': None
}
if not self.root:
self.root = new_node
else:
current_node = self.root
while True:
if value < current_node['value']:
# Going left
if not current_node['left']:
current_node['left'] = new_node
break
current_node = current_node['left']
else:
# Going right
if not current_node['right']:
current_node['right'] = new_node
break
current_node = current_node['right']
return self
# Search the tree for a value
def lookup(self, value):
if not self.root:
return None
current_node = self.root
while current_node:
if value < current_node['value']:
# Going left
current_node = current_node['left']
elif value > current_node['value']:
# Going right
current_node = current_node['right']
elif current_node['value'] == value:
return current_node
return f'{value} not found'
# Remove a node
def remove(self, value):
if not self.root:
return False
# Find a number and its succesor
current_node = self.root
parent_node = current_node
while current_node:
if value < current_node['value']:
parent_node = current_node
current_node = current_node['left']
elif value > current_node['value']:
parent_node = current_node
current_node = current_node['right']
# if a match
elif current_node['value'] == value:
# CASE 1: No right child:
if current_node['right'] == None:
if parent_node == None:
self.root = current_node['left']
else:
# if parent > current value, make current left child a child of parent
if current_node['value'] < parent_node['value']:
parent_node['left'] = current_node['left']
# if parent < current value, make left child a right child of parent
elif current_node['value'] > parent_node['value']:
parent_node['right'] = current_node['left']
return f'{value} was removed'
# CASE 2: Right child doesn't have a left child
elif current_node['right']['left'] == None:
current_node['right']['left'] = current_node['left']
if parent_node == None:
self.root = current_node['right']
else:
# if parent > current, make right child of the left the parent
if current_node['value'] < parent_node['value']:
parent_node['left'] = current_node['right']
# if parent < current, make right child a right child of the parent
elif current_node['value'] > parent_node['value']:
parent_node['right'] = current_node['right']
return f'{value} was removed'
# CASE 3: Right child that has a left child
else:
# find the Right child's left most child
leftmost = current_node['right']['left']
leftmost_parent = current_node['right']
while leftmost['left'] != None:
leftmost_parent = leftmost
leftmost = leftmost['left']
# Parent's left subtree is now leftmost's right subtree
leftmost_parent['left'] = leftmost['right']
leftmost['left'] = current_node['left']
leftmost['right'] = current_node['right']
if parent_node == None:
self.root = leftmost
else:
if current_node['value'] < parent_node['value']:
parent_node['left'] = leftmost
elif current_node['value'] > parent_node['value']:
parent_node['right'] = leftmost
return f'{value} was removed'
# if value not found
return f'{value} not found'
# Memmory consumption is big - if the tree is wide, don't use it
def breadth_first_seacrh(self):
# start with the root
current_node = self.root
l = [] # answer
queue = [] # to keep track of children
queue.append(current_node)
while len(queue) > 0:
current_node = queue.pop(0)
l.append(current_node['value'])
if current_node['left']:
queue.append(current_node['left'])
if current_node['right']:
queue.append(current_node['right'])
return l
# Recursive BFS
def breadth_first_seacrh_recursive(self, queue, l):
if not len(queue):
return l
current_node = queue.pop(0)
l.append(current_node['value'])
if current_node['left']:
queue.append(current_node['left'])
if current_node['right']:
queue.append(current_node['right'])
return self.breadth_first_seacrh_recursive(queue, l)
# Determine if the tree is a valid BST
def isValidBST(self, root):
queue = []
current_value = root
prev = -float('inf')
while current_value or queue:
# Add all left nodes into the queue starting from the root
if current_value:
queue.append(current_value)
current_value = current_value['left']
else:
# Compare each node from the queue
# to its parent node
last_value = queue.pop()
if last_value:
if last_value['value'] <= prev:
return False
prev = last_value['value']
# Repeat for the right node
current_value = last_value['right']
return True
# In-order -> [1, 4, 6, 9, 15, 20, 170]
def depth_first_search_in_order(self):
return traverse_in_order(self.root, [])
# Pre-order -> [9, 4, 1, 6, 20, 15, 170] - Tree recreation
def depth_first_search_pre_order(self):
return traverse_pre_order(self.root, [])
# Post-order -> [1, 6, 4, 15, 170, 20, 9] - children before parent
def depth_first_search_post_order(self):
return traverse_post_order(self.root, [])
def traverse_in_order(node, l):
if node['left']:
traverse_in_order(node['left'], l)
l.append(node['value'])
if node['right']:
traverse_in_order(node['right'], l)
return l
def traverse_pre_order(node, l):
l.append(node['value'])
if node['left']:
traverse_pre_order(node['left'], l)
if node['right']:
traverse_pre_order(node['right'], l)
return l
def traverse_post_order(node, l):
if node['left']:
traverse_post_order(node['left'], l)
if node['right']:
traverse_post_order(node['right'], l)
l.append(node['value'])
return l
if __name__ == '__main__':
tree = BinarySearchTree()
tree.insert(9)
tree.insert(4)
tree.insert(6)
tree.insert(20)
tree.insert(170)
tree.insert(15)
tree.insert(1)
print('BFS', tree.breadth_first_seacrh())
print('BFS recursive',
tree.breadth_first_seacrh_recursive([tree.root], []))
print('DFS in-order', tree.depth_first_search_in_order())
print('DFS pre-oder', tree.depth_first_search_pre_order())
print('DFS post-oder', tree.depth_first_search_post_order())
print(tree.isValidBST(tree.root))
| class Binarysearchtree:
def __init__(self):
self.root = None
def insert(self, value):
new_node = {'value': value, 'left': None, 'right': None}
if not self.root:
self.root = new_node
else:
current_node = self.root
while True:
if value < current_node['value']:
if not current_node['left']:
current_node['left'] = new_node
break
current_node = current_node['left']
else:
if not current_node['right']:
current_node['right'] = new_node
break
current_node = current_node['right']
return self
def lookup(self, value):
if not self.root:
return None
current_node = self.root
while current_node:
if value < current_node['value']:
current_node = current_node['left']
elif value > current_node['value']:
current_node = current_node['right']
elif current_node['value'] == value:
return current_node
return f'{value} not found'
def remove(self, value):
if not self.root:
return False
current_node = self.root
parent_node = current_node
while current_node:
if value < current_node['value']:
parent_node = current_node
current_node = current_node['left']
elif value > current_node['value']:
parent_node = current_node
current_node = current_node['right']
elif current_node['value'] == value:
if current_node['right'] == None:
if parent_node == None:
self.root = current_node['left']
elif current_node['value'] < parent_node['value']:
parent_node['left'] = current_node['left']
elif current_node['value'] > parent_node['value']:
parent_node['right'] = current_node['left']
return f'{value} was removed'
elif current_node['right']['left'] == None:
current_node['right']['left'] = current_node['left']
if parent_node == None:
self.root = current_node['right']
elif current_node['value'] < parent_node['value']:
parent_node['left'] = current_node['right']
elif current_node['value'] > parent_node['value']:
parent_node['right'] = current_node['right']
return f'{value} was removed'
else:
leftmost = current_node['right']['left']
leftmost_parent = current_node['right']
while leftmost['left'] != None:
leftmost_parent = leftmost
leftmost = leftmost['left']
leftmost_parent['left'] = leftmost['right']
leftmost['left'] = current_node['left']
leftmost['right'] = current_node['right']
if parent_node == None:
self.root = leftmost
elif current_node['value'] < parent_node['value']:
parent_node['left'] = leftmost
elif current_node['value'] > parent_node['value']:
parent_node['right'] = leftmost
return f'{value} was removed'
return f'{value} not found'
def breadth_first_seacrh(self):
current_node = self.root
l = []
queue = []
queue.append(current_node)
while len(queue) > 0:
current_node = queue.pop(0)
l.append(current_node['value'])
if current_node['left']:
queue.append(current_node['left'])
if current_node['right']:
queue.append(current_node['right'])
return l
def breadth_first_seacrh_recursive(self, queue, l):
if not len(queue):
return l
current_node = queue.pop(0)
l.append(current_node['value'])
if current_node['left']:
queue.append(current_node['left'])
if current_node['right']:
queue.append(current_node['right'])
return self.breadth_first_seacrh_recursive(queue, l)
def is_valid_bst(self, root):
queue = []
current_value = root
prev = -float('inf')
while current_value or queue:
if current_value:
queue.append(current_value)
current_value = current_value['left']
else:
last_value = queue.pop()
if last_value:
if last_value['value'] <= prev:
return False
prev = last_value['value']
current_value = last_value['right']
return True
def depth_first_search_in_order(self):
return traverse_in_order(self.root, [])
def depth_first_search_pre_order(self):
return traverse_pre_order(self.root, [])
def depth_first_search_post_order(self):
return traverse_post_order(self.root, [])
def traverse_in_order(node, l):
if node['left']:
traverse_in_order(node['left'], l)
l.append(node['value'])
if node['right']:
traverse_in_order(node['right'], l)
return l
def traverse_pre_order(node, l):
l.append(node['value'])
if node['left']:
traverse_pre_order(node['left'], l)
if node['right']:
traverse_pre_order(node['right'], l)
return l
def traverse_post_order(node, l):
if node['left']:
traverse_post_order(node['left'], l)
if node['right']:
traverse_post_order(node['right'], l)
l.append(node['value'])
return l
if __name__ == '__main__':
tree = binary_search_tree()
tree.insert(9)
tree.insert(4)
tree.insert(6)
tree.insert(20)
tree.insert(170)
tree.insert(15)
tree.insert(1)
print('BFS', tree.breadth_first_seacrh())
print('BFS recursive', tree.breadth_first_seacrh_recursive([tree.root], []))
print('DFS in-order', tree.depth_first_search_in_order())
print('DFS pre-oder', tree.depth_first_search_pre_order())
print('DFS post-oder', tree.depth_first_search_post_order())
print(tree.isValidBST(tree.root)) |
#!/usr/bin/env python3
#encoding=utf-8
#-------------------------------------------------
# Usage: python3 factory.py
# Description: factory function
#-------------------------------------------------
def factory(aClass, *pargs, **kargs): # Varargs tuple, dict
return aClass(*pargs, **kargs) # Call aClass (or apply in 2.X only)
class Spam:
def doit(self, message):
print(message)
class Person:
def __init__(self, name, job=None):
self.name = name
self.job = job
if __name__ == '__main__':
object1 = factory(Spam) # Make a Spam object
object2 = factory(Person, "Arthur", "King") # Make a Person object
object3 = factory(Person, name='Brian') # Ditto, with keywords and default
object1.doit(99)
print(object2.name, object2.job)
print(object3.name, object3.job)
| def factory(aClass, *pargs, **kargs):
return a_class(*pargs, **kargs)
class Spam:
def doit(self, message):
print(message)
class Person:
def __init__(self, name, job=None):
self.name = name
self.job = job
if __name__ == '__main__':
object1 = factory(Spam)
object2 = factory(Person, 'Arthur', 'King')
object3 = factory(Person, name='Brian')
object1.doit(99)
print(object2.name, object2.job)
print(object3.name, object3.job) |
with open('input', 'r') as file:
aim = 0
horizontal = 0
depth = 0
simple_depth=0
for line in file:
[com, n] = line.split(' ')
n = int(n)
if com == 'forward':
horizontal += n
depth += aim * n
elif com == 'down':
aim += n
simple_depth += n
elif com == 'up':
aim -= n
simple_depth -= n
print("1 star:", horizontal * simple_depth)
print("2 star:", horizontal * depth)
| with open('input', 'r') as file:
aim = 0
horizontal = 0
depth = 0
simple_depth = 0
for line in file:
[com, n] = line.split(' ')
n = int(n)
if com == 'forward':
horizontal += n
depth += aim * n
elif com == 'down':
aim += n
simple_depth += n
elif com == 'up':
aim -= n
simple_depth -= n
print('1 star:', horizontal * simple_depth)
print('2 star:', horizontal * depth) |
class Solution:
# 1st solution
# O(n) time | O(n) space
def reverseWords(self, s: str) -> str:
lst = []
start = 0
for i in range(len(s)):
if s[i] == " ":
self.reverse(lst, start, i - 1)
start = i + 1
lst.append(s[i])
self.reverse(lst, start, len(s) - 1)
return "".join(lst)
def reverse(self, lst, start, end):
while start < end:
lst[start], lst[end] = lst[end], lst[start]
start += 1
end -= 1 | class Solution:
def reverse_words(self, s: str) -> str:
lst = []
start = 0
for i in range(len(s)):
if s[i] == ' ':
self.reverse(lst, start, i - 1)
start = i + 1
lst.append(s[i])
self.reverse(lst, start, len(s) - 1)
return ''.join(lst)
def reverse(self, lst, start, end):
while start < end:
(lst[start], lst[end]) = (lst[end], lst[start])
start += 1
end -= 1 |
class Solution:
def containsDuplicate(self, nums: [int]) -> bool:
return len(nums) != len(set(nums))
s = Solution()
print(s.containsDuplicate([1,2,3,1])) | class Solution:
def contains_duplicate(self, nums: [int]) -> bool:
return len(nums) != len(set(nums))
s = solution()
print(s.containsDuplicate([1, 2, 3, 1])) |
# Problem:
# Write a program that introduces hours and minutes of 24 hours a day and calculates how much time it will take
# after 15 minutes. The result is printed in hh: mm format.
# Hours are always between 0 and 23 minutes are always between 0 and 59.
# Hours are written in one or two digits. Minutes are always written with two digits, with lead zero when needed.
hours = int(input())
minutes = int(input())
minutes += 15
if minutes >= 60:
minutes %= 60
hours += 1
if hours >= 24:
hours -= 24
if minutes <= 9:
print(f'{hours}:0{minutes}')
else:
print(f'{hours}:{minutes}')
else:
if minutes <= 9:
print(f'{hours}:0{minutes}')
else:
print(f'{hours}:{minutes}')
else:
print(f'{hours}:{minutes}')
| hours = int(input())
minutes = int(input())
minutes += 15
if minutes >= 60:
minutes %= 60
hours += 1
if hours >= 24:
hours -= 24
if minutes <= 9:
print(f'{hours}:0{minutes}')
else:
print(f'{hours}:{minutes}')
elif minutes <= 9:
print(f'{hours}:0{minutes}')
else:
print(f'{hours}:{minutes}')
else:
print(f'{hours}:{minutes}') |
class Link:
def __init__(self, val, next=None):
self.val = val
self.next = next
def __repr__(self):
if not self.next:
return f"Link({self.val})"
return f"Link({self.val}, {self.next})"
def merge_k_linked_lists(linked_lists):
'''
Merge k sorted linked lists into one
sorted linked list.
>>> print(merge_k_linked_lists([
... Link(1, Link(2)),
... Link(3, Link(4))
... ]))
Link(1, Link(2, Link(3, Link(4))))
>>> print(merge_k_linked_lists([
... Link(1, Link(2)),
... Link(2, Link(4)),
... Link(3, Link(3)),
... ]))
Link(1, Link(2, Link(2, Link(3, Link(3, Link(4))))))
'''
# look at the front value of all the linked lists
# find the minimum, put it in the result linked list
# "remove" that value that we've added
# keep going until there are no more values to add
# k - length of linked_lists
# n - max length of any linked list
# k*n - upper bound of number of values in all linked lists
copy_linked_lists = linked_lists[:] # O(k)
result = Link(0)
pointer = result
# how many times does the while loop run?
# k*n
while any(copy_linked_lists): # O(k)
front_vals = [
link.val for link
in copy_linked_lists
if link
] # O(k)
min_val = min(front_vals) # O(k)
for i, link in enumerate(copy_linked_lists): # O(k)
if link and link.val == min_val:
pointer.next = Link(link.val)
pointer = pointer.next
copy_linked_lists[i] = link.next
# Final runtime: O(k*n*k)
return result.next
| class Link:
def __init__(self, val, next=None):
self.val = val
self.next = next
def __repr__(self):
if not self.next:
return f'Link({self.val})'
return f'Link({self.val}, {self.next})'
def merge_k_linked_lists(linked_lists):
"""
Merge k sorted linked lists into one
sorted linked list.
>>> print(merge_k_linked_lists([
... Link(1, Link(2)),
... Link(3, Link(4))
... ]))
Link(1, Link(2, Link(3, Link(4))))
>>> print(merge_k_linked_lists([
... Link(1, Link(2)),
... Link(2, Link(4)),
... Link(3, Link(3)),
... ]))
Link(1, Link(2, Link(2, Link(3, Link(3, Link(4))))))
"""
copy_linked_lists = linked_lists[:]
result = link(0)
pointer = result
while any(copy_linked_lists):
front_vals = [link.val for link in copy_linked_lists if link]
min_val = min(front_vals)
for (i, link) in enumerate(copy_linked_lists):
if link and link.val == min_val:
pointer.next = link(link.val)
pointer = pointer.next
copy_linked_lists[i] = link.next
return result.next |
__all__ = [
"ffn",
"rbfn",
"ffn_bn",
"ffn_ace",
"ffn_lae",
"ffn_bn_vat",
"ffn_vat",
"cnn",
"vae1",
"cvae",
"draw_at_lstm1",
"draw_at_lstm2",
"draw_lstm1",
"draw_sgru1",
"lm_lstm",
"lm_lstm_bn",
"lm_gru",
"lm_draw"
]
| __all__ = ['ffn', 'rbfn', 'ffn_bn', 'ffn_ace', 'ffn_lae', 'ffn_bn_vat', 'ffn_vat', 'cnn', 'vae1', 'cvae', 'draw_at_lstm1', 'draw_at_lstm2', 'draw_lstm1', 'draw_sgru1', 'lm_lstm', 'lm_lstm_bn', 'lm_gru', 'lm_draw'] |
'''
num1=1
num2=1
num3=num1+num2
print(num3)
sum=num1+num2+num3
for i in range(1,18,1):
num1=num2
num2=num3
num3=num1+num2
if num3%2==0:
print(num3)
'''
'''
for i in range(1,101):
if 100%i==0:
print(i)
'''
num1=int(input("Please input a number: "))
for i in range(1,num1+1):
if num1%i==0:
print(i) | """
num1=1
num2=1
num3=num1+num2
print(num3)
sum=num1+num2+num3
for i in range(1,18,1):
num1=num2
num2=num3
num3=num1+num2
if num3%2==0:
print(num3)
"""
'\nfor i in range(1,101):\n if 100%i==0:\n print(i)\n'
num1 = int(input('Please input a number: '))
for i in range(1, num1 + 1):
if num1 % i == 0:
print(i) |
l = {}
for _ in range(int(input())):
s = input().split()
l[s[0]] = sum([float(a) for a in s[1:]])/(len(s)-1)
print('%.2f' % l[input()]) | l = {}
for _ in range(int(input())):
s = input().split()
l[s[0]] = sum([float(a) for a in s[1:]]) / (len(s) - 1)
print('%.2f' % l[input()]) |
BOT_NAME = 'p5_downloader_middleware_handson'
SPIDER_MODULES = ['p5_downloader_middleware_handson.spiders']
NEWSPIDER_MODULE = 'p5_downloader_middleware_handson.spiders'
ROBOTSTXT_OBEY = True
DOWNLOADER_MIDDLEWARES = {
'p5_downloader_middleware_handson.middlewares.SeleniumDownloaderMiddleware': 543,
}
SELENIUM_ENABLED = True
| bot_name = 'p5_downloader_middleware_handson'
spider_modules = ['p5_downloader_middleware_handson.spiders']
newspider_module = 'p5_downloader_middleware_handson.spiders'
robotstxt_obey = True
downloader_middlewares = {'p5_downloader_middleware_handson.middlewares.SeleniumDownloaderMiddleware': 543}
selenium_enabled = True |
#!/usr/bin/env python3
# Nick Stucchi
# 03/23/2017
# Filter out words and replace with dashes
def replaceWord(sentence, word):
wordList = sentence.split()
newSentence = []
for w in wordList:
if w == word:
newSentence.append("-" * len(word))
else:
newSentence.append(w)
return " ".join(newSentence)
def main():
sentence = input("Enter a sentence: ")
word = input("Enter a word to replace: ")
result = input("The resulting string is: " + "\n" + replaceWord(sentence, word))
print(result)
if __name__ == "__main__":
main()
| def replace_word(sentence, word):
word_list = sentence.split()
new_sentence = []
for w in wordList:
if w == word:
newSentence.append('-' * len(word))
else:
newSentence.append(w)
return ' '.join(newSentence)
def main():
sentence = input('Enter a sentence: ')
word = input('Enter a word to replace: ')
result = input('The resulting string is: ' + '\n' + replace_word(sentence, word))
print(result)
if __name__ == '__main__':
main() |
EF_UUID_NAME = "__specialEF__float32_UUID"
EF_ORDERBY_NAME = "__specialEF__int32_dayDiff"
EF_PREDICTION_NAME = "__specialEF__float32_predictions"
EF_DUMMY_GROUP_COLUMN_NAME = "__specialEF__dummy_group"
HMF_MEMMAP_MAP_NAME = "__specialHMF__memmapMap"
HMF_GROUPBY_NAME = "__specialHMF__groupByNumericEncoder"
| ef_uuid_name = '__specialEF__float32_UUID'
ef_orderby_name = '__specialEF__int32_dayDiff'
ef_prediction_name = '__specialEF__float32_predictions'
ef_dummy_group_column_name = '__specialEF__dummy_group'
hmf_memmap_map_name = '__specialHMF__memmapMap'
hmf_groupby_name = '__specialHMF__groupByNumericEncoder' |
SERVICES = [
'UserService',
'ProjectService',
'NotifyService',
'AlocateService',
'ApiGateway',
'Frontend'
]
METRICS = [
'files',
'functions',
'complexity',
'coverage',
'ncloc',
'comment_lines_density',
'duplicated_lines_density',
'security_rating',
'tests',
'test_success_density',
'test_execution_time',
'reliability_rating'
]
| services = ['UserService', 'ProjectService', 'NotifyService', 'AlocateService', 'ApiGateway', 'Frontend']
metrics = ['files', 'functions', 'complexity', 'coverage', 'ncloc', 'comment_lines_density', 'duplicated_lines_density', 'security_rating', 'tests', 'test_success_density', 'test_execution_time', 'reliability_rating'] |
class Vocab:
# pylint: disable=invalid-name,too-many-instance-attributes
ROOT = '<ROOT>'
SPECIAL_TOKENS = ('<PAD>', '<ROOT>', '<UNK>')
def __init__(self, min_count=None):
self._counts = {}
self._pretrained = set([])
self.min_count = min_count
self.size = 3
def idx(self, token):
if token not in self._vocab:
return self._vocab['<UNK>']
return self._vocab[token]
def count_up(self, token):
self._counts[token] = self._counts.get(token, 0) + 1
def add_pretrained(self, token):
self._pretrained |= set([token])
def process_vocab(self):
self._counts_raw = self._counts
if self.min_count:
self._counts = {k: count for k, count in self._counts.items()
if count > self.min_count}
words = [x[0] for x in sorted(self._counts.items(), key=lambda x: x[1], reverse=True)]
pretrained = [x for x in self._pretrained if x not in self._counts]
types = list(self.SPECIAL_TOKENS) + words + pretrained
self._vocab = {x: i for i, x in enumerate(types)}
self._idx2word = {idx: word for word, idx in self._vocab.items()}
self.ROOT_IDX = self._vocab[self.ROOT]
self.size = len(self._vocab)
def items(self):
for word, idx in self._vocab.items():
yield word, idx
| class Vocab:
root = '<ROOT>'
special_tokens = ('<PAD>', '<ROOT>', '<UNK>')
def __init__(self, min_count=None):
self._counts = {}
self._pretrained = set([])
self.min_count = min_count
self.size = 3
def idx(self, token):
if token not in self._vocab:
return self._vocab['<UNK>']
return self._vocab[token]
def count_up(self, token):
self._counts[token] = self._counts.get(token, 0) + 1
def add_pretrained(self, token):
self._pretrained |= set([token])
def process_vocab(self):
self._counts_raw = self._counts
if self.min_count:
self._counts = {k: count for (k, count) in self._counts.items() if count > self.min_count}
words = [x[0] for x in sorted(self._counts.items(), key=lambda x: x[1], reverse=True)]
pretrained = [x for x in self._pretrained if x not in self._counts]
types = list(self.SPECIAL_TOKENS) + words + pretrained
self._vocab = {x: i for (i, x) in enumerate(types)}
self._idx2word = {idx: word for (word, idx) in self._vocab.items()}
self.ROOT_IDX = self._vocab[self.ROOT]
self.size = len(self._vocab)
def items(self):
for (word, idx) in self._vocab.items():
yield (word, idx) |
#
# PySNMP MIB module Wellfleet-FNTS-ATM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-FNTS-ATM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:33:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Gauge32, IpAddress, TimeTicks, Counter64, Bits, ModuleIdentity, Counter32, NotificationType, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Integer32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "IpAddress", "TimeTicks", "Counter64", "Bits", "ModuleIdentity", "Counter32", "NotificationType", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Integer32", "MibIdentifier")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
wfFntsAtmGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfFntsAtmGroup")
wfFntsAtmTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1), )
if mibBuilder.loadTexts: wfFntsAtmTable.setStatus('mandatory')
wfFntsAtmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1), ).setIndexNames((0, "Wellfleet-FNTS-ATM-MIB", "wfFntsAtmSlot"), (0, "Wellfleet-FNTS-ATM-MIB", "wfFntsAtmConnector"))
if mibBuilder.loadTexts: wfFntsAtmEntry.setStatus('mandatory')
wfFntsAtmDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("create", 1), ("delete", 2))).clone('create')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmDelete.setStatus('mandatory')
wfFntsAtmDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmDisable.setStatus('mandatory')
wfFntsAtmState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpresent", 4))).clone('notpresent')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmState.setStatus('mandatory')
wfFntsAtmSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 14))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmSlot.setStatus('mandatory')
wfFntsAtmConnector = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 44))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmConnector.setStatus('mandatory')
wfFntsAtmCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1023))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmCct.setStatus('mandatory')
wfFntsAtmMtu = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4508))).clone(namedValues=NamedValues(("default", 4508))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmMtu.setStatus('mandatory')
wfFntsAtmMadr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 8), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmMadr.setStatus('mandatory')
wfFntsAtmIpAdr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 9), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmIpAdr.setStatus('mandatory')
wfFntsAtmAtmState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 9))).clone(namedValues=NamedValues(("notready", 1), ("init", 2), ("intloop", 3), ("extloop", 4), ("reset", 5), ("down", 6), ("up", 7), ("notpresent", 9))).clone('notpresent')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmAtmState.setStatus('mandatory')
wfFntsAtmSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(50))).clone(namedValues=NamedValues(("default", 50))).clone('default')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmSpeed.setStatus('mandatory')
wfFntsAtmRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxOctets.setStatus('mandatory')
wfFntsAtmRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxFrames.setStatus('mandatory')
wfFntsAtmTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxOctets.setStatus('mandatory')
wfFntsAtmTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxFrames.setStatus('mandatory')
wfFntsAtmLackRescErrorRx = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmLackRescErrorRx.setStatus('mandatory')
wfFntsAtmInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmInErrors.setStatus('mandatory')
wfFntsAtmOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmOutErrors.setStatus('mandatory')
wfFntsAtmRxLongFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxLongFrames.setStatus('mandatory')
wfFntsAtmTxClipFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxClipFrames.setStatus('mandatory')
wfFntsAtmRxReplenMisses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxReplenMisses.setStatus('mandatory')
wfFntsAtmRxOverruns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxOverruns.setStatus('mandatory')
wfFntsAtmRxRingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxRingErrors.setStatus('mandatory')
wfFntsAtmTxRingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxRingErrors.setStatus('mandatory')
wfFntsAtmOpErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmOpErrors.setStatus('mandatory')
wfFntsAtmRxProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmRxProcessings.setStatus('mandatory')
wfFntsAtmTxProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxProcessings.setStatus('mandatory')
wfFntsAtmTxCmplProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmTxCmplProcessings.setStatus('mandatory')
wfFntsAtmIntrProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmIntrProcessings.setStatus('mandatory')
wfFntsAtmSintProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmSintProcessings.setStatus('mandatory')
wfFntsAtmPintProcessings = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfFntsAtmPintProcessings.setStatus('mandatory')
wfFntsAtmRxRingLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(63))).clone(namedValues=NamedValues(("default", 63))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmRxRingLength.setStatus('mandatory')
wfFntsAtmTxRingLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(63))).clone(namedValues=NamedValues(("default", 63))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmTxRingLength.setStatus('mandatory')
wfFntsAtmCfgRxQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(127))).clone(namedValues=NamedValues(("default", 127))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmCfgRxQueueLength.setStatus('mandatory')
wfFntsAtmCfgTxQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(127))).clone(namedValues=NamedValues(("default", 127))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmCfgTxQueueLength.setStatus('mandatory')
wfFntsAtmLineNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 36), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfFntsAtmLineNumber.setStatus('mandatory')
mibBuilder.exportSymbols("Wellfleet-FNTS-ATM-MIB", wfFntsAtmTxRingErrors=wfFntsAtmTxRingErrors, wfFntsAtmOpErrors=wfFntsAtmOpErrors, wfFntsAtmIpAdr=wfFntsAtmIpAdr, wfFntsAtmInErrors=wfFntsAtmInErrors, wfFntsAtmSlot=wfFntsAtmSlot, wfFntsAtmTxClipFrames=wfFntsAtmTxClipFrames, wfFntsAtmTxCmplProcessings=wfFntsAtmTxCmplProcessings, wfFntsAtmDisable=wfFntsAtmDisable, wfFntsAtmCct=wfFntsAtmCct, wfFntsAtmRxFrames=wfFntsAtmRxFrames, wfFntsAtmRxOctets=wfFntsAtmRxOctets, wfFntsAtmSintProcessings=wfFntsAtmSintProcessings, wfFntsAtmRxLongFrames=wfFntsAtmRxLongFrames, wfFntsAtmLackRescErrorRx=wfFntsAtmLackRescErrorRx, wfFntsAtmRxRingLength=wfFntsAtmRxRingLength, wfFntsAtmRxProcessings=wfFntsAtmRxProcessings, wfFntsAtmMadr=wfFntsAtmMadr, wfFntsAtmRxReplenMisses=wfFntsAtmRxReplenMisses, wfFntsAtmMtu=wfFntsAtmMtu, wfFntsAtmSpeed=wfFntsAtmSpeed, wfFntsAtmTable=wfFntsAtmTable, wfFntsAtmCfgRxQueueLength=wfFntsAtmCfgRxQueueLength, wfFntsAtmRxRingErrors=wfFntsAtmRxRingErrors, wfFntsAtmLineNumber=wfFntsAtmLineNumber, wfFntsAtmPintProcessings=wfFntsAtmPintProcessings, wfFntsAtmTxProcessings=wfFntsAtmTxProcessings, wfFntsAtmTxFrames=wfFntsAtmTxFrames, wfFntsAtmDelete=wfFntsAtmDelete, wfFntsAtmAtmState=wfFntsAtmAtmState, wfFntsAtmRxOverruns=wfFntsAtmRxOverruns, wfFntsAtmTxRingLength=wfFntsAtmTxRingLength, wfFntsAtmOutErrors=wfFntsAtmOutErrors, wfFntsAtmState=wfFntsAtmState, wfFntsAtmConnector=wfFntsAtmConnector, wfFntsAtmIntrProcessings=wfFntsAtmIntrProcessings, wfFntsAtmCfgTxQueueLength=wfFntsAtmCfgTxQueueLength, wfFntsAtmEntry=wfFntsAtmEntry, wfFntsAtmTxOctets=wfFntsAtmTxOctets)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(gauge32, ip_address, time_ticks, counter64, bits, module_identity, counter32, notification_type, unsigned32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, integer32, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'IpAddress', 'TimeTicks', 'Counter64', 'Bits', 'ModuleIdentity', 'Counter32', 'NotificationType', 'Unsigned32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Integer32', 'MibIdentifier')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(wf_fnts_atm_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfFntsAtmGroup')
wf_fnts_atm_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1))
if mibBuilder.loadTexts:
wfFntsAtmTable.setStatus('mandatory')
wf_fnts_atm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1)).setIndexNames((0, 'Wellfleet-FNTS-ATM-MIB', 'wfFntsAtmSlot'), (0, 'Wellfleet-FNTS-ATM-MIB', 'wfFntsAtmConnector'))
if mibBuilder.loadTexts:
wfFntsAtmEntry.setStatus('mandatory')
wf_fnts_atm_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('create', 1), ('delete', 2))).clone('create')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmDelete.setStatus('mandatory')
wf_fnts_atm_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmDisable.setStatus('mandatory')
wf_fnts_atm_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpresent', 4))).clone('notpresent')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmState.setStatus('mandatory')
wf_fnts_atm_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 14))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmSlot.setStatus('mandatory')
wf_fnts_atm_connector = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 44))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmConnector.setStatus('mandatory')
wf_fnts_atm_cct = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 1023))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmCct.setStatus('mandatory')
wf_fnts_atm_mtu = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(4508))).clone(namedValues=named_values(('default', 4508))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmMtu.setStatus('mandatory')
wf_fnts_atm_madr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 8), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmMadr.setStatus('mandatory')
wf_fnts_atm_ip_adr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 9), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmIpAdr.setStatus('mandatory')
wf_fnts_atm_atm_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 9))).clone(namedValues=named_values(('notready', 1), ('init', 2), ('intloop', 3), ('extloop', 4), ('reset', 5), ('down', 6), ('up', 7), ('notpresent', 9))).clone('notpresent')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmAtmState.setStatus('mandatory')
wf_fnts_atm_speed = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(50))).clone(namedValues=named_values(('default', 50))).clone('default')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmSpeed.setStatus('mandatory')
wf_fnts_atm_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxOctets.setStatus('mandatory')
wf_fnts_atm_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxFrames.setStatus('mandatory')
wf_fnts_atm_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxOctets.setStatus('mandatory')
wf_fnts_atm_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxFrames.setStatus('mandatory')
wf_fnts_atm_lack_resc_error_rx = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmLackRescErrorRx.setStatus('mandatory')
wf_fnts_atm_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmInErrors.setStatus('mandatory')
wf_fnts_atm_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmOutErrors.setStatus('mandatory')
wf_fnts_atm_rx_long_frames = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxLongFrames.setStatus('mandatory')
wf_fnts_atm_tx_clip_frames = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxClipFrames.setStatus('mandatory')
wf_fnts_atm_rx_replen_misses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxReplenMisses.setStatus('mandatory')
wf_fnts_atm_rx_overruns = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxOverruns.setStatus('mandatory')
wf_fnts_atm_rx_ring_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxRingErrors.setStatus('mandatory')
wf_fnts_atm_tx_ring_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxRingErrors.setStatus('mandatory')
wf_fnts_atm_op_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmOpErrors.setStatus('mandatory')
wf_fnts_atm_rx_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmRxProcessings.setStatus('mandatory')
wf_fnts_atm_tx_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxProcessings.setStatus('mandatory')
wf_fnts_atm_tx_cmpl_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmTxCmplProcessings.setStatus('mandatory')
wf_fnts_atm_intr_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmIntrProcessings.setStatus('mandatory')
wf_fnts_atm_sint_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmSintProcessings.setStatus('mandatory')
wf_fnts_atm_pint_processings = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfFntsAtmPintProcessings.setStatus('mandatory')
wf_fnts_atm_rx_ring_length = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(63))).clone(namedValues=named_values(('default', 63))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmRxRingLength.setStatus('mandatory')
wf_fnts_atm_tx_ring_length = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(63))).clone(namedValues=named_values(('default', 63))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmTxRingLength.setStatus('mandatory')
wf_fnts_atm_cfg_rx_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(127))).clone(namedValues=named_values(('default', 127))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmCfgRxQueueLength.setStatus('mandatory')
wf_fnts_atm_cfg_tx_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(127))).clone(namedValues=named_values(('default', 127))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmCfgTxQueueLength.setStatus('mandatory')
wf_fnts_atm_line_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 4, 32, 1, 1, 36), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfFntsAtmLineNumber.setStatus('mandatory')
mibBuilder.exportSymbols('Wellfleet-FNTS-ATM-MIB', wfFntsAtmTxRingErrors=wfFntsAtmTxRingErrors, wfFntsAtmOpErrors=wfFntsAtmOpErrors, wfFntsAtmIpAdr=wfFntsAtmIpAdr, wfFntsAtmInErrors=wfFntsAtmInErrors, wfFntsAtmSlot=wfFntsAtmSlot, wfFntsAtmTxClipFrames=wfFntsAtmTxClipFrames, wfFntsAtmTxCmplProcessings=wfFntsAtmTxCmplProcessings, wfFntsAtmDisable=wfFntsAtmDisable, wfFntsAtmCct=wfFntsAtmCct, wfFntsAtmRxFrames=wfFntsAtmRxFrames, wfFntsAtmRxOctets=wfFntsAtmRxOctets, wfFntsAtmSintProcessings=wfFntsAtmSintProcessings, wfFntsAtmRxLongFrames=wfFntsAtmRxLongFrames, wfFntsAtmLackRescErrorRx=wfFntsAtmLackRescErrorRx, wfFntsAtmRxRingLength=wfFntsAtmRxRingLength, wfFntsAtmRxProcessings=wfFntsAtmRxProcessings, wfFntsAtmMadr=wfFntsAtmMadr, wfFntsAtmRxReplenMisses=wfFntsAtmRxReplenMisses, wfFntsAtmMtu=wfFntsAtmMtu, wfFntsAtmSpeed=wfFntsAtmSpeed, wfFntsAtmTable=wfFntsAtmTable, wfFntsAtmCfgRxQueueLength=wfFntsAtmCfgRxQueueLength, wfFntsAtmRxRingErrors=wfFntsAtmRxRingErrors, wfFntsAtmLineNumber=wfFntsAtmLineNumber, wfFntsAtmPintProcessings=wfFntsAtmPintProcessings, wfFntsAtmTxProcessings=wfFntsAtmTxProcessings, wfFntsAtmTxFrames=wfFntsAtmTxFrames, wfFntsAtmDelete=wfFntsAtmDelete, wfFntsAtmAtmState=wfFntsAtmAtmState, wfFntsAtmRxOverruns=wfFntsAtmRxOverruns, wfFntsAtmTxRingLength=wfFntsAtmTxRingLength, wfFntsAtmOutErrors=wfFntsAtmOutErrors, wfFntsAtmState=wfFntsAtmState, wfFntsAtmConnector=wfFntsAtmConnector, wfFntsAtmIntrProcessings=wfFntsAtmIntrProcessings, wfFntsAtmCfgTxQueueLength=wfFntsAtmCfgTxQueueLength, wfFntsAtmEntry=wfFntsAtmEntry, wfFntsAtmTxOctets=wfFntsAtmTxOctets) |
routers = dict(
# base router
BASE=dict(
default_application='projeto',
applications=['projeto', 'admin',]
),
projeto=dict(
default_controller='initial',
default_function='principal',
controllers=['initial', 'manager'],
functions=['home', 'contact', 'about', 'user', 'download', 'account',
'register', 'login', 'exemplo', 'teste1', 'teste2',
'show_cliente', 'show_servidor', 'show_distro',
'cliente_host', 'servidor_host', 'distro_host', 'product',
'edit_host', 'interface', 'principal', 'detalhes_clean', 'detalhes_nav']
)
)
| routers = dict(BASE=dict(default_application='projeto', applications=['projeto', 'admin']), projeto=dict(default_controller='initial', default_function='principal', controllers=['initial', 'manager'], functions=['home', 'contact', 'about', 'user', 'download', 'account', 'register', 'login', 'exemplo', 'teste1', 'teste2', 'show_cliente', 'show_servidor', 'show_distro', 'cliente_host', 'servidor_host', 'distro_host', 'product', 'edit_host', 'interface', 'principal', 'detalhes_clean', 'detalhes_nav'])) |
class Coffee:
coffeecupcounter =0
def __init__(self, themilk, thesugar, thecoffeemate):
self.milk = themilk
self.sugar = thesugar
self.coffeemate = thecoffeemate
Coffee.coffeecupcounter=Coffee.coffeecupcounter+1
print(f'You now have your coffee with {self.milk} milk, {self.sugar} sugar, {self.coffeemate} coffeemate')
mysugarfreecoffee= Coffee(2,0,1)
print(mysugarfreecoffee.sugar)
mysweetcoffee =Coffee(2,100,1)
print(mysweetcoffee.sugar)
print(f'We have made {Coffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysugarfreecoffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysweetcoffee.milk} coffee cups so far!')
print(f'We have made {mysweetcoffee.coffeecupcounter} coffee cups so far!') | class Coffee:
coffeecupcounter = 0
def __init__(self, themilk, thesugar, thecoffeemate):
self.milk = themilk
self.sugar = thesugar
self.coffeemate = thecoffeemate
Coffee.coffeecupcounter = Coffee.coffeecupcounter + 1
print(f'You now have your coffee with {self.milk} milk, {self.sugar} sugar, {self.coffeemate} coffeemate')
mysugarfreecoffee = coffee(2, 0, 1)
print(mysugarfreecoffee.sugar)
mysweetcoffee = coffee(2, 100, 1)
print(mysweetcoffee.sugar)
print(f'We have made {Coffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysugarfreecoffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysweetcoffee.milk} coffee cups so far!')
print(f'We have made {mysweetcoffee.coffeecupcounter} coffee cups so far!') |
class Solution:
def threeSumMulti(self, arr, target):
c = Counter(arr)
ans, M = 0, 10**9 + 7
for i, j in permutations(c, 2):
if i < j < target - i - j:
ans += c[i]*c[j]*c[target - i - j]
for i in c:
if 3*i != target:
ans += c[i]*(c[i]-1)*c[target - 2*i]//2
else:
ans += c[i]*(c[i]-1)*(c[i]-2)//6
return ans % M | class Solution:
def three_sum_multi(self, arr, target):
c = counter(arr)
(ans, m) = (0, 10 ** 9 + 7)
for (i, j) in permutations(c, 2):
if i < j < target - i - j:
ans += c[i] * c[j] * c[target - i - j]
for i in c:
if 3 * i != target:
ans += c[i] * (c[i] - 1) * c[target - 2 * i] // 2
else:
ans += c[i] * (c[i] - 1) * (c[i] - 2) // 6
return ans % M |
'''
Created on Jun 4, 2018
@author: nishant.sethi
'''
class Node:
def __init__(self, data):
self.left = None
self.right = None
self.data = data
def insert(self, data):
# Compare the new value with the parent node
if self.data:
if data < self.data:
if self.left is None:
self.left = Node(data)
else:
self.left.insert(data)
elif data > self.data:
if self.right is None:
self.right = Node(data)
else:
self.right.insert(data)
else:
self.data = data
# findval method to compare the value with nodes
def findval(self, lkpval):
if lkpval < self.data:
if self.left is None:
return str(lkpval)+" Not Found"
return self.left.findval(lkpval)
elif lkpval > self.data:
if self.right is None:
return str(lkpval)+" Not Found"
return self.right.findval(lkpval)
else:
print(str(self.data) + ' is found')
# Print the Tree
def PrintTree(self):
if self.left:
self.left.PrintTree()
print( self.data),
if self.right:
self.right.PrintTree()
# Inorder traversal
# Left -> Root -> Right
def inorderTraversal(self, root):
res = []
if root:
res = self.inorderTraversal(root.left)
res.append(root.data)
res = res + self.inorderTraversal(root.right)
return res
# Preorder traversal
# Root -> Left ->Right
def PreorderTraversal(self, root):
res = []
if root:
res.append(root.data)
res = res + self.PreorderTraversal(root.left)
res = res + self.PreorderTraversal(root.right)
return res
# Postorder traversal
# Left ->Right -> Root
def PostorderTraversal(self, root):
res = []
if root:
res = self.PostorderTraversal(root.left)
res = res + self.PostorderTraversal(root.right)
res.append(root.data)
return res
| """
Created on Jun 4, 2018
@author: nishant.sethi
"""
class Node:
def __init__(self, data):
self.left = None
self.right = None
self.data = data
def insert(self, data):
if self.data:
if data < self.data:
if self.left is None:
self.left = node(data)
else:
self.left.insert(data)
elif data > self.data:
if self.right is None:
self.right = node(data)
else:
self.right.insert(data)
else:
self.data = data
def findval(self, lkpval):
if lkpval < self.data:
if self.left is None:
return str(lkpval) + ' Not Found'
return self.left.findval(lkpval)
elif lkpval > self.data:
if self.right is None:
return str(lkpval) + ' Not Found'
return self.right.findval(lkpval)
else:
print(str(self.data) + ' is found')
def print_tree(self):
if self.left:
self.left.PrintTree()
(print(self.data),)
if self.right:
self.right.PrintTree()
def inorder_traversal(self, root):
res = []
if root:
res = self.inorderTraversal(root.left)
res.append(root.data)
res = res + self.inorderTraversal(root.right)
return res
def preorder_traversal(self, root):
res = []
if root:
res.append(root.data)
res = res + self.PreorderTraversal(root.left)
res = res + self.PreorderTraversal(root.right)
return res
def postorder_traversal(self, root):
res = []
if root:
res = self.PostorderTraversal(root.left)
res = res + self.PostorderTraversal(root.right)
res.append(root.data)
return res |
name = input("Enter file:")
if len(name) < 1:
name = "mbox-short.txt"
handle = open(name)
hist=dict()
for line in handle:
if line.startswith('From:'):
words=line.split()
if words[1] not in hist:
hist[words[1]]=1
else:
hist[words[1]]=hist[words[1]]+1
#print(hist)
nome=conta=None
for a,b in hist.items():
if conta==None or b>conta:
nome=a
conta=b
print(nome,conta)
# Alternativa
name = input("Enter file:")
if len(name) < 1:
name = "mbox-short.txt"
handle = open(name)
hist=dict()
for line in handle:
if line.startswith('From:'):
words=line.split()
hist[words[1]]=hist.get(words[1],0)+1
#print(hist)
nome=conta=None
for a,b in hist.items():
if conta==None or b>conta:
nome=a
conta=b
print(nome,conta) | name = input('Enter file:')
if len(name) < 1:
name = 'mbox-short.txt'
handle = open(name)
hist = dict()
for line in handle:
if line.startswith('From:'):
words = line.split()
if words[1] not in hist:
hist[words[1]] = 1
else:
hist[words[1]] = hist[words[1]] + 1
nome = conta = None
for (a, b) in hist.items():
if conta == None or b > conta:
nome = a
conta = b
print(nome, conta)
name = input('Enter file:')
if len(name) < 1:
name = 'mbox-short.txt'
handle = open(name)
hist = dict()
for line in handle:
if line.startswith('From:'):
words = line.split()
hist[words[1]] = hist.get(words[1], 0) + 1
nome = conta = None
for (a, b) in hist.items():
if conta == None or b > conta:
nome = a
conta = b
print(nome, conta) |
maior = 0
menor = 0
totalPessoas = 10
for pessoa in range(1, 11):
idade = int(input("Digite a idade: "))
if idade >= 18:
maior += 1
else:
menor += 1
print("Quantidade de pessoas maior de idade: ", maior)
print("Quantidade de pessoas menor de idade: ", menor)
print("Porcentagem de pessoas menores de idade = ", (menor*100)/totalPessoas, "%")
print("Porcentagem de pessoas maiores de idade = ", (maior*100)/totalPessoas, "%") | maior = 0
menor = 0
total_pessoas = 10
for pessoa in range(1, 11):
idade = int(input('Digite a idade: '))
if idade >= 18:
maior += 1
else:
menor += 1
print('Quantidade de pessoas maior de idade: ', maior)
print('Quantidade de pessoas menor de idade: ', menor)
print('Porcentagem de pessoas menores de idade = ', menor * 100 / totalPessoas, '%')
print('Porcentagem de pessoas maiores de idade = ', maior * 100 / totalPessoas, '%') |
#
# PySNMP MIB module A3COM-HUAWEI-IFQOS2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-IFQOS2-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:50:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
h3cCommon, = mibBuilder.importSymbols("A3COM-HUAWEI-OID-MIB", "h3cCommon")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
NotificationType, ObjectIdentity, Counter32, Bits, Gauge32, Counter64, Unsigned32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, ModuleIdentity, IpAddress, Integer32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "ObjectIdentity", "Counter32", "Bits", "Gauge32", "Counter64", "Unsigned32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "ModuleIdentity", "IpAddress", "Integer32", "TimeTicks")
RowStatus, DisplayString, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "DisplayString", "TextualConvention", "TruthValue")
h3cIfQos2 = ModuleIdentity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1))
if mibBuilder.loadTexts: h3cIfQos2.setLastUpdated('200812020000Z')
if mibBuilder.loadTexts: h3cIfQos2.setOrganization('H3C Technologies Co.,Ltd.')
h3cQos2 = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65))
class CarAction(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))
namedValues = NamedValues(("invalid", 0), ("pass", 1), ("continue", 2), ("discard", 3), ("remark", 4), ("remark-ip-continue", 5), ("remark-ip-pass", 6), ("remark-mplsexp-continue", 7), ("remark-mplsexp-pass", 8), ("remark-dscp-continue", 9), ("remark-dscp-pass", 10), ("remark-dot1p-continue", 11), ("remark-dot1p-pass", 12), ("remark-atm-clp-continue", 13), ("remark-atm-clp-pass", 14), ("remark-fr-de-continue", 15), ("remark-fr-de-pass", 16))
class PriorityQueue(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("top", 1), ("middle", 2), ("normal", 3), ("bottom", 4))
class Direction(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("inbound", 1), ("outbound", 2))
h3cIfQoSHardwareQueueObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1))
h3cIfQoSHardwareQueueConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1))
h3cIfQoSQSModeTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSQSModeTable.setStatus('current')
h3cIfQoSQSModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSQSModeEntry.setStatus('current')
h3cIfQoSQSMode = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("sp", 1), ("sp0", 2), ("sp1", 3), ("sp2", 4), ("wrr", 5), ("hwfq", 6), ("wrr-sp", 7), ("byteCountWrr", 8), ("byteCountWfq", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQSMode.setStatus('current')
h3cIfQoSQSWeightTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSQSWeightTable.setStatus('current')
h3cIfQoSQSWeightEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID"))
if mibBuilder.loadTexts: h3cIfQoSQSWeightEntry.setStatus('current')
h3cIfQoSQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: h3cIfQoSQueueID.setStatus('current')
h3cIfQoSQueueGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("group0", 1), ("group1", 2), ("group2", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQueueGroupType.setStatus('current')
h3cIfQoSQSType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("weight", 1), ("byte-count", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQSType.setStatus('current')
h3cIfQoSQSValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQSValue.setStatus('current')
h3cIfQoSQSMaxDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 5), Integer32().clone(9)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQSMaxDelay.setStatus('current')
h3cIfQoSQSMinBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSQSMinBandwidth.setStatus('current')
h3cIfQoSHardwareQueueRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2))
h3cIfQoSHardwareQueueRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSHardwareQueueRunInfoTable.setStatus('current')
h3cIfQoSHardwareQueueRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID"))
if mibBuilder.loadTexts: h3cIfQoSHardwareQueueRunInfoEntry.setStatus('current')
h3cIfQoSPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPassPackets.setStatus('current')
h3cIfQoSDropPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSDropPackets.setStatus('current')
h3cIfQoSPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPassBytes.setStatus('current')
h3cIfQoSPassPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPassPPS.setStatus('current')
h3cIfQoSPassBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPassBPS.setStatus('current')
h3cIfQoSDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSDropBytes.setStatus('current')
h3cIfQoSQueueLengthInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSQueueLengthInPkts.setStatus('current')
h3cIfQoSQueueLengthInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSQueueLengthInBytes.setStatus('current')
h3cIfQoSCurQueuePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCurQueuePkts.setStatus('current')
h3cIfQoSCurQueueBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCurQueueBytes.setStatus('current')
h3cIfQoSCurQueuePPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCurQueuePPS.setStatus('current')
h3cIfQoSCurQueueBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCurQueueBPS.setStatus('current')
h3cIfQoSTailDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 13), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTailDropPkts.setStatus('current')
h3cIfQoSTailDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 14), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTailDropBytes.setStatus('current')
h3cIfQoSTailDropPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTailDropPPS.setStatus('current')
h3cIfQoSTailDropBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTailDropBPS.setStatus('current')
h3cIfQoSWredDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 17), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropPkts.setStatus('current')
h3cIfQoSWredDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 18), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropBytes.setStatus('current')
h3cIfQoSWredDropPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 19), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropPPS.setStatus('current')
h3cIfQoSWredDropBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 20), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropBPS.setStatus('current')
h3cIfQoSHQueueTcpRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2), )
if mibBuilder.loadTexts: h3cIfQoSHQueueTcpRunInfoTable.setStatus('current')
h3cIfQoSHQueueTcpRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSQueueID"))
if mibBuilder.loadTexts: h3cIfQoSHQueueTcpRunInfoEntry.setStatus('current')
h3cIfQoSWredDropLPreNTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpPkts.setStatus('current')
h3cIfQoSWredDropLPreNTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpBytes.setStatus('current')
h3cIfQoSWredDropLPreNTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpPPS.setStatus('current')
h3cIfQoSWredDropLPreNTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreNTcpBPS.setStatus('current')
h3cIfQoSWredDropLPreTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpPkts.setStatus('current')
h3cIfQoSWredDropLPreTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpBytes.setStatus('current')
h3cIfQoSWredDropLPreTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpPPS.setStatus('current')
h3cIfQoSWredDropLPreTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropLPreTcpBPS.setStatus('current')
h3cIfQoSWredDropHPreNTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 9), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpPkts.setStatus('current')
h3cIfQoSWredDropHPreNTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 10), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpBytes.setStatus('current')
h3cIfQoSWredDropHPreNTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpPPS.setStatus('current')
h3cIfQoSWredDropHPreNTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreNTcpBPS.setStatus('current')
h3cIfQoSWredDropHPreTcpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 13), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpPkts.setStatus('current')
h3cIfQoSWredDropHPreTcpBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 14), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpBytes.setStatus('current')
h3cIfQoSWredDropHPreTcpPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 15), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpPPS.setStatus('current')
h3cIfQoSWredDropHPreTcpBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 16), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredDropHPreTcpBPS.setStatus('current')
h3cIfQoSSoftwareQueueObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2))
h3cIfQoSFIFOObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1))
h3cIfQoSFIFOConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSFIFOConfigTable.setStatus('current')
h3cIfQoSFIFOConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSFIFOConfigEntry.setStatus('current')
h3cIfQoSFIFOMaxQueueLen = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSFIFOMaxQueueLen.setStatus('current')
h3cIfQoSFIFORunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSFIFORunInfoTable.setStatus('current')
h3cIfQoSFIFORunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSFIFORunInfoEntry.setStatus('current')
h3cIfQoSFIFOSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSFIFOSize.setStatus('current')
h3cIfQoSFIFODiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSFIFODiscardPackets.setStatus('current')
h3cIfQoSPQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2))
h3cIfQoSPQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1))
h3cIfQoSPQDefaultTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSPQDefaultTable.setStatus('current')
h3cIfQoSPQDefaultEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber"))
if mibBuilder.loadTexts: h3cIfQoSPQDefaultEntry.setStatus('current')
h3cIfQoSPQListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: h3cIfQoSPQListNumber.setStatus('current')
h3cIfQoSPQDefaultQueueType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 2), PriorityQueue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSPQDefaultQueueType.setStatus('current')
h3cIfQoSPQQueueLengthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthTable.setStatus('current')
h3cIfQoSPQQueueLengthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQQueueLengthType"))
if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthEntry.setStatus('current')
h3cIfQoSPQQueueLengthType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 1), PriorityQueue())
if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthType.setStatus('current')
h3cIfQoSPQQueueLengthValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSPQQueueLengthValue.setStatus('current')
h3cIfQoSPQClassRuleTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3), )
if mibBuilder.loadTexts: h3cIfQoSPQClassRuleTable.setStatus('current')
h3cIfQoSPQClassRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQClassRuleValue"))
if mibBuilder.loadTexts: h3cIfQoSPQClassRuleEntry.setStatus('current')
h3cIfQoSPQClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("interface", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("fragments", 4), ("greater-than", 5), ("less-than", 6), ("tcp", 7), ("udp", 8), ("ipall", 9), ("mpls", 10))))
if mibBuilder.loadTexts: h3cIfQoSPQClassRuleType.setStatus('current')
h3cIfQoSPQClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 2), Integer32())
if mibBuilder.loadTexts: h3cIfQoSPQClassRuleValue.setStatus('current')
h3cIfQoSPQClassRuleQueueType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 3), PriorityQueue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPQClassRuleQueueType.setStatus('current')
h3cIfQoSPQClassRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPQClassRowStatus.setStatus('current')
h3cIfQoSPQApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4), )
if mibBuilder.loadTexts: h3cIfQoSPQApplyTable.setStatus('current')
h3cIfQoSPQApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSPQApplyEntry.setStatus('current')
h3cIfQoSPQApplyListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPQApplyListNumber.setStatus('current')
h3cIfQoSPQApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPQApplyRowStatus.setStatus('current')
h3cIfQoSPQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2))
h3cIfQoSPQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSPQRunInfoTable.setStatus('current')
h3cIfQoSPQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPQType"))
if mibBuilder.loadTexts: h3cIfQoSPQRunInfoEntry.setStatus('current')
h3cIfQoSPQType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 1), PriorityQueue())
if mibBuilder.loadTexts: h3cIfQoSPQType.setStatus('current')
h3cIfQoSPQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPQSize.setStatus('current')
h3cIfQoSPQLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPQLength.setStatus('current')
h3cIfQoSPQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPQDiscardPackets.setStatus('current')
h3cIfQoSCQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3))
h3cIfQoSCQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1))
h3cIfQoSCQDefaultTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSCQDefaultTable.setStatus('current')
h3cIfQoSCQDefaultEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber"))
if mibBuilder.loadTexts: h3cIfQoSCQDefaultEntry.setStatus('current')
h3cIfQoSCQListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: h3cIfQoSCQListNumber.setStatus('current')
h3cIfQoSCQDefaultQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 16)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSCQDefaultQueueID.setStatus('current')
h3cIfQoSCQQueueLengthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSCQQueueLengthTable.setStatus('current')
h3cIfQoSCQQueueLengthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQQueueID"))
if mibBuilder.loadTexts: h3cIfQoSCQQueueLengthEntry.setStatus('current')
h3cIfQoSCQQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: h3cIfQoSCQQueueID.setStatus('current')
h3cIfQoSCQQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)).clone(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSCQQueueLength.setStatus('current')
h3cIfQoSCQQueueServing = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 3), Integer32().clone(1500)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSCQQueueServing.setStatus('current')
h3cIfQoSCQClassRuleTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3), )
if mibBuilder.loadTexts: h3cIfQoSCQClassRuleTable.setStatus('current')
h3cIfQoSCQClassRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQListNumber"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQClassRuleValue"))
if mibBuilder.loadTexts: h3cIfQoSCQClassRuleEntry.setStatus('current')
h3cIfQoSCQClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("interface", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("fragments", 4), ("greater-than", 5), ("less-than", 6), ("tcp", 7), ("udp", 8), ("ipall", 9), ("mpls", 10))))
if mibBuilder.loadTexts: h3cIfQoSCQClassRuleType.setStatus('current')
h3cIfQoSCQClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 2), Integer32())
if mibBuilder.loadTexts: h3cIfQoSCQClassRuleValue.setStatus('current')
h3cIfQoSCQClassRuleQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCQClassRuleQueueID.setStatus('current')
h3cIfQoSCQClassRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCQClassRowStatus.setStatus('current')
h3cIfQoSCQApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4), )
if mibBuilder.loadTexts: h3cIfQoSCQApplyTable.setStatus('current')
h3cIfQoSCQApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSCQApplyEntry.setStatus('current')
h3cIfQoSCQApplyListNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCQApplyListNumber.setStatus('current')
h3cIfQoSCQApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCQApplyRowStatus.setStatus('current')
h3cIfQoSCQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2))
h3cIfQoSCQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSCQRunInfoTable.setStatus('current')
h3cIfQoSCQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCQQueueID"))
if mibBuilder.loadTexts: h3cIfQoSCQRunInfoEntry.setStatus('current')
h3cIfQoSCQRunInfoSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCQRunInfoSize.setStatus('current')
h3cIfQoSCQRunInfoLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCQRunInfoLength.setStatus('current')
h3cIfQoSCQRunInfoDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSCQRunInfoDiscardPackets.setStatus('current')
h3cIfQoSWFQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4))
h3cIfQoSWFQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1))
h3cIfQoSWFQTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSWFQTable.setStatus('current')
h3cIfQoSWFQEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSWFQEntry.setStatus('current')
h3cIfQoSWFQQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024)).clone(64)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWFQQueueLength.setStatus('current')
h3cIfQoSWFQQueueNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("size16", 1), ("size32", 2), ("size64", 3), ("size128", 4), ("size256", 5), ("size512", 6), ("size1024", 7), ("size2048", 8), ("size4096", 9))).clone(5)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWFQQueueNumber.setStatus('current')
h3cIfQoSWFQRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWFQRowStatus.setStatus('current')
h3cIfQoSWFQType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ip-precedence", 1), ("dscp", 2))).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWFQType.setStatus('current')
h3cIfQoSWFQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2))
h3cIfQoSWFQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSWFQRunInfoTable.setStatus('current')
h3cIfQoSWFQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSWFQRunInfoEntry.setStatus('current')
h3cIfQoSWFQSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWFQSize.setStatus('current')
h3cIfQoSWFQLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWFQLength.setStatus('current')
h3cIfQoSWFQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWFQDiscardPackets.setStatus('current')
h3cIfQoSWFQHashedActiveQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWFQHashedActiveQueues.setStatus('current')
h3cIfQoSWFQHashedMaxActiveQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWFQHashedMaxActiveQueues.setStatus('current')
h3fIfQosWFQhashedTotalQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3fIfQosWFQhashedTotalQueues.setStatus('current')
h3cIfQoSBandwidthGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5))
h3cIfQoSBandwidthTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1), )
if mibBuilder.loadTexts: h3cIfQoSBandwidthTable.setStatus('current')
h3cIfQoSBandwidthEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSBandwidthEntry.setStatus('current')
h3cIfQoSMaxBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 1), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSMaxBandwidth.setStatus('current')
h3cIfQoSReservedBandwidthPct = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(75)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSReservedBandwidthPct.setStatus('current')
h3cIfQoSBandwidthRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSBandwidthRowStatus.setStatus('current')
h3cIfQoSQmtokenGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6))
h3cIfQoSQmtokenTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1), )
if mibBuilder.loadTexts: h3cIfQoSQmtokenTable.setStatus('current')
h3cIfQoSQmtokenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSQmtokenEntry.setStatus('current')
h3cIfQoSQmtokenNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 50))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSQmtokenNumber.setStatus('current')
h3cIfQoSQmtokenRosStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSQmtokenRosStatus.setStatus('current')
h3cIfQoSRTPQObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7))
h3cIfQoSRTPQConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1))
h3cIfQoSRTPQConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSRTPQConfigTable.setStatus('current')
h3cIfQoSRTPQConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSRTPQConfigEntry.setStatus('current')
h3cIfQoSRTPQStartPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2000, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRTPQStartPort.setStatus('current')
h3cIfQoSRTPQEndPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2000, 65535))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRTPQEndPort.setStatus('current')
h3cIfQoSRTPQReservedBandwidth = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 3), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRTPQReservedBandwidth.setStatus('current')
h3cIfQoSRTPQCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRTPQCbs.setStatus('current')
h3cIfQoSRTPQRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRTPQRowStatus.setStatus('current')
h3cIfQoSRTPQRunInfoGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2))
h3cIfQoSRTPQRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSRTPQRunInfoTable.setStatus('current')
h3cIfQoSRTPQRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSRTPQRunInfoEntry.setStatus('current')
h3cIfQoSRTPQPacketNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSRTPQPacketNumber.setStatus('current')
h3cIfQoSRTPQPacketSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSRTPQPacketSize.setStatus('current')
h3cIfQoSRTPQOutputPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSRTPQOutputPackets.setStatus('current')
h3cIfQoSRTPQDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSRTPQDiscardPackets.setStatus('current')
h3cIfQoSCarListObject = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8))
h3cIfQoCarListGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1))
h3cIfQoSCarlTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSCarlTable.setStatus('current')
h3cIfQoSCarlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSCarlListNum"))
if mibBuilder.loadTexts: h3cIfQoSCarlEntry.setStatus('current')
h3cIfQoSCarlListNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 1), Integer32())
if mibBuilder.loadTexts: h3cIfQoSCarlListNum.setStatus('current')
h3cIfQoSCarlParaType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("macAddress", 1), ("precMask", 2), ("dscpMask", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCarlParaType.setStatus('current')
h3cIfQoSCarlParaValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 3), OctetString()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCarlParaValue.setStatus('current')
h3cIfQoSCarlRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSCarlRowStatus.setStatus('current')
h3cIfQoSLineRateObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3))
h3cIfQoSLRConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1), )
if mibBuilder.loadTexts: h3cIfQoSLRConfigTable.setStatus('current')
h3cIfQoSLRConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSLRDirection"))
if mibBuilder.loadTexts: h3cIfQoSLRConfigEntry.setStatus('current')
h3cIfQoSLRDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 1), Direction())
if mibBuilder.loadTexts: h3cIfQoSLRDirection.setStatus('current')
h3cIfQoSLRCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSLRCir.setStatus('current')
h3cIfQoSLRCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSLRCbs.setStatus('current')
h3cIfQoSLREbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSLREbs.setStatus('current')
h3cIfQoSRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSRowStatus.setStatus('current')
h3cIfQoSLRPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSLRPir.setStatus('current')
h3cIfQoSLRRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2), )
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoTable.setStatus('current')
h3cIfQoSLRRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSLRDirection"))
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoEntry.setStatus('current')
h3cIfQoSLRRunInfoPassedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoPassedPackets.setStatus('current')
h3cIfQoSLRRunInfoPassedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoPassedBytes.setStatus('current')
h3cIfQoSLRRunInfoDelayedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoDelayedPackets.setStatus('current')
h3cIfQoSLRRunInfoDelayedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoDelayedBytes.setStatus('current')
h3cIfQoSLRRunInfoActiveShaping = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSLRRunInfoActiveShaping.setStatus('current')
h3cIfQoSCARObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4))
h3cIfQoSAggregativeCarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1))
h3cIfQoSAggregativeCarNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarNextIndex.setStatus('current')
h3cIfQoSAggregativeCarConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarConfigTable.setStatus('current')
h3cIfQoSAggregativeCarConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarIndex"))
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarConfigEntry.setStatus('current')
h3cIfQoSAggregativeCarIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65534)))
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarIndex.setStatus('current')
h3cIfQoSAggregativeCarName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarName.setStatus('current')
h3cIfQoSAggregativeCarCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarCir.setStatus('current')
h3cIfQoSAggregativeCarCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarCbs.setStatus('current')
h3cIfQoSAggregativeCarEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 5), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarEbs.setStatus('current')
h3cIfQoSAggregativeCarPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarPir.setStatus('current')
h3cIfQoSAggregativeCarGreenActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 7), CarAction().clone('pass')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenActionType.setStatus('current')
h3cIfQoSAggregativeCarGreenActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenActionValue.setStatus('current')
h3cIfQoSAggregativeCarYellowActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 9), CarAction()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowActionType.setStatus('current')
h3cIfQoSAggregativeCarYellowActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowActionValue.setStatus('current')
h3cIfQoSAggregativeCarRedActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 11), CarAction()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedActionType.setStatus('current')
h3cIfQoSAggregativeCarRedActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 12), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedActionValue.setStatus('current')
h3cIfQoSAggregativeCarType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aggregative", 1), ("notAggregative", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarType.setStatus('current')
h3cIfQoSAggregativeCarRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 14), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRowStatus.setStatus('current')
h3cIfQoSAggregativeCarApplyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3), )
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyTable.setStatus('current')
h3cIfQoSAggregativeCarApplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarApplyRuleValue"))
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyEntry.setStatus('current')
h3cIfQoSAggregativeCarApplyDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 1), Direction())
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyDirection.setStatus('current')
h3cIfQoSAggregativeCarApplyRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipv4acl", 1), ("ipv6acl", 2), ("carl", 3), ("any", 4))))
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRuleType.setStatus('current')
h3cIfQoSAggregativeCarApplyRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 3), Integer32())
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRuleValue.setStatus('current')
h3cIfQoSAggregativeCarApplyCarIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 4), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyCarIndex.setStatus('current')
h3cIfQoSAggregativeCarApplyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarApplyRowStatus.setStatus('current')
h3cIfQoSAggregativeCarRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4), )
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRunInfoTable.setStatus('current')
h3cIfQoSAggregativeCarRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSAggregativeCarIndex"))
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRunInfoEntry.setStatus('current')
h3cIfQoSAggregativeCarGreenPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenPackets.setStatus('current')
h3cIfQoSAggregativeCarGreenBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarGreenBytes.setStatus('current')
h3cIfQoSAggregativeCarYellowPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowPackets.setStatus('current')
h3cIfQoSAggregativeCarYellowBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarYellowBytes.setStatus('current')
h3cIfQoSAggregativeCarRedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedPackets.setStatus('current')
h3cIfQoSAggregativeCarRedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSAggregativeCarRedBytes.setStatus('current')
h3cIfQoSTricolorCarGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2))
h3cIfQoSTricolorCarConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSTricolorCarConfigTable.setStatus('current')
h3cIfQoSTricolorCarConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarValue"))
if mibBuilder.loadTexts: h3cIfQoSTricolorCarConfigEntry.setStatus('current')
h3cIfQoSTricolorCarDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 1), Direction())
if mibBuilder.loadTexts: h3cIfQoSTricolorCarDirection.setStatus('current')
h3cIfQoSTricolorCarType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ipv4acl", 1), ("ipv6acl", 2), ("carl", 3), ("any", 4))))
if mibBuilder.loadTexts: h3cIfQoSTricolorCarType.setStatus('current')
h3cIfQoSTricolorCarValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 3), Integer32())
if mibBuilder.loadTexts: h3cIfQoSTricolorCarValue.setStatus('current')
h3cIfQoSTricolorCarCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarCir.setStatus('current')
h3cIfQoSTricolorCarCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarCbs.setStatus('current')
h3cIfQoSTricolorCarEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarEbs.setStatus('current')
h3cIfQoSTricolorCarPir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarPir.setStatus('current')
h3cIfQoSTricolorCarGreenActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 8), CarAction().clone('pass')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenActionType.setStatus('current')
h3cIfQoSTricolorCarGreenActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenActionValue.setStatus('current')
h3cIfQoSTricolorCarYellowActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 10), CarAction().clone('pass')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowActionType.setStatus('current')
h3cIfQoSTricolorCarYellowActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowActionValue.setStatus('current')
h3cIfQoSTricolorCarRedActionType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 12), CarAction().clone('discard')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedActionType.setStatus('current')
h3cIfQoSTricolorCarRedActionValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 63), ValueRangeConstraint(255, 255), ))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedActionValue.setStatus('current')
h3cIfQoSTricolorCarRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 14), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRowStatus.setStatus('current')
h3cIfQoSTricolorCarRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2), )
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRunInfoTable.setStatus('current')
h3cIfQoSTricolorCarRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarDirection"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSTricolorCarValue"))
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRunInfoEntry.setStatus('current')
h3cIfQoSTricolorCarGreenPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenPackets.setStatus('current')
h3cIfQoSTricolorCarGreenBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarGreenBytes.setStatus('current')
h3cIfQoSTricolorCarYellowPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowPackets.setStatus('current')
h3cIfQoSTricolorCarYellowBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarYellowBytes.setStatus('current')
h3cIfQoSTricolorCarRedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedPackets.setStatus('current')
h3cIfQoSTricolorCarRedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSTricolorCarRedBytes.setStatus('current')
h3cIfQoSGTSObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5))
h3cIfQoSGTSConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1), )
if mibBuilder.loadTexts: h3cIfQoSGTSConfigTable.setStatus('current')
h3cIfQoSGTSConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleValue"))
if mibBuilder.loadTexts: h3cIfQoSGTSConfigEntry.setStatus('current')
h3cIfQoSGTSClassRuleType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("any", 1), ("ipv4acl", 2), ("ipv6acl", 3), ("queue", 4))))
if mibBuilder.loadTexts: h3cIfQoSGTSClassRuleType.setStatus('current')
h3cIfQoSGTSClassRuleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 2), Integer32())
if mibBuilder.loadTexts: h3cIfQoSGTSClassRuleValue.setStatus('current')
h3cIfQoSGTSCir = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 3), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSGTSCir.setStatus('current')
h3cIfQoSGTSCbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 4), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSGTSCbs.setStatus('current')
h3cIfQoSGTSEbs = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 5), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSGTSEbs.setStatus('current')
h3cIfQoSGTSQueueLength = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 6), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSGTSQueueLength.setStatus('current')
h3cIfQoSGTSConfigRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSGTSConfigRowStatus.setStatus('current')
h3cIfQoSGTSRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2), )
if mibBuilder.loadTexts: h3cIfQoSGTSRunInfoTable.setStatus('current')
h3cIfQoSGTSRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSGTSClassRuleValue"))
if mibBuilder.loadTexts: h3cIfQoSGTSRunInfoEntry.setStatus('current')
h3cIfQoSGTSQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSQueueSize.setStatus('current')
h3cIfQoSGTSPassedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSPassedPackets.setStatus('current')
h3cIfQoSGTSPassedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSPassedBytes.setStatus('current')
h3cIfQoSGTSDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSDiscardPackets.setStatus('current')
h3cIfQoSGTSDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSDiscardBytes.setStatus('current')
h3cIfQoSGTSDelayedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSDelayedPackets.setStatus('current')
h3cIfQoSGTSDelayedBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 7), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSGTSDelayedBytes.setStatus('current')
h3cIfQoSWREDObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6))
h3cIfQoSWredGroupGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1))
h3cIfQoSWredGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredGroupNextIndex.setStatus('current')
h3cIfQoSWredGroupTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSWredGroupTable.setStatus('current')
h3cIfQoSWredGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex"))
if mibBuilder.loadTexts: h3cIfQoSWredGroupEntry.setStatus('current')
h3cIfQoSWredGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: h3cIfQoSWredGroupIndex.setStatus('current')
h3cIfQoSWredGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupName.setStatus('current')
h3cIfQoSWredGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("userdefined", 0), ("dot1p", 1), ("ippre", 2), ("dscp", 3), ("localpre", 4), ("atmclp", 5), ("frde", 6), ("exp", 7), ("queue", 8), ("dropLevel", 9)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupType.setStatus('current')
h3cIfQoSWredGroupWeightingConstant = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(9)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupWeightingConstant.setStatus('current')
h3cIfQoSWredGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 6), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupRowStatus.setStatus('current')
h3cIfQoSWredGroupContentTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3), )
if mibBuilder.loadTexts: h3cIfQoSWredGroupContentTable.setStatus('current')
h3cIfQoSWredGroupContentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentSubIndex"))
if mibBuilder.loadTexts: h3cIfQoSWredGroupContentEntry.setStatus('current')
h3cIfQoSWredGroupContentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63)))
if mibBuilder.loadTexts: h3cIfQoSWredGroupContentIndex.setStatus('current')
h3cIfQoSWredGroupContentSubIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63)))
if mibBuilder.loadTexts: h3cIfQoSWredGroupContentSubIndex.setStatus('current')
h3cIfQoSWredLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 3), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredLowLimit.setStatus('current')
h3cIfQoSWredHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 4), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredHighLimit.setStatus('current')
h3cIfQoSWredDiscardProb = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 5), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredDiscardProb.setStatus('current')
h3cIfQoSWredGroupExponent = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(9)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupExponent.setStatus('current')
h3cIfQoSWredRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredRowStatus.setStatus('current')
h3cIfQoSWredGroupApplyIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4), )
if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIfTable.setStatus('current')
h3cIfQoSWredGroupApplyIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIfEntry.setStatus('current')
h3cIfQoSWredGroupApplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyIndex.setStatus('current')
h3cIfQoSWredGroupApplyName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredGroupApplyName.setStatus('current')
h3cIfQoSWredGroupIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSWredGroupIfRowStatus.setStatus('current')
h3cIfQoSWredApplyIfRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5), )
if mibBuilder.loadTexts: h3cIfQoSWredApplyIfRunInfoTable.setStatus('current')
h3cIfQoSWredApplyIfRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSWredGroupContentSubIndex"))
if mibBuilder.loadTexts: h3cIfQoSWredApplyIfRunInfoEntry.setStatus('current')
h3cIfQoSWredPreRandomDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredPreRandomDropNum.setStatus('current')
h3cIfQoSWredPreTailDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWredPreTailDropNum.setStatus('current')
h3cIfQoSPortWredGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2))
h3cIfQoSPortWredWeightConstantTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1), )
if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantTable.setStatus('current')
h3cIfQoSPortWredWeightConstantEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantEntry.setStatus('current')
h3cIfQoSPortWredEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 1), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredEnable.setStatus('current')
h3cIfQoSPortWredWeightConstant = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstant.setStatus('current')
h3cIfQoSPortWredWeightConstantRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredWeightConstantRowStatus.setStatus('current')
h3cIfQoSPortWredPreConfigTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2), )
if mibBuilder.loadTexts: h3cIfQoSPortWredPreConfigTable.setStatus('current')
h3cIfQoSPortWredPreConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPortWredPreID"))
if mibBuilder.loadTexts: h3cIfQoSPortWredPreConfigEntry.setStatus('current')
h3cIfQoSPortWredPreID = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: h3cIfQoSPortWredPreID.setStatus('current')
h3cIfQoSPortWredPreLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 2), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredPreLowLimit.setStatus('current')
h3cIfQoSPortWredPreHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 3), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredPreHighLimit.setStatus('current')
h3cIfQoSPortWredPreDiscardProbability = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 4), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredPreDiscardProbability.setStatus('current')
h3cIfQoSPortWredPreRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPortWredPreRowStatus.setStatus('current')
h3cIfQoSPortWredRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3), )
if mibBuilder.loadTexts: h3cIfQoSPortWredRunInfoTable.setStatus('current')
h3cIfQoSPortWredRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPortWredPreID"))
if mibBuilder.loadTexts: h3cIfQoSPortWredRunInfoEntry.setStatus('current')
h3cIfQoSWREDTailDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 1), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWREDTailDropNum.setStatus('current')
h3cIfQoSWREDRandomDropNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 2), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSWREDRandomDropNum.setStatus('current')
h3cIfQoSPortPriorityObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7))
h3cIfQoSPortPriorityConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1))
h3cIfQoSPortPriorityTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSPortPriorityTable.setStatus('current')
h3cIfQoSPortPriorityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSPortPriorityEntry.setStatus('current')
h3cIfQoSPortPriorityValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSPortPriorityValue.setStatus('current')
h3cIfQoSPortPirorityTrustTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSPortPirorityTrustTable.setStatus('current')
h3cIfQoSPortPirorityTrustEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSPortPirorityTrustEntry.setStatus('current')
h3cIfQoSPortPriorityTrustTrustType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("untrust", 1), ("dot1p", 2), ("dscp", 3), ("exp", 4))).clone('untrust')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSPortPriorityTrustTrustType.setStatus('current')
h3cIfQoSPortPriorityTrustOvercastType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOvercast", 1), ("overcastDSCP", 2), ("overcastCOS", 3))).clone('noOvercast')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: h3cIfQoSPortPriorityTrustOvercastType.setStatus('current')
h3cIfQoSMapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9))
h3cIfQoSPriMapConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1))
h3cIfQoSPriMapGroupNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupNextIndex.setStatus('current')
h3cIfQoSPriMapGroupTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2), )
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupTable.setStatus('current')
h3cIfQoSPriMapGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupIndex"))
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupEntry.setStatus('current')
h3cIfQoSPriMapGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 1), Integer32())
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupIndex.setStatus('current')
h3cIfQoSPriMapGroupType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("userdefined", 1), ("dot1p-dp", 2), ("dot1p-dscp", 3), ("dot1p-lp", 4), ("dscp-dot1p", 5), ("dscp-dp", 6), ("dscp-dscp", 7), ("dscp-lp", 8), ("exp-dp", 9), ("exp-lp", 10)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupType.setStatus('current')
h3cIfQoSPriMapGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupName.setStatus('current')
h3cIfQoSPriMapGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupRowStatus.setStatus('current')
h3cIfQoSPriMapContentTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3), )
if mibBuilder.loadTexts: h3cIfQoSPriMapContentTable.setStatus('current')
h3cIfQoSPriMapContentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1), ).setIndexNames((0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cIfQoSPriMapGroupImportValue"))
if mibBuilder.loadTexts: h3cIfQoSPriMapContentEntry.setStatus('current')
h3cIfQoSPriMapGroupImportValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63)))
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupImportValue.setStatus('current')
h3cIfQoSPriMapGroupExportValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPriMapGroupExportValue.setStatus('current')
h3cIfQoSPriMapContentRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSPriMapContentRowStatus.setStatus('current')
h3cIfQoSL3PlusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10))
h3cIfQoSPortBindingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1))
h3cIfQoSPortBindingTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1), )
if mibBuilder.loadTexts: h3cIfQoSPortBindingTable.setStatus('current')
h3cIfQoSPortBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: h3cIfQoSPortBindingEntry.setStatus('current')
h3cIfQoSBindingIf = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 1), Integer32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSBindingIf.setStatus('current')
h3cIfQoSBindingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cIfQoSBindingRowStatus.setStatus('current')
h3cQoSTraStaObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11))
h3cQoSTraStaConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1))
h3cQoSIfTraStaConfigInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1), )
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigInfoTable.setStatus('current')
h3cQoSIfTraStaConfigInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaConfigDirection"))
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigInfoEntry.setStatus('current')
h3cQoSIfTraStaConfigDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 1), Direction())
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDirection.setStatus('current')
h3cQoSIfTraStaConfigQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigQueue.setStatus('current')
h3cQoSIfTraStaConfigDot1p = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDot1p.setStatus('current')
h3cQoSIfTraStaConfigDscp = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigDscp.setStatus('current')
h3cQoSIfTraStaConfigVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(512, 512)).setFixedLength(512)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigVlan.setStatus('current')
h3cQoSIfTraStaConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 6), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: h3cQoSIfTraStaConfigStatus.setStatus('current')
h3cQoSTraStaRunGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2))
h3cQoSIfTraStaRunInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1), )
if mibBuilder.loadTexts: h3cQoSIfTraStaRunInfoTable.setStatus('current')
h3cQoSIfTraStaRunInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunObjectType"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunObjectValue"), (0, "A3COM-HUAWEI-IFQOS2-MIB", "h3cQoSIfTraStaRunDirection"))
if mibBuilder.loadTexts: h3cQoSIfTraStaRunInfoEntry.setStatus('current')
h3cQoSIfTraStaRunObjectType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("queue", 1), ("dot1p", 2), ("dscp", 3), ("vlanID", 4))))
if mibBuilder.loadTexts: h3cQoSIfTraStaRunObjectType.setStatus('current')
h3cQoSIfTraStaRunObjectValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 2), Integer32())
if mibBuilder.loadTexts: h3cQoSIfTraStaRunObjectValue.setStatus('current')
h3cQoSIfTraStaRunDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 3), Direction())
if mibBuilder.loadTexts: h3cQoSIfTraStaRunDirection.setStatus('current')
h3cQoSIfTraStaRunPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassPackets.setStatus('current')
h3cQoSIfTraStaRunDropPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunDropPackets.setStatus('current')
h3cQoSIfTraStaRunPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassBytes.setStatus('current')
h3cQoSIfTraStaRunDropBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 7), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunDropBytes.setStatus('current')
h3cQoSIfTraStaRunPassPPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 8), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassPPS.setStatus('current')
h3cQoSIfTraStaRunPassBPS = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 9), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: h3cQoSIfTraStaRunPassBPS.setStatus('current')
mibBuilder.exportSymbols("A3COM-HUAWEI-IFQOS2-MIB", h3cIfQoSCarlParaType=h3cIfQoSCarlParaType, h3cIfQoSTailDropBytes=h3cIfQoSTailDropBytes, h3cIfQoSGTSDiscardPackets=h3cIfQoSGTSDiscardPackets, h3cIfQoSAggregativeCarRunInfoTable=h3cIfQoSAggregativeCarRunInfoTable, h3cIfQoSGTSClassRuleValue=h3cIfQoSGTSClassRuleValue, h3cIfQoSCQClassRuleEntry=h3cIfQoSCQClassRuleEntry, h3cIfQoSAggregativeCarName=h3cIfQoSAggregativeCarName, h3cIfQoSPortWredPreID=h3cIfQoSPortWredPreID, h3cIfQoSWredGroupExponent=h3cIfQoSWredGroupExponent, h3cIfQoSRTPQRunInfoGroup=h3cIfQoSRTPQRunInfoGroup, h3cIfQoSPriMapGroupRowStatus=h3cIfQoSPriMapGroupRowStatus, h3cIfQoSPQApplyListNumber=h3cIfQoSPQApplyListNumber, h3cIfQoSTricolorCarCir=h3cIfQoSTricolorCarCir, h3cIfQoSPQRunInfoTable=h3cIfQoSPQRunInfoTable, h3cIfQoSPriMapGroupTable=h3cIfQoSPriMapGroupTable, h3cIfQoSQSMaxDelay=h3cIfQoSQSMaxDelay, h3cIfQoSAggregativeCarGreenBytes=h3cIfQoSAggregativeCarGreenBytes, h3cIfQoSPortPriorityValue=h3cIfQoSPortPriorityValue, h3cIfQoSRTPQEndPort=h3cIfQoSRTPQEndPort, h3cQoSTraStaRunGroup=h3cQoSTraStaRunGroup, h3cIfQoSPriMapContentTable=h3cIfQoSPriMapContentTable, h3cIfQoSPQClassRuleQueueType=h3cIfQoSPQClassRuleQueueType, h3cIfQoSWredGroupIndex=h3cIfQoSWredGroupIndex, h3cIfQoSPQQueueLengthType=h3cIfQoSPQQueueLengthType, h3cIfQoSQueueLengthInBytes=h3cIfQoSQueueLengthInBytes, h3cIfQoSCQClassRowStatus=h3cIfQoSCQClassRowStatus, h3cIfQoSAggregativeCarApplyDirection=h3cIfQoSAggregativeCarApplyDirection, h3cIfQoSPQClassRuleType=h3cIfQoSPQClassRuleType, h3cIfQoSPriMapGroupExportValue=h3cIfQoSPriMapGroupExportValue, h3cIfQoSWredDropHPreNTcpBPS=h3cIfQoSWredDropHPreNTcpBPS, h3cIfQoSAggregativeCarYellowPackets=h3cIfQoSAggregativeCarYellowPackets, h3cIfQoSWredDiscardProb=h3cIfQoSWredDiscardProb, h3cIfQoSCQApplyRowStatus=h3cIfQoSCQApplyRowStatus, h3cIfQoSWredGroupApplyIfEntry=h3cIfQoSWredGroupApplyIfEntry, h3cIfQoSLREbs=h3cIfQoSLREbs, h3cIfQoSPQDefaultQueueType=h3cIfQoSPQDefaultQueueType, h3cIfQoSPortPriorityEntry=h3cIfQoSPortPriorityEntry, h3cIfQoSQSModeTable=h3cIfQoSQSModeTable, h3cIfQoSLRRunInfoTable=h3cIfQoSLRRunInfoTable, h3cIfQoSReservedBandwidthPct=h3cIfQoSReservedBandwidthPct, h3cIfQoSWredGroupTable=h3cIfQoSWredGroupTable, h3cIfQoSLRRunInfoDelayedPackets=h3cIfQoSLRRunInfoDelayedPackets, h3cIfQoSAggregativeCarConfigTable=h3cIfQoSAggregativeCarConfigTable, h3cIfQoSCurQueueBytes=h3cIfQoSCurQueueBytes, h3cIfQoSCQQueueLengthTable=h3cIfQoSCQQueueLengthTable, h3cIfQoSWredGroupRowStatus=h3cIfQoSWredGroupRowStatus, h3cIfQoSPQRunInfoGroup=h3cIfQoSPQRunInfoGroup, h3cIfQoSRTPQOutputPackets=h3cIfQoSRTPQOutputPackets, h3cIfQoSFIFOConfigEntry=h3cIfQoSFIFOConfigEntry, h3cQoSIfTraStaRunObjectType=h3cQoSIfTraStaRunObjectType, h3cIfQoSWredGroupApplyName=h3cIfQoSWredGroupApplyName, h3cIfQoSQSMinBandwidth=h3cIfQoSQSMinBandwidth, h3cIfQoSPortPriorityTrustTrustType=h3cIfQoSPortPriorityTrustTrustType, h3cIfQoSPQConfigGroup=h3cIfQoSPQConfigGroup, h3cIfQoSPortPriorityTrustOvercastType=h3cIfQoSPortPriorityTrustOvercastType, h3cIfQoSTricolorCarRowStatus=h3cIfQoSTricolorCarRowStatus, h3cIfQoSWFQRunInfoTable=h3cIfQoSWFQRunInfoTable, h3cIfQoSLRPir=h3cIfQoSLRPir, h3cIfQoSWredPreTailDropNum=h3cIfQoSWredPreTailDropNum, h3cIfQoSPortWredEnable=h3cIfQoSPortWredEnable, h3cIfQoSBindingIf=h3cIfQoSBindingIf, h3cIfQoSWredDropLPreTcpBytes=h3cIfQoSWredDropLPreTcpBytes, h3cIfQoSAggregativeCarIndex=h3cIfQoSAggregativeCarIndex, h3cQoSIfTraStaRunDropPackets=h3cQoSIfTraStaRunDropPackets, h3cIfQoSCQObject=h3cIfQoSCQObject, h3cIfQoSAggregativeCarRedBytes=h3cIfQoSAggregativeCarRedBytes, h3cIfQoSAggregativeCarNextIndex=h3cIfQoSAggregativeCarNextIndex, h3cIfQoSWredGroupContentIndex=h3cIfQoSWredGroupContentIndex, h3cIfQoSPQRunInfoEntry=h3cIfQoSPQRunInfoEntry, h3cIfQoSPQDefaultTable=h3cIfQoSPQDefaultTable, h3cIfQoSPortWredWeightConstantRowStatus=h3cIfQoSPortWredWeightConstantRowStatus, h3cQoSIfTraStaRunPassBPS=h3cQoSIfTraStaRunPassBPS, h3cIfQoSFIFOObject=h3cIfQoSFIFOObject, h3cIfQoSWredApplyIfRunInfoTable=h3cIfQoSWredApplyIfRunInfoTable, h3cIfQoSCQRunInfoEntry=h3cIfQoSCQRunInfoEntry, h3cIfQoSAggregativeCarRedPackets=h3cIfQoSAggregativeCarRedPackets, h3cIfQoSWredDropHPreNTcpBytes=h3cIfQoSWredDropHPreNTcpBytes, h3cIfQoSGTSRunInfoEntry=h3cIfQoSGTSRunInfoEntry, h3cIfQoSWFQType=h3cIfQoSWFQType, h3cIfQoSTricolorCarGreenActionType=h3cIfQoSTricolorCarGreenActionType, h3cIfQoSWredGroupContentTable=h3cIfQoSWredGroupContentTable, h3cIfQoSBindingRowStatus=h3cIfQoSBindingRowStatus, h3cIfQoSTricolorCarConfigEntry=h3cIfQoSTricolorCarConfigEntry, h3cIfQoSFIFOMaxQueueLen=h3cIfQoSFIFOMaxQueueLen, h3cIfQoSHQueueTcpRunInfoEntry=h3cIfQoSHQueueTcpRunInfoEntry, h3cIfQoSAggregativeCarRunInfoEntry=h3cIfQoSAggregativeCarRunInfoEntry, h3cIfQoSPQApplyRowStatus=h3cIfQoSPQApplyRowStatus, h3cIfQoSRTPQRowStatus=h3cIfQoSRTPQRowStatus, h3cIfQoSAggregativeCarYellowActionType=h3cIfQoSAggregativeCarYellowActionType, h3cIfQoSCQDefaultQueueID=h3cIfQoSCQDefaultQueueID, h3cIfQoSRTPQPacketSize=h3cIfQoSRTPQPacketSize, h3cIfQoSWredGroupContentEntry=h3cIfQoSWredGroupContentEntry, h3cIfQoSPQClassRuleValue=h3cIfQoSPQClassRuleValue, h3cIfQoSPQDefaultEntry=h3cIfQoSPQDefaultEntry, h3cIfQoSWFQObject=h3cIfQoSWFQObject, h3cIfQoSPortWredRunInfoTable=h3cIfQoSPortWredRunInfoTable, h3cIfQoSMapObjects=h3cIfQoSMapObjects, h3cIfQoSQmtokenGroup=h3cIfQoSQmtokenGroup, h3cIfQoSAggregativeCarGreenPackets=h3cIfQoSAggregativeCarGreenPackets, h3cIfQoSCQDefaultTable=h3cIfQoSCQDefaultTable, h3cIfQoSGTSDelayedBytes=h3cIfQoSGTSDelayedBytes, h3cIfQoSPriMapGroupEntry=h3cIfQoSPriMapGroupEntry, h3cIfQoSCQDefaultEntry=h3cIfQoSCQDefaultEntry, h3cIfQoSTricolorCarEbs=h3cIfQoSTricolorCarEbs, h3cIfQoSQSType=h3cIfQoSQSType, h3cIfQoSCurQueueBPS=h3cIfQoSCurQueueBPS, h3cIfQoSPQClassRuleTable=h3cIfQoSPQClassRuleTable, h3cIfQoSLRCbs=h3cIfQoSLRCbs, h3cIfQoSQueueLengthInPkts=h3cIfQoSQueueLengthInPkts, h3cIfQoSQueueGroupType=h3cIfQoSQueueGroupType, h3cIfQoSLRRunInfoDelayedBytes=h3cIfQoSLRRunInfoDelayedBytes, h3cIfQoSWredDropBytes=h3cIfQoSWredDropBytes, h3cIfQoSRTPQRunInfoTable=h3cIfQoSRTPQRunInfoTable, h3cIfQoSWredGroupApplyIndex=h3cIfQoSWredGroupApplyIndex, h3cIfQoSCarlParaValue=h3cIfQoSCarlParaValue, h3cIfQoSAggregativeCarRedActionValue=h3cIfQoSAggregativeCarRedActionValue, h3cIfQoSPortWredGroup=h3cIfQoSPortWredGroup, h3cIfQoSPortWredWeightConstantEntry=h3cIfQoSPortWredWeightConstantEntry, h3cIfQoSWredGroupWeightingConstant=h3cIfQoSWredGroupWeightingConstant, h3cIfQoSPQType=h3cIfQoSPQType, h3cIfQoSDropBytes=h3cIfQoSDropBytes, h3cIfQoSBandwidthTable=h3cIfQoSBandwidthTable, h3cIfQoSWredDropPPS=h3cIfQoSWredDropPPS, h3cIfQoSRTPQConfigTable=h3cIfQoSRTPQConfigTable, h3cIfQoSAggregativeCarApplyRowStatus=h3cIfQoSAggregativeCarApplyRowStatus, h3cIfQoSWredDropLPreNTcpPkts=h3cIfQoSWredDropLPreNTcpPkts, h3cIfQoSHardwareQueueObjects=h3cIfQoSHardwareQueueObjects, h3cIfQoSWFQLength=h3cIfQoSWFQLength, h3cQoSIfTraStaRunObjectValue=h3cQoSIfTraStaRunObjectValue, h3cQoSTraStaObjects=h3cQoSTraStaObjects, h3cIfQoSWredGroupApplyIfTable=h3cIfQoSWredGroupApplyIfTable, h3cIfQoSWREDTailDropNum=h3cIfQoSWREDTailDropNum, h3cIfQoSLRConfigEntry=h3cIfQoSLRConfigEntry, h3cIfQoSQSModeEntry=h3cIfQoSQSModeEntry, h3cIfQoSAggregativeCarGroup=h3cIfQoSAggregativeCarGroup, h3cIfQoSQSWeightTable=h3cIfQoSQSWeightTable, h3cIfQoSCQClassRuleValue=h3cIfQoSCQClassRuleValue, h3cIfQoSCQQueueLength=h3cIfQoSCQQueueLength, h3cIfQoSFIFODiscardPackets=h3cIfQoSFIFODiscardPackets, h3cIfQoSTricolorCarPir=h3cIfQoSTricolorCarPir, h3cIfQoSTricolorCarGroup=h3cIfQoSTricolorCarGroup, h3cIfQoSWredGroupIfRowStatus=h3cIfQoSWredGroupIfRowStatus, h3cIfQoSAggregativeCarRedActionType=h3cIfQoSAggregativeCarRedActionType, h3cIfQoCarListGroup=h3cIfQoCarListGroup, h3cIfQoSBandwidthEntry=h3cIfQoSBandwidthEntry, h3cIfQoSLRConfigTable=h3cIfQoSLRConfigTable, h3cIfQoSPortBindingGroup=h3cIfQoSPortBindingGroup, h3cIfQoSTricolorCarConfigTable=h3cIfQoSTricolorCarConfigTable, h3cIfQoSWredDropHPreNTcpPPS=h3cIfQoSWredDropHPreNTcpPPS, h3cIfQoSPriMapContentEntry=h3cIfQoSPriMapContentEntry, h3cIfQoSLRRunInfoActiveShaping=h3cIfQoSLRRunInfoActiveShaping, h3cIfQoSCQClassRuleType=h3cIfQoSCQClassRuleType, h3cIfQoSRTPQStartPort=h3cIfQoSRTPQStartPort, h3cIfQoSQSMode=h3cIfQoSQSMode, h3cIfQoSPQQueueLengthValue=h3cIfQoSPQQueueLengthValue, h3cIfQoSPQClassRowStatus=h3cIfQoSPQClassRowStatus, h3cIfQoSGTSQueueLength=h3cIfQoSGTSQueueLength, h3cQos2=h3cQos2, h3cIfQoSWredDropBPS=h3cIfQoSWredDropBPS, h3cIfQoSCQClassRuleTable=h3cIfQoSCQClassRuleTable, h3cIfQoSQmtokenTable=h3cIfQoSQmtokenTable, h3cIfQoSWredHighLimit=h3cIfQoSWredHighLimit, h3cIfQoSHardwareQueueRunInfoTable=h3cIfQoSHardwareQueueRunInfoTable, h3cIfQoSAggregativeCarPir=h3cIfQoSAggregativeCarPir, h3cIfQoSPQQueueLengthEntry=h3cIfQoSPQQueueLengthEntry, h3cIfQoSAggregativeCarCir=h3cIfQoSAggregativeCarCir, h3cIfQoSBandwidthRowStatus=h3cIfQoSBandwidthRowStatus, h3cIfQoSPortWredPreLowLimit=h3cIfQoSPortWredPreLowLimit, h3cIfQoSPortWredPreRowStatus=h3cIfQoSPortWredPreRowStatus, h3cIfQoSCarlRowStatus=h3cIfQoSCarlRowStatus, h3cIfQoSCQRunInfoDiscardPackets=h3cIfQoSCQRunInfoDiscardPackets, h3cIfQoSLRRunInfoPassedPackets=h3cIfQoSLRRunInfoPassedPackets, h3cIfQoSTailDropPPS=h3cIfQoSTailDropPPS, h3cIfQoSWredDropHPreTcpPPS=h3cIfQoSWredDropHPreTcpPPS, h3cIfQoSCQConfigGroup=h3cIfQoSCQConfigGroup, h3cIfQoSRTPQCbs=h3cIfQoSRTPQCbs, h3cIfQoSHQueueTcpRunInfoTable=h3cIfQoSHQueueTcpRunInfoTable, h3cIfQoSWFQHashedActiveQueues=h3cIfQoSWFQHashedActiveQueues, h3cIfQoSWFQDiscardPackets=h3cIfQoSWFQDiscardPackets, h3cIfQoSAggregativeCarApplyEntry=h3cIfQoSAggregativeCarApplyEntry, h3cIfQoSLRCir=h3cIfQoSLRCir, h3cIfQoSPortPriorityObjects=h3cIfQoSPortPriorityObjects, h3cIfQoSWredDropLPreTcpPkts=h3cIfQoSWredDropLPreTcpPkts, h3cIfQoSPortPirorityTrustEntry=h3cIfQoSPortPirorityTrustEntry, h3cQoSIfTraStaRunPassPackets=h3cQoSIfTraStaRunPassPackets, h3cQoSIfTraStaConfigDirection=h3cQoSIfTraStaConfigDirection, h3cIfQoSWFQRunInfoGroup=h3cIfQoSWFQRunInfoGroup, h3cQoSIfTraStaConfigVlan=h3cQoSIfTraStaConfigVlan, h3cIfQoSWredGroupNextIndex=h3cIfQoSWredGroupNextIndex, h3cIfQoSGTSPassedBytes=h3cIfQoSGTSPassedBytes, h3cIfQoSWFQRunInfoEntry=h3cIfQoSWFQRunInfoEntry, h3cIfQoSAggregativeCarYellowBytes=h3cIfQoSAggregativeCarYellowBytes, h3cIfQoSCQListNumber=h3cIfQoSCQListNumber, h3cIfQoSWredApplyIfRunInfoEntry=h3cIfQoSWredApplyIfRunInfoEntry, h3cIfQoSWredDropLPreNTcpBytes=h3cIfQoSWredDropLPreNTcpBytes, h3cIfQoSAggregativeCarCbs=h3cIfQoSAggregativeCarCbs, h3cIfQoSWredPreRandomDropNum=h3cIfQoSWredPreRandomDropNum, h3cIfQoSQSWeightEntry=h3cIfQoSQSWeightEntry, h3cIfQoSPQClassRuleEntry=h3cIfQoSPQClassRuleEntry, h3cIfQoSWredDropHPreNTcpPkts=h3cIfQoSWredDropHPreNTcpPkts, h3cQoSIfTraStaRunDirection=h3cQoSIfTraStaRunDirection, h3cIfQoSCarlListNum=h3cIfQoSCarlListNum, h3cIfQoSCQQueueLengthEntry=h3cIfQoSCQQueueLengthEntry, h3cIfQoSRTPQPacketNumber=h3cIfQoSRTPQPacketNumber, h3cIfQoSWFQHashedMaxActiveQueues=h3cIfQoSWFQHashedMaxActiveQueues, h3cIfQoSHardwareQueueConfigGroup=h3cIfQoSHardwareQueueConfigGroup, h3cIfQoSRTPQDiscardPackets=h3cIfQoSRTPQDiscardPackets, h3cIfQoSGTSRunInfoTable=h3cIfQoSGTSRunInfoTable, h3cIfQoSWFQQueueNumber=h3cIfQoSWFQQueueNumber, h3cIfQoSSoftwareQueueObjects=h3cIfQoSSoftwareQueueObjects, h3cIfQoSQmtokenRosStatus=h3cIfQoSQmtokenRosStatus, h3cQoSIfTraStaRunInfoTable=h3cQoSIfTraStaRunInfoTable, h3cIfQoSMaxBandwidth=h3cIfQoSMaxBandwidth, h3cIfQoSAggregativeCarApplyRuleType=h3cIfQoSAggregativeCarApplyRuleType, h3cIfQoSQueueID=h3cIfQoSQueueID, h3cIfQoSPQSize=h3cIfQoSPQSize, h3cQoSIfTraStaRunPassBytes=h3cQoSIfTraStaRunPassBytes, h3cIfQoSTricolorCarRedPackets=h3cIfQoSTricolorCarRedPackets, h3cIfQoSTailDropBPS=h3cIfQoSTailDropBPS, h3cIfQoSPassBPS=h3cIfQoSPassBPS, h3cIfQoSAggregativeCarApplyRuleValue=h3cIfQoSAggregativeCarApplyRuleValue, CarAction=CarAction, h3cIfQoSPortWredWeightConstantTable=h3cIfQoSPortWredWeightConstantTable, h3cIfQoSWredDropLPreTcpBPS=h3cIfQoSWredDropLPreTcpBPS, h3cIfQoSTricolorCarRedBytes=h3cIfQoSTricolorCarRedBytes, h3cIfQoSCQApplyEntry=h3cIfQoSCQApplyEntry, h3cIfQoSAggregativeCarEbs=h3cIfQoSAggregativeCarEbs, h3cIfQoSAggregativeCarConfigEntry=h3cIfQoSAggregativeCarConfigEntry, h3cIfQoSTricolorCarYellowActionType=h3cIfQoSTricolorCarYellowActionType, PriorityQueue=PriorityQueue, h3cIfQoSTricolorCarValue=h3cIfQoSTricolorCarValue, h3cQoSTraStaConfigGroup=h3cQoSTraStaConfigGroup, h3cIfQoSGTSConfigRowStatus=h3cIfQoSGTSConfigRowStatus, h3cIfQoSPriMapGroupNextIndex=h3cIfQoSPriMapGroupNextIndex, h3cIfQoSQmtokenNumber=h3cIfQoSQmtokenNumber, h3cIfQoSCurQueuePPS=h3cIfQoSCurQueuePPS, h3cIfQoSWREDRandomDropNum=h3cIfQoSWREDRandomDropNum, h3cIfQoSWFQTable=h3cIfQoSWFQTable, h3cIfQoSTricolorCarYellowBytes=h3cIfQoSTricolorCarYellowBytes, h3cIfQoSPortWredPreConfigTable=h3cIfQoSPortWredPreConfigTable, h3cQoSIfTraStaConfigInfoEntry=h3cQoSIfTraStaConfigInfoEntry, h3cIfQoSTricolorCarRunInfoTable=h3cIfQoSTricolorCarRunInfoTable, h3cIfQoSLRDirection=h3cIfQoSLRDirection, h3cIfQoSCQApplyListNumber=h3cIfQoSCQApplyListNumber, h3cIfQoSRTPQRunInfoEntry=h3cIfQoSRTPQRunInfoEntry, h3cIfQoSTricolorCarGreenActionValue=h3cIfQoSTricolorCarGreenActionValue, h3cIfQoSAggregativeCarGreenActionType=h3cIfQoSAggregativeCarGreenActionType, h3cIfQoSWredRowStatus=h3cIfQoSWredRowStatus, h3cIfQoSPortPriorityConfigGroup=h3cIfQoSPortPriorityConfigGroup, h3cIfQoSTricolorCarRedActionValue=h3cIfQoSTricolorCarRedActionValue, h3cIfQoSPortWredRunInfoEntry=h3cIfQoSPortWredRunInfoEntry, h3cIfQoSWFQEntry=h3cIfQoSWFQEntry, h3cIfQoSPortPriorityTable=h3cIfQoSPortPriorityTable, h3cIfQoSDropPackets=h3cIfQoSDropPackets)
mibBuilder.exportSymbols("A3COM-HUAWEI-IFQOS2-MIB", h3cIfQoSWredDropLPreNTcpPPS=h3cIfQoSWredDropLPreNTcpPPS, h3cIfQoSTricolorCarCbs=h3cIfQoSTricolorCarCbs, h3cQoSIfTraStaConfigInfoTable=h3cQoSIfTraStaConfigInfoTable, h3cIfQoSWFQConfigGroup=h3cIfQoSWFQConfigGroup, h3cQoSIfTraStaConfigQueue=h3cQoSIfTraStaConfigQueue, h3cIfQoSCarlEntry=h3cIfQoSCarlEntry, h3cIfQoSTricolorCarYellowActionValue=h3cIfQoSTricolorCarYellowActionValue, h3cIfQoSHardwareQueueRunInfoEntry=h3cIfQoSHardwareQueueRunInfoEntry, h3cIfQoSGTSPassedPackets=h3cIfQoSGTSPassedPackets, h3cIfQoSTricolorCarRedActionType=h3cIfQoSTricolorCarRedActionType, h3cIfQoSPortBindingTable=h3cIfQoSPortBindingTable, h3cIfQoSCQApplyTable=h3cIfQoSCQApplyTable, h3cIfQoSQSValue=h3cIfQoSQSValue, h3cIfQoSTricolorCarType=h3cIfQoSTricolorCarType, h3cIfQoSCQQueueServing=h3cIfQoSCQQueueServing, h3cIfQoSPriMapConfigGroup=h3cIfQoSPriMapConfigGroup, h3cIfQoSPortBindingEntry=h3cIfQoSPortBindingEntry, h3cIfQoSWredDropLPreTcpPPS=h3cIfQoSWredDropLPreTcpPPS, h3cIfQoSFIFORunInfoTable=h3cIfQoSFIFORunInfoTable, h3cIfQoSQmtokenEntry=h3cIfQoSQmtokenEntry, h3cIfQoSAggregativeCarApplyTable=h3cIfQoSAggregativeCarApplyTable, h3cIfQoSWredDropPkts=h3cIfQoSWredDropPkts, h3cIfQoSLRRunInfoPassedBytes=h3cIfQoSLRRunInfoPassedBytes, h3cIfQoSGTSQueueSize=h3cIfQoSGTSQueueSize, h3cIfQoSPQApplyTable=h3cIfQoSPQApplyTable, h3cIfQoSCarlTable=h3cIfQoSCarlTable, h3cIfQoSPQDiscardPackets=h3cIfQoSPQDiscardPackets, h3cIfQoSPQQueueLengthTable=h3cIfQoSPQQueueLengthTable, h3cIfQoSWredGroupGroup=h3cIfQoSWredGroupGroup, h3cQoSIfTraStaRunPassPPS=h3cQoSIfTraStaRunPassPPS, PYSNMP_MODULE_ID=h3cIfQos2, h3cIfQoSWredDropHPreTcpBytes=h3cIfQoSWredDropHPreTcpBytes, h3cIfQoSAggregativeCarRowStatus=h3cIfQoSAggregativeCarRowStatus, h3cIfQoSGTSCir=h3cIfQoSGTSCir, h3cIfQoSWFQSize=h3cIfQoSWFQSize, h3cIfQoSGTSObjects=h3cIfQoSGTSObjects, h3fIfQosWFQhashedTotalQueues=h3fIfQosWFQhashedTotalQueues, h3cIfQoSWFQRowStatus=h3cIfQoSWFQRowStatus, h3cIfQoSGTSEbs=h3cIfQoSGTSEbs, h3cIfQoSWredDropHPreTcpBPS=h3cIfQoSWredDropHPreTcpBPS, h3cIfQoSGTSConfigTable=h3cIfQoSGTSConfigTable, h3cIfQoSFIFORunInfoEntry=h3cIfQoSFIFORunInfoEntry, h3cIfQoSWredGroupContentSubIndex=h3cIfQoSWredGroupContentSubIndex, h3cIfQoSPortWredPreDiscardProbability=h3cIfQoSPortWredPreDiscardProbability, h3cIfQoSGTSClassRuleType=h3cIfQoSGTSClassRuleType, h3cIfQoSAggregativeCarYellowActionValue=h3cIfQoSAggregativeCarYellowActionValue, h3cIfQoSWREDObjects=h3cIfQoSWREDObjects, h3cIfQoSHardwareQueueRunInfoGroup=h3cIfQoSHardwareQueueRunInfoGroup, h3cIfQoSCQRunInfoGroup=h3cIfQoSCQRunInfoGroup, h3cIfQoSPortWredPreConfigEntry=h3cIfQoSPortWredPreConfigEntry, h3cIfQoSRowStatus=h3cIfQoSRowStatus, h3cIfQoSPassBytes=h3cIfQoSPassBytes, h3cIfQoSLineRateObjects=h3cIfQoSLineRateObjects, h3cIfQoSWredDropLPreNTcpBPS=h3cIfQoSWredDropLPreNTcpBPS, h3cIfQoSWredGroupName=h3cIfQoSWredGroupName, h3cIfQoSTricolorCarDirection=h3cIfQoSTricolorCarDirection, h3cIfQoSPriMapGroupType=h3cIfQoSPriMapGroupType, h3cIfQoSPQLength=h3cIfQoSPQLength, h3cIfQoSPriMapGroupImportValue=h3cIfQoSPriMapGroupImportValue, h3cIfQoSL3PlusObjects=h3cIfQoSL3PlusObjects, h3cIfQoSAggregativeCarApplyCarIndex=h3cIfQoSAggregativeCarApplyCarIndex, h3cIfQoSWredDropHPreTcpPkts=h3cIfQoSWredDropHPreTcpPkts, h3cIfQoSPQListNumber=h3cIfQoSPQListNumber, h3cQoSIfTraStaRunDropBytes=h3cQoSIfTraStaRunDropBytes, h3cQoSIfTraStaConfigDscp=h3cQoSIfTraStaConfigDscp, h3cIfQoSCQQueueID=h3cIfQoSCQQueueID, h3cIfQoSCQClassRuleQueueID=h3cIfQoSCQClassRuleQueueID, h3cIfQoSCQRunInfoLength=h3cIfQoSCQRunInfoLength, h3cIfQoSCQRunInfoSize=h3cIfQoSCQRunInfoSize, h3cIfQoSCARObjects=h3cIfQoSCARObjects, h3cIfQoSPortWredPreHighLimit=h3cIfQoSPortWredPreHighLimit, h3cIfQoSFIFOSize=h3cIfQoSFIFOSize, h3cIfQoSGTSConfigEntry=h3cIfQoSGTSConfigEntry, h3cIfQoSWredGroupEntry=h3cIfQoSWredGroupEntry, h3cIfQoSCurQueuePkts=h3cIfQoSCurQueuePkts, h3cIfQoSGTSDelayedPackets=h3cIfQoSGTSDelayedPackets, h3cIfQoSPassPPS=h3cIfQoSPassPPS, h3cIfQoSFIFOConfigTable=h3cIfQoSFIFOConfigTable, h3cIfQoSAggregativeCarGreenActionValue=h3cIfQoSAggregativeCarGreenActionValue, h3cIfQoSCQRunInfoTable=h3cIfQoSCQRunInfoTable, h3cIfQos2=h3cIfQos2, h3cIfQoSPriMapGroupName=h3cIfQoSPriMapGroupName, h3cIfQoSRTPQObject=h3cIfQoSRTPQObject, h3cIfQoSRTPQReservedBandwidth=h3cIfQoSRTPQReservedBandwidth, h3cIfQoSRTPQConfigGroup=h3cIfQoSRTPQConfigGroup, h3cIfQoSTricolorCarGreenPackets=h3cIfQoSTricolorCarGreenPackets, h3cIfQoSPriMapGroupIndex=h3cIfQoSPriMapGroupIndex, h3cIfQoSPQObject=h3cIfQoSPQObject, h3cIfQoSTricolorCarYellowPackets=h3cIfQoSTricolorCarYellowPackets, h3cIfQoSAggregativeCarType=h3cIfQoSAggregativeCarType, h3cQoSIfTraStaConfigDot1p=h3cQoSIfTraStaConfigDot1p, h3cIfQoSLRRunInfoEntry=h3cIfQoSLRRunInfoEntry, h3cIfQoSWFQQueueLength=h3cIfQoSWFQQueueLength, h3cIfQoSPriMapContentRowStatus=h3cIfQoSPriMapContentRowStatus, h3cIfQoSBandwidthGroup=h3cIfQoSBandwidthGroup, h3cIfQoSRTPQConfigEntry=h3cIfQoSRTPQConfigEntry, h3cQoSIfTraStaRunInfoEntry=h3cQoSIfTraStaRunInfoEntry, h3cIfQoSPassPackets=h3cIfQoSPassPackets, h3cIfQoSGTSDiscardBytes=h3cIfQoSGTSDiscardBytes, h3cQoSIfTraStaConfigStatus=h3cQoSIfTraStaConfigStatus, h3cIfQoSTailDropPkts=h3cIfQoSTailDropPkts, h3cIfQoSTricolorCarRunInfoEntry=h3cIfQoSTricolorCarRunInfoEntry, h3cIfQoSWredGroupType=h3cIfQoSWredGroupType, h3cIfQoSWredLowLimit=h3cIfQoSWredLowLimit, h3cIfQoSPortPirorityTrustTable=h3cIfQoSPortPirorityTrustTable, h3cIfQoSGTSCbs=h3cIfQoSGTSCbs, h3cIfQoSCarListObject=h3cIfQoSCarListObject, h3cIfQoSTricolorCarGreenBytes=h3cIfQoSTricolorCarGreenBytes, h3cIfQoSPQApplyEntry=h3cIfQoSPQApplyEntry, h3cIfQoSPortWredWeightConstant=h3cIfQoSPortWredWeightConstant, Direction=Direction)
| (h3c_common,) = mibBuilder.importSymbols('A3COM-HUAWEI-OID-MIB', 'h3cCommon')
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, constraints_union, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(notification_type, object_identity, counter32, bits, gauge32, counter64, unsigned32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, module_identity, ip_address, integer32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'ObjectIdentity', 'Counter32', 'Bits', 'Gauge32', 'Counter64', 'Unsigned32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'ModuleIdentity', 'IpAddress', 'Integer32', 'TimeTicks')
(row_status, display_string, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'DisplayString', 'TextualConvention', 'TruthValue')
h3c_if_qos2 = module_identity((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1))
if mibBuilder.loadTexts:
h3cIfQos2.setLastUpdated('200812020000Z')
if mibBuilder.loadTexts:
h3cIfQos2.setOrganization('H3C Technologies Co.,Ltd.')
h3c_qos2 = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65))
class Caraction(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))
named_values = named_values(('invalid', 0), ('pass', 1), ('continue', 2), ('discard', 3), ('remark', 4), ('remark-ip-continue', 5), ('remark-ip-pass', 6), ('remark-mplsexp-continue', 7), ('remark-mplsexp-pass', 8), ('remark-dscp-continue', 9), ('remark-dscp-pass', 10), ('remark-dot1p-continue', 11), ('remark-dot1p-pass', 12), ('remark-atm-clp-continue', 13), ('remark-atm-clp-pass', 14), ('remark-fr-de-continue', 15), ('remark-fr-de-pass', 16))
class Priorityqueue(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4))
named_values = named_values(('top', 1), ('middle', 2), ('normal', 3), ('bottom', 4))
class Direction(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('inbound', 1), ('outbound', 2))
h3c_if_qo_s_hardware_queue_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1))
h3c_if_qo_s_hardware_queue_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1))
h3c_if_qo_sqs_mode_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSQSModeTable.setStatus('current')
h3c_if_qo_sqs_mode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSQSModeEntry.setStatus('current')
h3c_if_qo_sqs_mode = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('sp', 1), ('sp0', 2), ('sp1', 3), ('sp2', 4), ('wrr', 5), ('hwfq', 6), ('wrr-sp', 7), ('byteCountWrr', 8), ('byteCountWfq', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQSMode.setStatus('current')
h3c_if_qo_sqs_weight_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSQSWeightTable.setStatus('current')
h3c_if_qo_sqs_weight_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSQueueID'))
if mibBuilder.loadTexts:
h3cIfQoSQSWeightEntry.setStatus('current')
h3c_if_qo_s_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
h3cIfQoSQueueID.setStatus('current')
h3c_if_qo_s_queue_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('group0', 1), ('group1', 2), ('group2', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQueueGroupType.setStatus('current')
h3c_if_qo_sqs_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('weight', 1), ('byte-count', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQSType.setStatus('current')
h3c_if_qo_sqs_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQSValue.setStatus('current')
h3c_if_qo_sqs_max_delay = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 5), integer32().clone(9)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQSMaxDelay.setStatus('current')
h3c_if_qo_sqs_min_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 1, 2, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSQSMinBandwidth.setStatus('current')
h3c_if_qo_s_hardware_queue_run_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2))
h3c_if_qo_s_hardware_queue_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSHardwareQueueRunInfoTable.setStatus('current')
h3c_if_qo_s_hardware_queue_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSQueueID'))
if mibBuilder.loadTexts:
h3cIfQoSHardwareQueueRunInfoEntry.setStatus('current')
h3c_if_qo_s_pass_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPassPackets.setStatus('current')
h3c_if_qo_s_drop_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSDropPackets.setStatus('current')
h3c_if_qo_s_pass_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPassBytes.setStatus('current')
h3c_if_qo_s_pass_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPassPPS.setStatus('current')
h3c_if_qo_s_pass_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPassBPS.setStatus('current')
h3c_if_qo_s_drop_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSDropBytes.setStatus('current')
h3c_if_qo_s_queue_length_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSQueueLengthInPkts.setStatus('current')
h3c_if_qo_s_queue_length_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSQueueLengthInBytes.setStatus('current')
h3c_if_qo_s_cur_queue_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCurQueuePkts.setStatus('current')
h3c_if_qo_s_cur_queue_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCurQueueBytes.setStatus('current')
h3c_if_qo_s_cur_queue_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCurQueuePPS.setStatus('current')
h3c_if_qo_s_cur_queue_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCurQueueBPS.setStatus('current')
h3c_if_qo_s_tail_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 13), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTailDropPkts.setStatus('current')
h3c_if_qo_s_tail_drop_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 14), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTailDropBytes.setStatus('current')
h3c_if_qo_s_tail_drop_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTailDropPPS.setStatus('current')
h3c_if_qo_s_tail_drop_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTailDropBPS.setStatus('current')
h3c_if_qo_s_wred_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 17), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropPkts.setStatus('current')
h3c_if_qo_s_wred_drop_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 18), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropBytes.setStatus('current')
h3c_if_qo_s_wred_drop_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 19), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropPPS.setStatus('current')
h3c_if_qo_s_wred_drop_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 1, 1, 20), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropBPS.setStatus('current')
h3c_if_qo_sh_queue_tcp_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2))
if mibBuilder.loadTexts:
h3cIfQoSHQueueTcpRunInfoTable.setStatus('current')
h3c_if_qo_sh_queue_tcp_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSQueueID'))
if mibBuilder.loadTexts:
h3cIfQoSHQueueTcpRunInfoEntry.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_n_tcp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreNTcpPkts.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_n_tcp_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreNTcpBytes.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_n_tcp_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreNTcpPPS.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_n_tcp_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreNTcpBPS.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_tcp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreTcpPkts.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_tcp_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreTcpBytes.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_tcp_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreTcpPPS.setStatus('current')
h3c_if_qo_s_wred_drop_l_pre_tcp_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropLPreTcpBPS.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_n_tcp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 9), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreNTcpPkts.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_n_tcp_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 10), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreNTcpBytes.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_n_tcp_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreNTcpPPS.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_n_tcp_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 12), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreNTcpBPS.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_tcp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 13), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreTcpPkts.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_tcp_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 14), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreTcpBytes.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_tcp_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 15), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreTcpPPS.setStatus('current')
h3c_if_qo_s_wred_drop_h_pre_tcp_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 1, 2, 2, 1, 16), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredDropHPreTcpBPS.setStatus('current')
h3c_if_qo_s_software_queue_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2))
h3c_if_qo_sfifo_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1))
h3c_if_qo_sfifo_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSFIFOConfigTable.setStatus('current')
h3c_if_qo_sfifo_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSFIFOConfigEntry.setStatus('current')
h3c_if_qo_sfifo_max_queue_len = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 1, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSFIFOMaxQueueLen.setStatus('current')
h3c_if_qo_sfifo_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSFIFORunInfoTable.setStatus('current')
h3c_if_qo_sfifo_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSFIFORunInfoEntry.setStatus('current')
h3c_if_qo_sfifo_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSFIFOSize.setStatus('current')
h3c_if_qo_sfifo_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 1, 2, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSFIFODiscardPackets.setStatus('current')
h3c_if_qo_spq_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2))
h3c_if_qo_spq_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1))
h3c_if_qo_spq_default_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSPQDefaultTable.setStatus('current')
h3c_if_qo_spq_default_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQListNumber'))
if mibBuilder.loadTexts:
h3cIfQoSPQDefaultEntry.setStatus('current')
h3c_if_qo_spq_list_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
h3cIfQoSPQListNumber.setStatus('current')
h3c_if_qo_spq_default_queue_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 1, 1, 2), priority_queue()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSPQDefaultQueueType.setStatus('current')
h3c_if_qo_spq_queue_length_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSPQQueueLengthTable.setStatus('current')
h3c_if_qo_spq_queue_length_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQListNumber'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQQueueLengthType'))
if mibBuilder.loadTexts:
h3cIfQoSPQQueueLengthEntry.setStatus('current')
h3c_if_qo_spq_queue_length_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 1), priority_queue())
if mibBuilder.loadTexts:
h3cIfQoSPQQueueLengthType.setStatus('current')
h3c_if_qo_spq_queue_length_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSPQQueueLengthValue.setStatus('current')
h3c_if_qo_spq_class_rule_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3))
if mibBuilder.loadTexts:
h3cIfQoSPQClassRuleTable.setStatus('current')
h3c_if_qo_spq_class_rule_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQListNumber'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQClassRuleType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQClassRuleValue'))
if mibBuilder.loadTexts:
h3cIfQoSPQClassRuleEntry.setStatus('current')
h3c_if_qo_spq_class_rule_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('interface', 1), ('ipv4acl', 2), ('ipv6acl', 3), ('fragments', 4), ('greater-than', 5), ('less-than', 6), ('tcp', 7), ('udp', 8), ('ipall', 9), ('mpls', 10))))
if mibBuilder.loadTexts:
h3cIfQoSPQClassRuleType.setStatus('current')
h3c_if_qo_spq_class_rule_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 2), integer32())
if mibBuilder.loadTexts:
h3cIfQoSPQClassRuleValue.setStatus('current')
h3c_if_qo_spq_class_rule_queue_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 3), priority_queue()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPQClassRuleQueueType.setStatus('current')
h3c_if_qo_spq_class_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 3, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPQClassRowStatus.setStatus('current')
h3c_if_qo_spq_apply_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4))
if mibBuilder.loadTexts:
h3cIfQoSPQApplyTable.setStatus('current')
h3c_if_qo_spq_apply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPQApplyEntry.setStatus('current')
h3c_if_qo_spq_apply_list_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPQApplyListNumber.setStatus('current')
h3c_if_qo_spq_apply_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 1, 4, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPQApplyRowStatus.setStatus('current')
h3c_if_qo_spq_run_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2))
h3c_if_qo_spq_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSPQRunInfoTable.setStatus('current')
h3c_if_qo_spq_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPQType'))
if mibBuilder.loadTexts:
h3cIfQoSPQRunInfoEntry.setStatus('current')
h3c_if_qo_spq_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 1), priority_queue())
if mibBuilder.loadTexts:
h3cIfQoSPQType.setStatus('current')
h3c_if_qo_spq_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPQSize.setStatus('current')
h3c_if_qo_spq_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPQLength.setStatus('current')
h3c_if_qo_spq_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 2, 2, 1, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPQDiscardPackets.setStatus('current')
h3c_if_qo_scq_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3))
h3c_if_qo_scq_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1))
h3c_if_qo_scq_default_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSCQDefaultTable.setStatus('current')
h3c_if_qo_scq_default_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQListNumber'))
if mibBuilder.loadTexts:
h3cIfQoSCQDefaultEntry.setStatus('current')
h3c_if_qo_scq_list_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
h3cIfQoSCQListNumber.setStatus('current')
h3c_if_qo_scq_default_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 16)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSCQDefaultQueueID.setStatus('current')
h3c_if_qo_scq_queue_length_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSCQQueueLengthTable.setStatus('current')
h3c_if_qo_scq_queue_length_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQListNumber'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQQueueID'))
if mibBuilder.loadTexts:
h3cIfQoSCQQueueLengthEntry.setStatus('current')
h3c_if_qo_scq_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
h3cIfQoSCQQueueID.setStatus('current')
h3c_if_qo_scq_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024)).clone(20)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSCQQueueLength.setStatus('current')
h3c_if_qo_scq_queue_serving = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 2, 1, 3), integer32().clone(1500)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSCQQueueServing.setStatus('current')
h3c_if_qo_scq_class_rule_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3))
if mibBuilder.loadTexts:
h3cIfQoSCQClassRuleTable.setStatus('current')
h3c_if_qo_scq_class_rule_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQListNumber'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQClassRuleType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQClassRuleValue'))
if mibBuilder.loadTexts:
h3cIfQoSCQClassRuleEntry.setStatus('current')
h3c_if_qo_scq_class_rule_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('interface', 1), ('ipv4acl', 2), ('ipv6acl', 3), ('fragments', 4), ('greater-than', 5), ('less-than', 6), ('tcp', 7), ('udp', 8), ('ipall', 9), ('mpls', 10))))
if mibBuilder.loadTexts:
h3cIfQoSCQClassRuleType.setStatus('current')
h3c_if_qo_scq_class_rule_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 2), integer32())
if mibBuilder.loadTexts:
h3cIfQoSCQClassRuleValue.setStatus('current')
h3c_if_qo_scq_class_rule_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCQClassRuleQueueID.setStatus('current')
h3c_if_qo_scq_class_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 3, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCQClassRowStatus.setStatus('current')
h3c_if_qo_scq_apply_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4))
if mibBuilder.loadTexts:
h3cIfQoSCQApplyTable.setStatus('current')
h3c_if_qo_scq_apply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSCQApplyEntry.setStatus('current')
h3c_if_qo_scq_apply_list_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCQApplyListNumber.setStatus('current')
h3c_if_qo_scq_apply_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 1, 4, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCQApplyRowStatus.setStatus('current')
h3c_if_qo_scq_run_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2))
h3c_if_qo_scq_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSCQRunInfoTable.setStatus('current')
h3c_if_qo_scq_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCQQueueID'))
if mibBuilder.loadTexts:
h3cIfQoSCQRunInfoEntry.setStatus('current')
h3c_if_qo_scq_run_info_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCQRunInfoSize.setStatus('current')
h3c_if_qo_scq_run_info_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCQRunInfoLength.setStatus('current')
h3c_if_qo_scq_run_info_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 3, 2, 1, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSCQRunInfoDiscardPackets.setStatus('current')
h3c_if_qo_swfq_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4))
h3c_if_qo_swfq_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1))
h3c_if_qo_swfq_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSWFQTable.setStatus('current')
h3c_if_qo_swfq_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWFQEntry.setStatus('current')
h3c_if_qo_swfq_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024)).clone(64)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWFQQueueLength.setStatus('current')
h3c_if_qo_swfq_queue_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('size16', 1), ('size32', 2), ('size64', 3), ('size128', 4), ('size256', 5), ('size512', 6), ('size1024', 7), ('size2048', 8), ('size4096', 9))).clone(5)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWFQQueueNumber.setStatus('current')
h3c_if_qo_swfq_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 3), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWFQRowStatus.setStatus('current')
h3c_if_qo_swfq_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ip-precedence', 1), ('dscp', 2))).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWFQType.setStatus('current')
h3c_if_qo_swfq_run_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2))
h3c_if_qo_swfq_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSWFQRunInfoTable.setStatus('current')
h3c_if_qo_swfq_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWFQRunInfoEntry.setStatus('current')
h3c_if_qo_swfq_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWFQSize.setStatus('current')
h3c_if_qo_swfq_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWFQLength.setStatus('current')
h3c_if_qo_swfq_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWFQDiscardPackets.setStatus('current')
h3c_if_qo_swfq_hashed_active_queues = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWFQHashedActiveQueues.setStatus('current')
h3c_if_qo_swfq_hashed_max_active_queues = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWFQHashedMaxActiveQueues.setStatus('current')
h3f_if_qos_wf_qhashed_total_queues = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 4, 2, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3fIfQosWFQhashedTotalQueues.setStatus('current')
h3c_if_qo_s_bandwidth_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5))
h3c_if_qo_s_bandwidth_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1))
if mibBuilder.loadTexts:
h3cIfQoSBandwidthTable.setStatus('current')
h3c_if_qo_s_bandwidth_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSBandwidthEntry.setStatus('current')
h3c_if_qo_s_max_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 1), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSMaxBandwidth.setStatus('current')
h3c_if_qo_s_reserved_bandwidth_pct = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(75)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSReservedBandwidthPct.setStatus('current')
h3c_if_qo_s_bandwidth_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 5, 1, 1, 3), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSBandwidthRowStatus.setStatus('current')
h3c_if_qo_s_qmtoken_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6))
h3c_if_qo_s_qmtoken_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1))
if mibBuilder.loadTexts:
h3cIfQoSQmtokenTable.setStatus('current')
h3c_if_qo_s_qmtoken_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSQmtokenEntry.setStatus('current')
h3c_if_qo_s_qmtoken_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 50))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSQmtokenNumber.setStatus('current')
h3c_if_qo_s_qmtoken_ros_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 6, 1, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSQmtokenRosStatus.setStatus('current')
h3c_if_qo_srtpq_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7))
h3c_if_qo_srtpq_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1))
h3c_if_qo_srtpq_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSRTPQConfigTable.setStatus('current')
h3c_if_qo_srtpq_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSRTPQConfigEntry.setStatus('current')
h3c_if_qo_srtpq_start_port = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(2000, 65535))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRTPQStartPort.setStatus('current')
h3c_if_qo_srtpq_end_port = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(2000, 65535))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRTPQEndPort.setStatus('current')
h3c_if_qo_srtpq_reserved_bandwidth = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 3), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRTPQReservedBandwidth.setStatus('current')
h3c_if_qo_srtpq_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 4), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRTPQCbs.setStatus('current')
h3c_if_qo_srtpq_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 1, 1, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRTPQRowStatus.setStatus('current')
h3c_if_qo_srtpq_run_info_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2))
h3c_if_qo_srtpq_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSRTPQRunInfoTable.setStatus('current')
h3c_if_qo_srtpq_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSRTPQRunInfoEntry.setStatus('current')
h3c_if_qo_srtpq_packet_number = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSRTPQPacketNumber.setStatus('current')
h3c_if_qo_srtpq_packet_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSRTPQPacketSize.setStatus('current')
h3c_if_qo_srtpq_output_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSRTPQOutputPackets.setStatus('current')
h3c_if_qo_srtpq_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 7, 2, 1, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSRTPQDiscardPackets.setStatus('current')
h3c_if_qo_s_car_list_object = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8))
h3c_if_qo_car_list_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1))
h3c_if_qo_s_carl_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSCarlTable.setStatus('current')
h3c_if_qo_s_carl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSCarlListNum'))
if mibBuilder.loadTexts:
h3cIfQoSCarlEntry.setStatus('current')
h3c_if_qo_s_carl_list_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 1), integer32())
if mibBuilder.loadTexts:
h3cIfQoSCarlListNum.setStatus('current')
h3c_if_qo_s_carl_para_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('macAddress', 1), ('precMask', 2), ('dscpMask', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCarlParaType.setStatus('current')
h3c_if_qo_s_carl_para_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 3), octet_string()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCarlParaValue.setStatus('current')
h3c_if_qo_s_carl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 2, 8, 1, 1, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSCarlRowStatus.setStatus('current')
h3c_if_qo_s_line_rate_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3))
h3c_if_qo_slr_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1))
if mibBuilder.loadTexts:
h3cIfQoSLRConfigTable.setStatus('current')
h3c_if_qo_slr_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSLRDirection'))
if mibBuilder.loadTexts:
h3cIfQoSLRConfigEntry.setStatus('current')
h3c_if_qo_slr_direction = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 1), direction())
if mibBuilder.loadTexts:
h3cIfQoSLRDirection.setStatus('current')
h3c_if_qo_slr_cir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 2), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSLRCir.setStatus('current')
h3c_if_qo_slr_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 3), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSLRCbs.setStatus('current')
h3c_if_qo_slr_ebs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 4), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSLREbs.setStatus('current')
h3c_if_qo_s_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSRowStatus.setStatus('current')
h3c_if_qo_slr_pir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 1, 1, 6), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSLRPir.setStatus('current')
h3c_if_qo_slr_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2))
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoTable.setStatus('current')
h3c_if_qo_slr_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSLRDirection'))
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoEntry.setStatus('current')
h3c_if_qo_slr_run_info_passed_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoPassedPackets.setStatus('current')
h3c_if_qo_slr_run_info_passed_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoPassedBytes.setStatus('current')
h3c_if_qo_slr_run_info_delayed_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoDelayedPackets.setStatus('current')
h3c_if_qo_slr_run_info_delayed_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoDelayedBytes.setStatus('current')
h3c_if_qo_slr_run_info_active_shaping = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSLRRunInfoActiveShaping.setStatus('current')
h3c_if_qo_scar_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4))
h3c_if_qo_s_aggregative_car_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1))
h3c_if_qo_s_aggregative_car_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarNextIndex.setStatus('current')
h3c_if_qo_s_aggregative_car_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarConfigTable.setStatus('current')
h3c_if_qo_s_aggregative_car_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSAggregativeCarIndex'))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarConfigEntry.setStatus('current')
h3c_if_qo_s_aggregative_car_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65534)))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarIndex.setStatus('current')
h3c_if_qo_s_aggregative_car_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarName.setStatus('current')
h3c_if_qo_s_aggregative_car_cir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 3), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarCir.setStatus('current')
h3c_if_qo_s_aggregative_car_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 4), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarCbs.setStatus('current')
h3c_if_qo_s_aggregative_car_ebs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 5), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarEbs.setStatus('current')
h3c_if_qo_s_aggregative_car_pir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 6), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarPir.setStatus('current')
h3c_if_qo_s_aggregative_car_green_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 7), car_action().clone('pass')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarGreenActionType.setStatus('current')
h3c_if_qo_s_aggregative_car_green_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarGreenActionValue.setStatus('current')
h3c_if_qo_s_aggregative_car_yellow_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 9), car_action()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarYellowActionType.setStatus('current')
h3c_if_qo_s_aggregative_car_yellow_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarYellowActionValue.setStatus('current')
h3c_if_qo_s_aggregative_car_red_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 11), car_action()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRedActionType.setStatus('current')
h3c_if_qo_s_aggregative_car_red_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 12), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRedActionValue.setStatus('current')
h3c_if_qo_s_aggregative_car_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('aggregative', 1), ('notAggregative', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarType.setStatus('current')
h3c_if_qo_s_aggregative_car_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 2, 1, 14), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRowStatus.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyTable.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSAggregativeCarApplyDirection'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSAggregativeCarApplyRuleType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSAggregativeCarApplyRuleValue'))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyEntry.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_direction = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 1), direction())
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyDirection.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_rule_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ipv4acl', 1), ('ipv6acl', 2), ('carl', 3), ('any', 4))))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyRuleType.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_rule_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 3), integer32())
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyRuleValue.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_car_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 4), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyCarIndex.setStatus('current')
h3c_if_qo_s_aggregative_car_apply_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 3, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarApplyRowStatus.setStatus('current')
h3c_if_qo_s_aggregative_car_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRunInfoTable.setStatus('current')
h3c_if_qo_s_aggregative_car_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSAggregativeCarIndex'))
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRunInfoEntry.setStatus('current')
h3c_if_qo_s_aggregative_car_green_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarGreenPackets.setStatus('current')
h3c_if_qo_s_aggregative_car_green_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarGreenBytes.setStatus('current')
h3c_if_qo_s_aggregative_car_yellow_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarYellowPackets.setStatus('current')
h3c_if_qo_s_aggregative_car_yellow_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarYellowBytes.setStatus('current')
h3c_if_qo_s_aggregative_car_red_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRedPackets.setStatus('current')
h3c_if_qo_s_aggregative_car_red_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 1, 4, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSAggregativeCarRedBytes.setStatus('current')
h3c_if_qo_s_tricolor_car_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2))
h3c_if_qo_s_tricolor_car_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarConfigTable.setStatus('current')
h3c_if_qo_s_tricolor_car_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarDirection'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarValue'))
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarConfigEntry.setStatus('current')
h3c_if_qo_s_tricolor_car_direction = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 1), direction())
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarDirection.setStatus('current')
h3c_if_qo_s_tricolor_car_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ipv4acl', 1), ('ipv6acl', 2), ('carl', 3), ('any', 4))))
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarType.setStatus('current')
h3c_if_qo_s_tricolor_car_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 3), integer32())
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarValue.setStatus('current')
h3c_if_qo_s_tricolor_car_cir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 4), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarCir.setStatus('current')
h3c_if_qo_s_tricolor_car_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 5), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarCbs.setStatus('current')
h3c_if_qo_s_tricolor_car_ebs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 6), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarEbs.setStatus('current')
h3c_if_qo_s_tricolor_car_pir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 7), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarPir.setStatus('current')
h3c_if_qo_s_tricolor_car_green_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 8), car_action().clone('pass')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarGreenActionType.setStatus('current')
h3c_if_qo_s_tricolor_car_green_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarGreenActionValue.setStatus('current')
h3c_if_qo_s_tricolor_car_yellow_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 10), car_action().clone('pass')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarYellowActionType.setStatus('current')
h3c_if_qo_s_tricolor_car_yellow_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarYellowActionValue.setStatus('current')
h3c_if_qo_s_tricolor_car_red_action_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 12), car_action().clone('discard')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRedActionType.setStatus('current')
h3c_if_qo_s_tricolor_car_red_action_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 63), value_range_constraint(255, 255)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRedActionValue.setStatus('current')
h3c_if_qo_s_tricolor_car_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 1, 1, 14), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRowStatus.setStatus('current')
h3c_if_qo_s_tricolor_car_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2))
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRunInfoTable.setStatus('current')
h3c_if_qo_s_tricolor_car_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarDirection'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSTricolorCarValue'))
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRunInfoEntry.setStatus('current')
h3c_if_qo_s_tricolor_car_green_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarGreenPackets.setStatus('current')
h3c_if_qo_s_tricolor_car_green_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarGreenBytes.setStatus('current')
h3c_if_qo_s_tricolor_car_yellow_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarYellowPackets.setStatus('current')
h3c_if_qo_s_tricolor_car_yellow_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarYellowBytes.setStatus('current')
h3c_if_qo_s_tricolor_car_red_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRedPackets.setStatus('current')
h3c_if_qo_s_tricolor_car_red_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 4, 2, 2, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSTricolorCarRedBytes.setStatus('current')
h3c_if_qo_sgts_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5))
h3c_if_qo_sgts_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1))
if mibBuilder.loadTexts:
h3cIfQoSGTSConfigTable.setStatus('current')
h3c_if_qo_sgts_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSGTSClassRuleType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSGTSClassRuleValue'))
if mibBuilder.loadTexts:
h3cIfQoSGTSConfigEntry.setStatus('current')
h3c_if_qo_sgts_class_rule_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('any', 1), ('ipv4acl', 2), ('ipv6acl', 3), ('queue', 4))))
if mibBuilder.loadTexts:
h3cIfQoSGTSClassRuleType.setStatus('current')
h3c_if_qo_sgts_class_rule_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 2), integer32())
if mibBuilder.loadTexts:
h3cIfQoSGTSClassRuleValue.setStatus('current')
h3c_if_qo_sgts_cir = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 3), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSGTSCir.setStatus('current')
h3c_if_qo_sgts_cbs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 4), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSGTSCbs.setStatus('current')
h3c_if_qo_sgts_ebs = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 5), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSGTSEbs.setStatus('current')
h3c_if_qo_sgts_queue_length = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 6), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSGTSQueueLength.setStatus('current')
h3c_if_qo_sgts_config_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 1, 1, 7), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSGTSConfigRowStatus.setStatus('current')
h3c_if_qo_sgts_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2))
if mibBuilder.loadTexts:
h3cIfQoSGTSRunInfoTable.setStatus('current')
h3c_if_qo_sgts_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSGTSClassRuleType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSGTSClassRuleValue'))
if mibBuilder.loadTexts:
h3cIfQoSGTSRunInfoEntry.setStatus('current')
h3c_if_qo_sgts_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSQueueSize.setStatus('current')
h3c_if_qo_sgts_passed_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSPassedPackets.setStatus('current')
h3c_if_qo_sgts_passed_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSPassedBytes.setStatus('current')
h3c_if_qo_sgts_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSDiscardPackets.setStatus('current')
h3c_if_qo_sgts_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSDiscardBytes.setStatus('current')
h3c_if_qo_sgts_delayed_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSDelayedPackets.setStatus('current')
h3c_if_qo_sgts_delayed_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 5, 2, 1, 7), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSGTSDelayedBytes.setStatus('current')
h3c_if_qo_swred_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6))
h3c_if_qo_s_wred_group_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1))
h3c_if_qo_s_wred_group_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupNextIndex.setStatus('current')
h3c_if_qo_s_wred_group_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupTable.setStatus('current')
h3c_if_qo_s_wred_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupEntry.setStatus('current')
h3c_if_qo_s_wred_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
h3cIfQoSWredGroupIndex.setStatus('current')
h3c_if_qo_s_wred_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupName.setStatus('current')
h3c_if_qo_s_wred_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('userdefined', 0), ('dot1p', 1), ('ippre', 2), ('dscp', 3), ('localpre', 4), ('atmclp', 5), ('frde', 6), ('exp', 7), ('queue', 8), ('dropLevel', 9)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupType.setStatus('current')
h3c_if_qo_s_wred_group_weighting_constant = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(9)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupWeightingConstant.setStatus('current')
h3c_if_qo_s_wred_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 2, 1, 6), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupRowStatus.setStatus('current')
h3c_if_qo_s_wred_group_content_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupContentTable.setStatus('current')
h3c_if_qo_s_wred_group_content_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupContentIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupContentSubIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupContentEntry.setStatus('current')
h3c_if_qo_s_wred_group_content_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63)))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupContentIndex.setStatus('current')
h3c_if_qo_s_wred_group_content_sub_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63)))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupContentSubIndex.setStatus('current')
h3c_if_qo_s_wred_low_limit = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 3), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredLowLimit.setStatus('current')
h3c_if_qo_s_wred_high_limit = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 4), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredHighLimit.setStatus('current')
h3c_if_qo_s_wred_discard_prob = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 5), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredDiscardProb.setStatus('current')
h3c_if_qo_s_wred_group_exponent = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(9)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupExponent.setStatus('current')
h3c_if_qo_s_wred_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 3, 1, 7), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredRowStatus.setStatus('current')
h3c_if_qo_s_wred_group_apply_if_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupApplyIfTable.setStatus('current')
h3c_if_qo_s_wred_group_apply_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWredGroupApplyIfEntry.setStatus('current')
h3c_if_qo_s_wred_group_apply_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupApplyIndex.setStatus('current')
h3c_if_qo_s_wred_group_apply_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupApplyName.setStatus('current')
h3c_if_qo_s_wred_group_if_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 4, 1, 3), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSWredGroupIfRowStatus.setStatus('current')
h3c_if_qo_s_wred_apply_if_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5))
if mibBuilder.loadTexts:
h3cIfQoSWredApplyIfRunInfoTable.setStatus('current')
h3c_if_qo_s_wred_apply_if_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupContentIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSWredGroupContentSubIndex'))
if mibBuilder.loadTexts:
h3cIfQoSWredApplyIfRunInfoEntry.setStatus('current')
h3c_if_qo_s_wred_pre_random_drop_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredPreRandomDropNum.setStatus('current')
h3c_if_qo_s_wred_pre_tail_drop_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 1, 5, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWredPreTailDropNum.setStatus('current')
h3c_if_qo_s_port_wred_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2))
h3c_if_qo_s_port_wred_weight_constant_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1))
if mibBuilder.loadTexts:
h3cIfQoSPortWredWeightConstantTable.setStatus('current')
h3c_if_qo_s_port_wred_weight_constant_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPortWredWeightConstantEntry.setStatus('current')
h3c_if_qo_s_port_wred_enable = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 1), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredEnable.setStatus('current')
h3c_if_qo_s_port_wred_weight_constant = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredWeightConstant.setStatus('current')
h3c_if_qo_s_port_wred_weight_constant_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 1, 1, 3), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredWeightConstantRowStatus.setStatus('current')
h3c_if_qo_s_port_wred_pre_config_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2))
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreConfigTable.setStatus('current')
h3c_if_qo_s_port_wred_pre_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPortWredPreID'))
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreConfigEntry.setStatus('current')
h3c_if_qo_s_port_wred_pre_id = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreID.setStatus('current')
h3c_if_qo_s_port_wred_pre_low_limit = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 2), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreLowLimit.setStatus('current')
h3c_if_qo_s_port_wred_pre_high_limit = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 3), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreHighLimit.setStatus('current')
h3c_if_qo_s_port_wred_pre_discard_probability = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 4), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreDiscardProbability.setStatus('current')
h3c_if_qo_s_port_wred_pre_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 2, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPortWredPreRowStatus.setStatus('current')
h3c_if_qo_s_port_wred_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3))
if mibBuilder.loadTexts:
h3cIfQoSPortWredRunInfoTable.setStatus('current')
h3c_if_qo_s_port_wred_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPortWredPreID'))
if mibBuilder.loadTexts:
h3cIfQoSPortWredRunInfoEntry.setStatus('current')
h3c_if_qo_swred_tail_drop_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 1), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWREDTailDropNum.setStatus('current')
h3c_if_qo_swred_random_drop_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 6, 2, 3, 1, 2), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSWREDRandomDropNum.setStatus('current')
h3c_if_qo_s_port_priority_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7))
h3c_if_qo_s_port_priority_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1))
h3c_if_qo_s_port_priority_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSPortPriorityTable.setStatus('current')
h3c_if_qo_s_port_priority_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPortPriorityEntry.setStatus('current')
h3c_if_qo_s_port_priority_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSPortPriorityValue.setStatus('current')
h3c_if_qo_s_port_pirority_trust_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSPortPirorityTrustTable.setStatus('current')
h3c_if_qo_s_port_pirority_trust_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPortPirorityTrustEntry.setStatus('current')
h3c_if_qo_s_port_priority_trust_trust_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('untrust', 1), ('dot1p', 2), ('dscp', 3), ('exp', 4))).clone('untrust')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
h3cIfQoSPortPriorityTrustTrustType.setStatus('current')
h3c_if_qo_s_port_priority_trust_overcast_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 7, 1, 2, 1, 2), 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:
h3cIfQoSPortPriorityTrustOvercastType.setStatus('current')
h3c_if_qo_s_map_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9))
h3c_if_qo_s_pri_map_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1))
h3c_if_qo_s_pri_map_group_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupNextIndex.setStatus('current')
h3c_if_qo_s_pri_map_group_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2))
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupTable.setStatus('current')
h3c_if_qo_s_pri_map_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPriMapGroupIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupEntry.setStatus('current')
h3c_if_qo_s_pri_map_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 1), integer32())
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupIndex.setStatus('current')
h3c_if_qo_s_pri_map_group_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('userdefined', 1), ('dot1p-dp', 2), ('dot1p-dscp', 3), ('dot1p-lp', 4), ('dscp-dot1p', 5), ('dscp-dp', 6), ('dscp-dscp', 7), ('dscp-lp', 8), ('exp-dp', 9), ('exp-lp', 10)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupType.setStatus('current')
h3c_if_qo_s_pri_map_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupName.setStatus('current')
h3c_if_qo_s_pri_map_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 2, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupRowStatus.setStatus('current')
h3c_if_qo_s_pri_map_content_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3))
if mibBuilder.loadTexts:
h3cIfQoSPriMapContentTable.setStatus('current')
h3c_if_qo_s_pri_map_content_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1)).setIndexNames((0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPriMapGroupIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cIfQoSPriMapGroupImportValue'))
if mibBuilder.loadTexts:
h3cIfQoSPriMapContentEntry.setStatus('current')
h3c_if_qo_s_pri_map_group_import_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 63)))
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupImportValue.setStatus('current')
h3c_if_qo_s_pri_map_group_export_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 63))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPriMapGroupExportValue.setStatus('current')
h3c_if_qo_s_pri_map_content_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 9, 1, 3, 1, 3), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSPriMapContentRowStatus.setStatus('current')
h3c_if_qo_sl3_plus_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10))
h3c_if_qo_s_port_binding_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1))
h3c_if_qo_s_port_binding_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1))
if mibBuilder.loadTexts:
h3cIfQoSPortBindingTable.setStatus('current')
h3c_if_qo_s_port_binding_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
h3cIfQoSPortBindingEntry.setStatus('current')
h3c_if_qo_s_binding_if = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 1), integer32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSBindingIf.setStatus('current')
h3c_if_qo_s_binding_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 10, 1, 1, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cIfQoSBindingRowStatus.setStatus('current')
h3c_qo_s_tra_sta_objects = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11))
h3c_qo_s_tra_sta_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1))
h3c_qo_s_if_tra_sta_config_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1))
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigInfoTable.setStatus('current')
h3c_qo_s_if_tra_sta_config_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cQoSIfTraStaConfigDirection'))
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigInfoEntry.setStatus('current')
h3c_qo_s_if_tra_sta_config_direction = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 1), direction())
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigDirection.setStatus('current')
h3c_qo_s_if_tra_sta_config_queue = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigQueue.setStatus('current')
h3c_qo_s_if_tra_sta_config_dot1p = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigDot1p.setStatus('current')
h3c_qo_s_if_tra_sta_config_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigDscp.setStatus('current')
h3c_qo_s_if_tra_sta_config_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(512, 512)).setFixedLength(512)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigVlan.setStatus('current')
h3c_qo_s_if_tra_sta_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 1, 1, 1, 6), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
h3cQoSIfTraStaConfigStatus.setStatus('current')
h3c_qo_s_tra_sta_run_group = mib_identifier((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2))
h3c_qo_s_if_tra_sta_run_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1))
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunInfoTable.setStatus('current')
h3c_qo_s_if_tra_sta_run_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cQoSIfTraStaRunObjectType'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cQoSIfTraStaRunObjectValue'), (0, 'A3COM-HUAWEI-IFQOS2-MIB', 'h3cQoSIfTraStaRunDirection'))
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunInfoEntry.setStatus('current')
h3c_qo_s_if_tra_sta_run_object_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('queue', 1), ('dot1p', 2), ('dscp', 3), ('vlanID', 4))))
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunObjectType.setStatus('current')
h3c_qo_s_if_tra_sta_run_object_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 2), integer32())
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunObjectValue.setStatus('current')
h3c_qo_s_if_tra_sta_run_direction = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 3), direction())
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunDirection.setStatus('current')
h3c_qo_s_if_tra_sta_run_pass_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunPassPackets.setStatus('current')
h3c_qo_s_if_tra_sta_run_drop_packets = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunDropPackets.setStatus('current')
h3c_qo_s_if_tra_sta_run_pass_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 6), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunPassBytes.setStatus('current')
h3c_qo_s_if_tra_sta_run_drop_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 7), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunDropBytes.setStatus('current')
h3c_qo_s_if_tra_sta_run_pass_pps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 8), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunPassPPS.setStatus('current')
h3c_qo_s_if_tra_sta_run_pass_bps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 45, 1, 10, 2, 65, 1, 11, 2, 1, 1, 9), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
h3cQoSIfTraStaRunPassBPS.setStatus('current')
mibBuilder.exportSymbols('A3COM-HUAWEI-IFQOS2-MIB', h3cIfQoSCarlParaType=h3cIfQoSCarlParaType, h3cIfQoSTailDropBytes=h3cIfQoSTailDropBytes, h3cIfQoSGTSDiscardPackets=h3cIfQoSGTSDiscardPackets, h3cIfQoSAggregativeCarRunInfoTable=h3cIfQoSAggregativeCarRunInfoTable, h3cIfQoSGTSClassRuleValue=h3cIfQoSGTSClassRuleValue, h3cIfQoSCQClassRuleEntry=h3cIfQoSCQClassRuleEntry, h3cIfQoSAggregativeCarName=h3cIfQoSAggregativeCarName, h3cIfQoSPortWredPreID=h3cIfQoSPortWredPreID, h3cIfQoSWredGroupExponent=h3cIfQoSWredGroupExponent, h3cIfQoSRTPQRunInfoGroup=h3cIfQoSRTPQRunInfoGroup, h3cIfQoSPriMapGroupRowStatus=h3cIfQoSPriMapGroupRowStatus, h3cIfQoSPQApplyListNumber=h3cIfQoSPQApplyListNumber, h3cIfQoSTricolorCarCir=h3cIfQoSTricolorCarCir, h3cIfQoSPQRunInfoTable=h3cIfQoSPQRunInfoTable, h3cIfQoSPriMapGroupTable=h3cIfQoSPriMapGroupTable, h3cIfQoSQSMaxDelay=h3cIfQoSQSMaxDelay, h3cIfQoSAggregativeCarGreenBytes=h3cIfQoSAggregativeCarGreenBytes, h3cIfQoSPortPriorityValue=h3cIfQoSPortPriorityValue, h3cIfQoSRTPQEndPort=h3cIfQoSRTPQEndPort, h3cQoSTraStaRunGroup=h3cQoSTraStaRunGroup, h3cIfQoSPriMapContentTable=h3cIfQoSPriMapContentTable, h3cIfQoSPQClassRuleQueueType=h3cIfQoSPQClassRuleQueueType, h3cIfQoSWredGroupIndex=h3cIfQoSWredGroupIndex, h3cIfQoSPQQueueLengthType=h3cIfQoSPQQueueLengthType, h3cIfQoSQueueLengthInBytes=h3cIfQoSQueueLengthInBytes, h3cIfQoSCQClassRowStatus=h3cIfQoSCQClassRowStatus, h3cIfQoSAggregativeCarApplyDirection=h3cIfQoSAggregativeCarApplyDirection, h3cIfQoSPQClassRuleType=h3cIfQoSPQClassRuleType, h3cIfQoSPriMapGroupExportValue=h3cIfQoSPriMapGroupExportValue, h3cIfQoSWredDropHPreNTcpBPS=h3cIfQoSWredDropHPreNTcpBPS, h3cIfQoSAggregativeCarYellowPackets=h3cIfQoSAggregativeCarYellowPackets, h3cIfQoSWredDiscardProb=h3cIfQoSWredDiscardProb, h3cIfQoSCQApplyRowStatus=h3cIfQoSCQApplyRowStatus, h3cIfQoSWredGroupApplyIfEntry=h3cIfQoSWredGroupApplyIfEntry, h3cIfQoSLREbs=h3cIfQoSLREbs, h3cIfQoSPQDefaultQueueType=h3cIfQoSPQDefaultQueueType, h3cIfQoSPortPriorityEntry=h3cIfQoSPortPriorityEntry, h3cIfQoSQSModeTable=h3cIfQoSQSModeTable, h3cIfQoSLRRunInfoTable=h3cIfQoSLRRunInfoTable, h3cIfQoSReservedBandwidthPct=h3cIfQoSReservedBandwidthPct, h3cIfQoSWredGroupTable=h3cIfQoSWredGroupTable, h3cIfQoSLRRunInfoDelayedPackets=h3cIfQoSLRRunInfoDelayedPackets, h3cIfQoSAggregativeCarConfigTable=h3cIfQoSAggregativeCarConfigTable, h3cIfQoSCurQueueBytes=h3cIfQoSCurQueueBytes, h3cIfQoSCQQueueLengthTable=h3cIfQoSCQQueueLengthTable, h3cIfQoSWredGroupRowStatus=h3cIfQoSWredGroupRowStatus, h3cIfQoSPQRunInfoGroup=h3cIfQoSPQRunInfoGroup, h3cIfQoSRTPQOutputPackets=h3cIfQoSRTPQOutputPackets, h3cIfQoSFIFOConfigEntry=h3cIfQoSFIFOConfigEntry, h3cQoSIfTraStaRunObjectType=h3cQoSIfTraStaRunObjectType, h3cIfQoSWredGroupApplyName=h3cIfQoSWredGroupApplyName, h3cIfQoSQSMinBandwidth=h3cIfQoSQSMinBandwidth, h3cIfQoSPortPriorityTrustTrustType=h3cIfQoSPortPriorityTrustTrustType, h3cIfQoSPQConfigGroup=h3cIfQoSPQConfigGroup, h3cIfQoSPortPriorityTrustOvercastType=h3cIfQoSPortPriorityTrustOvercastType, h3cIfQoSTricolorCarRowStatus=h3cIfQoSTricolorCarRowStatus, h3cIfQoSWFQRunInfoTable=h3cIfQoSWFQRunInfoTable, h3cIfQoSLRPir=h3cIfQoSLRPir, h3cIfQoSWredPreTailDropNum=h3cIfQoSWredPreTailDropNum, h3cIfQoSPortWredEnable=h3cIfQoSPortWredEnable, h3cIfQoSBindingIf=h3cIfQoSBindingIf, h3cIfQoSWredDropLPreTcpBytes=h3cIfQoSWredDropLPreTcpBytes, h3cIfQoSAggregativeCarIndex=h3cIfQoSAggregativeCarIndex, h3cQoSIfTraStaRunDropPackets=h3cQoSIfTraStaRunDropPackets, h3cIfQoSCQObject=h3cIfQoSCQObject, h3cIfQoSAggregativeCarRedBytes=h3cIfQoSAggregativeCarRedBytes, h3cIfQoSAggregativeCarNextIndex=h3cIfQoSAggregativeCarNextIndex, h3cIfQoSWredGroupContentIndex=h3cIfQoSWredGroupContentIndex, h3cIfQoSPQRunInfoEntry=h3cIfQoSPQRunInfoEntry, h3cIfQoSPQDefaultTable=h3cIfQoSPQDefaultTable, h3cIfQoSPortWredWeightConstantRowStatus=h3cIfQoSPortWredWeightConstantRowStatus, h3cQoSIfTraStaRunPassBPS=h3cQoSIfTraStaRunPassBPS, h3cIfQoSFIFOObject=h3cIfQoSFIFOObject, h3cIfQoSWredApplyIfRunInfoTable=h3cIfQoSWredApplyIfRunInfoTable, h3cIfQoSCQRunInfoEntry=h3cIfQoSCQRunInfoEntry, h3cIfQoSAggregativeCarRedPackets=h3cIfQoSAggregativeCarRedPackets, h3cIfQoSWredDropHPreNTcpBytes=h3cIfQoSWredDropHPreNTcpBytes, h3cIfQoSGTSRunInfoEntry=h3cIfQoSGTSRunInfoEntry, h3cIfQoSWFQType=h3cIfQoSWFQType, h3cIfQoSTricolorCarGreenActionType=h3cIfQoSTricolorCarGreenActionType, h3cIfQoSWredGroupContentTable=h3cIfQoSWredGroupContentTable, h3cIfQoSBindingRowStatus=h3cIfQoSBindingRowStatus, h3cIfQoSTricolorCarConfigEntry=h3cIfQoSTricolorCarConfigEntry, h3cIfQoSFIFOMaxQueueLen=h3cIfQoSFIFOMaxQueueLen, h3cIfQoSHQueueTcpRunInfoEntry=h3cIfQoSHQueueTcpRunInfoEntry, h3cIfQoSAggregativeCarRunInfoEntry=h3cIfQoSAggregativeCarRunInfoEntry, h3cIfQoSPQApplyRowStatus=h3cIfQoSPQApplyRowStatus, h3cIfQoSRTPQRowStatus=h3cIfQoSRTPQRowStatus, h3cIfQoSAggregativeCarYellowActionType=h3cIfQoSAggregativeCarYellowActionType, h3cIfQoSCQDefaultQueueID=h3cIfQoSCQDefaultQueueID, h3cIfQoSRTPQPacketSize=h3cIfQoSRTPQPacketSize, h3cIfQoSWredGroupContentEntry=h3cIfQoSWredGroupContentEntry, h3cIfQoSPQClassRuleValue=h3cIfQoSPQClassRuleValue, h3cIfQoSPQDefaultEntry=h3cIfQoSPQDefaultEntry, h3cIfQoSWFQObject=h3cIfQoSWFQObject, h3cIfQoSPortWredRunInfoTable=h3cIfQoSPortWredRunInfoTable, h3cIfQoSMapObjects=h3cIfQoSMapObjects, h3cIfQoSQmtokenGroup=h3cIfQoSQmtokenGroup, h3cIfQoSAggregativeCarGreenPackets=h3cIfQoSAggregativeCarGreenPackets, h3cIfQoSCQDefaultTable=h3cIfQoSCQDefaultTable, h3cIfQoSGTSDelayedBytes=h3cIfQoSGTSDelayedBytes, h3cIfQoSPriMapGroupEntry=h3cIfQoSPriMapGroupEntry, h3cIfQoSCQDefaultEntry=h3cIfQoSCQDefaultEntry, h3cIfQoSTricolorCarEbs=h3cIfQoSTricolorCarEbs, h3cIfQoSQSType=h3cIfQoSQSType, h3cIfQoSCurQueueBPS=h3cIfQoSCurQueueBPS, h3cIfQoSPQClassRuleTable=h3cIfQoSPQClassRuleTable, h3cIfQoSLRCbs=h3cIfQoSLRCbs, h3cIfQoSQueueLengthInPkts=h3cIfQoSQueueLengthInPkts, h3cIfQoSQueueGroupType=h3cIfQoSQueueGroupType, h3cIfQoSLRRunInfoDelayedBytes=h3cIfQoSLRRunInfoDelayedBytes, h3cIfQoSWredDropBytes=h3cIfQoSWredDropBytes, h3cIfQoSRTPQRunInfoTable=h3cIfQoSRTPQRunInfoTable, h3cIfQoSWredGroupApplyIndex=h3cIfQoSWredGroupApplyIndex, h3cIfQoSCarlParaValue=h3cIfQoSCarlParaValue, h3cIfQoSAggregativeCarRedActionValue=h3cIfQoSAggregativeCarRedActionValue, h3cIfQoSPortWredGroup=h3cIfQoSPortWredGroup, h3cIfQoSPortWredWeightConstantEntry=h3cIfQoSPortWredWeightConstantEntry, h3cIfQoSWredGroupWeightingConstant=h3cIfQoSWredGroupWeightingConstant, h3cIfQoSPQType=h3cIfQoSPQType, h3cIfQoSDropBytes=h3cIfQoSDropBytes, h3cIfQoSBandwidthTable=h3cIfQoSBandwidthTable, h3cIfQoSWredDropPPS=h3cIfQoSWredDropPPS, h3cIfQoSRTPQConfigTable=h3cIfQoSRTPQConfigTable, h3cIfQoSAggregativeCarApplyRowStatus=h3cIfQoSAggregativeCarApplyRowStatus, h3cIfQoSWredDropLPreNTcpPkts=h3cIfQoSWredDropLPreNTcpPkts, h3cIfQoSHardwareQueueObjects=h3cIfQoSHardwareQueueObjects, h3cIfQoSWFQLength=h3cIfQoSWFQLength, h3cQoSIfTraStaRunObjectValue=h3cQoSIfTraStaRunObjectValue, h3cQoSTraStaObjects=h3cQoSTraStaObjects, h3cIfQoSWredGroupApplyIfTable=h3cIfQoSWredGroupApplyIfTable, h3cIfQoSWREDTailDropNum=h3cIfQoSWREDTailDropNum, h3cIfQoSLRConfigEntry=h3cIfQoSLRConfigEntry, h3cIfQoSQSModeEntry=h3cIfQoSQSModeEntry, h3cIfQoSAggregativeCarGroup=h3cIfQoSAggregativeCarGroup, h3cIfQoSQSWeightTable=h3cIfQoSQSWeightTable, h3cIfQoSCQClassRuleValue=h3cIfQoSCQClassRuleValue, h3cIfQoSCQQueueLength=h3cIfQoSCQQueueLength, h3cIfQoSFIFODiscardPackets=h3cIfQoSFIFODiscardPackets, h3cIfQoSTricolorCarPir=h3cIfQoSTricolorCarPir, h3cIfQoSTricolorCarGroup=h3cIfQoSTricolorCarGroup, h3cIfQoSWredGroupIfRowStatus=h3cIfQoSWredGroupIfRowStatus, h3cIfQoSAggregativeCarRedActionType=h3cIfQoSAggregativeCarRedActionType, h3cIfQoCarListGroup=h3cIfQoCarListGroup, h3cIfQoSBandwidthEntry=h3cIfQoSBandwidthEntry, h3cIfQoSLRConfigTable=h3cIfQoSLRConfigTable, h3cIfQoSPortBindingGroup=h3cIfQoSPortBindingGroup, h3cIfQoSTricolorCarConfigTable=h3cIfQoSTricolorCarConfigTable, h3cIfQoSWredDropHPreNTcpPPS=h3cIfQoSWredDropHPreNTcpPPS, h3cIfQoSPriMapContentEntry=h3cIfQoSPriMapContentEntry, h3cIfQoSLRRunInfoActiveShaping=h3cIfQoSLRRunInfoActiveShaping, h3cIfQoSCQClassRuleType=h3cIfQoSCQClassRuleType, h3cIfQoSRTPQStartPort=h3cIfQoSRTPQStartPort, h3cIfQoSQSMode=h3cIfQoSQSMode, h3cIfQoSPQQueueLengthValue=h3cIfQoSPQQueueLengthValue, h3cIfQoSPQClassRowStatus=h3cIfQoSPQClassRowStatus, h3cIfQoSGTSQueueLength=h3cIfQoSGTSQueueLength, h3cQos2=h3cQos2, h3cIfQoSWredDropBPS=h3cIfQoSWredDropBPS, h3cIfQoSCQClassRuleTable=h3cIfQoSCQClassRuleTable, h3cIfQoSQmtokenTable=h3cIfQoSQmtokenTable, h3cIfQoSWredHighLimit=h3cIfQoSWredHighLimit, h3cIfQoSHardwareQueueRunInfoTable=h3cIfQoSHardwareQueueRunInfoTable, h3cIfQoSAggregativeCarPir=h3cIfQoSAggregativeCarPir, h3cIfQoSPQQueueLengthEntry=h3cIfQoSPQQueueLengthEntry, h3cIfQoSAggregativeCarCir=h3cIfQoSAggregativeCarCir, h3cIfQoSBandwidthRowStatus=h3cIfQoSBandwidthRowStatus, h3cIfQoSPortWredPreLowLimit=h3cIfQoSPortWredPreLowLimit, h3cIfQoSPortWredPreRowStatus=h3cIfQoSPortWredPreRowStatus, h3cIfQoSCarlRowStatus=h3cIfQoSCarlRowStatus, h3cIfQoSCQRunInfoDiscardPackets=h3cIfQoSCQRunInfoDiscardPackets, h3cIfQoSLRRunInfoPassedPackets=h3cIfQoSLRRunInfoPassedPackets, h3cIfQoSTailDropPPS=h3cIfQoSTailDropPPS, h3cIfQoSWredDropHPreTcpPPS=h3cIfQoSWredDropHPreTcpPPS, h3cIfQoSCQConfigGroup=h3cIfQoSCQConfigGroup, h3cIfQoSRTPQCbs=h3cIfQoSRTPQCbs, h3cIfQoSHQueueTcpRunInfoTable=h3cIfQoSHQueueTcpRunInfoTable, h3cIfQoSWFQHashedActiveQueues=h3cIfQoSWFQHashedActiveQueues, h3cIfQoSWFQDiscardPackets=h3cIfQoSWFQDiscardPackets, h3cIfQoSAggregativeCarApplyEntry=h3cIfQoSAggregativeCarApplyEntry, h3cIfQoSLRCir=h3cIfQoSLRCir, h3cIfQoSPortPriorityObjects=h3cIfQoSPortPriorityObjects, h3cIfQoSWredDropLPreTcpPkts=h3cIfQoSWredDropLPreTcpPkts, h3cIfQoSPortPirorityTrustEntry=h3cIfQoSPortPirorityTrustEntry, h3cQoSIfTraStaRunPassPackets=h3cQoSIfTraStaRunPassPackets, h3cQoSIfTraStaConfigDirection=h3cQoSIfTraStaConfigDirection, h3cIfQoSWFQRunInfoGroup=h3cIfQoSWFQRunInfoGroup, h3cQoSIfTraStaConfigVlan=h3cQoSIfTraStaConfigVlan, h3cIfQoSWredGroupNextIndex=h3cIfQoSWredGroupNextIndex, h3cIfQoSGTSPassedBytes=h3cIfQoSGTSPassedBytes, h3cIfQoSWFQRunInfoEntry=h3cIfQoSWFQRunInfoEntry, h3cIfQoSAggregativeCarYellowBytes=h3cIfQoSAggregativeCarYellowBytes, h3cIfQoSCQListNumber=h3cIfQoSCQListNumber, h3cIfQoSWredApplyIfRunInfoEntry=h3cIfQoSWredApplyIfRunInfoEntry, h3cIfQoSWredDropLPreNTcpBytes=h3cIfQoSWredDropLPreNTcpBytes, h3cIfQoSAggregativeCarCbs=h3cIfQoSAggregativeCarCbs, h3cIfQoSWredPreRandomDropNum=h3cIfQoSWredPreRandomDropNum, h3cIfQoSQSWeightEntry=h3cIfQoSQSWeightEntry, h3cIfQoSPQClassRuleEntry=h3cIfQoSPQClassRuleEntry, h3cIfQoSWredDropHPreNTcpPkts=h3cIfQoSWredDropHPreNTcpPkts, h3cQoSIfTraStaRunDirection=h3cQoSIfTraStaRunDirection, h3cIfQoSCarlListNum=h3cIfQoSCarlListNum, h3cIfQoSCQQueueLengthEntry=h3cIfQoSCQQueueLengthEntry, h3cIfQoSRTPQPacketNumber=h3cIfQoSRTPQPacketNumber, h3cIfQoSWFQHashedMaxActiveQueues=h3cIfQoSWFQHashedMaxActiveQueues, h3cIfQoSHardwareQueueConfigGroup=h3cIfQoSHardwareQueueConfigGroup, h3cIfQoSRTPQDiscardPackets=h3cIfQoSRTPQDiscardPackets, h3cIfQoSGTSRunInfoTable=h3cIfQoSGTSRunInfoTable, h3cIfQoSWFQQueueNumber=h3cIfQoSWFQQueueNumber, h3cIfQoSSoftwareQueueObjects=h3cIfQoSSoftwareQueueObjects, h3cIfQoSQmtokenRosStatus=h3cIfQoSQmtokenRosStatus, h3cQoSIfTraStaRunInfoTable=h3cQoSIfTraStaRunInfoTable, h3cIfQoSMaxBandwidth=h3cIfQoSMaxBandwidth, h3cIfQoSAggregativeCarApplyRuleType=h3cIfQoSAggregativeCarApplyRuleType, h3cIfQoSQueueID=h3cIfQoSQueueID, h3cIfQoSPQSize=h3cIfQoSPQSize, h3cQoSIfTraStaRunPassBytes=h3cQoSIfTraStaRunPassBytes, h3cIfQoSTricolorCarRedPackets=h3cIfQoSTricolorCarRedPackets, h3cIfQoSTailDropBPS=h3cIfQoSTailDropBPS, h3cIfQoSPassBPS=h3cIfQoSPassBPS, h3cIfQoSAggregativeCarApplyRuleValue=h3cIfQoSAggregativeCarApplyRuleValue, CarAction=CarAction, h3cIfQoSPortWredWeightConstantTable=h3cIfQoSPortWredWeightConstantTable, h3cIfQoSWredDropLPreTcpBPS=h3cIfQoSWredDropLPreTcpBPS, h3cIfQoSTricolorCarRedBytes=h3cIfQoSTricolorCarRedBytes, h3cIfQoSCQApplyEntry=h3cIfQoSCQApplyEntry, h3cIfQoSAggregativeCarEbs=h3cIfQoSAggregativeCarEbs, h3cIfQoSAggregativeCarConfigEntry=h3cIfQoSAggregativeCarConfigEntry, h3cIfQoSTricolorCarYellowActionType=h3cIfQoSTricolorCarYellowActionType, PriorityQueue=PriorityQueue, h3cIfQoSTricolorCarValue=h3cIfQoSTricolorCarValue, h3cQoSTraStaConfigGroup=h3cQoSTraStaConfigGroup, h3cIfQoSGTSConfigRowStatus=h3cIfQoSGTSConfigRowStatus, h3cIfQoSPriMapGroupNextIndex=h3cIfQoSPriMapGroupNextIndex, h3cIfQoSQmtokenNumber=h3cIfQoSQmtokenNumber, h3cIfQoSCurQueuePPS=h3cIfQoSCurQueuePPS, h3cIfQoSWREDRandomDropNum=h3cIfQoSWREDRandomDropNum, h3cIfQoSWFQTable=h3cIfQoSWFQTable, h3cIfQoSTricolorCarYellowBytes=h3cIfQoSTricolorCarYellowBytes, h3cIfQoSPortWredPreConfigTable=h3cIfQoSPortWredPreConfigTable, h3cQoSIfTraStaConfigInfoEntry=h3cQoSIfTraStaConfigInfoEntry, h3cIfQoSTricolorCarRunInfoTable=h3cIfQoSTricolorCarRunInfoTable, h3cIfQoSLRDirection=h3cIfQoSLRDirection, h3cIfQoSCQApplyListNumber=h3cIfQoSCQApplyListNumber, h3cIfQoSRTPQRunInfoEntry=h3cIfQoSRTPQRunInfoEntry, h3cIfQoSTricolorCarGreenActionValue=h3cIfQoSTricolorCarGreenActionValue, h3cIfQoSAggregativeCarGreenActionType=h3cIfQoSAggregativeCarGreenActionType, h3cIfQoSWredRowStatus=h3cIfQoSWredRowStatus, h3cIfQoSPortPriorityConfigGroup=h3cIfQoSPortPriorityConfigGroup, h3cIfQoSTricolorCarRedActionValue=h3cIfQoSTricolorCarRedActionValue, h3cIfQoSPortWredRunInfoEntry=h3cIfQoSPortWredRunInfoEntry, h3cIfQoSWFQEntry=h3cIfQoSWFQEntry, h3cIfQoSPortPriorityTable=h3cIfQoSPortPriorityTable, h3cIfQoSDropPackets=h3cIfQoSDropPackets)
mibBuilder.exportSymbols('A3COM-HUAWEI-IFQOS2-MIB', h3cIfQoSWredDropLPreNTcpPPS=h3cIfQoSWredDropLPreNTcpPPS, h3cIfQoSTricolorCarCbs=h3cIfQoSTricolorCarCbs, h3cQoSIfTraStaConfigInfoTable=h3cQoSIfTraStaConfigInfoTable, h3cIfQoSWFQConfigGroup=h3cIfQoSWFQConfigGroup, h3cQoSIfTraStaConfigQueue=h3cQoSIfTraStaConfigQueue, h3cIfQoSCarlEntry=h3cIfQoSCarlEntry, h3cIfQoSTricolorCarYellowActionValue=h3cIfQoSTricolorCarYellowActionValue, h3cIfQoSHardwareQueueRunInfoEntry=h3cIfQoSHardwareQueueRunInfoEntry, h3cIfQoSGTSPassedPackets=h3cIfQoSGTSPassedPackets, h3cIfQoSTricolorCarRedActionType=h3cIfQoSTricolorCarRedActionType, h3cIfQoSPortBindingTable=h3cIfQoSPortBindingTable, h3cIfQoSCQApplyTable=h3cIfQoSCQApplyTable, h3cIfQoSQSValue=h3cIfQoSQSValue, h3cIfQoSTricolorCarType=h3cIfQoSTricolorCarType, h3cIfQoSCQQueueServing=h3cIfQoSCQQueueServing, h3cIfQoSPriMapConfigGroup=h3cIfQoSPriMapConfigGroup, h3cIfQoSPortBindingEntry=h3cIfQoSPortBindingEntry, h3cIfQoSWredDropLPreTcpPPS=h3cIfQoSWredDropLPreTcpPPS, h3cIfQoSFIFORunInfoTable=h3cIfQoSFIFORunInfoTable, h3cIfQoSQmtokenEntry=h3cIfQoSQmtokenEntry, h3cIfQoSAggregativeCarApplyTable=h3cIfQoSAggregativeCarApplyTable, h3cIfQoSWredDropPkts=h3cIfQoSWredDropPkts, h3cIfQoSLRRunInfoPassedBytes=h3cIfQoSLRRunInfoPassedBytes, h3cIfQoSGTSQueueSize=h3cIfQoSGTSQueueSize, h3cIfQoSPQApplyTable=h3cIfQoSPQApplyTable, h3cIfQoSCarlTable=h3cIfQoSCarlTable, h3cIfQoSPQDiscardPackets=h3cIfQoSPQDiscardPackets, h3cIfQoSPQQueueLengthTable=h3cIfQoSPQQueueLengthTable, h3cIfQoSWredGroupGroup=h3cIfQoSWredGroupGroup, h3cQoSIfTraStaRunPassPPS=h3cQoSIfTraStaRunPassPPS, PYSNMP_MODULE_ID=h3cIfQos2, h3cIfQoSWredDropHPreTcpBytes=h3cIfQoSWredDropHPreTcpBytes, h3cIfQoSAggregativeCarRowStatus=h3cIfQoSAggregativeCarRowStatus, h3cIfQoSGTSCir=h3cIfQoSGTSCir, h3cIfQoSWFQSize=h3cIfQoSWFQSize, h3cIfQoSGTSObjects=h3cIfQoSGTSObjects, h3fIfQosWFQhashedTotalQueues=h3fIfQosWFQhashedTotalQueues, h3cIfQoSWFQRowStatus=h3cIfQoSWFQRowStatus, h3cIfQoSGTSEbs=h3cIfQoSGTSEbs, h3cIfQoSWredDropHPreTcpBPS=h3cIfQoSWredDropHPreTcpBPS, h3cIfQoSGTSConfigTable=h3cIfQoSGTSConfigTable, h3cIfQoSFIFORunInfoEntry=h3cIfQoSFIFORunInfoEntry, h3cIfQoSWredGroupContentSubIndex=h3cIfQoSWredGroupContentSubIndex, h3cIfQoSPortWredPreDiscardProbability=h3cIfQoSPortWredPreDiscardProbability, h3cIfQoSGTSClassRuleType=h3cIfQoSGTSClassRuleType, h3cIfQoSAggregativeCarYellowActionValue=h3cIfQoSAggregativeCarYellowActionValue, h3cIfQoSWREDObjects=h3cIfQoSWREDObjects, h3cIfQoSHardwareQueueRunInfoGroup=h3cIfQoSHardwareQueueRunInfoGroup, h3cIfQoSCQRunInfoGroup=h3cIfQoSCQRunInfoGroup, h3cIfQoSPortWredPreConfigEntry=h3cIfQoSPortWredPreConfigEntry, h3cIfQoSRowStatus=h3cIfQoSRowStatus, h3cIfQoSPassBytes=h3cIfQoSPassBytes, h3cIfQoSLineRateObjects=h3cIfQoSLineRateObjects, h3cIfQoSWredDropLPreNTcpBPS=h3cIfQoSWredDropLPreNTcpBPS, h3cIfQoSWredGroupName=h3cIfQoSWredGroupName, h3cIfQoSTricolorCarDirection=h3cIfQoSTricolorCarDirection, h3cIfQoSPriMapGroupType=h3cIfQoSPriMapGroupType, h3cIfQoSPQLength=h3cIfQoSPQLength, h3cIfQoSPriMapGroupImportValue=h3cIfQoSPriMapGroupImportValue, h3cIfQoSL3PlusObjects=h3cIfQoSL3PlusObjects, h3cIfQoSAggregativeCarApplyCarIndex=h3cIfQoSAggregativeCarApplyCarIndex, h3cIfQoSWredDropHPreTcpPkts=h3cIfQoSWredDropHPreTcpPkts, h3cIfQoSPQListNumber=h3cIfQoSPQListNumber, h3cQoSIfTraStaRunDropBytes=h3cQoSIfTraStaRunDropBytes, h3cQoSIfTraStaConfigDscp=h3cQoSIfTraStaConfigDscp, h3cIfQoSCQQueueID=h3cIfQoSCQQueueID, h3cIfQoSCQClassRuleQueueID=h3cIfQoSCQClassRuleQueueID, h3cIfQoSCQRunInfoLength=h3cIfQoSCQRunInfoLength, h3cIfQoSCQRunInfoSize=h3cIfQoSCQRunInfoSize, h3cIfQoSCARObjects=h3cIfQoSCARObjects, h3cIfQoSPortWredPreHighLimit=h3cIfQoSPortWredPreHighLimit, h3cIfQoSFIFOSize=h3cIfQoSFIFOSize, h3cIfQoSGTSConfigEntry=h3cIfQoSGTSConfigEntry, h3cIfQoSWredGroupEntry=h3cIfQoSWredGroupEntry, h3cIfQoSCurQueuePkts=h3cIfQoSCurQueuePkts, h3cIfQoSGTSDelayedPackets=h3cIfQoSGTSDelayedPackets, h3cIfQoSPassPPS=h3cIfQoSPassPPS, h3cIfQoSFIFOConfigTable=h3cIfQoSFIFOConfigTable, h3cIfQoSAggregativeCarGreenActionValue=h3cIfQoSAggregativeCarGreenActionValue, h3cIfQoSCQRunInfoTable=h3cIfQoSCQRunInfoTable, h3cIfQos2=h3cIfQos2, h3cIfQoSPriMapGroupName=h3cIfQoSPriMapGroupName, h3cIfQoSRTPQObject=h3cIfQoSRTPQObject, h3cIfQoSRTPQReservedBandwidth=h3cIfQoSRTPQReservedBandwidth, h3cIfQoSRTPQConfigGroup=h3cIfQoSRTPQConfigGroup, h3cIfQoSTricolorCarGreenPackets=h3cIfQoSTricolorCarGreenPackets, h3cIfQoSPriMapGroupIndex=h3cIfQoSPriMapGroupIndex, h3cIfQoSPQObject=h3cIfQoSPQObject, h3cIfQoSTricolorCarYellowPackets=h3cIfQoSTricolorCarYellowPackets, h3cIfQoSAggregativeCarType=h3cIfQoSAggregativeCarType, h3cQoSIfTraStaConfigDot1p=h3cQoSIfTraStaConfigDot1p, h3cIfQoSLRRunInfoEntry=h3cIfQoSLRRunInfoEntry, h3cIfQoSWFQQueueLength=h3cIfQoSWFQQueueLength, h3cIfQoSPriMapContentRowStatus=h3cIfQoSPriMapContentRowStatus, h3cIfQoSBandwidthGroup=h3cIfQoSBandwidthGroup, h3cIfQoSRTPQConfigEntry=h3cIfQoSRTPQConfigEntry, h3cQoSIfTraStaRunInfoEntry=h3cQoSIfTraStaRunInfoEntry, h3cIfQoSPassPackets=h3cIfQoSPassPackets, h3cIfQoSGTSDiscardBytes=h3cIfQoSGTSDiscardBytes, h3cQoSIfTraStaConfigStatus=h3cQoSIfTraStaConfigStatus, h3cIfQoSTailDropPkts=h3cIfQoSTailDropPkts, h3cIfQoSTricolorCarRunInfoEntry=h3cIfQoSTricolorCarRunInfoEntry, h3cIfQoSWredGroupType=h3cIfQoSWredGroupType, h3cIfQoSWredLowLimit=h3cIfQoSWredLowLimit, h3cIfQoSPortPirorityTrustTable=h3cIfQoSPortPirorityTrustTable, h3cIfQoSGTSCbs=h3cIfQoSGTSCbs, h3cIfQoSCarListObject=h3cIfQoSCarListObject, h3cIfQoSTricolorCarGreenBytes=h3cIfQoSTricolorCarGreenBytes, h3cIfQoSPQApplyEntry=h3cIfQoSPQApplyEntry, h3cIfQoSPortWredWeightConstant=h3cIfQoSPortWredWeightConstant, Direction=Direction) |
lines = [line.strip() for line in open("input.txt", 'r') if line.strip() != ""]
startingNumbers = [int(i) for i in lines[0].split(",")]
##########################################
# PART 1 #
##########################################
def part1(startingNumbers, target):
i = 0
lastNumber = -1
history = {}
for n in startingNumbers:
if n not in history:
history[n] = []
history[n].append(i)
i += 1
while i < target:
if lastNumber in history and len(history[lastNumber]) >= 2:
a, b = history[lastNumber][-2:]
n = b - a
else:
n = 0
if n not in history:
history[n] = []
history[n].append(i)
lastNumber = n
i += 1
return lastNumber
print('Answer to part 1 is', part1(startingNumbers, 2020))
##########################################
# PART 2 #
##########################################
# takes a minute but works
print('Answer to part 2 is', part1(startingNumbers, 30000000))
| lines = [line.strip() for line in open('input.txt', 'r') if line.strip() != '']
starting_numbers = [int(i) for i in lines[0].split(',')]
def part1(startingNumbers, target):
i = 0
last_number = -1
history = {}
for n in startingNumbers:
if n not in history:
history[n] = []
history[n].append(i)
i += 1
while i < target:
if lastNumber in history and len(history[lastNumber]) >= 2:
(a, b) = history[lastNumber][-2:]
n = b - a
else:
n = 0
if n not in history:
history[n] = []
history[n].append(i)
last_number = n
i += 1
return lastNumber
print('Answer to part 1 is', part1(startingNumbers, 2020))
print('Answer to part 2 is', part1(startingNumbers, 30000000)) |
def load(h):
return ({'abbr': 'Reserved', 'code': 0, 'title': 'RESERVED Reserved Reserved'},
{'abbr': 'pres', 'code': 1, 'title': 'PRES Pressure Pa'},
{'abbr': 'msl', 'code': 2, 'title': 'MSL Mean sea level pressure Pa'},
{'abbr': 'ptend', 'code': 3, 'title': 'PTEND Pressure tendency Pa s**-1'},
{'abbr': 'pv',
'code': 4,
'title': 'PV Potential vorticity K m**2 kg**-1 s**-1'},
{'abbr': 'icaht',
'code': 5,
'title': 'ICAHT ICAO Standard Atmosphere reference height m'},
{'abbr': 'z', 'code': 6, 'title': 'Z Geopotential m**2 s**-2'},
{'abbr': 'gh', 'code': 7, 'title': 'GH Geopotential height gpm'},
{'abbr': 'h', 'code': 8, 'title': 'H Geometrical height m'},
{'abbr': 'hstdv', 'code': 9, 'title': 'HSTDV Standard deviation of height m'},
{'abbr': 'tco3', 'code': 10, 'title': 'TCO3 Total column ozone Dobson'},
{'abbr': 't', 'code': 11, 'title': 'T Temperature K'},
{'abbr': 'vptmp',
'code': 12,
'title': 'VPTMP Virtual potential temperature K'},
{'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'},
{'abbr': 'papt',
'code': 14,
'title': 'PAPT Pseudo-adiabatic potential temperature K'},
{'abbr': 'tmax', 'code': 15, 'title': 'TMAX Maximum temperature K'},
{'abbr': 'tmin', 'code': 16, 'title': 'TMIN Minimum temperature K'},
{'abbr': 'td', 'code': 17, 'title': 'TD Dew point temperature K'},
{'abbr': 'depr',
'code': 18,
'title': 'DEPR Dew point depression (or deficit) K'},
{'abbr': 'lapr', 'code': 19, 'title': 'LAPR Lapse rate K m**-1'},
{'abbr': 'vis', 'code': 20, 'title': 'VIS Visibility m'},
{'abbr': 'rdsp1', 'code': 21, 'title': 'RDSP1 Radar spectra (1) -'},
{'abbr': 'rdsp2', 'code': 22, 'title': 'RDSP2 Radar spectra (2) -'},
{'abbr': 'rdsp3', 'code': 23, 'title': 'RDSP3 Radar spectra (3) -'},
{'abbr': 'pli', 'code': 24, 'title': 'PLI Parcel lifted index (to 500 hPa) K'},
{'abbr': 'ta', 'code': 25, 'title': 'TA Temperature anomaly K'},
{'abbr': 'presa', 'code': 26, 'title': 'PRESA Pressure anomaly Pa'},
{'abbr': 'gpa', 'code': 27, 'title': 'GPA Geopotential height anomaly gpm'},
{'abbr': 'wvsp1', 'code': 28, 'title': 'WVSP1 Wave spectra (1) -'},
{'abbr': 'wvsp2', 'code': 29, 'title': 'WVSP2 Wave spectra (2) -'},
{'abbr': 'wvsp3', 'code': 30, 'title': 'WVSP3 Wave spectra (3) -'},
{'abbr': 'wdir', 'code': 31, 'title': 'WDIR Wind direction Degree true'},
{'abbr': 'ws', 'code': 32, 'title': 'WS Wind speed m s**-1'},
{'abbr': 'u', 'code': 33, 'title': 'U u-component of wind m s**-1'},
{'abbr': 'v', 'code': 34, 'title': 'V v-component of wind m s**-1'},
{'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2 s**-1'},
{'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2 s**-1'},
{'abbr': 'mntsf',
'code': 37,
'title': 'MNTSF Montgomery stream function m**2 s**-1'},
{'abbr': 'sgcvv',
'code': 38,
'title': 'SGCVV Sigma coordinate vertical velocity s**-1'},
{'abbr': 'w', 'code': 39, 'title': 'W Pressure Vertical velocity Pa s**-1'},
{'abbr': 'tw', 'code': 40, 'title': 'TW Vertical velocity m s**-1'},
{'abbr': 'absv', 'code': 41, 'title': 'ABSV Absolute vorticity s**-1'},
{'abbr': 'absd', 'code': 42, 'title': 'ABSD Absolute divergence s**-1'},
{'abbr': 'vo', 'code': 43, 'title': 'VO Relative vorticity s**-1'},
{'abbr': 'd', 'code': 44, 'title': 'D Relative divergence s**-1'},
{'abbr': 'vucsh',
'code': 45,
'title': 'VUCSH Vertical u-component shear s**-1'},
{'abbr': 'vvcsh',
'code': 46,
'title': 'VVCSH Vertical v-component shear s**-1'},
{'abbr': 'dirc', 'code': 47, 'title': 'DIRC Direction of current Degree true'},
{'abbr': 'spc', 'code': 48, 'title': 'SPC Speed of current m s**-1'},
{'abbr': 'ucurr', 'code': 49, 'title': 'UCURR U-component of current m s**-1'},
{'abbr': 'vcurr', 'code': 50, 'title': 'VCURR V-component of current m s**-1'},
{'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity kg kg**-1'},
{'abbr': 'r', 'code': 52, 'title': 'R Relative humidity %'},
{'abbr': 'mixr', 'code': 53, 'title': 'MIXR Humidity mixing ratio kg kg**-1'},
{'abbr': 'pwat', 'code': 54, 'title': 'PWAT Precipitable water kg m**-2'},
{'abbr': 'vp', 'code': 55, 'title': 'VP Vapour pressure Pa'},
{'abbr': 'satd', 'code': 56, 'title': 'SATD Saturation deficit Pa'},
{'abbr': 'e', 'code': 57, 'title': 'E Evaporation kg m**-2'},
{'abbr': 'ciwc', 'code': 58, 'title': 'CIWC Cloud ice kg m**-2'},
{'abbr': 'prate',
'code': 59,
'title': 'PRATE Precipitation rate kg m**-2 s**-1'},
{'abbr': 'tstm', 'code': 60, 'title': 'TSTM Thunderstorm probability %'},
{'abbr': 'tp', 'code': 61, 'title': 'TP Total precipitation kg m**-2'},
{'abbr': 'lsp', 'code': 62, 'title': 'LSP Large scale precipitation kg m**-2'},
{'abbr': 'acpcp',
'code': 63,
'title': 'ACPCP Convective precipitation (water) kg m**-2'},
{'abbr': 'srweq',
'code': 64,
'title': 'SRWEQ Snow fall rate water equivalent kg m**-2 s**-1'},
{'abbr': 'sf',
'code': 65,
'title': 'SF Water equivalent of accumulated snow depth kg m**-2'},
{'abbr': 'sd', 'code': 66, 'title': 'SD Snow depth m'},
{'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'},
{'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'},
{'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'},
{'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'},
{'abbr': 'tcc',
'code': 71,
'title': 'TCC Total cloud cover',
'units': '0 - 1'},
{'abbr': 'ccc',
'code': 72,
'title': 'CCC Convective cloud cover',
'units': '0 - 1'},
{'abbr': 'lcc', 'code': 73, 'title': 'LCC Low cloud cover', 'units': '0 - 1'},
{'abbr': 'mcc',
'code': 74,
'title': 'MCC Medium cloud cover',
'units': '0 - 1'},
{'abbr': 'hcc', 'code': 75, 'title': 'HCC High cloud cover', 'units': '0 - 1'},
{'abbr': 'cwat', 'code': 76, 'title': 'CWAT Cloud water kg m**-2'},
{'abbr': 'bli', 'code': 77, 'title': 'BLI Best lifted index (to 500 hPa) K'},
{'abbr': 'csf', 'code': 78, 'title': 'CSF Convective snowfall kg m**-2'},
{'abbr': 'lsf', 'code': 79, 'title': 'LSF Large scale snowfall kg m**-2'},
{'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'},
{'abbr': 'lsm',
'code': 81,
'title': 'LSM Land cover (1=land, 0=sea)',
'units': '0 - 1'},
{'abbr': 'dslm',
'code': 82,
'title': 'DSLM Deviation of sea-level from mean m'},
{'abbr': 'sr', 'code': 83, 'title': 'SR Surface roughness m'},
{'abbr': 'al', 'code': 84, 'title': 'AL Albedo %'},
{'abbr': 'st', 'code': 85, 'title': 'ST Soil temperature K'},
{'abbr': 'sm', 'code': 86, 'title': 'SM Soil moisture content kg m**-2'},
{'abbr': 'veg', 'code': 87, 'title': 'VEG Vegetation %'},
{'abbr': 's', 'code': 88, 'title': 'S Salinity kg kg**-1'},
{'abbr': 'den', 'code': 89, 'title': 'DEN Density kg m**-3'},
{'abbr': 'ro', 'code': 90, 'title': 'RO Water run-off kg m**-2'},
{'abbr': 'icec',
'code': 91,
'title': 'ICEC Ice cover (1=land, 0=sea)',
'units': '0 - 1'},
{'abbr': 'icetk', 'code': 92, 'title': 'ICETK Ice thickness m'},
{'abbr': 'diced',
'code': 93,
'title': 'DICED Direction of ice drift Degree true'},
{'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m s**-1'},
{'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift m s**-1'},
{'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift m s**-1'},
{'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m s**-1'},
{'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence s**-1'},
{'abbr': 'snom', 'code': 99, 'title': 'SNOM Snow melt kg m**-2'},
{'abbr': 'swh',
'code': 100,
'title': 'SWH Signific.height,combined wind waves+swell m'},
{'abbr': 'mdww',
'code': 101,
'title': 'MDWW Mean Direction of wind waves Degree true'},
{'abbr': 'shww',
'code': 102,
'title': 'SHWW Significant height of wind waves m'},
{'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean period of wind waves s'},
{'abbr': 'swdir',
'code': 104,
'title': 'SWDIR Direction of swell waves Degree true'},
{'abbr': 'swell',
'code': 105,
'title': 'SWELL Significant height of swell waves m'},
{'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean period of swell waves s'},
{'abbr': 'mdps',
'code': 107,
'title': 'MDPS Mean direction of primary swell Degree true'},
{'abbr': 'mpps', 'code': 108, 'title': 'MPPS Mean period of primary swell s'},
{'abbr': 'dirsw',
'code': 109,
'title': 'DIRSW Secondary wave direction Degree true'},
{'abbr': 'swp', 'code': 110, 'title': 'SWP Secondary wave mean period s'},
{'abbr': 'nswrs',
'code': 111,
'title': 'NSWRS Net short-wave radiation flux (surface) W m**-2'},
{'abbr': 'nlwrs',
'code': 112,
'title': 'NLWRS Net long-wave radiation flux (surface) W m**-2'},
{'abbr': 'nswrt',
'code': 113,
'title': 'NSWRT Net short-wave radiation flux (atmosph.top) W m**-2'},
{'abbr': 'nlwrt',
'code': 114,
'title': 'NLWRT Net long-wave radiation flux (atmosph.top) W m**-2'},
{'abbr': 'lwavr',
'code': 115,
'title': 'LWAVR Long-wave radiation flux W m**-2'},
{'abbr': 'swavr',
'code': 116,
'title': 'SWAVR Short-wave radiation flux W m**-2'},
{'abbr': 'grad', 'code': 117, 'title': 'GRAD Global radiation flux W m**-2'},
{'abbr': 'btmp', 'code': 118, 'title': 'BTMP Brightness temperature K'},
{'abbr': 'lwrad',
'code': 119,
'title': 'LWRAD Radiance (with respect to wave number) W m**-1 sr**-1'},
{'abbr': 'swrad',
'code': 120,
'title': 'SWRAD Radiance (with respect to wave length) W m-**3 sr**-1'},
{'abbr': 'slhf', 'code': 121, 'title': 'SLHF Latent heat flux W m**-2'},
{'abbr': 'sshf', 'code': 122, 'title': 'SSHF Sensible heat flux W m**-2'},
{'abbr': 'bld',
'code': 123,
'title': 'BLD Boundary layer dissipation W m**-2'},
{'abbr': 'uflx',
'code': 124,
'title': 'UFLX Momentum flux, u-component N m**-2'},
{'abbr': 'vflx',
'code': 125,
'title': 'VFLX Momentum flux, v-component N m**-2'},
{'abbr': 'wmixe', 'code': 126, 'title': 'WMIXE Wind mixing energy J'},
{'abbr': 'imgd', 'code': 127, 'title': 'IMGD Image data'},
{'abbr': 'mofl', 'code': 128, 'title': 'MOFL Momentum flux Pa'},
{'abbr': 'maxv', 'code': 135, 'title': 'MAXV Max wind speed (at 10m) m s**-1'},
{'abbr': 'tland', 'code': 140, 'title': 'TLAND Temperature over land K'},
{'abbr': 'qland',
'code': 141,
'title': 'QLAND Specific humidity over land kg kg**-1'},
{'abbr': 'rhland',
'code': 142,
'title': 'RHLAND Relative humidity over land Fraction'},
{'abbr': 'dptland', 'code': 143, 'title': 'DPTLAND Dew point over land K'},
{'abbr': 'slfr', 'code': 160, 'title': 'SLFR Slope fraction -'},
{'abbr': 'shfr', 'code': 161, 'title': 'SHFR Shadow fraction -'},
{'abbr': 'rsha', 'code': 162, 'title': 'RSHA Shadow parameter A -'},
{'abbr': 'rshb', 'code': 163, 'title': 'RSHB Shadow parameter B -'},
{'abbr': 'susl', 'code': 165, 'title': 'SUSL Surface slope -'},
{'abbr': 'skwf', 'code': 166, 'title': 'SKWF Sky wiew factor -'},
{'abbr': 'frasp', 'code': 167, 'title': 'FRASP Fraction of aspect -'},
{'abbr': 'asn', 'code': 190, 'title': 'ASN Snow albedo -'},
{'abbr': 'dsn', 'code': 191, 'title': 'DSN Snow density -'},
{'abbr': 'watcn',
'code': 192,
'title': 'WATCN Water on canopy level kg m**-2'},
{'abbr': 'ssi', 'code': 193, 'title': 'SSI Surface soil ice m**3 m**-3'},
{'abbr': 'sltyp', 'code': 195, 'title': 'SLTYP Soil type code -'},
{'abbr': 'fol', 'code': 196, 'title': 'FOL Fraction of lake -'},
{'abbr': 'fof', 'code': 197, 'title': 'FOF Fraction of forest -'},
{'abbr': 'fool', 'code': 198, 'title': 'FOOL Fraction of open land -'},
{'abbr': 'vgtyp',
'code': 199,
'title': 'VGTYP Vegetation type (Olsson land use) -'},
{'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J kg**-1'},
{'abbr': 'mssso',
'code': 208,
'title': 'MSSSO Maximum slope of smallest scale orography rad'},
{'abbr': 'sdsso',
'code': 209,
'title': 'SDSSO Standard deviation of smallest scale orography gpm'},
{'abbr': 'gust', 'code': 228, 'title': 'GUST Max wind gust m s**-1'})
| def load(h):
return ({'abbr': 'Reserved', 'code': 0, 'title': 'RESERVED Reserved Reserved'}, {'abbr': 'pres', 'code': 1, 'title': 'PRES Pressure Pa'}, {'abbr': 'msl', 'code': 2, 'title': 'MSL Mean sea level pressure Pa'}, {'abbr': 'ptend', 'code': 3, 'title': 'PTEND Pressure tendency Pa s**-1'}, {'abbr': 'pv', 'code': 4, 'title': 'PV Potential vorticity K m**2 kg**-1 s**-1'}, {'abbr': 'icaht', 'code': 5, 'title': 'ICAHT ICAO Standard Atmosphere reference height m'}, {'abbr': 'z', 'code': 6, 'title': 'Z Geopotential m**2 s**-2'}, {'abbr': 'gh', 'code': 7, 'title': 'GH Geopotential height gpm'}, {'abbr': 'h', 'code': 8, 'title': 'H Geometrical height m'}, {'abbr': 'hstdv', 'code': 9, 'title': 'HSTDV Standard deviation of height m'}, {'abbr': 'tco3', 'code': 10, 'title': 'TCO3 Total column ozone Dobson'}, {'abbr': 't', 'code': 11, 'title': 'T Temperature K'}, {'abbr': 'vptmp', 'code': 12, 'title': 'VPTMP Virtual potential temperature K'}, {'abbr': 'pt', 'code': 13, 'title': 'PT Potential temperature K'}, {'abbr': 'papt', 'code': 14, 'title': 'PAPT Pseudo-adiabatic potential temperature K'}, {'abbr': 'tmax', 'code': 15, 'title': 'TMAX Maximum temperature K'}, {'abbr': 'tmin', 'code': 16, 'title': 'TMIN Minimum temperature K'}, {'abbr': 'td', 'code': 17, 'title': 'TD Dew point temperature K'}, {'abbr': 'depr', 'code': 18, 'title': 'DEPR Dew point depression (or deficit) K'}, {'abbr': 'lapr', 'code': 19, 'title': 'LAPR Lapse rate K m**-1'}, {'abbr': 'vis', 'code': 20, 'title': 'VIS Visibility m'}, {'abbr': 'rdsp1', 'code': 21, 'title': 'RDSP1 Radar spectra (1) -'}, {'abbr': 'rdsp2', 'code': 22, 'title': 'RDSP2 Radar spectra (2) -'}, {'abbr': 'rdsp3', 'code': 23, 'title': 'RDSP3 Radar spectra (3) -'}, {'abbr': 'pli', 'code': 24, 'title': 'PLI Parcel lifted index (to 500 hPa) K'}, {'abbr': 'ta', 'code': 25, 'title': 'TA Temperature anomaly K'}, {'abbr': 'presa', 'code': 26, 'title': 'PRESA Pressure anomaly Pa'}, {'abbr': 'gpa', 'code': 27, 'title': 'GPA Geopotential height anomaly gpm'}, {'abbr': 'wvsp1', 'code': 28, 'title': 'WVSP1 Wave spectra (1) -'}, {'abbr': 'wvsp2', 'code': 29, 'title': 'WVSP2 Wave spectra (2) -'}, {'abbr': 'wvsp3', 'code': 30, 'title': 'WVSP3 Wave spectra (3) -'}, {'abbr': 'wdir', 'code': 31, 'title': 'WDIR Wind direction Degree true'}, {'abbr': 'ws', 'code': 32, 'title': 'WS Wind speed m s**-1'}, {'abbr': 'u', 'code': 33, 'title': 'U u-component of wind m s**-1'}, {'abbr': 'v', 'code': 34, 'title': 'V v-component of wind m s**-1'}, {'abbr': 'strf', 'code': 35, 'title': 'STRF Stream function m2 s**-1'}, {'abbr': 'vp', 'code': 36, 'title': 'VP Velocity potential m2 s**-1'}, {'abbr': 'mntsf', 'code': 37, 'title': 'MNTSF Montgomery stream function m**2 s**-1'}, {'abbr': 'sgcvv', 'code': 38, 'title': 'SGCVV Sigma coordinate vertical velocity s**-1'}, {'abbr': 'w', 'code': 39, 'title': 'W Pressure Vertical velocity Pa s**-1'}, {'abbr': 'tw', 'code': 40, 'title': 'TW Vertical velocity m s**-1'}, {'abbr': 'absv', 'code': 41, 'title': 'ABSV Absolute vorticity s**-1'}, {'abbr': 'absd', 'code': 42, 'title': 'ABSD Absolute divergence s**-1'}, {'abbr': 'vo', 'code': 43, 'title': 'VO Relative vorticity s**-1'}, {'abbr': 'd', 'code': 44, 'title': 'D Relative divergence s**-1'}, {'abbr': 'vucsh', 'code': 45, 'title': 'VUCSH Vertical u-component shear s**-1'}, {'abbr': 'vvcsh', 'code': 46, 'title': 'VVCSH Vertical v-component shear s**-1'}, {'abbr': 'dirc', 'code': 47, 'title': 'DIRC Direction of current Degree true'}, {'abbr': 'spc', 'code': 48, 'title': 'SPC Speed of current m s**-1'}, {'abbr': 'ucurr', 'code': 49, 'title': 'UCURR U-component of current m s**-1'}, {'abbr': 'vcurr', 'code': 50, 'title': 'VCURR V-component of current m s**-1'}, {'abbr': 'q', 'code': 51, 'title': 'Q Specific humidity kg kg**-1'}, {'abbr': 'r', 'code': 52, 'title': 'R Relative humidity %'}, {'abbr': 'mixr', 'code': 53, 'title': 'MIXR Humidity mixing ratio kg kg**-1'}, {'abbr': 'pwat', 'code': 54, 'title': 'PWAT Precipitable water kg m**-2'}, {'abbr': 'vp', 'code': 55, 'title': 'VP Vapour pressure Pa'}, {'abbr': 'satd', 'code': 56, 'title': 'SATD Saturation deficit Pa'}, {'abbr': 'e', 'code': 57, 'title': 'E Evaporation kg m**-2'}, {'abbr': 'ciwc', 'code': 58, 'title': 'CIWC Cloud ice kg m**-2'}, {'abbr': 'prate', 'code': 59, 'title': 'PRATE Precipitation rate kg m**-2 s**-1'}, {'abbr': 'tstm', 'code': 60, 'title': 'TSTM Thunderstorm probability %'}, {'abbr': 'tp', 'code': 61, 'title': 'TP Total precipitation kg m**-2'}, {'abbr': 'lsp', 'code': 62, 'title': 'LSP Large scale precipitation kg m**-2'}, {'abbr': 'acpcp', 'code': 63, 'title': 'ACPCP Convective precipitation (water) kg m**-2'}, {'abbr': 'srweq', 'code': 64, 'title': 'SRWEQ Snow fall rate water equivalent kg m**-2 s**-1'}, {'abbr': 'sf', 'code': 65, 'title': 'SF Water equivalent of accumulated snow depth kg m**-2'}, {'abbr': 'sd', 'code': 66, 'title': 'SD Snow depth m'}, {'abbr': 'mld', 'code': 67, 'title': 'MLD Mixed layer depth m'}, {'abbr': 'tthdp', 'code': 68, 'title': 'TTHDP Transient thermocline depth m'}, {'abbr': 'mthd', 'code': 69, 'title': 'MTHD Main thermocline depth m'}, {'abbr': 'mtha', 'code': 70, 'title': 'MTHA Main thermocline anomaly m'}, {'abbr': 'tcc', 'code': 71, 'title': 'TCC Total cloud cover', 'units': '0 - 1'}, {'abbr': 'ccc', 'code': 72, 'title': 'CCC Convective cloud cover', 'units': '0 - 1'}, {'abbr': 'lcc', 'code': 73, 'title': 'LCC Low cloud cover', 'units': '0 - 1'}, {'abbr': 'mcc', 'code': 74, 'title': 'MCC Medium cloud cover', 'units': '0 - 1'}, {'abbr': 'hcc', 'code': 75, 'title': 'HCC High cloud cover', 'units': '0 - 1'}, {'abbr': 'cwat', 'code': 76, 'title': 'CWAT Cloud water kg m**-2'}, {'abbr': 'bli', 'code': 77, 'title': 'BLI Best lifted index (to 500 hPa) K'}, {'abbr': 'csf', 'code': 78, 'title': 'CSF Convective snowfall kg m**-2'}, {'abbr': 'lsf', 'code': 79, 'title': 'LSF Large scale snowfall kg m**-2'}, {'abbr': 'wtmp', 'code': 80, 'title': 'WTMP Water temperature K'}, {'abbr': 'lsm', 'code': 81, 'title': 'LSM Land cover (1=land, 0=sea)', 'units': '0 - 1'}, {'abbr': 'dslm', 'code': 82, 'title': 'DSLM Deviation of sea-level from mean m'}, {'abbr': 'sr', 'code': 83, 'title': 'SR Surface roughness m'}, {'abbr': 'al', 'code': 84, 'title': 'AL Albedo %'}, {'abbr': 'st', 'code': 85, 'title': 'ST Soil temperature K'}, {'abbr': 'sm', 'code': 86, 'title': 'SM Soil moisture content kg m**-2'}, {'abbr': 'veg', 'code': 87, 'title': 'VEG Vegetation %'}, {'abbr': 's', 'code': 88, 'title': 'S Salinity kg kg**-1'}, {'abbr': 'den', 'code': 89, 'title': 'DEN Density kg m**-3'}, {'abbr': 'ro', 'code': 90, 'title': 'RO Water run-off kg m**-2'}, {'abbr': 'icec', 'code': 91, 'title': 'ICEC Ice cover (1=land, 0=sea)', 'units': '0 - 1'}, {'abbr': 'icetk', 'code': 92, 'title': 'ICETK Ice thickness m'}, {'abbr': 'diced', 'code': 93, 'title': 'DICED Direction of ice drift Degree true'}, {'abbr': 'siced', 'code': 94, 'title': 'SICED Speed of ice drift m s**-1'}, {'abbr': 'uice', 'code': 95, 'title': 'UICE U-component of ice drift m s**-1'}, {'abbr': 'vice', 'code': 96, 'title': 'VICE V-component of ice drift m s**-1'}, {'abbr': 'iceg', 'code': 97, 'title': 'ICEG Ice growth rate m s**-1'}, {'abbr': 'iced', 'code': 98, 'title': 'ICED Ice divergence s**-1'}, {'abbr': 'snom', 'code': 99, 'title': 'SNOM Snow melt kg m**-2'}, {'abbr': 'swh', 'code': 100, 'title': 'SWH Signific.height,combined wind waves+swell m'}, {'abbr': 'mdww', 'code': 101, 'title': 'MDWW Mean Direction of wind waves Degree true'}, {'abbr': 'shww', 'code': 102, 'title': 'SHWW Significant height of wind waves m'}, {'abbr': 'mpww', 'code': 103, 'title': 'MPWW Mean period of wind waves s'}, {'abbr': 'swdir', 'code': 104, 'title': 'SWDIR Direction of swell waves Degree true'}, {'abbr': 'swell', 'code': 105, 'title': 'SWELL Significant height of swell waves m'}, {'abbr': 'swper', 'code': 106, 'title': 'SWPER Mean period of swell waves s'}, {'abbr': 'mdps', 'code': 107, 'title': 'MDPS Mean direction of primary swell Degree true'}, {'abbr': 'mpps', 'code': 108, 'title': 'MPPS Mean period of primary swell s'}, {'abbr': 'dirsw', 'code': 109, 'title': 'DIRSW Secondary wave direction Degree true'}, {'abbr': 'swp', 'code': 110, 'title': 'SWP Secondary wave mean period s'}, {'abbr': 'nswrs', 'code': 111, 'title': 'NSWRS Net short-wave radiation flux (surface) W m**-2'}, {'abbr': 'nlwrs', 'code': 112, 'title': 'NLWRS Net long-wave radiation flux (surface) W m**-2'}, {'abbr': 'nswrt', 'code': 113, 'title': 'NSWRT Net short-wave radiation flux (atmosph.top) W m**-2'}, {'abbr': 'nlwrt', 'code': 114, 'title': 'NLWRT Net long-wave radiation flux (atmosph.top) W m**-2'}, {'abbr': 'lwavr', 'code': 115, 'title': 'LWAVR Long-wave radiation flux W m**-2'}, {'abbr': 'swavr', 'code': 116, 'title': 'SWAVR Short-wave radiation flux W m**-2'}, {'abbr': 'grad', 'code': 117, 'title': 'GRAD Global radiation flux W m**-2'}, {'abbr': 'btmp', 'code': 118, 'title': 'BTMP Brightness temperature K'}, {'abbr': 'lwrad', 'code': 119, 'title': 'LWRAD Radiance (with respect to wave number) W m**-1 sr**-1'}, {'abbr': 'swrad', 'code': 120, 'title': 'SWRAD Radiance (with respect to wave length) W m-**3 sr**-1'}, {'abbr': 'slhf', 'code': 121, 'title': 'SLHF Latent heat flux W m**-2'}, {'abbr': 'sshf', 'code': 122, 'title': 'SSHF Sensible heat flux W m**-2'}, {'abbr': 'bld', 'code': 123, 'title': 'BLD Boundary layer dissipation W m**-2'}, {'abbr': 'uflx', 'code': 124, 'title': 'UFLX Momentum flux, u-component N m**-2'}, {'abbr': 'vflx', 'code': 125, 'title': 'VFLX Momentum flux, v-component N m**-2'}, {'abbr': 'wmixe', 'code': 126, 'title': 'WMIXE Wind mixing energy J'}, {'abbr': 'imgd', 'code': 127, 'title': 'IMGD Image data'}, {'abbr': 'mofl', 'code': 128, 'title': 'MOFL Momentum flux Pa'}, {'abbr': 'maxv', 'code': 135, 'title': 'MAXV Max wind speed (at 10m) m s**-1'}, {'abbr': 'tland', 'code': 140, 'title': 'TLAND Temperature over land K'}, {'abbr': 'qland', 'code': 141, 'title': 'QLAND Specific humidity over land kg kg**-1'}, {'abbr': 'rhland', 'code': 142, 'title': 'RHLAND Relative humidity over land Fraction'}, {'abbr': 'dptland', 'code': 143, 'title': 'DPTLAND Dew point over land K'}, {'abbr': 'slfr', 'code': 160, 'title': 'SLFR Slope fraction -'}, {'abbr': 'shfr', 'code': 161, 'title': 'SHFR Shadow fraction -'}, {'abbr': 'rsha', 'code': 162, 'title': 'RSHA Shadow parameter A -'}, {'abbr': 'rshb', 'code': 163, 'title': 'RSHB Shadow parameter B -'}, {'abbr': 'susl', 'code': 165, 'title': 'SUSL Surface slope -'}, {'abbr': 'skwf', 'code': 166, 'title': 'SKWF Sky wiew factor -'}, {'abbr': 'frasp', 'code': 167, 'title': 'FRASP Fraction of aspect -'}, {'abbr': 'asn', 'code': 190, 'title': 'ASN Snow albedo -'}, {'abbr': 'dsn', 'code': 191, 'title': 'DSN Snow density -'}, {'abbr': 'watcn', 'code': 192, 'title': 'WATCN Water on canopy level kg m**-2'}, {'abbr': 'ssi', 'code': 193, 'title': 'SSI Surface soil ice m**3 m**-3'}, {'abbr': 'sltyp', 'code': 195, 'title': 'SLTYP Soil type code -'}, {'abbr': 'fol', 'code': 196, 'title': 'FOL Fraction of lake -'}, {'abbr': 'fof', 'code': 197, 'title': 'FOF Fraction of forest -'}, {'abbr': 'fool', 'code': 198, 'title': 'FOOL Fraction of open land -'}, {'abbr': 'vgtyp', 'code': 199, 'title': 'VGTYP Vegetation type (Olsson land use) -'}, {'abbr': 'tke', 'code': 200, 'title': 'TKE Turbulent Kinetic Energy J kg**-1'}, {'abbr': 'mssso', 'code': 208, 'title': 'MSSSO Maximum slope of smallest scale orography rad'}, {'abbr': 'sdsso', 'code': 209, 'title': 'SDSSO Standard deviation of smallest scale orography gpm'}, {'abbr': 'gust', 'code': 228, 'title': 'GUST Max wind gust m s**-1'}) |
def printom(str):
return f"ye hath mujhe {str}"
def add(n1, n2):
return n1 + n2 + 5
print("and the name is", __name__)
if __name__ == '__main__':
print(printom("de de thakur"))
o = add(4, 6)
print(o)
| def printom(str):
return f'ye hath mujhe {str}'
def add(n1, n2):
return n1 + n2 + 5
print('and the name is', __name__)
if __name__ == '__main__':
print(printom('de de thakur'))
o = add(4, 6)
print(o) |
# Class to test the GrapherWindow Class
class GrapherTester:
def __init__(self):
subject = Grapher()
testFileName = 'TestData.csv'
testStockName = 'Test Stock'
testGenerateGraphWithAllPositiveNumbers(testFileName, testStockName)
def createTestData(xAxis, yAxis):
# Generates a graph with random Data
plotData = {'X-Axis':xAxis, 'Y-Axis':yAxis}
dataFrame = pandas.DataFrame(plotData)
return dataFrame
def testGenerateGraphWithAllPositiveNumbers(self, testFileName, stockName):
dataFrame = self.createTestData([0, 1, 2, 3, 4], [3, 5, 1, 2, 6])
subject.generateGraph(predictionFileName = "TestData.csv")
assert os.path.exists(self.testStockName + " Graph.png")
def testGenerateGraphWithSomeBadNumbers(self, testFileName, stockName):
dataFrame = self.createTestData([0, 1, 2, 3, 4], [3, 5, -1, 2, 6])
assert subject.generateGraph(testFileName, dataFrame) == False
| class Graphertester:
def __init__(self):
subject = grapher()
test_file_name = 'TestData.csv'
test_stock_name = 'Test Stock'
test_generate_graph_with_all_positive_numbers(testFileName, testStockName)
def create_test_data(xAxis, yAxis):
plot_data = {'X-Axis': xAxis, 'Y-Axis': yAxis}
data_frame = pandas.DataFrame(plotData)
return dataFrame
def test_generate_graph_with_all_positive_numbers(self, testFileName, stockName):
data_frame = self.createTestData([0, 1, 2, 3, 4], [3, 5, 1, 2, 6])
subject.generateGraph(predictionFileName='TestData.csv')
assert os.path.exists(self.testStockName + ' Graph.png')
def test_generate_graph_with_some_bad_numbers(self, testFileName, stockName):
data_frame = self.createTestData([0, 1, 2, 3, 4], [3, 5, -1, 2, 6])
assert subject.generateGraph(testFileName, dataFrame) == False |
class Policy:
def select_edge(self, board_state, score=None, opp_score=None):
raise NotImplementedError
| class Policy:
def select_edge(self, board_state, score=None, opp_score=None):
raise NotImplementedError |
class ChocolateBoiler:
unique_instance = None
def __new__(cls, *args, **kwargs):
if not cls.unique_instance:
cls.unique_instance = super().__new__(cls, *args, **kwargs)
return cls.unique_instance
def __init__(self):
self.empty = True
self.boiled = False
def is_empty(self):
return self.empty
def is_boiled(self):
return self.boiled
def fill(self):
if self.is_empty():
self.empty = False
self.boiled = False
def drain(self):
if not self.is_empty() and self.is_boiled():
self.empty = True
def boil(self):
if not self.is_empty() and not self.is_boiled():
self.boiled = True
| class Chocolateboiler:
unique_instance = None
def __new__(cls, *args, **kwargs):
if not cls.unique_instance:
cls.unique_instance = super().__new__(cls, *args, **kwargs)
return cls.unique_instance
def __init__(self):
self.empty = True
self.boiled = False
def is_empty(self):
return self.empty
def is_boiled(self):
return self.boiled
def fill(self):
if self.is_empty():
self.empty = False
self.boiled = False
def drain(self):
if not self.is_empty() and self.is_boiled():
self.empty = True
def boil(self):
if not self.is_empty() and (not self.is_boiled()):
self.boiled = True |
class Solution:
def minAvailableDuration(self, slots1: List[List[int]], slots2: List[List[int]], duration: int) -> List[int]:
timeslots = list(filter(lambda x: x[1] - x[0] >= duration, slots1 + slots2))
heapq.heapify(timeslots)
while len(timeslots) > 1:
start1, end1 = heapq.heappop(timeslots)
start2, end2 = timeslots[0]
if end1 >= start2 + duration:
return [start2, start2 + duration]
return [] | class Solution:
def min_available_duration(self, slots1: List[List[int]], slots2: List[List[int]], duration: int) -> List[int]:
timeslots = list(filter(lambda x: x[1] - x[0] >= duration, slots1 + slots2))
heapq.heapify(timeslots)
while len(timeslots) > 1:
(start1, end1) = heapq.heappop(timeslots)
(start2, end2) = timeslots[0]
if end1 >= start2 + duration:
return [start2, start2 + duration]
return [] |
someParameters = input("Please Enter some parameters: ")
def createList(*someParameters):
paramList = []
for add in someParameters:
paramList.append(add)
print(paramList)
return paramList
createList(someParameters)
| some_parameters = input('Please Enter some parameters: ')
def create_list(*someParameters):
param_list = []
for add in someParameters:
paramList.append(add)
print(paramList)
return paramList
create_list(someParameters) |
def first_repeating(n,arr):
#initialize with the minimum index possible
Min = -1
#create a empty dictionary
newSet = dict()
# tranversing the array elments from end
for x in range(n - 1, -1, -1):
#check if the element is already present in the dictionary
#then update min
if arr[x] in newSet.keys():
Min = x
#if element is not present
#add element in the dictionary
else:
newSet[arr[x]] = 1
#print the minimum index of repeating element
if (Min != -1):
print("The first repeating element is",arr[Min])
else:
print("There are no repeating elements")
#Drivers code
arr = [10, 5, 3, 4, 3, 5, 6]
n = len(arr)
print(first_repeating(n,arr))
| def first_repeating(n, arr):
min = -1
new_set = dict()
for x in range(n - 1, -1, -1):
if arr[x] in newSet.keys():
min = x
else:
newSet[arr[x]] = 1
if Min != -1:
print('The first repeating element is', arr[Min])
else:
print('There are no repeating elements')
arr = [10, 5, 3, 4, 3, 5, 6]
n = len(arr)
print(first_repeating(n, arr)) |
SECRET_KEY = 'testing'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.sessions',
'cruditor',
]
# We really don't rely on the urlconf but we need to set a path anyway.
ROOT_URLCONF = 'django.contrib.staticfiles.urls'
STATIC_URL = '/static/'
| secret_key = 'testing'
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}}
installed_apps = ['django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.sessions', 'cruditor']
root_urlconf = 'django.contrib.staticfiles.urls'
static_url = '/static/' |
class Drawable():
def draw(self, screen):
pass
def blit(self, screen):
pass | class Drawable:
def draw(self, screen):
pass
def blit(self, screen):
pass |
# Arke
# User-configurable settings.
# Dirty little seeekrits...
SECRET_KEY='much_sekrit_such_secure_wow'
# Database
# See http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html#database-urls
# With DEBUG defined, this is ignored and a SQLite DB in the root folder is used instead.
# SQLite is probably not the best for production, either...
DB_URL='sqlite:///arke.db'
# Development
DEBUG=True
| secret_key = 'much_sekrit_such_secure_wow'
db_url = 'sqlite:///arke.db'
debug = True |
def n_choose_m_iterator(N, M, startpoint=None):
if startpoint is None:
subscripts = list(range(M))
else:
subscripts = copy.deepcopy(startpoint)
while True:
yield subscripts
off = M - 1
while off > -1:
rev_off = M - off
if subscripts[off] < N - rev_off and off >= 0:
break
off -= 1
if off < 0:
break
subscripts[off] += 1
off += 1
while off < M:
subscripts[off] = subscripts[off - 1] + 1
off += 1
def main():
n = 4
m = 2
for sub in n_choose_m_iterator(n, m):
print(sub)
if __name__ == '__main__':
main()
| def n_choose_m_iterator(N, M, startpoint=None):
if startpoint is None:
subscripts = list(range(M))
else:
subscripts = copy.deepcopy(startpoint)
while True:
yield subscripts
off = M - 1
while off > -1:
rev_off = M - off
if subscripts[off] < N - rev_off and off >= 0:
break
off -= 1
if off < 0:
break
subscripts[off] += 1
off += 1
while off < M:
subscripts[off] = subscripts[off - 1] + 1
off += 1
def main():
n = 4
m = 2
for sub in n_choose_m_iterator(n, m):
print(sub)
if __name__ == '__main__':
main() |
#Author wangheng
class Solution:
def isNStraightHand(self, hand, W):
c = collections.Counter(hand)
for i in sorted(c):
if c[i] > 0:
for j in range(W)[::-1]:
c[i + j] -= c[i]
if c[i + j] < 0:
return False
return True | class Solution:
def is_n_straight_hand(self, hand, W):
c = collections.Counter(hand)
for i in sorted(c):
if c[i] > 0:
for j in range(W)[::-1]:
c[i + j] -= c[i]
if c[i + j] < 0:
return False
return True |
class EnumMeta(type):
base = False
def __new__(cls, name, bases, kw):
klass = type.__new__(cls, name, bases, kw)
if not EnumMeta.base:
EnumMeta.base = True
return klass
return klass()
class Enum(metaclass=EnumMeta):
def __getitem__(self, key):
if isinstance(key, int):
for k in dir(self):
if len(k)==2:
if getattr(self, k)==key:
return k
return self.__missing__(key)
return getattr(self, key, self.__missing__(key))
def __missing__(self, key):
return None
class chatCommu(Enum):
en = 1
fr = 2
ru = 3
br = 4
es = 5
cn = 6
tr = 7
vk = 8
pl = 9
hu = 10
nl = 11
ro = 12
id = 13
de = 14
e2 = 15
ar = 16
ph = 17
lt = 18
jp = 19
fi = 21
cz = 22
hr = 23
bg = 25
lv = 26
he = 27
it = 28
pt = 31
def __missing__(self, key):
if isinstance(key, int):
return 'int'
return 1
class commu(Enum):
en = 0
fr = 1
br = 2
es = 3
cn = 4
tr = 5
vk = 6
pl = 7
hu = 8
nl = 9
ro = 10
id = 11
de = 12
e2 = 13
ar = 14
ph = 15
lt = 16
jp = 17
ch = 18
fi = 19
cz = 20
sk = 21
hr = 22
bu = 23
lv = 24
he = 25
it = 26
et = 27
az = 28
pt = 29
def __missing__(self, key):
if isinstance(key, int):
return 'int'
return 0 | class Enummeta(type):
base = False
def __new__(cls, name, bases, kw):
klass = type.__new__(cls, name, bases, kw)
if not EnumMeta.base:
EnumMeta.base = True
return klass
return klass()
class Enum(metaclass=EnumMeta):
def __getitem__(self, key):
if isinstance(key, int):
for k in dir(self):
if len(k) == 2:
if getattr(self, k) == key:
return k
return self.__missing__(key)
return getattr(self, key, self.__missing__(key))
def __missing__(self, key):
return None
class Chatcommu(Enum):
en = 1
fr = 2
ru = 3
br = 4
es = 5
cn = 6
tr = 7
vk = 8
pl = 9
hu = 10
nl = 11
ro = 12
id = 13
de = 14
e2 = 15
ar = 16
ph = 17
lt = 18
jp = 19
fi = 21
cz = 22
hr = 23
bg = 25
lv = 26
he = 27
it = 28
pt = 31
def __missing__(self, key):
if isinstance(key, int):
return 'int'
return 1
class Commu(Enum):
en = 0
fr = 1
br = 2
es = 3
cn = 4
tr = 5
vk = 6
pl = 7
hu = 8
nl = 9
ro = 10
id = 11
de = 12
e2 = 13
ar = 14
ph = 15
lt = 16
jp = 17
ch = 18
fi = 19
cz = 20
sk = 21
hr = 22
bu = 23
lv = 24
he = 25
it = 26
et = 27
az = 28
pt = 29
def __missing__(self, key):
if isinstance(key, int):
return 'int'
return 0 |
#
#.. create syth_test.geo file form this file
#
# python3 mkSyntheticGeoData2D.py test
#
#.. create 3D mesh syth_testmesh.msh
#
# gmsh -3 -format msh2 -o syth_testmesh.msh syth_test.geo
#
#.. run for synthetic data
#
# python3 mkSyntheticData2D.py -s synth -g -m test
#
# creating test_grav.nc and test_mag.nc
#
# next step is start the inversion process:
#
# python3 mkGeoFromNc.py -c 60 -p 60 -h 1. -P benchmark1 -g test_grav.nc -m test_mag.nc
#
project="test"
km=1000.
gravfile=project+"_grav1Noise.nc"
magfile=project+"_mag1Noise.nc"
#
# It is assumed that the XY-data arrays are flat and parallel to the surface at a given height and
# corresponding data are not changing vertically across a thin layer.
#
# .... these are the horizontal coordinates of the lower-left (south-west) end of the data array in the mesh [m]:
DataRefX=0.0
DataRefY=0.0
# ... this is the height of the grav and magnetic data above ground [m] (can be zero)
DataHeightAboveGround=0*km
# .... this total extent of the data array [m]:(total length of the array)
#DataSpacingX=1*km
#DataSpacingY=1*km
LDataY=40*km
LDataX=70*km
# ... number of data points in east-west (X) and north-south (Y) direction:
DataNumX=141
DataNumY=81
# Note: the resolution specified here should roughly match the resolution of the actual data as input data are interpolated to the resolution in the mesh
# ... this is the "thickness" of the data array = the thickness of the vertical layer.
DataMeshSizeVertical=0.5*km
# ... this is the thickness of region below the data area. In essence it defines the depth of the inversion
CoreThickness=60*km
# ... there is also an air layer and this is its thickness [m] (no updates for density and magnetization here)
AirLayerThickness=30*km
# ... there is padding around the core and air layer. For the subsurface there will be updates in padding region but not for the air layer
PaddingAir=60000.0
PaddingX=60000.0
PaddingY=60000.0
PaddingZ=60000.0
# ... these are factors by which the DataMeshSizeVertical is raised in the air layer and in the core.
MeshSizeAirFactor=10
MeshSizeCoreFactor=5
# ... these are factors by which the core and air layer mesh size are raised for the padding zone.
MeshSizePaddingFactor=5
# name of the mesh file (gmsh 3 file format)
meshfile=project+'mesh.msh'
B_hx = 45000.0 # background magnetic field in nT x direction
B_hz = 0.0 # background magnetic field in nT y direction
B_hy = 0.0 # background magnetic field in nT z direction
#
# this defines the assumed true density and magnetization:
#
s1={ 'xc' : LDataX/3, 'yc' : LDataY/3, 'zc' : -CoreThickness*0.145, 'r' : 8*km }
s2={ 'xc' : 2*LDataX/3, 'yc' : 2*LDataY/3, 'zc' : -CoreThickness*0.11, 'r' : 6*km }
# ... 500 kg/m^3 over the union of sphere 1 and 2
true_density = [(-320, [s1]),(500, [s2]) ]
# ... 0.1 on sphere 1 and 0.03 on sphere 2:
true_magnetization= [ ( 0.16, [s1]), (-0.25, [s2])]
noise=5
| project = 'test'
km = 1000.0
gravfile = project + '_grav1Noise.nc'
magfile = project + '_mag1Noise.nc'
data_ref_x = 0.0
data_ref_y = 0.0
data_height_above_ground = 0 * km
l_data_y = 40 * km
l_data_x = 70 * km
data_num_x = 141
data_num_y = 81
data_mesh_size_vertical = 0.5 * km
core_thickness = 60 * km
air_layer_thickness = 30 * km
padding_air = 60000.0
padding_x = 60000.0
padding_y = 60000.0
padding_z = 60000.0
mesh_size_air_factor = 10
mesh_size_core_factor = 5
mesh_size_padding_factor = 5
meshfile = project + 'mesh.msh'
b_hx = 45000.0
b_hz = 0.0
b_hy = 0.0
s1 = {'xc': LDataX / 3, 'yc': LDataY / 3, 'zc': -CoreThickness * 0.145, 'r': 8 * km}
s2 = {'xc': 2 * LDataX / 3, 'yc': 2 * LDataY / 3, 'zc': -CoreThickness * 0.11, 'r': 6 * km}
true_density = [(-320, [s1]), (500, [s2])]
true_magnetization = [(0.16, [s1]), (-0.25, [s2])]
noise = 5 |
class Item:
def __init__(self, id, quantity, price):
self.__product_id = id
self.__quantity = quantity
self.__price = price
def update_quantity(self, quantity):
None
class ShoppingCart:
def __init__(self):
self.__items = []
def add_item(self, item):
None
def remove_item(self, item):
None
def update_item_quantity(self, item, quantity):
None
def get_items(self):
return self.__items
def checkout(self):
None
class OrderLog:
def __init__(self, order_number, status=OrderStatus.PENDING):
self.__order_number = order_number
self.__creation_date = datetime.date.today()
self.__status = status
class Order:
def __init__(self, order_number, status=OrderStatus.PENDING):
self.__order_number = 0
self.__status = status
self.__order_date = datetime.date.today()
self.__order_log = []
def send_for_shipment(self):
None
def make_payment(self, payment):
None
def add_order_log(self, order_log):
None | class Item:
def __init__(self, id, quantity, price):
self.__product_id = id
self.__quantity = quantity
self.__price = price
def update_quantity(self, quantity):
None
class Shoppingcart:
def __init__(self):
self.__items = []
def add_item(self, item):
None
def remove_item(self, item):
None
def update_item_quantity(self, item, quantity):
None
def get_items(self):
return self.__items
def checkout(self):
None
class Orderlog:
def __init__(self, order_number, status=OrderStatus.PENDING):
self.__order_number = order_number
self.__creation_date = datetime.date.today()
self.__status = status
class Order:
def __init__(self, order_number, status=OrderStatus.PENDING):
self.__order_number = 0
self.__status = status
self.__order_date = datetime.date.today()
self.__order_log = []
def send_for_shipment(self):
None
def make_payment(self, payment):
None
def add_order_log(self, order_log):
None |
a = [1,2,3]
print(a)
a.append(5)
print(a)
list1=[1,2,3,4,5]
list2=['rambutan','langsa','salak','durian','apel']
list1.extend(list2)
c = [1,2,3]
print(c)
c.insert(0,12)
print(c)
### Perbedaan antara fungsi Append,extend,dan insert
# append berfungsi untuk menambahkan elemen ke daftar
# extend berfungsi untuk memperpanjang daftar dengan menambahkan elemen dari iterable
# insert berfungsi untuk menyisipkan data baru di tengah araay list
## fungsi reverse dan sort
# fungsi reversed() berfungsi untuk menghasilkan iterator yang berisi kembalikan dari suatu sequence sedangkan sort berfungsi untuk mengurutkan suatu iterabel baik secara naik maupun turun
### contoh kodenya dari reverse
def reverse(string):
reverse_string = ""
for i in string:
reverse_string = i+reversed_string
print("reversed string is:",reversed_string)
string = input("enter a string:")
print("enterd string",string)
reverse(string)
### contoh kode dari sort
pylist = ['e','a','u','i','o']
word = 'python'
print(sorted(pylist))
print(sorted(word))
print(sorted(pylist, reverse=True))
def takesecond(elem):
return elem[1]
random = [(2,2), (3,4), (4,1), (1,3)]
sortedlist = sorted(random, key
=takesecond)
print('sorted list:', sortedlist)
| a = [1, 2, 3]
print(a)
a.append(5)
print(a)
list1 = [1, 2, 3, 4, 5]
list2 = ['rambutan', 'langsa', 'salak', 'durian', 'apel']
list1.extend(list2)
c = [1, 2, 3]
print(c)
c.insert(0, 12)
print(c)
def reverse(string):
reverse_string = ''
for i in string:
reverse_string = i + reversed_string
print('reversed string is:', reversed_string)
string = input('enter a string:')
print('enterd string', string)
reverse(string)
pylist = ['e', 'a', 'u', 'i', 'o']
word = 'python'
print(sorted(pylist))
print(sorted(word))
print(sorted(pylist, reverse=True))
def takesecond(elem):
return elem[1]
random = [(2, 2), (3, 4), (4, 1), (1, 3)]
sortedlist = sorted(random, key=takesecond)
print('sorted list:', sortedlist) |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def averageOfLevels(self, root: TreeNode) -> List[float]:
queue, levelsData, result = deque([(root, 0)]), defaultdict(lambda : (0, 0)), []
while queue:
node, level = queue.popleft()
if node:
currentSum, currentCount = levelsData[level]
currentSum += node.val
currentCount += 1
levelsData[level] = (currentSum, currentCount)
if node.left:
queue.append((node.left, level + 1))
if node.right:
queue.append((node.right, level + 1))
for key in sorted(levelsData.keys()):
result.append(levelsData[key][0] / levelsData[key][1])
return result | class Solution:
def average_of_levels(self, root: TreeNode) -> List[float]:
(queue, levels_data, result) = (deque([(root, 0)]), defaultdict(lambda : (0, 0)), [])
while queue:
(node, level) = queue.popleft()
if node:
(current_sum, current_count) = levelsData[level]
current_sum += node.val
current_count += 1
levelsData[level] = (currentSum, currentCount)
if node.left:
queue.append((node.left, level + 1))
if node.right:
queue.append((node.right, level + 1))
for key in sorted(levelsData.keys()):
result.append(levelsData[key][0] / levelsData[key][1])
return result |
af = list(b"\x13\x13\x11\x17\x12\x1d\x48\x45\x45\x41\x0b\x26\x2c\x42\x5f\x09\x0b\x5f\x6c\x3d\x56\x56\x1b\x54\x5f\x41\x45\x29\x3c\x0b\x5c\x58\x00\x5f\x5d\x09\x54\x6c\x2a\x40\x06\x06\x6a\x27\x48\x42\x5f\x4b\x56\x42\x2d\x2c\x43\x5d\x5e\x6c\x2d\x41\x07\x47\x43\x5e\x31\x6b\x5a\x0a\x3b\x6e\x1c\x49\x54\x5e\x1a\x2b\x34\x05\x5e\x47\x28\x28\x1f\x11\x26\x3b\x07\x50\x04\x06\x04\x0d\x0b\x05\x03\x48\x77\x0a")
flag = "r"
char = "r"
for stuff in af:
flag += chr(ord(char) ^ stuff)
char = flag[-1]
print(flag)
| af = list(b"\x13\x13\x11\x17\x12\x1dHEEA\x0b&,B_\t\x0b_l=VV\x1bT_AE)<\x0b\\X\x00_]\tTl*@\x06\x06j'HB_KVB-,C]^l-A\x07GC^1kZ\n;n\x1cIT^\x1a+4\x05^G((\x1f\x11&;\x07P\x04\x06\x04\r\x0b\x05\x03Hw\n")
flag = 'r'
char = 'r'
for stuff in af:
flag += chr(ord(char) ^ stuff)
char = flag[-1]
print(flag) |
I = input("Enter the string: ")
S = I.upper()
freq = {}
for i in I:
if i != " ":
if i in freq:
freq[i] += 1
else:
freq[i] = 1
print(freq)
| i = input('Enter the string: ')
s = I.upper()
freq = {}
for i in I:
if i != ' ':
if i in freq:
freq[i] += 1
else:
freq[i] = 1
print(freq) |
# exc. 7.2.4
def seven_boom(end_number):
my_list = []
for i in range(0, end_number + 1):
s = str(i)
if '7' in s or i % 7 == 0:
my_list += ['BOOM']
else:
my_list += [i]
print(my_list)
def main():
end_number = 17
seven_boom(end_number)
if __name__ == "__main__":
main()
| def seven_boom(end_number):
my_list = []
for i in range(0, end_number + 1):
s = str(i)
if '7' in s or i % 7 == 0:
my_list += ['BOOM']
else:
my_list += [i]
print(my_list)
def main():
end_number = 17
seven_boom(end_number)
if __name__ == '__main__':
main() |
def main():
# input
N, K = map(int, input().split())
# compute
def twoN(a: int):
if a%200 == 0:
a = int(a/200)
else:
a = int(str(a) + "200")
return a
for i in range(K):
N = twoN(N)
# output
print(N)
if __name__ == '__main__':
main()
| def main():
(n, k) = map(int, input().split())
def two_n(a: int):
if a % 200 == 0:
a = int(a / 200)
else:
a = int(str(a) + '200')
return a
for i in range(K):
n = two_n(N)
print(N)
if __name__ == '__main__':
main() |
def increment_by_one(x):
return x + 1
def test_increment_by_one():
assert increment_by_one(3) == 4
| def increment_by_one(x):
return x + 1
def test_increment_by_one():
assert increment_by_one(3) == 4 |
class CTDConfig(object):
def __init__(self, createStationPlot,
createTSPlot,
createContourPlot,
createTimeseriesPlot,
binDataWriteToNetCDF,
describeStation,
createHistoricalTimeseries,
showStats,
plotStationMap,
tempName,
saltName,
oxName,
ftuName,
oxsatName,
refdate,
selected_depths,
write_to_excel,
survey=None,
conductivity_to_salinity=False,
calculate_depth_from_pressure=False,
debug=False):
self.createStationPlot = createStationPlot
self.createTSPlot = createTSPlot
self.createContourPlot = createContourPlot
self.createTimeseriesPlot = createTimeseriesPlot
self.binDataWriteToNetCDF = binDataWriteToNetCDF
self.describeStation = describeStation
self.showStats = showStats
self.plotStationMap = plotStationMap
self.useDowncast = None
self.tempName = tempName
self.saltName = saltName
self.oxName = oxName
self.ftuName = ftuName
self.oxsatName = oxsatName
self.refdate = refdate
self.calculate_depth_from_pressure = calculate_depth_from_pressure
self.conductivity_to_salinity = conductivity_to_salinity
self.debug=debug
self.survey=survey
self.write_to_excel=write_to_excel
self.projectname=None
self.selected_depths=selected_depths
self.mgperliter_to_mlperliter=0.7
self.createHistoricalTimeseries=createHistoricalTimeseries
| class Ctdconfig(object):
def __init__(self, createStationPlot, createTSPlot, createContourPlot, createTimeseriesPlot, binDataWriteToNetCDF, describeStation, createHistoricalTimeseries, showStats, plotStationMap, tempName, saltName, oxName, ftuName, oxsatName, refdate, selected_depths, write_to_excel, survey=None, conductivity_to_salinity=False, calculate_depth_from_pressure=False, debug=False):
self.createStationPlot = createStationPlot
self.createTSPlot = createTSPlot
self.createContourPlot = createContourPlot
self.createTimeseriesPlot = createTimeseriesPlot
self.binDataWriteToNetCDF = binDataWriteToNetCDF
self.describeStation = describeStation
self.showStats = showStats
self.plotStationMap = plotStationMap
self.useDowncast = None
self.tempName = tempName
self.saltName = saltName
self.oxName = oxName
self.ftuName = ftuName
self.oxsatName = oxsatName
self.refdate = refdate
self.calculate_depth_from_pressure = calculate_depth_from_pressure
self.conductivity_to_salinity = conductivity_to_salinity
self.debug = debug
self.survey = survey
self.write_to_excel = write_to_excel
self.projectname = None
self.selected_depths = selected_depths
self.mgperliter_to_mlperliter = 0.7
self.createHistoricalTimeseries = createHistoricalTimeseries |
##Generalize orienteering contours=name
##maximumdistancebetweentheoriginalandthesimplifiedcurvedouglaspeuckeralgorithm=number4
##contours=vector
##min=string37
##generalizecontours=output vector
outputs_QGISFIELDCALCULATOR_1=processing.runalg('qgis:fieldcalculator', contours,'length',0,10.0,2.0,True,'round($length,2)',None)
outputs_QGISEXTRACTBYATTRIBUTE_1=processing.runalg('qgis:extractbyattribute', outputs_QGISFIELDCALCULATOR_1['OUTPUT_LAYER'],'length',3,min,None)
outputs_GRASS7V.GENERALIZE.SIMPLIFY_1=processing.runalg('grass7:v.generalize.simplify', outputs_QGISEXTRACTBYATTRIBUTE_1['OUTPUT'],0,maximumdistancebetweentheoriginalandthesimplifiedcurvedouglaspeuckeralgorithm,7.0,50.0,False,True,None,-1.0,0.0001,0,None)
outputs_QGISDELETECOLUMN_1=processing.runalg('qgis:deletecolumn', outputs_GRASS7V.GENERALIZE.SIMPLIFY_1['output'],'length',generalizecontours) | outputs_qgisfieldcalculator_1 = processing.runalg('qgis:fieldcalculator', contours, 'length', 0, 10.0, 2.0, True, 'round($length,2)', None)
outputs_qgisextractbyattribute_1 = processing.runalg('qgis:extractbyattribute', outputs_QGISFIELDCALCULATOR_1['OUTPUT_LAYER'], 'length', 3, min, None)
outputs_GRASS7V.GENERALIZE.SIMPLIFY_1 = processing.runalg('grass7:v.generalize.simplify', outputs_QGISEXTRACTBYATTRIBUTE_1['OUTPUT'], 0, maximumdistancebetweentheoriginalandthesimplifiedcurvedouglaspeuckeralgorithm, 7.0, 50.0, False, True, None, -1.0, 0.0001, 0, None)
outputs_qgisdeletecolumn_1 = processing.runalg('qgis:deletecolumn', outputs_GRASS7V.GENERALIZE.SIMPLIFY_1['output'], 'length', generalizecontours) |
# model settings
norm_cfg = dict(type='SyncBN', requires_grad=True)
# norm_cfg = dict(type='BN', requires_grad=True)
model = dict(
type='EncoderDecoder',
pretrained='open-mmlab://resnet18_v1c',
backbone=dict(
type='BiseNetV1',
base_model='ResNetV1c',
depth=18,
out_indices=(0, 1, 2),
with_sp=False, # using the Spatial Path or not
# dilations=(1, 1, 1, 1), # no dilations in BiseNet, so this line can be annotated
# strides=(1, 2, 1, 1), # need downsample for regular resnet, so this line can be annotated
norm_cfg=norm_cfg,
align_corners=False),
decode_head=dict(
type='FCNHead',
in_index=-1, # Backbone stage index
in_channels=256,
channels=256,
num_convs=1,
concat_input=False,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
loss_decode=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
auxiliary_head=[
dict(
type='FCNHead',
in_index=-2,
in_channels=128,
channels=64,
num_convs=1,
concat_input=False,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
loss_decode=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
dict(
type='FCNHead',
in_index=-3,
in_channels=128,
channels=64,
num_convs=1,
concat_input=False,
dropout_ratio=0.1,
num_classes=19,
norm_cfg=norm_cfg,
align_corners=False,
loss_decode=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
],
# model training and testing settings
train_cfg=dict(),
test_cfg=dict(mode='whole'))
| norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(type='EncoderDecoder', pretrained='open-mmlab://resnet18_v1c', backbone=dict(type='BiseNetV1', base_model='ResNetV1c', depth=18, out_indices=(0, 1, 2), with_sp=False, norm_cfg=norm_cfg, align_corners=False), decode_head=dict(type='FCNHead', in_index=-1, in_channels=256, channels=256, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=19, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), auxiliary_head=[dict(type='FCNHead', in_index=-2, in_channels=128, channels=64, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=19, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), dict(type='FCNHead', in_index=-3, in_channels=128, channels=64, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=19, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict(type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0))], train_cfg=dict(), test_cfg=dict(mode='whole')) |
#For packaging
'''
Users api handles JWT auth for users
'''
| """
Users api handles JWT auth for users
""" |
def run(params={}):
return {
'project_name': 'Core',
'bitcode': True,
'min_version': '9.0',
'enable_arc': True,
'enable_visibility': True,
'conan_profile': 'ezored_ios_framework_profile',
'archs': [
{'arch': 'armv7', 'conan_arch': 'armv7', 'platform': 'OS'},
{'arch': 'armv7s', 'conan_arch': 'armv7s', 'platform': 'OS'},
{'arch': 'arm64', 'conan_arch': 'armv8', 'platform': 'OS64'},
{'arch': 'arm64e', 'conan_arch': 'armv8.3', 'platform': 'OS64'},
{'arch': 'x86_64', 'conan_arch': 'x86_64', 'platform': 'SIMULATOR64'},
],
'build_types': ['Debug', 'Release'],
'install_headers': [
{
'type': 'dir',
'path': 'files/djinni/001-app-domain/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/002-app-core/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/003-app-data-services/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/004-app-system-service/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/005-app-helpers/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/datetime/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/file-helper/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/httpclient/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/shared-data/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/logger/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/djinni/string-helper/generated-src/objc',
},
{
'type': 'dir',
'path': 'files/src/file-helper/objc',
},
{
'type': 'dir',
'path': 'files/src/httpclient/objc',
},
{
'type': 'dir',
'path': 'files/src/logger/objc',
},
{
'type': 'dir',
'path': 'files/src/shared-data/objc',
},
]
}
| def run(params={}):
return {'project_name': 'Core', 'bitcode': True, 'min_version': '9.0', 'enable_arc': True, 'enable_visibility': True, 'conan_profile': 'ezored_ios_framework_profile', 'archs': [{'arch': 'armv7', 'conan_arch': 'armv7', 'platform': 'OS'}, {'arch': 'armv7s', 'conan_arch': 'armv7s', 'platform': 'OS'}, {'arch': 'arm64', 'conan_arch': 'armv8', 'platform': 'OS64'}, {'arch': 'arm64e', 'conan_arch': 'armv8.3', 'platform': 'OS64'}, {'arch': 'x86_64', 'conan_arch': 'x86_64', 'platform': 'SIMULATOR64'}], 'build_types': ['Debug', 'Release'], 'install_headers': [{'type': 'dir', 'path': 'files/djinni/001-app-domain/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/002-app-core/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/003-app-data-services/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/004-app-system-service/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/005-app-helpers/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/datetime/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/file-helper/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/httpclient/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/shared-data/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/logger/generated-src/objc'}, {'type': 'dir', 'path': 'files/djinni/string-helper/generated-src/objc'}, {'type': 'dir', 'path': 'files/src/file-helper/objc'}, {'type': 'dir', 'path': 'files/src/httpclient/objc'}, {'type': 'dir', 'path': 'files/src/logger/objc'}, {'type': 'dir', 'path': 'files/src/shared-data/objc'}]} |
'''
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: 121
Output: true
Example 2:
Input: -121
Output: false
Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.
Example 3:
Input: 10
Output: false
Explanation: Reads 01 from right to left. Therefore it is not a palindrome.
Follow up:
Coud you solve it without converting the integer to a string?
'''
class Solution:
def isPalindrome(self, x: int) -> bool:
y = str(x)
if y == y[::-1]:
return True
else:
return False
class Solution:
def isPalindrome(self, x: int) -> bool:
if x < 0:
return False
y = 0
count = 1
a = x
while a != 0:
temp = a%10
a = a // 10
y = 10 * y + temp
if y == x:
return True
else:
return False
| """
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: 121
Output: true
Example 2:
Input: -121
Output: false
Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.
Example 3:
Input: 10
Output: false
Explanation: Reads 01 from right to left. Therefore it is not a palindrome.
Follow up:
Coud you solve it without converting the integer to a string?
"""
class Solution:
def is_palindrome(self, x: int) -> bool:
y = str(x)
if y == y[::-1]:
return True
else:
return False
class Solution:
def is_palindrome(self, x: int) -> bool:
if x < 0:
return False
y = 0
count = 1
a = x
while a != 0:
temp = a % 10
a = a // 10
y = 10 * y + temp
if y == x:
return True
else:
return False |
def longestDigitsPrefix(inputString):
# iterate through the string
arr = ''
for i in inputString:
if i.isdigit():
arr += i
else:
break
return arr | def longest_digits_prefix(inputString):
arr = ''
for i in inputString:
if i.isdigit():
arr += i
else:
break
return arr |
class Error:
none_or_invalid_attribute = "main attributes should have value."
unacceptable_json = "json input has unacceptable format."
unacceptable_object_type = "object has unacceptable type"
| class Error:
none_or_invalid_attribute = 'main attributes should have value.'
unacceptable_json = 'json input has unacceptable format.'
unacceptable_object_type = 'object has unacceptable type' |
def decimalni_zapis(deljenec, delitelj):
memo = set()
decimalni_zapis = ''
while (deljenec, delitelj) not in memo:
if deljenec % delitelj == 0:
decimalni_zapis += str(deljenec // delitelj)
return decimalni_zapis, deljenec, delitelj
elif deljenec < delitelj:
decimalni_zapis += '0'
memo.add((deljenec, delitelj))
deljenec *= 10
else:
decimalni_zapis += str(deljenec // delitelj)
memo.add((deljenec, delitelj))
deljenec = deljenec % delitelj * 10
return decimalni_zapis
# def je_prastevilo(n):
# if n < 2 or n == 4 or n == 6 or n == 8:
# return False
# i = 3
# while i*i <= n:
# if n % i == 0 or n % 2 == 0:
# return False
# i += 2
# return True
slovar = dict()
for i in range(2, 1000):
slovar[i] = len(decimalni_zapis(1, i))
# for stevilo in range(1, 10 ** 6):
# if len(decimalni_zapis(1, stevilo)) == stevilo:
# print(stevilo)
print(max(slovar, key=slovar.get)) | def decimalni_zapis(deljenec, delitelj):
memo = set()
decimalni_zapis = ''
while (deljenec, delitelj) not in memo:
if deljenec % delitelj == 0:
decimalni_zapis += str(deljenec // delitelj)
return (decimalni_zapis, deljenec, delitelj)
elif deljenec < delitelj:
decimalni_zapis += '0'
memo.add((deljenec, delitelj))
deljenec *= 10
else:
decimalni_zapis += str(deljenec // delitelj)
memo.add((deljenec, delitelj))
deljenec = deljenec % delitelj * 10
return decimalni_zapis
slovar = dict()
for i in range(2, 1000):
slovar[i] = len(decimalni_zapis(1, i))
print(max(slovar, key=slovar.get)) |
#!/usr/bin/python3
bridgera = ['Arijit','Soumya','Gunjan','Arptia','Bishwa','Rintu','Satya','Lelin']
# Generator Function iterarates through all items of array
def gen_func(data):
for i in range(len(data)):
yield data[i]
data_gen = list(gen_func(bridgera))
print (data_gen)
# Normal Function iterates through only first item of array
def norm_func(data):
for i in range(len(data)):
return data[i]
norm_gen = list(norm_func(bridgera))
print (norm_gen) | bridgera = ['Arijit', 'Soumya', 'Gunjan', 'Arptia', 'Bishwa', 'Rintu', 'Satya', 'Lelin']
def gen_func(data):
for i in range(len(data)):
yield data[i]
data_gen = list(gen_func(bridgera))
print(data_gen)
def norm_func(data):
for i in range(len(data)):
return data[i]
norm_gen = list(norm_func(bridgera))
print(norm_gen) |
#implicit type conversion
num1 = 12
num2= 13.5
num3 = num1 + num2
print(type(num1))
print(type(num2))
print(num3)
print(type(num3))
| num1 = 12
num2 = 13.5
num3 = num1 + num2
print(type(num1))
print(type(num2))
print(num3)
print(type(num3)) |
load("@rules_cuda//cuda:defs.bzl", "cuda_library")
NVCC_COPTS = ["--expt-relaxed-constexpr", "--expt-extended-lambda"]
def cu_library(name, srcs, copts = [], **kwargs):
cuda_library(name, srcs = srcs, copts = NVCC_COPTS + copts, **kwargs)
| load('@rules_cuda//cuda:defs.bzl', 'cuda_library')
nvcc_copts = ['--expt-relaxed-constexpr', '--expt-extended-lambda']
def cu_library(name, srcs, copts=[], **kwargs):
cuda_library(name, srcs=srcs, copts=NVCC_COPTS + copts, **kwargs) |
'''
Author: jianzhnie
Date: 2022-03-04 17:13:55
LastEditTime: 2022-03-04 17:13:55
LastEditors: jianzhnie
Description:
'''
| """
Author: jianzhnie
Date: 2022-03-04 17:13:55
LastEditTime: 2022-03-04 17:13:55
LastEditors: jianzhnie
Description:
""" |
#!/usr/bin/env python3
#: Program Purpose:
#: Read an integer N. For all non-negative integers i < N
#: print i * i.
#:
#: Program Author: Happi Yvan <[email protected]
#: Program Date : 11/04/2019 (mm/dd/yyyy)
def process(int_val):
for x in range(int_val):
print(x * x)
def main():
val = int(input())
process(val)
if __name__ == '__main__':
main() | def process(int_val):
for x in range(int_val):
print(x * x)
def main():
val = int(input())
process(val)
if __name__ == '__main__':
main() |
def names(name_list):
with open('textfile3.txt', 'w') as myfile:
myfile.writelines(name_list)
myfile.close()
print(name_list)
menu()
def display_name(n):
with open('textfile3.txt', 'r') as myfile:
name_list = myfile.readlines()
print(name_list[n-1])
return namelist[n-1]
def display_s():
with open('textfile3.txt', 'r') as myfile:
name_list = myfile.readlines()
for i in name_list:
if i[0] in ["s", "S"]:
print('the name/names that starts with an s is ', i)
def append_to_list(n):
global namelist
name_list = []
for i in range(n):
name_to_append = str(
input("enter the name you want to append(add) to the list "))
name_list.append(name_to_append)
name_list.append('\n')
namelist.append(name_to_append)
namelist.append('\n')
with open('textfile3.txt', 'a') as myfile:
myfile.writelines(name_list)
for i in range(0, len(namelist), 2):
print(namelist[i])
print('are the names in order ')
def menu():
print("----------------------- menu to choose function ------------------------")
print("enter your choice")
print("enter 1 to display the nth name ")
print("enter 2 to display names starting with s ")
print("enter 3 to add/append more names ")
print("if you want to execute all be my guest enter 4 ")
x = int(input("enter choice "))
try:
if x == 1:
index = int(input("enter the index to display name "))
try:
display_name(index)
except:
print("enter an index in range")
if x == 2:
display_s()
if x == 3:
number_of_names_to_append = int(
input("enter how many names you want to add "))
append_to_list(number_of_names_to_append)
if x == 4:
pass
except:
print("TRY AGAIN", "\n", "please enter a valid option")
if x == 4:
for i in range(1, 4):
x = i
if x == 1:
index = int(input("enter the index to display name "))
try:
display_name(index)
except:
print("enter an index in range")
if x == 2:
display_s()
if x == 3:
number_of_names_to_append = int(
input("enter how many names you want to add "))
append_to_list(number_of_names_to_append)
namelist = []
x = int(input("enter number of names to enter in list "))
for i in range(x):
n = str(input("enter the list element "))
namelist.append(n)
namelist.append('\n')
names(namelist)
| def names(name_list):
with open('textfile3.txt', 'w') as myfile:
myfile.writelines(name_list)
myfile.close()
print(name_list)
menu()
def display_name(n):
with open('textfile3.txt', 'r') as myfile:
name_list = myfile.readlines()
print(name_list[n - 1])
return namelist[n - 1]
def display_s():
with open('textfile3.txt', 'r') as myfile:
name_list = myfile.readlines()
for i in name_list:
if i[0] in ['s', 'S']:
print('the name/names that starts with an s is ', i)
def append_to_list(n):
global namelist
name_list = []
for i in range(n):
name_to_append = str(input('enter the name you want to append(add) to the list '))
name_list.append(name_to_append)
name_list.append('\n')
namelist.append(name_to_append)
namelist.append('\n')
with open('textfile3.txt', 'a') as myfile:
myfile.writelines(name_list)
for i in range(0, len(namelist), 2):
print(namelist[i])
print('are the names in order ')
def menu():
print('----------------------- menu to choose function ------------------------')
print('enter your choice')
print('enter 1 to display the nth name ')
print('enter 2 to display names starting with s ')
print('enter 3 to add/append more names ')
print('if you want to execute all be my guest enter 4 ')
x = int(input('enter choice '))
try:
if x == 1:
index = int(input('enter the index to display name '))
try:
display_name(index)
except:
print('enter an index in range')
if x == 2:
display_s()
if x == 3:
number_of_names_to_append = int(input('enter how many names you want to add '))
append_to_list(number_of_names_to_append)
if x == 4:
pass
except:
print('TRY AGAIN', '\n', 'please enter a valid option')
if x == 4:
for i in range(1, 4):
x = i
if x == 1:
index = int(input('enter the index to display name '))
try:
display_name(index)
except:
print('enter an index in range')
if x == 2:
display_s()
if x == 3:
number_of_names_to_append = int(input('enter how many names you want to add '))
append_to_list(number_of_names_to_append)
namelist = []
x = int(input('enter number of names to enter in list '))
for i in range(x):
n = str(input('enter the list element '))
namelist.append(n)
namelist.append('\n')
names(namelist) |
n = int(input())
even_numbers_set = set()
odd_numbers_set = set()
for current_iteration_count in range(1, n+1):
name = input()
current_sum = sum([ord(el) for el in name]) // current_iteration_count
if current_sum % 2 == 0:
even_numbers_set.add(current_sum)
else:
odd_numbers_set.add(current_sum)
sum_evens = sum(even_numbers_set)
sum_odds = sum(odd_numbers_set)
if sum_evens == sum_odds:
modified_set = [str(el) for el in odd_numbers_set.union(even_numbers_set)]
print(f", ".join(modified_set))
if sum_odds > sum_evens:
modified_set = [str(el) for el in odd_numbers_set.difference(even_numbers_set)]
print(f", ".join(modified_set))
if sum_evens > sum_odds:
modified_set = [str(el) for el in odd_numbers_set.symmetric_difference(even_numbers_set)]
print(f", ".join(modified_set))
| n = int(input())
even_numbers_set = set()
odd_numbers_set = set()
for current_iteration_count in range(1, n + 1):
name = input()
current_sum = sum([ord(el) for el in name]) // current_iteration_count
if current_sum % 2 == 0:
even_numbers_set.add(current_sum)
else:
odd_numbers_set.add(current_sum)
sum_evens = sum(even_numbers_set)
sum_odds = sum(odd_numbers_set)
if sum_evens == sum_odds:
modified_set = [str(el) for el in odd_numbers_set.union(even_numbers_set)]
print(f', '.join(modified_set))
if sum_odds > sum_evens:
modified_set = [str(el) for el in odd_numbers_set.difference(even_numbers_set)]
print(f', '.join(modified_set))
if sum_evens > sum_odds:
modified_set = [str(el) for el in odd_numbers_set.symmetric_difference(even_numbers_set)]
print(f', '.join(modified_set)) |
num = int(input("Numero: "))
for i in range(1,13):
m = num * i
print(num,"X",i,"=",m) | num = int(input('Numero: '))
for i in range(1, 13):
m = num * i
print(num, 'X', i, '=', m) |
# function type
class function(object):
def __get__(self, obj, objtype):
# when used as attribute a function returns a bound method or the function itself
object = ___id("%object")
method = ___id("%method")
NoneType = ___id("%NoneType")
if obj is None and objtype is not NoneType:
# no object to bind, result is the function itself
return self
else:
# result is a method bound to obj with self as the underlying function
new_method = object.__new__(method)
method.__init__(new_method, self, obj)
return new_method
def __getattr__(self, key):
# the __call__ attribute is the function itself
if ___delta("str=", key, "__call__"):
return self
else:
str = ___id("%str")
msg = ___delta("str+", "function object has not attribute ", key, str)
raise AttributeError(msg)
___assign("%function", function)
| class Function(object):
def __get__(self, obj, objtype):
object = ___id('%object')
method = ___id('%method')
none_type = ___id('%NoneType')
if obj is None and objtype is not NoneType:
return self
else:
new_method = object.__new__(method)
method.__init__(new_method, self, obj)
return new_method
def __getattr__(self, key):
if ___delta('str=', key, '__call__'):
return self
else:
str = ___id('%str')
msg = ___delta('str+', 'function object has not attribute ', key, str)
raise attribute_error(msg)
___assign('%function', function) |
class GenerationTemplate:
def __init__(
self,
source_path: str,
template: str,
group_template: str,
unit_template: str
):
self.source_path: str = source_path
self.template: str = template
self.group_template: str = group_template
self.unit_template: str = unit_template
| class Generationtemplate:
def __init__(self, source_path: str, template: str, group_template: str, unit_template: str):
self.source_path: str = source_path
self.template: str = template
self.group_template: str = group_template
self.unit_template: str = unit_template |
#!/usr/bin/env python3
#
# eask:
# The initialization program (your puzzle input) can either update the bitmask
# or write a value to memory. Values and memory addresses are both 36-bit
# unsigned integers. For example, ignoring bitmasks for a moment, a line
# like mem[8] = 11 would write the value 11 to memory address 8.
# The bitmask is always given as a string of 36 bits, written with the most
# significant bit (representing 2^35) on the left and the least significant
# bit (2^0, that is, the 1s bit) on the right. The current bitmask is applied
# to values immediately before they are written to memory: a 0 or 1 overwrites
# the corresponding bit in the value, while an X leaves the bit in the value
# unchanged. For example:
# - value: 000000000000000000000000000000001011 (decimal 11)
# - mask: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X
# - result: 000000000000000000000000000001001001 (decimal 73)
# Execute the initialization program. What is the sum of all values left
# in memory after it completes? (Do not truncate the sum to 36 bits.)
#
# Solution:
# We read and process input file line by line, tearing each line as instruction
# to be executed. If the instruction is mask, we just save the value as is
# to a string variable. If the instruction is about writing a value to memory
# we read the address as string, which will become identifier (key) in the
# memory map (dictionary), and the value to write as integer. Then we process
# every bit from the mask string, iterating from the right side with counting
# the position (enumerate -> i). If the mask bit is X, we do not perform any
# change. If it is 1, we do binary sum of the current value to write with
# value 1 shifted left by i-bits. If the mask bit is 0, we produce a value
# of all ones, except on a given i-bit (negation of 1 left shifted by i-bits),
# and multiply it binary-wise (and) with the value to write to memory.
# Then we just save the final value to a dictionary with address as a key.
# Finally we sum all values registered in the dictionary.
#
INPUT_FILE = 'input.txt'
def main():
instructions = [line.strip('\n') for line in open(INPUT_FILE, 'r')]
mask = None
memory = {}
for instruction in instructions:
if instruction.startswith('mask = '):
mask = instruction.split(' = ')[1]
elif instruction.startswith('mem['):
address, value = instruction.split(' = ')
address = address[4:-1]
value = int(value)
for i, bit in enumerate(mask[::-1]):
if bit == 'X':
continue
elif bit == '0':
value = value & ~(1 << i)
elif bit == '1':
value = value | (1 << i)
else:
print('BIT VALUE ERROR')
return 1
memory[address] = int(value)
else:
print('VALUE ERROR')
return 1
print(sum(memory.values()))
if __name__ == '__main__':
main()
| input_file = 'input.txt'
def main():
instructions = [line.strip('\n') for line in open(INPUT_FILE, 'r')]
mask = None
memory = {}
for instruction in instructions:
if instruction.startswith('mask = '):
mask = instruction.split(' = ')[1]
elif instruction.startswith('mem['):
(address, value) = instruction.split(' = ')
address = address[4:-1]
value = int(value)
for (i, bit) in enumerate(mask[::-1]):
if bit == 'X':
continue
elif bit == '0':
value = value & ~(1 << i)
elif bit == '1':
value = value | 1 << i
else:
print('BIT VALUE ERROR')
return 1
memory[address] = int(value)
else:
print('VALUE ERROR')
return 1
print(sum(memory.values()))
if __name__ == '__main__':
main() |
class Email:
client = None
optional_arguments = [
"antispamlevel",
"antivirus",
"autorespond",
"autorespondsaveemail",
"autorespondmessage",
"password",
"quota"
]
def __init__(self, client):
self.client = client
def overview(self):
return self.client.get("/email/overview")
def globalquota(self, quota = None):
data = None
if(quota == None):
data = self.client.post_request("/email/globalquota")
else:
data = self.client.post_request("/email/globalquota",
{ "globalquota": quota })
return data["globalquota"]
def list(self, domain):
data = self.client.get_request("/email/list",
{ "domainname": domain })
return {
"accounts": data["list"]["emailaccounts"],
"aliases": data["list"]["emailaliases"]
}
def createaccount(self, email, password, extra = None):
if(extra != None):
for k in extra:
if k not in self.optional_arguments:
raise Exception(
"Invalid parameter: %s " % k)
params = extra
else:
params = {}
if(email is None or email == ""):
raise Exception("Please supply email address")
if(password is None or password == ""):
raise Exception("Please supply password")
params["emailaccount"] = email
params["password"] = password
data = self.client.post_request("/email/createaccount", params)
return data["emailaccount"]
def editaccount(self, email, params):
for k in params:
if k not in self.optional_arguments:
raise Exception("Invalid parameter: %s" % k)
if(email is None or email == ""):
raise Exception("Please supply email address")
params["emailaccount"] = email
data = self.client.post_request("/email/editaccount", params)
return data["emailaccount"]
def delete(self, email):
if(email is None or email == ""):
raise Exception("Please supply email address")
self.client.post_request("/email/delete", { "email": email })
def quota(self, email):
if(email is None or email == ""):
raise Exception("please supply email address")
data = self.client.post_request("/email/quota",
{ "emailaccount": email })
return data["emailaccount"]
| class Email:
client = None
optional_arguments = ['antispamlevel', 'antivirus', 'autorespond', 'autorespondsaveemail', 'autorespondmessage', 'password', 'quota']
def __init__(self, client):
self.client = client
def overview(self):
return self.client.get('/email/overview')
def globalquota(self, quota=None):
data = None
if quota == None:
data = self.client.post_request('/email/globalquota')
else:
data = self.client.post_request('/email/globalquota', {'globalquota': quota})
return data['globalquota']
def list(self, domain):
data = self.client.get_request('/email/list', {'domainname': domain})
return {'accounts': data['list']['emailaccounts'], 'aliases': data['list']['emailaliases']}
def createaccount(self, email, password, extra=None):
if extra != None:
for k in extra:
if k not in self.optional_arguments:
raise exception('Invalid parameter: %s ' % k)
params = extra
else:
params = {}
if email is None or email == '':
raise exception('Please supply email address')
if password is None or password == '':
raise exception('Please supply password')
params['emailaccount'] = email
params['password'] = password
data = self.client.post_request('/email/createaccount', params)
return data['emailaccount']
def editaccount(self, email, params):
for k in params:
if k not in self.optional_arguments:
raise exception('Invalid parameter: %s' % k)
if email is None or email == '':
raise exception('Please supply email address')
params['emailaccount'] = email
data = self.client.post_request('/email/editaccount', params)
return data['emailaccount']
def delete(self, email):
if email is None or email == '':
raise exception('Please supply email address')
self.client.post_request('/email/delete', {'email': email})
def quota(self, email):
if email is None or email == '':
raise exception('please supply email address')
data = self.client.post_request('/email/quota', {'emailaccount': email})
return data['emailaccount'] |
class MyArray:
def __init__(self, *args):
self.elems = list(args)
def __repr__(self):
return str(self.elems)
def __getitem__(self, index):
return self.elems[index]
def __setitem__(self, index, value):
self.elems[index] = value
def __delitem__(self, index):
del self.elems[index]
def __contains__(self, item):
return item in self.elems
delim = '*' * 20
m_a = MyArray(*(range(0, 20, 3)))
print('MyArray m_a -->', m_a)
print(delim)
ind = 2
print('m_a[', ind, '] = ', m_a[ind])
print(delim)
new_val = 42
print("setting value ", new_val, " to index ", ind)
m_a[ind] = new_val
print('MyArray m_a -->', m_a)
print(delim)
ind = 0
print("delete item from index", ind)
del m_a[ind]
print('MyArray m_a -->', m_a)
print(delim)
print("checking if ", new_val, " in m_a")
print(new_val in m_a)
print('MyArray m_a -->', m_a)
print(delim)
| class Myarray:
def __init__(self, *args):
self.elems = list(args)
def __repr__(self):
return str(self.elems)
def __getitem__(self, index):
return self.elems[index]
def __setitem__(self, index, value):
self.elems[index] = value
def __delitem__(self, index):
del self.elems[index]
def __contains__(self, item):
return item in self.elems
delim = '*' * 20
m_a = my_array(*range(0, 20, 3))
print('MyArray m_a -->', m_a)
print(delim)
ind = 2
print('m_a[', ind, '] = ', m_a[ind])
print(delim)
new_val = 42
print('setting value ', new_val, ' to index ', ind)
m_a[ind] = new_val
print('MyArray m_a -->', m_a)
print(delim)
ind = 0
print('delete item from index', ind)
del m_a[ind]
print('MyArray m_a -->', m_a)
print(delim)
print('checking if ', new_val, ' in m_a')
print(new_val in m_a)
print('MyArray m_a -->', m_a)
print(delim) |
n = input()
def odd_even(a):
odd = 0
even = 0
for i in range(len(a)):
if int(a[i]) % 2 == 0:
even += int(a[i])
else:
odd += int(a[i])
return (f'Odd sum = {odd}, Even sum = {even}')
print(odd_even(n))
| n = input()
def odd_even(a):
odd = 0
even = 0
for i in range(len(a)):
if int(a[i]) % 2 == 0:
even += int(a[i])
else:
odd += int(a[i])
return f'Odd sum = {odd}, Even sum = {even}'
print(odd_even(n)) |
load("//internal/jsweet_transpile:jsweet_transpile.bzl", "jsweet_transpile","TRANSPILE_ATTRS")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
JWSEET_TRANSPILE_KEYS = TRANSPILE_ATTRS.keys()
def jsweet_ts_lib(name, **kwargs):
transpile_args = dict()
for transpile_key in JWSEET_TRANSPILE_KEYS:
if transpile_key in kwargs:
value = kwargs.pop(transpile_key)
if value != None:
transpile_args[transpile_key] = value
jsweet_transpiled_name = name + "_jsweet_transpiled"
jsweet_transpile(
name = jsweet_transpiled_name,
**transpile_args
)
jsweet_ts_sources_name = name + "_jsweet_ts_sources"
native.filegroup(
name = jsweet_ts_sources_name,
srcs = [":" + jsweet_transpiled_name],
output_group = "ts_sources"
)
ts_library(
name = name,
srcs = [":" + jsweet_ts_sources_name],
**kwargs # The remaining arguments go to `ts_library`
)
| load('//internal/jsweet_transpile:jsweet_transpile.bzl', 'jsweet_transpile', 'TRANSPILE_ATTRS')
load('@npm_bazel_typescript//:index.bzl', 'ts_library')
jwseet_transpile_keys = TRANSPILE_ATTRS.keys()
def jsweet_ts_lib(name, **kwargs):
transpile_args = dict()
for transpile_key in JWSEET_TRANSPILE_KEYS:
if transpile_key in kwargs:
value = kwargs.pop(transpile_key)
if value != None:
transpile_args[transpile_key] = value
jsweet_transpiled_name = name + '_jsweet_transpiled'
jsweet_transpile(name=jsweet_transpiled_name, **transpile_args)
jsweet_ts_sources_name = name + '_jsweet_ts_sources'
native.filegroup(name=jsweet_ts_sources_name, srcs=[':' + jsweet_transpiled_name], output_group='ts_sources')
ts_library(name=name, srcs=[':' + jsweet_ts_sources_name], **kwargs) |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
dummy = ListNode()
output = dummy
# l1_eol = False
# l2_eol = False
while 1:
# if l1.next == None:
# # output.next = l2
# # break
# l1_eol = True
# if l2.next == None:
# # output.next = l1
# # break
# l2_eol = True
if l1 is None:
output.next = l2
break
if l2 is None:
output.next = l1
break
if l1.val < l2.val:
output.next = l1
l1= l1.next
# print("l1 val ",l1.val)
# break
else:
output.next = l2
l2= l2.next
# print("l2 val ",l2.val)
# break
output = output.next
return dummy.next
class Solution2:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
if l1 == None:
return l2
elif l2 == None:
return l1
elif l1.val < l2.val:
l1.next = self.mergeTwoLists(l1.next, l2)
return l1
else:
l2.next = self.mergeTwoLists(l1, l2.next)
return l2 | class Solution:
def merge_two_lists(self, l1: ListNode, l2: ListNode) -> ListNode:
dummy = list_node()
output = dummy
while 1:
if l1 is None:
output.next = l2
break
if l2 is None:
output.next = l1
break
if l1.val < l2.val:
output.next = l1
l1 = l1.next
else:
output.next = l2
l2 = l2.next
output = output.next
return dummy.next
class Solution2:
def merge_two_lists(self, l1: ListNode, l2: ListNode) -> ListNode:
if l1 == None:
return l2
elif l2 == None:
return l1
elif l1.val < l2.val:
l1.next = self.mergeTwoLists(l1.next, l2)
return l1
else:
l2.next = self.mergeTwoLists(l1, l2.next)
return l2 |
# WSADMIN SCRIPT TO SHOW USEFUL ADMINTASK COMMANDS AND HELP TOWARDS THEM
# Santiago Garcia Arango
# Command:
# wsadmin.sh -lang jython -f /tmp/test.py
print("***** Showing AdminTask help *****")
print(AdminTask.help())
print("***** Showing AdminTask commands *****")
print(AdminTask.help("-commands"))
print("***** Showing AdminTask commands with <*something*> pattern *****")
print(AdminTask.help("-commands", "*server*"))
print(AdminTask.help("-commands", "*jvm*"))
print(AdminTask.help("-commands", "*user*"))
print("***** Showing AdminTask command groups *****")
print(AdminTask.help("-commandGroups"))
print("***** Showing AdminTask specific command help (some examples) *****")
print(AdminTask.help("listNodes"))
print(AdminTask.help("listServers"))
print(AdminTask.help("showServerInfo"))
print(AdminTask.help("setJVMProperties"))
print(AdminTask.help("showJVMProperties"))
print(AdminTask.help("createAuthDataEntry"))
print(AdminTask.help("modifyAuthDataEntry"))
print(AdminTask.help("modifyWMQQueue"))
print(AdminTask.help("createWMQQueue"))
print(AdminTask.help("listUserIDsOfAuthorizationGroup"))
print(AdminTask.help("listAuditUserIDsOfAuthorizationGroup"))
print(AdminTask.help("createUser"))
| print('***** Showing AdminTask help *****')
print(AdminTask.help())
print('***** Showing AdminTask commands *****')
print(AdminTask.help('-commands'))
print('***** Showing AdminTask commands with <*something*> pattern *****')
print(AdminTask.help('-commands', '*server*'))
print(AdminTask.help('-commands', '*jvm*'))
print(AdminTask.help('-commands', '*user*'))
print('***** Showing AdminTask command groups *****')
print(AdminTask.help('-commandGroups'))
print('***** Showing AdminTask specific command help (some examples) *****')
print(AdminTask.help('listNodes'))
print(AdminTask.help('listServers'))
print(AdminTask.help('showServerInfo'))
print(AdminTask.help('setJVMProperties'))
print(AdminTask.help('showJVMProperties'))
print(AdminTask.help('createAuthDataEntry'))
print(AdminTask.help('modifyAuthDataEntry'))
print(AdminTask.help('modifyWMQQueue'))
print(AdminTask.help('createWMQQueue'))
print(AdminTask.help('listUserIDsOfAuthorizationGroup'))
print(AdminTask.help('listAuditUserIDsOfAuthorizationGroup'))
print(AdminTask.help('createUser')) |
def dummy_function(a):
return a
DUMMY_GLOBAL_CONSTANT_0 = 'FOO';
DUMMY_GLOBAL_CONSTANT_1 = 'BAR';
| def dummy_function(a):
return a
dummy_global_constant_0 = 'FOO'
dummy_global_constant_1 = 'BAR' |
# Matrix solver (TDMA)
# parameters required:
# n: number of unknowns (length of x)
# a: coefficient matrix
# b: RHS/constant array
# return output:
# b: solution array
def solve_TDMA(n, a, b):
# forward substitution
a[0][2] = -a[0][2] / a[0][1]
b[0] = b[0] / a[0][1]
for i in range(1, n):
a[i][2] = -a[i][2] / (a[i][1] + a[i][0] * a[i - 1][2])
b[i] = (b[i] - a[i][0] * b[i - 1]) / (a[i][1] + a[i][0] * a[i - 1][2])
# backward elimination
for i in range(n - 2, -1, -1):
b[i] = a[i][2] * b[i + 1] + b[i]
return b
| def solve_tdma(n, a, b):
a[0][2] = -a[0][2] / a[0][1]
b[0] = b[0] / a[0][1]
for i in range(1, n):
a[i][2] = -a[i][2] / (a[i][1] + a[i][0] * a[i - 1][2])
b[i] = (b[i] - a[i][0] * b[i - 1]) / (a[i][1] + a[i][0] * a[i - 1][2])
for i in range(n - 2, -1, -1):
b[i] = a[i][2] * b[i + 1] + b[i]
return b |
allowed_request_categories = [
'stock',
'mutual_fund',
'intraday',
'history',
'history_multi_single_day',
'forex',
'forex_history',
'forex_single_day',
'stock_search'
]
| allowed_request_categories = ['stock', 'mutual_fund', 'intraday', 'history', 'history_multi_single_day', 'forex', 'forex_history', 'forex_single_day', 'stock_search'] |
#Encontrar el menor valor en un array
#con busqueda binaria
def menor (array):
l=0
r=len(array)-1
while l<=r:
mid = l+(r-l)//2
if array[mid] > array[r]:
l=mid+1
if array[mid]< array[r]:
r=mid
if r==l or mid==0:
return array[r]
nums=[15,18,25,35,1,3,12]
print(menor(nums)) | def menor(array):
l = 0
r = len(array) - 1
while l <= r:
mid = l + (r - l) // 2
if array[mid] > array[r]:
l = mid + 1
if array[mid] < array[r]:
r = mid
if r == l or mid == 0:
return array[r]
nums = [15, 18, 25, 35, 1, 3, 12]
print(menor(nums)) |
def fun(s):
ans = 0
o = 0
c = 0
for i in s:
if(i=="("):
o+=1
elif(i==")"):
c+=1
if(c>o):
c-=1
o+=1
ans+=1
return ans
t = int(input())
for _ in range(t):
n = int(input())
s = input()
ans = 0
N = 10**9+7
value = ((n+1)*n)//2
value = pow(value,N-2,N)
print(value)
for i in range(n):
ans+=fun(s[i:])
print((ans*value)%N) | def fun(s):
ans = 0
o = 0
c = 0
for i in s:
if i == '(':
o += 1
elif i == ')':
c += 1
if c > o:
c -= 1
o += 1
ans += 1
return ans
t = int(input())
for _ in range(t):
n = int(input())
s = input()
ans = 0
n = 10 ** 9 + 7
value = (n + 1) * n // 2
value = pow(value, N - 2, N)
print(value)
for i in range(n):
ans += fun(s[i:])
print(ans * value % N) |
for _ in range(int(input())):
s = set()
n = input().split()
while True:
m = input().split()
if m[-1] == "say?":
break
s.add(m[-1])
for i in n:
if i not in s:
print(i, end=' ')
print()
| for _ in range(int(input())):
s = set()
n = input().split()
while True:
m = input().split()
if m[-1] == 'say?':
break
s.add(m[-1])
for i in n:
if i not in s:
print(i, end=' ')
print() |
# Copyright (c) 2018 Stephen Bunn <[email protected]>
# MIT License <https://opensource.org/licenses/MIT>
__name__ = "standardfile"
__repo__ = "https://github.com/stephen-bunn/standardfile"
__description__ = "A library for accessing and interacting with a Standard File server."
__version__ = "0.0.0"
__author__ = "Stephen Bunn"
__contact__ = "[email protected]"
__license__ = "MIT License"
| __name__ = 'standardfile'
__repo__ = 'https://github.com/stephen-bunn/standardfile'
__description__ = 'A library for accessing and interacting with a Standard File server.'
__version__ = '0.0.0'
__author__ = 'Stephen Bunn'
__contact__ = '[email protected]'
__license__ = 'MIT License' |
class Dataset(object):
def __init__(self, env_spec):
self._env_spec = env_spec
def get_batch(self, batch_size, horizon):
raise NotImplementedError
def get_batch_iterator(self, batch_size, horizon, randomize_order=False, is_tf=True):
raise NotImplementedError
| class Dataset(object):
def __init__(self, env_spec):
self._env_spec = env_spec
def get_batch(self, batch_size, horizon):
raise NotImplementedError
def get_batch_iterator(self, batch_size, horizon, randomize_order=False, is_tf=True):
raise NotImplementedError |
# --------------
##File path for the file
file_path
def read_file(path):
f=open(path,'r')
sentence=f.readline()
f.close()
return sentence
sample_message=read_file(file_path)
#Code starts here
# --------------
#Code starts here
file_path_1
file_path_2
message_1=read_file(file_path_1)
message_2=read_file(file_path_2)
message_1,message_2
def fuse_msg(message_a,message_b):
ima=int(message_a)
imb=int(message_b)
quotient=int(imb/ima)
return str(quotient)
#fuse_msg(message_1,message_2)
secret_msg_1=fuse_msg(message_1,message_2)
# --------------
#Code starts here
message_3=read_file(file_path_3)
message_3
def substitute_msg(message_c):
sub="Data Scientist"
if message_c is 'Red':sub='Army General'
if message_c is 'Green':sub='Data Scientist'
if message_c is 'Blue':sub='Marine Biologist'
return sub
secret_msg_2=substitute_msg(message_3)
secret_msg_2
# --------------
# File path for message 4 and message 5
file_path_4
file_path_5
message_4=read_file(file_path_4)
message_5=read_file(file_path_5)
message_4,message_5
def compare_msg(message_d,message_e):
alist=message_d.split()
blist=message_e.split()
c_list=(i for i in alist+blist if i not in blist)
final_msg=" ".join(c_list)
return final_msg
secret_msg_3=compare_msg(message_4,message_5)
secret_msg_3
# --------------
#Code starts here
message_6=read_file(file_path_6)
message_6
def extract_msg(message_f):
a_list=message_f.split()
even_word= lambda x:(len(x)%2==0)
b_list=filter(even_word,a_list)
print(b_list)
final_msg = " ".join(b_list)
return final_msg
secret_msg_4=extract_msg(message_6)
# --------------
#Secret message parts in the correct order
message_parts=[secret_msg_3, secret_msg_1, secret_msg_4, secret_msg_2]
secret_msg=" ".join(message_parts)
final_path= user_data_dir + '/secret_message.txt'
def write_file(secret_msg,path):
file1=open(path,'a+')
file1.write(secret_msg)
file1.close()
write_file(secret_msg,final_path)
secret_msg
| file_path
def read_file(path):
f = open(path, 'r')
sentence = f.readline()
f.close()
return sentence
sample_message = read_file(file_path)
file_path_1
file_path_2
message_1 = read_file(file_path_1)
message_2 = read_file(file_path_2)
(message_1, message_2)
def fuse_msg(message_a, message_b):
ima = int(message_a)
imb = int(message_b)
quotient = int(imb / ima)
return str(quotient)
secret_msg_1 = fuse_msg(message_1, message_2)
message_3 = read_file(file_path_3)
message_3
def substitute_msg(message_c):
sub = 'Data Scientist'
if message_c is 'Red':
sub = 'Army General'
if message_c is 'Green':
sub = 'Data Scientist'
if message_c is 'Blue':
sub = 'Marine Biologist'
return sub
secret_msg_2 = substitute_msg(message_3)
secret_msg_2
file_path_4
file_path_5
message_4 = read_file(file_path_4)
message_5 = read_file(file_path_5)
(message_4, message_5)
def compare_msg(message_d, message_e):
alist = message_d.split()
blist = message_e.split()
c_list = (i for i in alist + blist if i not in blist)
final_msg = ' '.join(c_list)
return final_msg
secret_msg_3 = compare_msg(message_4, message_5)
secret_msg_3
message_6 = read_file(file_path_6)
message_6
def extract_msg(message_f):
a_list = message_f.split()
even_word = lambda x: len(x) % 2 == 0
b_list = filter(even_word, a_list)
print(b_list)
final_msg = ' '.join(b_list)
return final_msg
secret_msg_4 = extract_msg(message_6)
message_parts = [secret_msg_3, secret_msg_1, secret_msg_4, secret_msg_2]
secret_msg = ' '.join(message_parts)
final_path = user_data_dir + '/secret_message.txt'
def write_file(secret_msg, path):
file1 = open(path, 'a+')
file1.write(secret_msg)
file1.close()
write_file(secret_msg, final_path)
secret_msg |
class Agent(object):
def __init__(self, id):
self.id = id
def act(self, state):
raise NotImplementedError()
def transition(self, state, actions, new_state, reward):
pass
| class Agent(object):
def __init__(self, id):
self.id = id
def act(self, state):
raise not_implemented_error()
def transition(self, state, actions, new_state, reward):
pass |
n = int(input())
arr = [list(map(int,input().split())) for i in range(n)]
ans = [0]*n
ans[0] = int(pow((arr[0][1]*arr[0][2])//arr[1][2], 0.5))
for i in range(1,n):
ans[i]=(arr[0][i]//ans[0])
print(*ans) | n = int(input())
arr = [list(map(int, input().split())) for i in range(n)]
ans = [0] * n
ans[0] = int(pow(arr[0][1] * arr[0][2] // arr[1][2], 0.5))
for i in range(1, n):
ans[i] = arr[0][i] // ans[0]
print(*ans) |
class Relaxation:
def __init__(self):
self.predecessors = {}
def buildPath(self, graph, node_from, node_to):
nodes = []
current = node_to
while current != node_from:
if self.predecessors[current] == current and current != node_from:
return None
nodes.append(current)
current = self.predecessors[current]
nodes.append(node_from)
nodes.reverse()
return nodes
| class Relaxation:
def __init__(self):
self.predecessors = {}
def build_path(self, graph, node_from, node_to):
nodes = []
current = node_to
while current != node_from:
if self.predecessors[current] == current and current != node_from:
return None
nodes.append(current)
current = self.predecessors[current]
nodes.append(node_from)
nodes.reverse()
return nodes |
'''
It is also possible to construct a DataFrame with hierarchically indexed columns. For this exercise, you'll start with pandas imported and a list of three DataFrames called dataframes. All three DataFrames contain 'Company', 'Product', and 'Units' columns with a 'Date' column as the index pertaining to sales transactions during the month of February, 2015. The first DataFrame describes Hardware transactions, the second describes Software transactions, and the third, Service transactions.
Your task is to concatenate the DataFrames horizontally and to create a MultiIndex on the columns. From there, you can summarize the resulting DataFrame and slice some information from it.
'''
# Concatenate dataframes: february
february = pd.concat(dataframes, axis=1, keys=['Hardware', 'Software', 'Service'])
# Print february.info()
print(february.info())
# Assign pd.IndexSlice: idx
idx = pd.IndexSlice
# Create the slice: slice_2_8
slice_2_8 = february.loc['Feb. 2, 2015':'Feb. 8, 2015', idx[:, 'Company']]
# Print slice_2_8
print(slice_2_8)
| """
It is also possible to construct a DataFrame with hierarchically indexed columns. For this exercise, you'll start with pandas imported and a list of three DataFrames called dataframes. All three DataFrames contain 'Company', 'Product', and 'Units' columns with a 'Date' column as the index pertaining to sales transactions during the month of February, 2015. The first DataFrame describes Hardware transactions, the second describes Software transactions, and the third, Service transactions.
Your task is to concatenate the DataFrames horizontally and to create a MultiIndex on the columns. From there, you can summarize the resulting DataFrame and slice some information from it.
"""
february = pd.concat(dataframes, axis=1, keys=['Hardware', 'Software', 'Service'])
print(february.info())
idx = pd.IndexSlice
slice_2_8 = february.loc['Feb. 2, 2015':'Feb. 8, 2015', idx[:, 'Company']]
print(slice_2_8) |
# Copyright 2015 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
{
'includes': [
],
'targets': [
{
'target_name': 'mkvmuxer',
'type': 'static_library',
'sources': [
'src/mkvmuxer.cpp',
'src/mkvmuxer.hpp',
'src/mkvmuxerutil.cpp',
'src/mkvmuxerutil.hpp',
'src/mkvwriter.cpp',
'src/mkvwriter.hpp',
],
},
],
}
| {'includes': [], 'targets': [{'target_name': 'mkvmuxer', 'type': 'static_library', 'sources': ['src/mkvmuxer.cpp', 'src/mkvmuxer.hpp', 'src/mkvmuxerutil.cpp', 'src/mkvmuxerutil.hpp', 'src/mkvwriter.cpp', 'src/mkvwriter.hpp']}]} |
class Address(object):
def __init__(self,addr):
self.addr=addr
@classmethod
def fromhex(cls,addr):
return cls(bytes.fromhex(addr))
def equal(self,other):
if not isinstance(other, Address):
raise Exception('peer is not an address')
if not len(self.addr) == len(other.addr):
raise Exception('address lenght mismatch')
for i in range(len(self.addr)):
if not self.addr[i] == other.addr[i]:
return False
return True
def string(self):
return self.addr.hex()
MaxPO=16
def prox(one,other):
b = int(MaxPO/8) + 1
m = 8
for i in range(b):
oxo = one[i] ^ other[i]
for j in range(m):
if oxo>>(7-j)&0x01 != 0 :
return i*8 + j
return MaxPO
| class Address(object):
def __init__(self, addr):
self.addr = addr
@classmethod
def fromhex(cls, addr):
return cls(bytes.fromhex(addr))
def equal(self, other):
if not isinstance(other, Address):
raise exception('peer is not an address')
if not len(self.addr) == len(other.addr):
raise exception('address lenght mismatch')
for i in range(len(self.addr)):
if not self.addr[i] == other.addr[i]:
return False
return True
def string(self):
return self.addr.hex()
max_po = 16
def prox(one, other):
b = int(MaxPO / 8) + 1
m = 8
for i in range(b):
oxo = one[i] ^ other[i]
for j in range(m):
if oxo >> 7 - j & 1 != 0:
return i * 8 + j
return MaxPO |
# job_list_one_shot.py ---
#
# Filename: job_list_one_shot.py
# Author: Abhishek Udupa
# Created: Tue Jan 26 15:13:19 2016 (-0500)
#
#
# Copyright (c) 2015, Abhishek Udupa, University of Pennsylvania
# 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.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by The University of Pennsylvania
# 4. Neither the name of the University of Pennsylvania nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''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 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.
#
#
# Code:
[
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_103_10.sl'], 'icfp_103_10-one-shot', 'icfp_103_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_113_1000.sl'], 'icfp_113_1000-one-shot', 'icfp_113_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_125_10.sl'], 'icfp_125_10-one-shot', 'icfp_125_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_14_1000.sl'], 'icfp_14_1000-one-shot', 'icfp_14_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_147_1000.sl'], 'icfp_147_1000-one-shot', 'icfp_147_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_28_10.sl'], 'icfp_28_10-one-shot', 'icfp_28_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_39_100.sl'], 'icfp_39_100-one-shot', 'icfp_39_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_51_10.sl'], 'icfp_51_10-one-shot', 'icfp_51_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_68_1000.sl'], 'icfp_68_1000-one-shot', 'icfp_68_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_72_10.sl'], 'icfp_72_10-one-shot', 'icfp_72_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_82_10.sl'], 'icfp_82_10-one-shot', 'icfp_82_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_94_1000.sl'], 'icfp_94_1000-one-shot', 'icfp_94_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_96_10.sl'], 'icfp_96_10-one-shot', 'icfp_96_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_104_10.sl'], 'icfp_104_10-one-shot', 'icfp_104_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_114_100.sl'], 'icfp_114_100-one-shot', 'icfp_114_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_134_1000.sl'], 'icfp_134_1000-one-shot', 'icfp_134_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_143_1000.sl'], 'icfp_143_1000-one-shot', 'icfp_143_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_150_10.sl'], 'icfp_150_10-one-shot', 'icfp_150_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_30_10.sl'], 'icfp_30_10-one-shot', 'icfp_30_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_45_1000.sl'], 'icfp_45_1000-one-shot', 'icfp_45_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_54_1000.sl'], 'icfp_54_1000-one-shot', 'icfp_54_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_69_10.sl'], 'icfp_69_10-one-shot', 'icfp_69_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_73_10.sl'], 'icfp_73_10-one-shot', 'icfp_73_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_87_10.sl'], 'icfp_87_10-one-shot', 'icfp_87_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_94_100.sl'], 'icfp_94_100-one-shot', 'icfp_94_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_99_100.sl'], 'icfp_99_100-one-shot', 'icfp_99_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_105_1000.sl'], 'icfp_105_1000-one-shot', 'icfp_105_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_118_100.sl'], 'icfp_118_100-one-shot', 'icfp_118_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_135_100.sl'], 'icfp_135_100-one-shot', 'icfp_135_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_144_1000.sl'], 'icfp_144_1000-one-shot', 'icfp_144_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_21_1000.sl'], 'icfp_21_1000-one-shot', 'icfp_21_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_32_10.sl'], 'icfp_32_10-one-shot', 'icfp_32_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_45_10.sl'], 'icfp_45_10-one-shot', 'icfp_45_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_56_1000.sl'], 'icfp_56_1000-one-shot', 'icfp_56_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_7_1000.sl'], 'icfp_7_1000-one-shot', 'icfp_7_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_81_1000.sl'], 'icfp_81_1000-one-shot', 'icfp_81_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_9_1000.sl'], 'icfp_9_1000-one-shot', 'icfp_9_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_95_100.sl'], 'icfp_95_100-one-shot', 'icfp_95_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_105_100.sl'], 'icfp_105_100-one-shot', 'icfp_105_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_118_10.sl'], 'icfp_118_10-one-shot', 'icfp_118_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_139_10.sl'], 'icfp_139_10-one-shot', 'icfp_139_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_144_100.sl'], 'icfp_144_100-one-shot', 'icfp_144_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_25_1000.sl'], 'icfp_25_1000-one-shot', 'icfp_25_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_38_10.sl'], 'icfp_38_10-one-shot', 'icfp_38_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_5_1000.sl'], 'icfp_5_1000-one-shot', 'icfp_5_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_64_10.sl'], 'icfp_64_10-one-shot', 'icfp_64_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_7_10.sl'], 'icfp_7_10-one-shot', 'icfp_7_10-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_82_100.sl'], 'icfp_82_100-one-shot', 'icfp_82_100-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_93_1000.sl'], 'icfp_93_1000-one-shot', 'icfp_93_1000-one-shot'),
(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_96_1000.sl'], 'icfp_96_1000-one-shot', 'icfp_96_1000-one-shot')
]
#
# job_list_one_shot.py ends here
| [(['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_103_10.sl'], 'icfp_103_10-one-shot', 'icfp_103_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_113_1000.sl'], 'icfp_113_1000-one-shot', 'icfp_113_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_125_10.sl'], 'icfp_125_10-one-shot', 'icfp_125_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_14_1000.sl'], 'icfp_14_1000-one-shot', 'icfp_14_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_147_1000.sl'], 'icfp_147_1000-one-shot', 'icfp_147_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_28_10.sl'], 'icfp_28_10-one-shot', 'icfp_28_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_39_100.sl'], 'icfp_39_100-one-shot', 'icfp_39_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_51_10.sl'], 'icfp_51_10-one-shot', 'icfp_51_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_68_1000.sl'], 'icfp_68_1000-one-shot', 'icfp_68_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_72_10.sl'], 'icfp_72_10-one-shot', 'icfp_72_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_82_10.sl'], 'icfp_82_10-one-shot', 'icfp_82_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_94_1000.sl'], 'icfp_94_1000-one-shot', 'icfp_94_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_96_10.sl'], 'icfp_96_10-one-shot', 'icfp_96_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_104_10.sl'], 'icfp_104_10-one-shot', 'icfp_104_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_114_100.sl'], 'icfp_114_100-one-shot', 'icfp_114_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_134_1000.sl'], 'icfp_134_1000-one-shot', 'icfp_134_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_143_1000.sl'], 'icfp_143_1000-one-shot', 'icfp_143_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_150_10.sl'], 'icfp_150_10-one-shot', 'icfp_150_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_30_10.sl'], 'icfp_30_10-one-shot', 'icfp_30_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_45_1000.sl'], 'icfp_45_1000-one-shot', 'icfp_45_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_54_1000.sl'], 'icfp_54_1000-one-shot', 'icfp_54_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_69_10.sl'], 'icfp_69_10-one-shot', 'icfp_69_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_73_10.sl'], 'icfp_73_10-one-shot', 'icfp_73_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_87_10.sl'], 'icfp_87_10-one-shot', 'icfp_87_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_94_100.sl'], 'icfp_94_100-one-shot', 'icfp_94_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_99_100.sl'], 'icfp_99_100-one-shot', 'icfp_99_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_105_1000.sl'], 'icfp_105_1000-one-shot', 'icfp_105_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_118_100.sl'], 'icfp_118_100-one-shot', 'icfp_118_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_135_100.sl'], 'icfp_135_100-one-shot', 'icfp_135_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_144_1000.sl'], 'icfp_144_1000-one-shot', 'icfp_144_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_21_1000.sl'], 'icfp_21_1000-one-shot', 'icfp_21_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_32_10.sl'], 'icfp_32_10-one-shot', 'icfp_32_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_45_10.sl'], 'icfp_45_10-one-shot', 'icfp_45_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_56_1000.sl'], 'icfp_56_1000-one-shot', 'icfp_56_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_7_1000.sl'], 'icfp_7_1000-one-shot', 'icfp_7_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_81_1000.sl'], 'icfp_81_1000-one-shot', 'icfp_81_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_9_1000.sl'], 'icfp_9_1000-one-shot', 'icfp_9_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_95_100.sl'], 'icfp_95_100-one-shot', 'icfp_95_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_105_100.sl'], 'icfp_105_100-one-shot', 'icfp_105_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_118_10.sl'], 'icfp_118_10-one-shot', 'icfp_118_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_139_10.sl'], 'icfp_139_10-one-shot', 'icfp_139_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_144_100.sl'], 'icfp_144_100-one-shot', 'icfp_144_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_25_1000.sl'], 'icfp_25_1000-one-shot', 'icfp_25_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_38_10.sl'], 'icfp_38_10-one-shot', 'icfp_38_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_5_1000.sl'], 'icfp_5_1000-one-shot', 'icfp_5_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_64_10.sl'], 'icfp_64_10-one-shot', 'icfp_64_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_7_10.sl'], 'icfp_7_10-one-shot', 'icfp_7_10-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_82_100.sl'], 'icfp_82_100-one-shot', 'icfp_82_100-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_93_1000.sl'], 'icfp_93_1000-one-shot', 'icfp_93_1000-one-shot'), (['python3', 'solvers.py', '3600', 'icfp', '../benchmarks/icfp/icfp_96_1000.sl'], 'icfp_96_1000-one-shot', 'icfp_96_1000-one-shot')] |
class OnlyStaffMixin(object):
def dispatch(self, request, *args, **kwargs):
if not request.user.is_staff:
messages.error(request, "Only Staff members can do this.")
try:
return HttpResponseRedirect(request.META['HTTP_REFERER'])
except KeyError:
return HttpResponseRedirect('/')
return super(OnlyStaffMixin, self).dispatch(request, *args, **kwargs)
| class Onlystaffmixin(object):
def dispatch(self, request, *args, **kwargs):
if not request.user.is_staff:
messages.error(request, 'Only Staff members can do this.')
try:
return http_response_redirect(request.META['HTTP_REFERER'])
except KeyError:
return http_response_redirect('/')
return super(OnlyStaffMixin, self).dispatch(request, *args, **kwargs) |
def plant_recommendation(care):
if care == 'low':
print('aloe')
elif care == 'medium':
print('pothos')
elif care == 'high':
print('orchid')
plant_recommendation('low')
plant_recommendation('medium')
plant_recommendation('high')
| def plant_recommendation(care):
if care == 'low':
print('aloe')
elif care == 'medium':
print('pothos')
elif care == 'high':
print('orchid')
plant_recommendation('low')
plant_recommendation('medium')
plant_recommendation('high') |
class Settings():
def __init__(self):
self.screen_width = 1024 # screen Width
self.screen_height = 512 # screen height
self.bg_color = (255, 255, 255) # overall background color
self.init_speed = 30 # speed factor of dino
self.dhmax = 23
self.alt_freq = 3 | class Settings:
def __init__(self):
self.screen_width = 1024
self.screen_height = 512
self.bg_color = (255, 255, 255)
self.init_speed = 30
self.dhmax = 23
self.alt_freq = 3 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.